From c863aae5fdbf09a74a07067f844ce9ab6a6c5eec Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 15 Apr 2026 03:00:53 +0000 Subject: [PATCH 01/19] chore: Update generation configuration at Wed Apr 15 03:00:46 UTC 2026 --- generation_config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/generation_config.yaml b/generation_config.yaml index c11dc476b7bd..02c5275964e9 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,6 +1,6 @@ -gapic_generator_version: 2.70.0 -googleapis_commitish: 62e4ecb2f4390728990514fea14aad0431881a52 -libraries_bom_version: 26.79.0 +gapic_generator_version: 2.71.0 +googleapis_commitish: bf85cad8abc13cd38d42b0cf8545d323243ff7e2 +libraries_bom_version: 26.80.0 libraries: - api_shortname: accessapproval name_pretty: Access Approval From 223a513b4ccce73c9836f94267f7b228b4625ae0 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 15 Apr 2026 04:35:40 +0000 Subject: [PATCH 02/19] chore: generate libraries at Wed Apr 15 03:03:30 UTC 2026 --- gapic-libraries-bom/pom.xml | 2 +- java-accessapproval/README.md | 2 +- java-accesscontextmanager/README.md | 2 +- java-advisorynotifications/README.md | 2 +- java-aiplatform/README.md | 2 +- java-alloydb-connectors/README.md | 2 +- java-alloydb/README.md | 2 +- java-analytics-admin/README.md | 2 +- .../v1alpha/AnalyticsAdminServiceClient.java | 153 +- .../AnalyticsAdminServiceSettings.java | 13 + .../admin/v1alpha/gapic_metadata.json | 3 + .../stub/AnalyticsAdminServiceStub.java | 8 + .../AnalyticsAdminServiceStubSettings.java | 35 +- .../stub/GrpcAnalyticsAdminServiceStub.java | 43 + .../HttpJsonAnalyticsAdminServiceStub.java | 67 + .../reflect-config.json | 36 + ...alyticsAdminServiceClientHttpJsonTest.java | 92 + .../AnalyticsAdminServiceClientTest.java | 82 + .../MockAnalyticsAdminServiceImpl.java | 23 + .../v1alpha/AnalyticsAdminServiceGrpc.java | 153 +- .../analytics/admin/v1alpha/Account.java | 28 +- .../admin/v1alpha/AccountOrBuilder.java | 8 +- .../admin/v1alpha/AccountSummary.java | 28 +- .../v1alpha/AccountSummaryOrBuilder.java | 8 +- .../admin/v1alpha/AnalyticsAdminProto.java | 2748 ++++++++--------- .../admin/v1alpha/CalculatedMetric.java | 28 +- .../v1alpha/CalculatedMetricOrBuilder.java | 8 +- .../admin/v1alpha/ChangeHistoryChange.java | 389 +++ .../v1alpha/ChangeHistoryResourceType.java | 23 + .../admin/v1alpha/ConversionEvent.java | 28 +- .../v1alpha/ConversionEventOrBuilder.java | 8 +- .../admin/v1alpha/CustomDimension.java | 28 +- .../v1alpha/CustomDimensionOrBuilder.java | 8 +- .../analytics/admin/v1alpha/CustomMetric.java | 28 +- .../admin/v1alpha/CustomMetricOrBuilder.java | 8 +- .../admin/v1alpha/DataRetentionSettings.java | 28 +- .../DataRetentionSettingsOrBuilder.java | 8 +- .../admin/v1alpha/DataSharingSettings.java | 36 +- .../v1alpha/DataSharingSettingsOrBuilder.java | 10 +- .../analytics/admin/v1alpha/DataStream.java | 28 +- .../admin/v1alpha/DataStreamOrBuilder.java | 8 +- .../DisplayVideo360AdvertiserLink.java | 28 +- ...isplayVideo360AdvertiserLinkOrBuilder.java | 8 +- ...DisplayVideo360AdvertiserLinkProposal.java | 28 +- ...deo360AdvertiserLinkProposalOrBuilder.java | 8 +- .../analytics/admin/v1alpha/FirebaseLink.java | 28 +- .../admin/v1alpha/FirebaseLinkOrBuilder.java | 8 +- .../GetUserProvidedDataSettingsRequest.java | 630 ++++ ...rProvidedDataSettingsRequestOrBuilder.java | 60 + .../admin/v1alpha/GlobalSiteTag.java | 28 +- .../admin/v1alpha/GlobalSiteTagOrBuilder.java | 8 +- .../admin/v1alpha/GoogleAdsLink.java | 28 +- .../admin/v1alpha/GoogleAdsLinkOrBuilder.java | 8 +- .../v1alpha/ListAccountSummariesRequest.java | 110 +- .../ListAccountSummariesRequestOrBuilder.java | 30 +- .../admin/v1alpha/ListAccountsRequest.java | 44 +- .../v1alpha/ListAccountsRequestOrBuilder.java | 12 +- .../v1alpha/ListConversionEventsRequest.java | 86 +- .../ListConversionEventsRequestOrBuilder.java | 24 +- .../v1alpha/ListCustomDimensionsRequest.java | 58 +- .../ListCustomDimensionsRequestOrBuilder.java | 16 +- .../v1alpha/ListFirebaseLinksRequest.java | 44 +- .../ListFirebaseLinksRequestOrBuilder.java | 12 +- .../v1alpha/ListGoogleAdsLinksRequest.java | 44 +- .../ListGoogleAdsLinksRequestOrBuilder.java | 12 +- .../admin/v1alpha/ListKeyEventsRequest.java | 44 +- .../ListKeyEventsRequestOrBuilder.java | 12 +- ...ListMeasurementProtocolSecretsRequest.java | 93 +- ...rementProtocolSecretsRequestOrBuilder.java | 26 +- .../admin/v1alpha/ListPropertiesRequest.java | 44 +- .../ListPropertiesRequestOrBuilder.java | 12 +- ...dNetworkConversionValueSchemasRequest.java | 44 +- ...onversionValueSchemasRequestOrBuilder.java | 12 +- .../v1alpha/MeasurementProtocolSecret.java | 42 +- .../MeasurementProtocolSecretOrBuilder.java | 12 +- .../analytics/admin/v1alpha/Property.java | 28 +- .../admin/v1alpha/PropertyOrBuilder.java | 8 +- .../admin/v1alpha/ResourcesProto.java | 482 +-- .../SKAdNetworkConversionValueSchema.java | 28 +- ...NetworkConversionValueSchemaOrBuilder.java | 8 +- .../admin/v1alpha/SearchAds360Link.java | 28 +- .../v1alpha/SearchAds360LinkOrBuilder.java | 8 +- .../v1alpha/UserProvidedDataSettings.java | 843 +++++ .../v1alpha/UserProvidedDataSettingsName.java | 169 + .../UserProvidedDataSettingsOrBuilder.java | 89 + .../admin/v1alpha/access_report.proto | 2 +- .../admin/v1alpha/analytics_admin.proto | 132 +- .../analytics/admin/v1alpha/audience.proto | 2 +- .../admin/v1alpha/channel_group.proto | 2 +- .../admin/v1alpha/event_create_and_edit.proto | 2 +- .../admin/v1alpha/expanded_data_set.proto | 2 +- .../analytics/admin/v1alpha/resources.proto | 142 +- .../v1alpha/subproperty_event_filter.proto | 2 +- .../AsyncGetUserProvidedDataSettings.java | 51 + .../SyncGetUserProvidedDataSettings.java | 48 + ...SyncGetUserProvidedDataSettingsString.java | 44 + ...aSettingsUserprovideddatasettingsname.java | 45 + java-analytics-data/README.md | 2 +- java-analyticshub/README.md | 2 +- java-api-gateway/README.md | 2 +- java-apigee-connect/README.md | 2 +- java-apigee-registry/README.md | 2 +- java-apihub/README.md | 2 +- java-apikeys/README.md | 2 +- java-appengine-admin/README.md | 2 +- java-apphub/README.md | 2 +- java-appoptimize/README.md | 2 +- java-area120-tables/README.md | 2 +- java-artifact-registry/README.md | 2 +- java-asset/README.md | 2 +- java-assured-workloads/README.md | 2 +- java-auditmanager/README.md | 2 +- java-automl/README.md | 2 +- java-backupdr/README.md | 2 +- java-bare-metal-solution/README.md | 2 +- java-batch/README.md | 2 +- java-beyondcorp-appconnections/README.md | 2 +- java-beyondcorp-appconnectors/README.md | 2 +- java-beyondcorp-appgateways/README.md | 2 +- .../README.md | 2 +- java-beyondcorp-clientgateways/README.md | 2 +- java-biglake/README.md | 2 +- java-bigquery-data-exchange/README.md | 2 +- java-bigqueryconnection/README.md | 2 +- java-bigquerydatapolicy/README.md | 2 +- java-bigquerydatatransfer/README.md | 2 +- java-bigquerymigration/README.md | 2 +- java-bigqueryreservation/README.md | 2 +- java-bigquerystorage/README.md | 2 +- java-billing/README.md | 2 +- java-billingbudgets/README.md | 2 +- java-binary-authorization/README.md | 2 +- java-capacityplanner/README.md | 2 +- java-certificate-manager/README.md | 2 +- java-ces/README.md | 2 +- .../ces/v1beta/EvaluationServiceClient.java | 182 ++ .../ces/v1beta/EvaluationServiceSettings.java | 25 + .../cloud/ces/v1beta/ToolServiceClient.java | 3 + .../cloud/ces/v1beta/gapic_metadata.json | 3 + .../google/cloud/ces/v1beta/package-info.java | 1 + .../v1beta/stub/EvaluationServiceStub.java | 13 + .../stub/EvaluationServiceStubSettings.java | 76 + .../stub/GrpcEvaluationServiceStub.java | 51 + .../stub/HttpJsonEvaluationServiceStub.java | 84 + .../reflect-config.json | 180 ++ .../EvaluationServiceClientHttpJsonTest.java | 106 + .../v1beta/EvaluationServiceClientTest.java | 100 + .../ces/v1beta/MockEvaluationServiceImpl.java | 21 + .../v1beta/ToolServiceClientHttpJsonTest.java | 2 + .../ces/v1beta/ToolServiceClientTest.java | 3 + .../ces/v1beta/EvaluationServiceGrpc.java | 127 + .../com/google/cloud/ces/v1beta/AppProto.java | 157 +- .../v1beta/ConversationLoggingSettings.java | 328 +- .../ConversationLoggingSettingsOrBuilder.java | 43 + .../ces/v1beta/ErrorHandlingSettings.java | 2314 +++++++++++++- .../ErrorHandlingSettingsOrBuilder.java | 92 + .../cloud/ces/v1beta/EvaluationConfig.java | 16 +- .../ces/v1beta/EvaluationConfigOrBuilder.java | 8 +- .../v1beta/EvaluationMetricsThresholds.java | 14 +- .../EvaluationMetricsThresholdsOrBuilder.java | 4 +- .../cloud/ces/v1beta/EvaluationProto.java | 156 +- .../cloud/ces/v1beta/EvaluationResult.java | 31 +- .../ces/v1beta/EvaluationResultOrBuilder.java | 4 +- .../cloud/ces/v1beta/EvaluationRun.java | 8 +- .../ces/v1beta/EvaluationRunOrBuilder.java | 4 +- .../ces/v1beta/EvaluationServiceProto.java | 492 +-- .../cloud/ces/v1beta/ExecuteToolRequest.java | 329 ++ .../v1beta/ExecuteToolRequestOrBuilder.java | 49 + .../ExportEvaluationResultsResponse.java | 899 ++++++ ...ortEvaluationResultsResponseOrBuilder.java | 104 + .../v1beta/ExportEvaluationRunsResponse.java | 898 ++++++ ...ExportEvaluationRunsResponseOrBuilder.java | 104 + .../ces/v1beta/ExportEvaluationsRequest.java | 1455 +++++++++ .../ExportEvaluationsRequestOrBuilder.java | 193 ++ .../ces/v1beta/ExportEvaluationsResponse.java | 1283 ++++++++ .../ExportEvaluationsResponseOrBuilder.java | 178 ++ .../cloud/ces/v1beta/ExportOptions.java | 956 ++++++ .../ces/v1beta/ExportOptionsOrBuilder.java | 88 + .../ces/v1beta/GenerateEvaluationRequest.java | 14 +- .../GenerateEvaluationRequestOrBuilder.java | 4 +- .../ces/v1beta/ImportEvaluationsResponse.java | 1375 ++++++++- .../ImportEvaluationsResponseOrBuilder.java | 143 +- .../ces/v1beta/ListEvaluationsRequest.java | 14 +- .../ListEvaluationsRequestOrBuilder.java | 4 +- .../google/cloud/ces/v1beta/MockConfig.java | 1337 ++++++++ .../cloud/ces/v1beta/MockConfigOrBuilder.java | 126 + .../cloud/ces/v1beta/MockedToolCall.java | 1963 ++++++++++++ .../ces/v1beta/MockedToolCallOrBuilder.java | 249 ++ .../google/cloud/ces/v1beta/MocksProto.java | 106 + .../cloud/ces/v1beta/SessionServiceProto.java | 145 +- .../cloud/ces/v1beta/ToolServiceProto.java | 124 +- .../proto/google/cloud/ces/v1beta/app.proto | 40 + .../google/cloud/ces/v1beta/evaluation.proto | 3 + .../cloud/ces/v1beta/evaluation_service.proto | 136 +- .../proto/google/cloud/ces/v1beta/mocks.proto | 65 + .../cloud/ces/v1beta/session_service.proto | 26 + .../cloud/ces/v1beta/tool_service.proto | 6 + .../AsyncExportEvaluations.java | 56 + .../AsyncExportEvaluationsLRO.java | 57 + .../SyncExportEvaluations.java | 53 + .../SyncExportEvaluationsAppname.java | 43 + .../SyncExportEvaluationsString.java | 43 + .../executetool/AsyncExecuteTool.java | 2 + .../executetool/SyncExecuteTool.java | 2 + java-channel/README.md | 2 +- java-chat/README.md | 2 +- java-chronicle/README.md | 2 +- java-cloudapiregistry/README.md | 2 +- java-cloudbuild/README.md | 2 +- .../README.md | 2 +- java-cloudcontrolspartner/README.md | 2 +- java-cloudquotas/README.md | 2 +- java-cloudsecuritycompliance/README.md | 2 +- java-cloudsupport/README.md | 2 +- java-compute/README.md | 2 +- java-confidentialcomputing/README.md | 2 +- java-configdelivery/README.md | 2 +- java-connectgateway/README.md | 2 +- java-contact-center-insights/README.md | 2 +- java-container/README.md | 2 +- java-containeranalysis/README.md | 2 +- java-contentwarehouse/README.md | 2 +- java-data-fusion/README.md | 2 +- java-databasecenter/README.md | 2 +- java-datacatalog/README.md | 2 +- java-dataflow/README.md | 2 +- java-dataform/README.md | 2 +- java-datalabeling/README.md | 2 +- java-datalineage/README.md | 2 +- java-dataplex/README.md | 2 +- java-dataproc-metastore/README.md | 2 +- java-dataproc/README.md | 2 +- java-datastore/README.md | 2 +- java-datastream/README.md | 2 +- java-deploy/README.md | 2 +- java-developerconnect/README.md | 2 +- java-devicestreaming/README.md | 2 +- java-dialogflow-cx/README.md | 2 +- java-dialogflow/README.md | 2 +- java-discoveryengine/README.md | 2 +- java-distributedcloudedge/README.md | 2 +- java-dlp/README.md | 2 +- java-dms/README.md | 2 +- java-document-ai/README.md | 2 +- java-domains/README.md | 2 +- java-edgenetwork/README.md | 2 +- java-enterpriseknowledgegraph/README.md | 2 +- java-errorreporting/README.md | 2 +- java-essential-contacts/README.md | 2 +- java-eventarc-publishing/README.md | 2 +- java-eventarc/README.md | 2 +- java-filestore/README.md | 2 +- java-financialservices/README.md | 2 +- java-functions/README.md | 2 +- java-gdchardwaremanagement/README.md | 2 +- java-geminidataanalytics/README.md | 2 +- java-gke-backup/README.md | 2 +- java-gke-connect-gateway/README.md | 2 +- java-gke-multi-cloud/README.md | 2 +- java-gkehub/README.md | 2 +- java-gkerecommender/README.md | 2 +- java-gsuite-addons/README.md | 2 +- java-hypercomputecluster/README.md | 2 +- java-iam-admin/README.md | 2 +- java-iam/README.md | 2 +- java-iamcredentials/README.md | 2 +- java-iap/README.md | 2 +- java-ids/README.md | 2 +- java-infra-manager/README.md | 2 +- java-iot/README.md | 2 +- java-kms/README.md | 2 +- java-kmsinventory/README.md | 2 +- java-language/README.md | 2 +- java-licensemanager/README.md | 2 +- java-life-sciences/README.md | 2 +- java-locationfinder/README.md | 2 +- java-logging/README.md | 2 +- java-lustre/README.md | 2 +- java-maintenance/README.md | 2 +- java-managed-identities/README.md | 2 +- java-managedkafka/README.md | 2 +- java-mediatranslation/README.md | 2 +- java-meet/README.md | 2 +- java-memcache/README.md | 2 +- java-migrationcenter/README.md | 2 +- java-modelarmor/README.md | 2 +- java-monitoring-dashboards/README.md | 2 +- java-monitoring-metricsscope/README.md | 2 +- java-monitoring/README.md | 2 +- java-netapp/README.md | 2 +- java-network-management/README.md | 2 +- java-network-security/README.md | 2 +- java-networkconnectivity/README.md | 2 +- java-networkservices/README.md | 2 +- java-notebooks/README.md | 2 +- java-optimization/README.md | 2 +- java-oracledatabase/README.md | 2 +- java-orchestration-airflow/README.md | 2 +- java-orgpolicy/README.md | 2 +- java-os-config/README.md | 2 +- java-os-login/README.md | 2 +- java-parallelstore/README.md | 2 +- java-parametermanager/README.md | 2 +- java-phishingprotection/README.md | 2 +- java-policy-troubleshooter/README.md | 2 +- java-policysimulator/README.md | 2 +- java-private-catalog/README.md | 2 +- java-privilegedaccessmanager/README.md | 2 +- java-profiler/README.md | 2 +- java-publicca/README.md | 2 +- java-rapidmigrationassessment/README.md | 2 +- java-recaptchaenterprise/README.md | 2 +- java-recommendations-ai/README.md | 2 +- java-recommender/README.md | 2 +- java-redis-cluster/README.md | 2 +- java-redis/README.md | 2 +- java-resourcemanager/README.md | 2 +- java-retail/README.md | 2 +- java-run/README.md | 2 +- java-saasservicemgmt/README.md | 2 +- .../v1beta1/SaasDeploymentsClient.java | 44 +- .../v1beta1/SaasRolloutsClient.java | 44 +- .../saasservicemgmt/v1beta1/package-info.java | 2 +- .../saasservicemgmt/v1beta1/Tenant.java | 70 +- .../v1beta1/TenantOrBuilder.java | 20 +- .../saasservicemgmt/v1beta1/ToMapping.java | 16 +- .../v1beta1/ToMappingOrBuilder.java | 4 +- .../saasservicemgmt/v1beta1/UnitKind.java | 35 +- .../v1beta1/UnitKindOrBuilder.java | 10 +- .../saasservicemgmt/v1beta1/common.proto | 2 +- .../v1beta1/deployments_resources.proto | 21 +- .../v1beta1/deployments_service.proto | 2 +- .../v1beta1/rollouts_resources.proto | 2 +- .../v1beta1/rollouts_service.proto | 2 +- java-scheduler/README.md | 2 +- java-secretmanager/README.md | 2 +- java-securesourcemanager/README.md | 2 +- java-security-private-ca/README.md | 2 +- java-securitycenter-settings/README.md | 2 +- java-securitycenter/README.md | 2 +- java-securitycentermanagement/README.md | 2 +- java-securityposture/README.md | 2 +- java-service-control/README.md | 2 +- java-service-management/README.md | 2 +- java-service-usage/README.md | 2 +- java-servicedirectory/README.md | 2 +- java-servicehealth/README.md | 2 +- java-shell/README.md | 2 +- java-spanner/README.md | 2 +- java-spanneradapter/README.md | 2 +- java-speech/README.md | 2 +- java-storage-transfer/README.md | 2 +- java-storage/README.md | 2 +- java-storagebatchoperations/README.md | 2 +- java-storageinsights/README.md | 2 +- java-talent/README.md | 2 +- java-tasks/README.md | 2 +- java-telcoautomation/README.md | 2 +- java-texttospeech/README.md | 2 +- java-tpu/README.md | 2 +- java-trace/README.md | 2 +- java-translate/README.md | 2 +- java-valkey/README.md | 2 +- java-vectorsearch/README.md | 10 +- java-video-intelligence/README.md | 2 +- java-video-live-stream/README.md | 2 +- java-video-stitcher/README.md | 2 +- java-video-transcoder/README.md | 2 +- java-vision/README.md | 2 +- java-visionai/README.md | 2 +- java-vmmigration/README.md | 2 +- java-vmwareengine/README.md | 2 +- java-vpcaccess/README.md | 2 +- java-webrisk/README.md | 2 +- java-websecurityscanner/README.md | 2 +- java-workflow-executions/README.md | 2 +- java-workflows/README.md | 2 +- java-workloadmanager/README.md | 2 +- java-workspaceevents/README.md | 2 +- java-workstations/README.md | 2 +- 380 files changed, 22805 insertions(+), 3283 deletions(-) create mode 100644 java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequest.java create mode 100644 java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequestOrBuilder.java create mode 100644 java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettings.java create mode 100644 java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java create mode 100644 java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsOrBuilder.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/AsyncGetUserProvidedDataSettings.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettings.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsString.java create mode 100644 java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsUserprovideddatasettingsname.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequest.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequestOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponse.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponseOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptions.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptionsOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfig.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfigOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCall.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCallOrBuilder.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MocksProto.java create mode 100644 java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mocks.proto create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluations.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluationsLRO.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluations.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsAppname.java create mode 100644 java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsString.java diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 9f1174f95b72..9cbef9e2cdee 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -4,7 +4,7 @@ com.google.cloud gapic-libraries-bom pom - 1.85.1 + 1.85.0 Google Cloud Java BOM BOM for the libraries in google-cloud-java repository. Users should not diff --git a/java-accessapproval/README.md b/java-accessapproval/README.md index b50bc49ad421..2182d18d0244 100644 --- a/java-accessapproval/README.md +++ b/java-accessapproval/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-accesscontextmanager/README.md b/java-accesscontextmanager/README.md index 394b723b8f15..e202b22405cd 100644 --- a/java-accesscontextmanager/README.md +++ b/java-accesscontextmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-advisorynotifications/README.md b/java-advisorynotifications/README.md index d569a787057c..e026aeb16d56 100644 --- a/java-advisorynotifications/README.md +++ b/java-advisorynotifications/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-aiplatform/README.md b/java-aiplatform/README.md index 7d6aa620b3cb..89312b6a3aff 100644 --- a/java-aiplatform/README.md +++ b/java-aiplatform/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-alloydb-connectors/README.md b/java-alloydb-connectors/README.md index ed18e21fda8f..0642d02233d0 100644 --- a/java-alloydb-connectors/README.md +++ b/java-alloydb-connectors/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-alloydb/README.md b/java-alloydb/README.md index 811122f0c9c9..3421412e3c2e 100644 --- a/java-alloydb/README.md +++ b/java-alloydb/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-analytics-admin/README.md b/java-analytics-admin/README.md index 0310b82f140a..673334a1e2a1 100644 --- a/java-analytics-admin/README.md +++ b/java-analytics-admin/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java index 6018a29020fb..236b0f6ac9e3 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClient.java @@ -2908,7 +2908,7 @@ * * *

GetReportingIdentitySettings - *

Returns the singleton data retention settings for this property. + *

Returns the reporting identity settings for this property. * *

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

*
    @@ -2925,6 +2925,25 @@ *
* * + * + *

GetUserProvidedDataSettings + *

Looks up settings related to user-provided data for a property. + * + *

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

+ *
    + *
  • getUserProvidedDataSettings(GetUserProvidedDataSettingsRequest request) + *

+ *

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

+ *
    + *
  • getUserProvidedDataSettings(UserProvidedDataSettingsName name) + *

  • getUserProvidedDataSettings(String name) + *

+ *

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

+ *
    + *
  • getUserProvidedDataSettingsCallable() + *

+ * + * * * *

See the individual methods for example code. @@ -22198,7 +22217,7 @@ public final SubpropertySyncConfig getSubpropertySyncConfig( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Returns the reporting identity settings for this property. * *

Sample code: * @@ -22232,7 +22251,7 @@ public final ReportingIdentitySettings getReportingIdentitySettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Returns the reporting identity settings for this property. * *

Sample code: * @@ -22263,7 +22282,7 @@ public final ReportingIdentitySettings getReportingIdentitySettings(String name) // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Returns the reporting identity settings for this property. * *

Sample code: * @@ -22294,7 +22313,7 @@ public final ReportingIdentitySettings getReportingIdentitySettings( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Returns the singleton data retention settings for this property. + * Returns the reporting identity settings for this property. * *

Sample code: * @@ -22322,6 +22341,130 @@ public final ReportingIdentitySettings getReportingIdentitySettings( return stub.getReportingIdentitySettingsCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks up settings related to user-provided data for a property. + * + *

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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]");
+   *   UserProvidedDataSettings response =
+   *       analyticsAdminServiceClient.getUserProvidedDataSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the user provided data settings to retrieve. Format: + * properties/{property}/userProvidedDataSettings + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserProvidedDataSettings getUserProvidedDataSettings( + UserProvidedDataSettingsName name) { + GetUserProvidedDataSettingsRequest request = + GetUserProvidedDataSettingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getUserProvidedDataSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks up settings related to user-provided data for a property. + * + *

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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   String name = UserProvidedDataSettingsName.of("[PROPERTY]").toString();
+   *   UserProvidedDataSettings response =
+   *       analyticsAdminServiceClient.getUserProvidedDataSettings(name);
+   * }
+   * }
+ * + * @param name Required. The name of the user provided data settings to retrieve. Format: + * properties/{property}/userProvidedDataSettings + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserProvidedDataSettings getUserProvidedDataSettings(String name) { + GetUserProvidedDataSettingsRequest request = + GetUserProvidedDataSettingsRequest.newBuilder().setName(name).build(); + return getUserProvidedDataSettings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks up settings related to user-provided data for a property. + * + *

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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetUserProvidedDataSettingsRequest request =
+   *       GetUserProvidedDataSettingsRequest.newBuilder()
+   *           .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   UserProvidedDataSettings response =
+   *       analyticsAdminServiceClient.getUserProvidedDataSettings(request);
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final UserProvidedDataSettings getUserProvidedDataSettings( + GetUserProvidedDataSettingsRequest request) { + return getUserProvidedDataSettingsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Looks up settings related to user-provided data for a property. + * + *

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 (AnalyticsAdminServiceClient analyticsAdminServiceClient =
+   *     AnalyticsAdminServiceClient.create()) {
+   *   GetUserProvidedDataSettingsRequest request =
+   *       GetUserProvidedDataSettingsRequest.newBuilder()
+   *           .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       analyticsAdminServiceClient.getUserProvidedDataSettingsCallable().futureCall(request);
+   *   // Do something.
+   *   UserProvidedDataSettings response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable + getUserProvidedDataSettingsCallable() { + return stub.getUserProvidedDataSettingsCallable(); + } + @Override public final void close() { stub.close(); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java index b6f3b921afb9..f846a3b7501c 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceSettings.java @@ -1168,6 +1168,13 @@ public UnaryCallSettings deleteCalculatedM .getReportingIdentitySettingsSettings(); } + /** Returns the object with the settings used for calls to getUserProvidedDataSettings. */ + public UnaryCallSettings + getUserProvidedDataSettingsSettings() { + return ((AnalyticsAdminServiceStubSettings) getStubSettings()) + .getUserProvidedDataSettingsSettings(); + } + public static final AnalyticsAdminServiceSettings create(AnalyticsAdminServiceStubSettings stub) throws IOException { return new AnalyticsAdminServiceSettings.Builder(stub.toBuilder()).build(); @@ -2332,6 +2339,12 @@ public UnaryCallSettings.Builder deleteAdSenseL return getStubSettingsBuilder().getReportingIdentitySettingsSettings(); } + /** Returns the builder for the settings used for calls to getUserProvidedDataSettings. */ + public UnaryCallSettings.Builder + getUserProvidedDataSettingsSettings() { + return getStubSettingsBuilder().getUserProvidedDataSettingsSettings(); + } + @Override public AnalyticsAdminServiceSettings build() throws IOException { return new AnalyticsAdminServiceSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json index 7cabf87a2c58..3ca72cd0beb4 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/gapic_metadata.json @@ -286,6 +286,9 @@ "GetSubpropertySyncConfig": { "methods": ["getSubpropertySyncConfig", "getSubpropertySyncConfig", "getSubpropertySyncConfig", "getSubpropertySyncConfigCallable"] }, + "GetUserProvidedDataSettings": { + "methods": ["getUserProvidedDataSettings", "getUserProvidedDataSettings", "getUserProvidedDataSettings", "getUserProvidedDataSettingsCallable"] + }, "ListAccessBindings": { "methods": ["listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindings", "listAccessBindingsPagedCallable", "listAccessBindingsCallable"] }, diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java index fc36eb98c24f..95c4a8f885cf 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStub.java @@ -166,6 +166,7 @@ import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -274,6 +275,7 @@ import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.rpc.UnaryCallable; @@ -1219,6 +1221,12 @@ public UnaryCallable deleteCalculatedMetri "Not implemented: getReportingIdentitySettingsCallable()"); } + public UnaryCallable + getUserProvidedDataSettingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: getUserProvidedDataSettingsCallable()"); + } + @Override public abstract void close(); } diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java index 3e6f8513237c..542b462b37ac 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/AnalyticsAdminServiceStubSettings.java @@ -168,6 +168,7 @@ import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -276,6 +277,7 @@ import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; import com.google.api.core.ApiFunction; import com.google.api.core.ApiFuture; import com.google.api.core.BetaApi; @@ -729,6 +731,8 @@ public class AnalyticsAdminServiceStubSettings getSubpropertySyncConfigSettings; private final UnaryCallSettings getReportingIdentitySettingsSettings; + private final UnaryCallSettings + getUserProvidedDataSettingsSettings; private static final PagedListDescriptor LIST_ACCOUNTS_PAGE_STR_DESC = @@ -3600,6 +3604,12 @@ public UnaryCallSettings deleteCalculatedM return getReportingIdentitySettingsSettings; } + /** Returns the object with the settings used for calls to getUserProvidedDataSettings. */ + public UnaryCallSettings + getUserProvidedDataSettingsSettings() { + return getUserProvidedDataSettingsSettings; + } + public AnalyticsAdminServiceStub createStub() throws IOException { if (getTransportChannelProvider() .getTransportName() @@ -3908,6 +3918,8 @@ protected AnalyticsAdminServiceStubSettings(Builder settingsBuilder) throws IOEx getSubpropertySyncConfigSettings = settingsBuilder.getSubpropertySyncConfigSettings().build(); getReportingIdentitySettingsSettings = settingsBuilder.getReportingIdentitySettingsSettings().build(); + getUserProvidedDataSettingsSettings = + settingsBuilder.getUserProvidedDataSettingsSettings().build(); } @Override @@ -4315,6 +4327,9 @@ public static class Builder private final UnaryCallSettings.Builder< GetReportingIdentitySettingsRequest, ReportingIdentitySettings> getReportingIdentitySettingsSettings; + private final UnaryCallSettings.Builder< + GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> + getUserProvidedDataSettingsSettings; private static final ImmutableMap> RETRYABLE_CODE_DEFINITIONS; @@ -4546,6 +4561,7 @@ protected Builder(ClientContext clientContext) { updateSubpropertySyncConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getSubpropertySyncConfigSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); getReportingIdentitySettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getUserProvidedDataSettingsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -4702,7 +4718,8 @@ protected Builder(ClientContext clientContext) { listSubpropertySyncConfigsSettings, updateSubpropertySyncConfigSettings, getSubpropertySyncConfigSettings, - getReportingIdentitySettingsSettings); + getReportingIdentitySettingsSettings, + getUserProvidedDataSettingsSettings); initDefaults(this); } @@ -4904,6 +4921,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { getSubpropertySyncConfigSettings = settings.getSubpropertySyncConfigSettings.toBuilder(); getReportingIdentitySettingsSettings = settings.getReportingIdentitySettingsSettings.toBuilder(); + getUserProvidedDataSettingsSettings = + settings.getUserProvidedDataSettingsSettings.toBuilder(); unaryMethodSettingsBuilders = ImmutableList.>of( @@ -5060,7 +5079,8 @@ protected Builder(AnalyticsAdminServiceStubSettings settings) { listSubpropertySyncConfigsSettings, updateSubpropertySyncConfigSettings, getSubpropertySyncConfigSettings, - getReportingIdentitySettingsSettings); + getReportingIdentitySettingsSettings, + getUserProvidedDataSettingsSettings); } private static Builder createDefault() { @@ -5858,6 +5878,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .getUserProvidedDataSettingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + return builder; } @@ -6927,6 +6952,12 @@ public UnaryCallSettings.Builder deleteAdSenseL return getReportingIdentitySettingsSettings; } + /** Returns the builder for the settings used for calls to getUserProvidedDataSettings. */ + public UnaryCallSettings.Builder + getUserProvidedDataSettingsSettings() { + return getUserProvidedDataSettingsSettings; + } + @Override public AnalyticsAdminServiceStubSettings build() throws IOException { return new AnalyticsAdminServiceStubSettings(this); diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java index 167144e25761..27f5287590e1 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/GrpcAnalyticsAdminServiceStub.java @@ -166,6 +166,7 @@ import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -274,6 +275,7 @@ import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; import com.google.api.gax.core.BackgroundResourceAggregation; @@ -2323,6 +2325,21 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> + getUserProvidedDataSettingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserProvidedDataSettings") + .setRequestMarshaller( + ProtoUtils.marshaller(GetUserProvidedDataSettingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(UserProvidedDataSettings.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -2669,6 +2686,8 @@ public class GrpcAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub { getSubpropertySyncConfigCallable; private final UnaryCallable getReportingIdentitySettingsCallable; + private final UnaryCallable + getUserProvidedDataSettingsCallable; private final BackgroundResource backgroundResources; private final GrpcOperationsStub operationsStub; @@ -4554,6 +4573,19 @@ protected GrpcAnalyticsAdminServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + getUserProvidedDataSettingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(getUserProvidedDataSettingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -5392,6 +5424,11 @@ protected GrpcAnalyticsAdminServiceStub( getReportingIdentitySettingsTransportSettings, settings.getReportingIdentitySettingsSettings(), clientContext); + this.getUserProvidedDataSettingsCallable = + callableFactory.createUnaryCallable( + getUserProvidedDataSettingsTransportSettings, + settings.getUserProvidedDataSettingsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -6453,6 +6490,12 @@ public UnaryCallable deleteCalculatedMetri return getReportingIdentitySettingsCallable; } + @Override + public UnaryCallable + getUserProvidedDataSettingsCallable() { + return getUserProvidedDataSettingsCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java index b0f5de254329..8b0a3a55b3e7 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java +++ b/java-analytics-admin/google-analytics-admin/src/main/java/com/google/analytics/admin/v1alpha/stub/HttpJsonAnalyticsAdminServiceStub.java @@ -166,6 +166,7 @@ import com.google.analytics.admin.v1alpha.GetSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.GetSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.GetSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; import com.google.analytics.admin.v1alpha.GlobalSiteTag; import com.google.analytics.admin.v1alpha.GoogleAdsLink; import com.google.analytics.admin.v1alpha.GoogleSignalsSettings; @@ -274,6 +275,7 @@ import com.google.analytics.admin.v1alpha.UpdateSearchAds360LinkRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertyEventFilterRequest; import com.google.analytics.admin.v1alpha.UpdateSubpropertySyncConfigRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; import com.google.api.core.BetaApi; import com.google.api.core.InternalApi; import com.google.api.gax.core.BackgroundResource; @@ -6273,6 +6275,43 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub .build()) .build(); + private static final ApiMethodDescriptor< + GetUserProvidedDataSettingsRequest, UserProvidedDataSettings> + getUserProvidedDataSettingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName( + "google.analytics.admin.v1alpha.AnalyticsAdminService/GetUserProvidedDataSettings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1alpha/{name=properties/*/userProvidedDataSettings}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(UserProvidedDataSettings.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private final UnaryCallable getAccountCallable; private final UnaryCallable listAccountsCallable; private final UnaryCallable @@ -6619,6 +6658,8 @@ public class HttpJsonAnalyticsAdminServiceStub extends AnalyticsAdminServiceStub getSubpropertySyncConfigCallable; private final UnaryCallable getReportingIdentitySettingsCallable; + private final UnaryCallable + getUserProvidedDataSettingsCallable; private final BackgroundResource backgroundResources; private final HttpJsonStubCallableFactory callableFactory; @@ -8698,6 +8739,20 @@ protected HttpJsonAnalyticsAdminServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + HttpJsonCallSettings + getUserProvidedDataSettingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(getUserProvidedDataSettingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); this.getAccountCallable = callableFactory.createUnaryCallable( @@ -9536,6 +9591,11 @@ protected HttpJsonAnalyticsAdminServiceStub( getReportingIdentitySettingsTransportSettings, settings.getReportingIdentitySettingsSettings(), clientContext); + this.getUserProvidedDataSettingsCallable = + callableFactory.createUnaryCallable( + getUserProvidedDataSettingsTransportSettings, + settings.getUserProvidedDataSettingsSettings(), + clientContext); this.backgroundResources = new BackgroundResourceAggregation(clientContext.getBackgroundResources()); @@ -9698,6 +9758,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateSubpropertySyncConfigMethodDescriptor); methodDescriptors.add(getSubpropertySyncConfigMethodDescriptor); methodDescriptors.add(getReportingIdentitySettingsMethodDescriptor); + methodDescriptors.add(getUserProvidedDataSettingsMethodDescriptor); return methodDescriptors; } @@ -10753,6 +10814,12 @@ public UnaryCallable deleteCalculatedMetri return getReportingIdentitySettingsCallable; } + @Override + public UnaryCallable + getUserProvidedDataSettingsCallable() { + return getUserProvidedDataSettingsCallable; + } + @Override public final void close() { try { diff --git a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json index 849dd00286a2..d26e54152eb1 100644 --- a/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json +++ b/java-analytics-admin/google-analytics-admin/src/main/resources/META-INF/native-image/com.google.analytics.admin.v1alpha/reflect-config.json @@ -3383,6 +3383,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.analytics.admin.v1alpha.GlobalSiteTag", "queryAllDeclaredConstructors": true, @@ -5705,6 +5723,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.analytics.admin.v1alpha.UserProvidedDataSettings", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.analytics.admin.v1alpha.UserProvidedDataSettings$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.api.BatchingConfigProto", "queryAllDeclaredConstructors": true, diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java index 2030289f6780..e9ef7a96429b 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientHttpJsonTest.java @@ -13605,4 +13605,96 @@ public void getReportingIdentitySettingsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getUserProvidedDataSettingsTest() throws Exception { + UserProvidedDataSettings expectedResponse = + UserProvidedDataSettings.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .setUserProvidedDataCollectionEnabled(true) + .setAutomaticallyDetectedDataCollectionEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + + UserProvidedDataSettings actualResponse = client.getUserProvidedDataSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUserProvidedDataSettingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + client.getUserProvidedDataSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUserProvidedDataSettingsTest2() throws Exception { + UserProvidedDataSettings expectedResponse = + UserProvidedDataSettings.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .setUserProvidedDataCollectionEnabled(true) + .setAutomaticallyDetectedDataCollectionEnabled(true) + .build(); + mockService.addResponse(expectedResponse); + + String name = "properties/propertie-4671/userProvidedDataSettings"; + + UserProvidedDataSettings actualResponse = client.getUserProvidedDataSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getUserProvidedDataSettingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = "properties/propertie-4671/userProvidedDataSettings"; + client.getUserProvidedDataSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java index 006c08076f0c..604514faf54f 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceClientTest.java @@ -11809,4 +11809,86 @@ public void getReportingIdentitySettingsExceptionTest2() throws Exception { // Expected exception. } } + + @Test + public void getUserProvidedDataSettingsTest() throws Exception { + UserProvidedDataSettings expectedResponse = + UserProvidedDataSettings.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .setUserProvidedDataCollectionEnabled(true) + .setAutomaticallyDetectedDataCollectionEnabled(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + + UserProvidedDataSettings actualResponse = client.getUserProvidedDataSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUserProvidedDataSettingsRequest actualRequest = + ((GetUserProvidedDataSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUserProvidedDataSettingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + client.getUserProvidedDataSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getUserProvidedDataSettingsTest2() throws Exception { + UserProvidedDataSettings expectedResponse = + UserProvidedDataSettings.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .setUserProvidedDataCollectionEnabled(true) + .setAutomaticallyDetectedDataCollectionEnabled(true) + .build(); + mockAnalyticsAdminService.addResponse(expectedResponse); + + String name = "name3373707"; + + UserProvidedDataSettings actualResponse = client.getUserProvidedDataSettings(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAnalyticsAdminService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetUserProvidedDataSettingsRequest actualRequest = + ((GetUserProvidedDataSettingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getUserProvidedDataSettingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAnalyticsAdminService.addException(exception); + + try { + String name = "name3373707"; + client.getUserProvidedDataSettings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } } diff --git a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java index e6f3f5da1a09..bd67d75d7365 100644 --- a/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java +++ b/java-analytics-admin/google-analytics-admin/src/test/java/com/google/analytics/admin/v1alpha/MockAnalyticsAdminServiceImpl.java @@ -3438,4 +3438,27 @@ public void getReportingIdentitySettings( Exception.class.getName()))); } } + + @Override + public void getUserProvidedDataSettings( + GetUserProvidedDataSettingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof UserProvidedDataSettings) { + requests.add(request); + responseObserver.onNext(((UserProvidedDataSettings) 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 GetUserProvidedDataSettings, expected" + + " %s or %s", + response == null ? "null" : response.getClass().getName(), + UserProvidedDataSettings.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java index 4f5b3032f1ec..f25c25559766 100644 --- a/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java +++ b/java-analytics-admin/grpc-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminServiceGrpc.java @@ -7840,6 +7840,59 @@ private AnalyticsAdminServiceGrpc() {} return getGetReportingIdentitySettingsMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings> + getGetUserProvidedDataSettingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetUserProvidedDataSettings", + requestType = com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.class, + responseType = com.google.analytics.admin.v1alpha.UserProvidedDataSettings.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings> + getGetUserProvidedDataSettingsMethod() { + io.grpc.MethodDescriptor< + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings> + getGetUserProvidedDataSettingsMethod; + if ((getGetUserProvidedDataSettingsMethod = + AnalyticsAdminServiceGrpc.getGetUserProvidedDataSettingsMethod) + == null) { + synchronized (AnalyticsAdminServiceGrpc.class) { + if ((getGetUserProvidedDataSettingsMethod = + AnalyticsAdminServiceGrpc.getGetUserProvidedDataSettingsMethod) + == null) { + AnalyticsAdminServiceGrpc.getGetUserProvidedDataSettingsMethod = + getGetUserProvidedDataSettingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GetUserProvidedDataSettings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings + .getDefaultInstance())) + .setSchemaDescriptor( + new AnalyticsAdminServiceMethodDescriptorSupplier( + "GetUserProvidedDataSettings")) + .build(); + } + } + } + return getGetUserProvidedDataSettingsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static AnalyticsAdminServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -10288,7 +10341,7 @@ default void getSubpropertySyncConfig( * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ default void getReportingIdentitySettings( @@ -10298,6 +10351,21 @@ default void getReportingIdentitySettings( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getGetReportingIdentitySettingsMethod(), responseObserver); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + default void getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetUserProvidedDataSettingsMethod(), responseObserver); + } } /** @@ -13031,7 +13099,7 @@ public void getSubpropertySyncConfig( * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ public void getReportingIdentitySettings( @@ -13043,6 +13111,23 @@ public void getReportingIdentitySettings( request, responseObserver); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + public void getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetUserProvidedDataSettingsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -15370,7 +15455,7 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ public com.google.analytics.admin.v1alpha.ReportingIdentitySettings @@ -15380,6 +15465,20 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getGetReportingIdentitySettingsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetUserProvidedDataSettingsMethod(), getCallOptions(), request); + } } /** @@ -17555,7 +17654,7 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ public com.google.analytics.admin.v1alpha.ReportingIdentitySettings @@ -17564,6 +17663,19 @@ public com.google.analytics.admin.v1alpha.SubpropertySyncConfig getSubpropertySy return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetReportingIdentitySettingsMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetUserProvidedDataSettingsMethod(), getCallOptions(), request); + } } /** @@ -19928,7 +20040,7 @@ protected AnalyticsAdminServiceFutureStub build( * * *
-     * Returns the singleton data retention settings for this property.
+     * Returns the reporting identity settings for this property.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -19938,6 +20050,21 @@ protected AnalyticsAdminServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetReportingIdentitySettingsMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Looks up settings related to user-provided data for a property.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings> + getUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetUserProvidedDataSettingsMethod(), getCallOptions()), request); + } } private static final int METHODID_GET_ACCOUNT = 0; @@ -20094,6 +20221,7 @@ protected AnalyticsAdminServiceFutureStub build( private static final int METHODID_UPDATE_SUBPROPERTY_SYNC_CONFIG = 151; private static final int METHODID_GET_SUBPROPERTY_SYNC_CONFIG = 152; private static final int METHODID_GET_REPORTING_IDENTITY_SETTINGS = 153; + private static final int METHODID_GET_USER_PROVIDED_DATA_SETTINGS = 154; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -21101,6 +21229,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv com.google.analytics.admin.v1alpha.ReportingIdentitySettings>) responseObserver); break; + case METHODID_GET_USER_PROVIDED_DATA_SETTINGS: + serviceImpl.getUserProvidedDataSettings( + (com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings>) + responseObserver); + break; default: throw new AssertionError(); } @@ -22182,6 +22317,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.analytics.admin.v1alpha.GetReportingIdentitySettingsRequest, com.google.analytics.admin.v1alpha.ReportingIdentitySettings>( service, METHODID_GET_REPORTING_IDENTITY_SETTINGS))) + .addMethod( + getGetUserProvidedDataSettingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings>( + service, METHODID_GET_USER_PROVIDED_DATA_SETTINGS))) .build(); } @@ -22387,6 +22529,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateSubpropertySyncConfigMethod()) .addMethod(getGetSubpropertySyncConfigMethod()) .addMethod(getGetReportingIdentitySettingsMethod()) + .addMethod(getGetUserProvidedDataSettingsMethod()) .build(); } } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java index 50731bc5d4f8..7e643f3c9fb8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Account.java @@ -83,12 +83,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,12 +109,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -909,12 +909,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -934,12 +934,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -959,12 +959,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -983,12 +983,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1003,12 +1003,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this account.
+     * Identifier. Resource name of this account.
      * Format: accounts/{account}
      * Example: "accounts/100"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java index e577cf66978b..b065ed27f285 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountOrBuilder.java @@ -30,12 +30,12 @@ public interface AccountOrBuilder * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface AccountOrBuilder * * *
-   * Output only. Resource name of this account.
+   * Identifier. Resource name of this account.
    * Format: accounts/{account}
    * Example: "accounts/100"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java index 54407be0ee7c..a8d898d4167c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummary.java @@ -83,12 +83,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,12 +109,12 @@ public java.lang.String getName() { * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -758,12 +758,12 @@ public Builder mergeFrom( * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -783,12 +783,12 @@ public java.lang.String getName() { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -808,12 +808,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -832,12 +832,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -852,12 +852,12 @@ public Builder clearName() { * * *
-     * Resource name for this account summary.
+     * Identifier. Resource name for this account summary.
      * Format: accountSummaries/{account_id}
      * Example: "accountSummaries/1000"
      * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java index e1fc562bdb97..98a934df3537 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AccountSummaryOrBuilder.java @@ -30,12 +30,12 @@ public interface AccountSummaryOrBuilder * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface AccountSummaryOrBuilder * * *
-   * Resource name for this account summary.
+   * Identifier. Resource name for this account summary.
    * Format: accountSummaries/{account_id}
    * Example: "accountSummaries/1000"
    * 
* - * string name = 1; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java index 176fb71e9486..5dd30719a5e1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/AnalyticsAdminProto.java @@ -812,6 +812,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_GetReportingIdentitySettingsRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_GetReportingIdentitySettingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -862,10 +866,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005quota\030\005 \001(\0132+.google.analytics.admin.v1alpha.AccessQuota\"P\n" + "\021GetAccountRequest\022;\n" + "\004name\030\001 \001(\tB-\340A\002\372A\'\n" - + "%analyticsadmin.googleapis.com/Account\"R\n" - + "\023ListAccountsRequest\022\021\n" - + "\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\022\024\n" + + "%analyticsadmin.googleapis.com/Account\"\\\n" + + "\023ListAccountsRequest\022\026\n" + + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\022\024\n" + "\014show_deleted\030\003 \001(\010\"j\n" + "\024ListAccountsResponse\0229\n" + "\010accounts\030\001 \003(\0132\'.google.analytics.admin.v1alpha.Account\022\027\n" @@ -884,41 +888,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021account_ticket_id\030\001 \001(\t\"R\n" + "\022GetPropertyRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/Property\"i\n" + + "&analyticsadmin.googleapis.com/Property\"s\n" + "\025ListPropertiesRequest\022\023\n" - + "\006filter\030\001 \001(\tB\003\340A\002\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\022\024\n" + + "\006filter\030\001 \001(\tB\003\340A\002\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\024\n" + "\014show_deleted\030\004 \001(\010\"o\n" + "\026ListPropertiesResponse\022<\n\n" + "properties\030\001 \003(\0132(.google.analytics.admin.v1alpha.Property\022\027\n" + "\017next_page_token\030\002 \001(\t\"\216\001\n" + "\025UpdatePropertyRequest\022?\n" - + "\010property\030\001 \001(\0132(.google" - + ".analytics.admin.v1alpha.PropertyB\003\340A\002\0224\n" + + "\010property\030\001" + + " \001(\0132(.google.analytics.admin.v1alpha.PropertyB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"X\n" + "\025CreatePropertyRequest\022?\n" - + "\010property\030\001" - + " \001(\0132(.google.analytics.admin.v1alpha.PropertyB\003\340A\002\"U\n" + + "\010property\030\001 \001(\0132(.go" + + "ogle.analytics.admin.v1alpha.PropertyB\003\340A\002\"U\n" + "\025DeletePropertyRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" + "&analyticsadmin.googleapis.com/Property\"\251\001\n" + "\031CreateFirebaseLinkRequest\022B\n" - + "\006parent\030\001 \001(\tB2\340A\002" - + "\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022H\n\r" - + "firebase_link\030\002 \001(\0132,.google." - + "analytics.admin.v1alpha.FirebaseLinkB\003\340A\002\"]\n" + + "\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022H\n\r" + + "firebase_link\030\002" + + " \001(\0132,.google.analytics.admin.v1alpha.FirebaseLinkB\003\340A\002\"]\n" + "\031DeleteFirebaseLinkRequest\022@\n" + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/FirebaseLink\"\205\001\n" + + "*analyticsadmin.googleapis.com/FirebaseLink\"\217\001\n" + "\030ListFirebaseLinksRequest\022B\n" + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"z\n" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/FirebaseLink\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\"z\n" + "\031ListFirebaseLinksResponse\022D\n" - + "\016firebase_links\030\001" - + " \003(\0132,.google.analytics.admin.v1alpha.FirebaseLink\022\027\n" + + "\016firebase_links\030\001 \003(\0132,.go" + + "ogle.analytics.admin.v1alpha.FirebaseLink\022\027\n" + "\017next_page_token\030\002 \001(\t\"\\\n" + "\027GetGlobalSiteTagRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" @@ -929,30 +934,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017google_ads_link\030\002" + " \001(\0132-.google.analytics.admin.v1alpha.GoogleAdsLinkB\003\340A\002\"\232\001\n" + "\032UpdateGoogleAdsLinkRequest\022F\n" - + "\017google_ads_link\030\001 " - + "\001(\0132-.google.analytics.admin.v1alpha.GoogleAdsLink\0224\n" + + "\017google_ads_link\030\001 \001(\0132-.goog" + + "le.analytics.admin.v1alpha.GoogleAdsLink\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"_\n" + "\032DeleteGoogleAdsLinkRequest\022A\n" + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/GoogleAdsLink\"\207\001\n" + + "+analyticsadmin.googleapis.com/GoogleAdsLink\"\221\001\n" + "\031ListGoogleAdsLinksRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/GoogleAdsLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"~\n" + + "\006parent\030\001 \001(\tB3\340" + + "A\002\372A-\022+analyticsadmin.googleapis.com/GoogleAdsLink\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\"~\n" + "\032ListGoogleAdsLinksResponse\022G\n" + "\020google_ads_links\030\001 \003(\0132-.go" + "ogle.analytics.admin.v1alpha.GoogleAdsLink\022\027\n" + "\017next_page_token\030\002 \001(\t\"h\n" + "\035GetDataSharingSettingsRequest\022G\n" + "\004name\030\001 \001(\tB9\340A\002\372A3\n" - + "1analyticsadmin.googleapis.com/DataSharingSettings\"D\n" - + "\033ListAccountSummariesRequest\022\021\n" - + "\tpage_size\030\001 \001(\005\022\022\n\n" - + "page_token\030\002 \001(\t\"\202\001\n" + + "1analyticsadmin.googleapis.com/DataSharingSettings\"N\n" + + "\033ListAccountSummariesRequest\022\026\n" + + "\tpage_size\030\001 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\002 \001(\tB\003\340A\001\"\202\001\n" + "\034ListAccountSummariesResponse\022I\n" - + "\021account_summaries\030\001" - + " \003(\0132..google.analytics.admin.v1alpha.AccountSummary\022\027\n" + + "\021account_summaries\030\001 \003(\0132..goog" + + "le.analytics.admin.v1alpha.AccountSummary\022\027\n" + "\017next_page_token\030\002 \001(\t\"\206\001\n" + "$AcknowledgeUserDataCollectionRequest\022@\n" + "\010property\030\001 \001(\tB.\340A\002\372A(\n" @@ -964,10 +969,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "%analyticsadmin.googleapis.com/Account\022@\n" + "\010property\030\002 \001(\tB.\340A\001\372A(\n" + "&analyticsadmin.googleapis.com/Property\022U\n\r" - + "resource_type\030\003 \003(\01629.google.analyt" - + "ics.admin.v1alpha.ChangeHistoryResourceTypeB\003\340A\001\022?\n" - + "\006action\030\004" - + " \003(\0162*.google.analytics.admin.v1alpha.ActionTypeB\003\340A\001\022\030\n" + + "resource_type\030\003 \003(\01629.goo" + + "gle.analytics.admin.v1alpha.ChangeHistoryResourceTypeB\003\340A\001\022?\n" + + "\006action\030\004 \003(\0162*.goo" + + "gle.analytics.admin.v1alpha.ActionTypeB\003\340A\001\022\030\n" + "\013actor_email\030\005 \003(\tB\003\340A\001\022=\n" + "\024earliest_change_time\030\006" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022;\n" @@ -976,58 +981,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\010 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\t \001(\tB\003\340A\001\"\217\001\n" + "!SearchChangeHistoryEventsResponse\022Q\n" - + "\025change_history_events\030\001" - + " \003(\01322.google.analytics.admin.v1alpha.ChangeHistoryEvent\022\027\n" + + "\025change_history_events\030\001 \003(\01322.google" + + ".analytics.admin.v1alpha.ChangeHistoryEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"t\n" + "#GetMeasurementProtocolSecretRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\336\001\n" + "&CreateMeasurementProtocolSecretRequest\022O\n" - + "\006parent\030\001 \001(\tB?\340A\002" - + "\372A9\0227analyticsadmin.googleapis.com/MeasurementProtocolSecret\022c\n" - + "\033measurement_protocol_secret\030\002 \001(\01329.google.analytics.adm" - + "in.v1alpha.MeasurementProtocolSecretB\003\340A\002\"w\n" + + "\006parent\030\001 \001(" + + "\tB?\340A\002\372A9\0227analyticsadmin.googleapis.com/MeasurementProtocolSecret\022c\n" + + "\033measurement_protocol_secret\030\002 \001(\01329.google.ana" + + "lytics.admin.v1alpha.MeasurementProtocolSecretB\003\340A\002\"w\n" + "&DeleteMeasurementProtocolSecretRequest\022M\n" + "\004name\030\001 \001(\tB?\340A\002\372A9\n" + "7analyticsadmin.googleapis.com/MeasurementProtocolSecret\"\303\001\n" + "&UpdateMeasurementProtocolSecretRequest\022c\n" - + "\033measurement_protocol_secret\030\001 \001" - + "(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\003\340A\002\0224\n" + + "\033measurement_protocol_secret\030\001" + + " \001(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecretB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\237\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\251\001\n" + "%ListMeasurementProtocolSecretsRequest\022O\n" - + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227analyticsadm" - + "in.googleapis.com/MeasurementProtocolSecret\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\242\001\n" + + "\006parent\030\001 \001(\tB?\340A\002\372A9\0227an" + + "alyticsadmin.googleapis.com/MeasurementProtocolSecret\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\"\242\001\n" + "&ListMeasurementProtocolSecretsResponse\022_\n" - + "\034measurement_protocol_secrets\030\001 " - + "\003(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecret\022\027\n" + + "\034measurement_protocol_secrets\030\001 \003(\01329.google.analyti" + + "cs.admin.v1alpha.MeasurementProtocolSecret\022\027\n" + "\017next_page_token\030\002 \001(\t\"\202\001\n" + "*GetSKAdNetworkConversionValueSchemaRequest\022T\n" + "\004name\030\001 \001(\tBF\340A\002\372A@\n" + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\373\001\n" + "-CreateSKAdNetworkConversionValueSchemaRequest\022V\n" - + "\006parent\030\001 \001(\tBF\340A\002\372A@\022>analyticsadmin.googleapi" - + "s.com/SKAdNetworkConversionValueSchema\022r\n" - + "#skadnetwork_conversion_value_schema\030\002 " - + "\001(\0132@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\003\340A\002\"\205\001\n" + + "\006parent\030\001 \001(\tBF\340A\002\372A@\022>anal" + + "yticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\022r\n" + + "#skadnetwork_conversion_value_schema\030\002 \001(\0132@.google.analyti" + + "cs.admin.v1alpha.SKAdNetworkConversionValueSchemaB\003\340A\002\"\205\001\n" + "-DeleteSKAdNetworkConversionValueSchemaRequest\022T\n" + "\004name\030\001 \001(\tBF\340A\002\372A@\n" + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\"\331\001\n" + "-UpdateSKAdNetworkConversionValueSchemaRequest\022r\n" - + "#skadnetwork_conversion_value_schema\030\001 \001(\0132@.google.analy" - + "tics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\003\340A\002\0224\n" + + "#skadnetwork_conversion_value_schema\030\001" + + " \001(\0132@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaB\003\340A\002\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\255\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\267\001\n" + ",ListSKAdNetworkConversionValueSchemasRequest\022V\n" - + "\006parent\030\001 \001(\tBF\340A\002\372A@\022>analyticsadmin." - + "googleapis.com/SKAdNetworkConversionValueSchema\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\270\001\n" + + "\006parent\030\001 \001(\tBF\340A\002" + + "\372A@\022>analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\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\"\270\001\n" + "-ListSKAdNetworkConversionValueSchemasResponse\022n\n" - + "$skadnetwork_conversion_value_schemas\030\001 \003(\0132@.google.analytic" - + "s.admin.v1alpha.SKAdNetworkConversionValueSchema\022\027\n" + + "$skadnetwork_conversion_value_schemas\030\001 \003(\0132@.google.analytics.admin.v1" + + "alpha.SKAdNetworkConversionValueSchema\022\027\n" + "\017next_page_token\030\002 \001(\t\"l\n" + "\037GetGoogleSignalsSettingsRequest\022I\n" + "\004name\030\001 \001(\tB;\340A\002\372A5\n" @@ -1038,25 +1044,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\265\001\n" + "\034CreateConversionEventRequest\022N\n" - + "\020conversion_event\030\001 \001(\0132/.google.an" - + "alytics.admin.v1alpha.ConversionEventB\003\340A\002\022E\n" + + "\020conversion_event\030\001" + + " \001(\0132/.google.analytics.admin.v1alpha.ConversionEventB\003\340A\002\022E\n" + "\006parent\030\002 \001(" + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\"\244\001\n" + "\034UpdateConversionEventRequest\022N\n" - + "\020conversion_event\030\001" - + " \001(\0132/.google.analytics.admin.v1alpha.ConversionEventB\003\340A\002\0224\n" + + "\020conversion_event\030\001 \001" + + "(\0132/.google.analytics.admin.v1alpha.ConversionEventB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"`\n" + "\031GetConversionEventRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" + "-analyticsadmin.googleapis.com/ConversionEvent\"c\n" + "\034DeleteConversionEventRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/ConversionEvent\"\213\001\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\"\225\001\n" + "\033ListConversionEventsRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\203\001\n" + + "\006parent\030\001 \001(\tB5\340" + + "A\002\372A/\022-analyticsadmin.googleapis.com/ConversionEvent\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\"\203\001\n" + "\034ListConversionEventsResponse\022J\n" + "\021conversion_events\030\001 \003(" + "\0132/.google.analytics.admin.v1alpha.ConversionEvent\022\027\n" @@ -1075,12 +1081,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "&analyticsadmin.googleapis.com/KeyEvent\"U\n" + "\025DeleteKeyEventRequest\022<\n" + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/KeyEvent\"}\n" + + "&analyticsadmin.googleapis.com/KeyEvent\"\207\001\n" + "\024ListKeyEventsRequest\022>\n" + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/KeyEvent\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"n\n" + + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/KeyEvent\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\"n\n" + "\025ListKeyEventsResponse\022<\n\n" + "key_events\030\001 \003(\0132(.google.analytics.admin.v1alpha.KeyEvent\022\027\n" + "\017next_page_token\030\002 \001(\t\"|\n" @@ -1088,45 +1094,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tBC\340A\002\372A=\n" + ";analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\247\001\n" + ")ListDisplayVideo360AdvertiserLinksRequest\022S\n" - + "\006parent\030\001 \001(\tBC\340A\002\372A=\022;analyticsadmin." - + "googleapis.com/DisplayVideo360AdvertiserLink\022\021\n" + + "\006parent\030\001 \001(\tBC\340A\002\372A=\022;anal" + + "yticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\260\001\n" + "*ListDisplayVideo360AdvertiserLinksResponse\022i\n" - + "\"display_video_360_advertiser_links\030\001" - + " \003(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\022\027\n" + + "\"display_video_360_advertiser_links\030\001 \003(\0132=.google.analy" + + "tics.admin.v1alpha.DisplayVideo360AdvertiserLink\022\027\n" + "\017next_page_token\030\002 \001(\t\"\360\001\n" + "*CreateDisplayVideo360AdvertiserLinkRequest\022S\n" - + "\006parent\030\001 \001(" - + "\tBC\340A\002\372A=\022;analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\022m\n" - + "!display_video_360_advertiser_link\030\002 \001(\0132=." - + "google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkB\003\340A\002\"\177\n" + + "\006parent\030\001 \001(\tBC\340A\002\372A=\022;analyticsadmin" + + ".googleapis.com/DisplayVideo360AdvertiserLink\022m\n" + + "!display_video_360_advertiser_link\030\002" + + " \001(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkB\003\340A\002\"\177\n" + "*DeleteDisplayVideo360AdvertiserLinkRequest\022Q\n" + "\004name\030\001 \001(\tBC\340A\002\372A=\n" + ";analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\"\314\001\n" + "*UpdateDisplayVideo360AdvertiserLinkRequest\022h\n" - + "!display_video_360_advertiser_link\030\001" - + " \001(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\0224\n" + + "!display_video_360_advertiser_link\030\001 \001(\0132=.google.analytics.admin" + + ".v1alpha.DisplayVideo360AdvertiserLink\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\214\001\n" + "/GetDisplayVideo360AdvertiserLinkProposalRequest\022Y\n" + "\004name\030\001 \001(\tBK\340A\002\372AE\n" + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\267\001\n" + "1ListDisplayVideo360AdvertiserLinkProposalsRequest\022[\n" - + "\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.g" - + "oogleapis.com/DisplayVideo360AdvertiserLinkProposal\022\021\n" + + "\006parent\030\001 \001(\tBK\340A\002\372AE\022Canaly" + + "ticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\311\001\n" + "2ListDisplayVideo360AdvertiserLinkProposalsResponse\022z\n" - + "+display_video_360_advertiser_link_proposals\030\001 \003(\0132E" - + ".google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposal\022\027\n" + + "+display_video_360_advertiser_link_proposals\030\001" + + " \003(\0132E.google.analytics.admin.v1alp" + + "ha.DisplayVideo360AdvertiserLinkProposal\022\027\n" + "\017next_page_token\030\002 \001(\t\"\221\002\n" + "2CreateDisplayVideo360AdvertiserLinkProposalRequest\022[\n" - + "\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin.googleapis" - + ".com/DisplayVideo360AdvertiserLinkProposal\022~\n" - + "*display_video_360_advertiser_link_proposal\030\002" - + " \001(\0132E.google.analytics.admin." - + "v1alpha.DisplayVideo360AdvertiserLinkProposalB\003\340A\002\"\217\001\n" + + "\006parent\030\001 \001(\tBK\340A\002\372AE\022Canalyticsadmin" + + ".googleapis.com/DisplayVideo360AdvertiserLinkProposal\022~\n" + + "*display_video_360_advertiser_link_proposal\030\002 \001(\0132E.google.analy" + + "tics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalB\003\340A\002\"\217\001\n" + "2DeleteDisplayVideo360AdvertiserLinkProposalRequest\022Y\n" + "\004name\030\001 \001(\tBK\340A\002\372AE\n" + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\220\001\n" @@ -1134,8 +1140,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tBK\340A\002\372AE\n" + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"\240\001\n" + "4ApproveDisplayVideo360AdvertiserLinkProposalResponse\022h\n" - + "!display_video_360_advertiser_link\030\001 " - + "\001(\0132=.google.analytics.admin.v1alpha.DisplayVideo360AdvertiserLink\"\217\001\n" + + "!display_video_360_advertiser_link\030\001 \001(\0132=.google.analytics.admin." + + "v1alpha.DisplayVideo360AdvertiserLink\"\217\001\n" + "2CancelDisplayVideo360AdvertiserLinkProposalRequest\022Y\n" + "\004name\030\001 \001(\tBK\340A\002\372AE\n" + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\"b\n" @@ -1148,8 +1154,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"\210\001\n" + "\035ListSearchAds360LinksResponse\022N\n" - + "\024search_ads_360_links\030\001 \003(\013" - + "20.google.analytics.admin.v1alpha.SearchAds360Link\022\027\n" + + "\024search_ads_360_links\030\001" + + " \003(\01320.google.analytics.admin.v1alpha.SearchAds360Link\022\027\n" + "\017next_page_token\030\002 \001(\t\"\273\001\n" + "\035CreateSearchAds360LinkRequest\022F\n" + "\006parent\030\001 \001(" @@ -1160,28 +1166,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + ".analyticsadmin.googleapis.com/SearchAds360Link\"\244\001\n" + "\035UpdateSearchAds360LinkRequest\022M\n" - + "\023search_ads_360_link\030\001 \001(\01320.google" - + ".analytics.admin.v1alpha.SearchAds360Link\0224\n" + + "\023search_ads_360_link\030\001 \001" + + "(\01320.google.analytics.admin.v1alpha.SearchAds360Link\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\265\001\n" + "\034CreateCustomDimensionRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-analyt" - + "icsadmin.googleapis.com/CustomDimension\022N\n" - + "\020custom_dimension\030\002 \001(\0132/.google.analy" - + "tics.admin.v1alpha.CustomDimensionB\003\340A\002\"\237\001\n" + + "\006parent\030\001 \001(\tB5\340A\002" + + "\372A/\022-analyticsadmin.googleapis.com/CustomDimension\022N\n" + + "\020custom_dimension\030\002 \001(\0132/.g" + + "oogle.analytics.admin.v1alpha.CustomDimensionB\003\340A\002\"\237\001\n" + "\034UpdateCustomDimensionRequest\022I\n" - + "\020custom_dimension\030\001" - + " \001(\0132/.google.analytics.admin.v1alpha.CustomDimension\0224\n" + + "\020custom_dimension\030\001 \001(\0132/.google.a" + + "nalytics.admin.v1alpha.CustomDimension\0224\n" + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\213\001\n" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\225\001\n" + "\033ListCustomDimensionsRequest\022E\n" + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/CustomDimension\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\203\001\n" + + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/CustomDimension\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\"\203\001\n" + "\034ListCustomDimensionsResponse\022J\n" - + "\021custom_dimensions\030\001 " - + "\003(\0132/.google.analytics.admin.v1alpha.CustomDimension\022\027\n" + + "\021custom_dimensions\030\001" + + " \003(\0132/.google.analytics.admin.v1alpha.CustomDimension\022\027\n" + "\017next_page_token\030\002 \001(\t\"d\n" + "\035ArchiveCustomDimensionRequest\022C\n" + "\004name\030\001 \001(\tB5\340A\002\372A/\n" @@ -1192,15 +1198,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031CreateCustomMetricRequest\022B\n" + "\006parent\030\001 \001(" + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/CustomMetric\022H\n\r" - + "custom_metric\030\002 \001(\0132," - + ".google.analytics.admin.v1alpha.CustomMetricB\003\340A\002\"\226\001\n" + + "custom_metric\030\002" + + " \001(\0132,.google.analytics.admin.v1alpha.CustomMetricB\003\340A\002\"\226\001\n" + "\031UpdateCustomMetricRequest\022C\n\r" + "custom_metric\030\001 \001(\0132,.google.analytics.admin.v1alpha.CustomMetric\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\205\001\n" + "\030ListCustomMetricsRequest\022B\n" - + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/CustomMetric\022\021\n" + + "\006parent\030\001 \001(\tB2\340A\002\372A,\022*an" + + "alyticsadmin.googleapis.com/CustomMetric\022\021\n" + "\tpage_size\030\002 \001(\005\022\022\n\n" + "page_token\030\003 \001(\t\"z\n" + "\031ListCustomMetricsResponse\022D\n" @@ -1217,23 +1223,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(" + "\tB6\340A\002\372A0\022.analyticsadmin.googleapis.com/CalculatedMetric\022!\n" + "\024calculated_metric_id\030\002 \001(\tB\003\340A\002\022P\n" - + "\021calculated_metric\030\003" - + " \001(\01320.google.analytics.admin.v1alpha.CalculatedMetricB\003\340A\002\"\247\001\n" + + "\021calculated_metric\030\003 \001(\0132" + + "0.google.analytics.admin.v1alpha.CalculatedMetricB\003\340A\002\"\247\001\n" + "\035UpdateCalculatedMetricRequest\022P\n" - + "\021calculated_metric\030\001" - + " \001(\01320.google.analytics.admin.v1alpha.CalculatedMetricB\003\340A\002\0224\n" + + "\021calculated_metric\030\001 \001(\01320.go" + + "ogle.analytics.admin.v1alpha.CalculatedMetricB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"e\n" + "\035DeleteCalculatedMetricRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" + ".analyticsadmin.googleapis.com/CalculatedMetric\"\227\001\n" + "\034ListCalculatedMetricsRequest\022F\n" - + "\006parent\030\001 \001(\tB6\340A\002" - + "\372A0\022.analyticsadmin.googleapis.com/CalculatedMetric\022\026\n" + + "\006parent\030\001 \001(" + + "\tB6\340A\002\372A0\022.analyticsadmin.googleapis.com/CalculatedMetric\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\"\206\001\n" + "\035ListCalculatedMetricsResponse\022L\n" - + "\022calculated_metrics\030\001 \003" - + "(\01320.google.analytics.admin.v1alpha.CalculatedMetric\022\027\n" + + "\022calculated_metrics\030\001" + + " \003(\01320.google.analytics.admin.v1alpha.CalculatedMetric\022\027\n" + "\017next_page_token\030\002 \001(\t\"b\n" + "\032GetCalculatedMetricRequest\022D\n" + "\004name\030\001 \001(\tB6\340A\002\372A0\n" @@ -1242,13 +1248,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB;\340A\002\372A5\n" + "3analyticsadmin.googleapis.com/DataRetentionSettings\"\267\001\n" + "\"UpdateDataRetentionSettingsRequest\022[\n" - + "\027data_retention_settings\030\001 \001(\0132" - + "5.google.analytics.admin.v1alpha.DataRetentionSettingsB\003\340A\002\0224\n" + + "\027data_retention_settings\030\001 \001(\01325.google.analytics." + + "admin.v1alpha.DataRetentionSettingsB\003\340A\002\0224\n" + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\241\001\n" + "\027CreateDataStreamRequest\022@\n" - + "\006parent\030\001 \001(\tB0\340" - + "A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022D\n" + + "\006parent\030\001 \001(" + + "\tB0\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022D\n" + "\013data_stream\030\002" + " \001(\0132*.google.analytics.admin.v1alpha.DataStreamB\003\340A\002\"Y\n" + "\027DeleteDataStreamRequest\022>\n" @@ -1259,1256 +1265,1240 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\201\001\n" + "\026ListDataStreamsRequest\022@\n" - + "\006parent\030\001 \001(\tB0" - + "\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"t\n" - + "\027ListDataStreamsResponse\022@\n" - + "\014data_streams\030\001 \003(\0132*.google.analytics.admi", - "n.v1alpha.DataStream\022\027\n" - + "\017next_page_token\030\002 \001(\t\"V\n" - + "\024GetDataStreamRequest\022>\n" - + "\004name\030\001 \001(\tB0\340A\002\372A*\n" - + "(analyticsadmin.googleapis.com/DataStream\"R\n" - + "\022GetAudienceRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/Audience\"}\n" - + "\024ListAudiencesRequest\022>\n" - + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/Audience\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"m\n" - + "\025ListAudiencesResponse\022;\n" - + "\taudiences\030\001 \003(\0132(.google.analytics.admin.v1alpha.Audience\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\230\001\n" - + "\025CreateAudienceRequest\022>\n" - + "\006parent\030\001 \001(" - + "\tB.\340A\002\372A(\022&analyticsadmin.googleapis.com/Audience\022?\n" - + "\010audience\030\002 " - + "\001(\0132(.google.analytics.admin.v1alpha.AudienceB\003\340A\002\"\216\001\n" - + "\025UpdateAudienceRequest\022?\n" - + "\010audience\030\001" - + " \001(\0132(.google.analytics.admin.v1alpha.AudienceB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"V\n" - + "\026ArchiveAudienceRequest\022<\n" - + "\004name\030\001 \001(\tB.\340A\002" - + "\372A(\022&analyticsadmin.googleapis.com/Audience\"h\n" - + "\035GetAttributionSettingsRequest\022G\n" - + "\004name\030\001 \001(\tB9\340A\002\372A3\n" - + "1analyticsadmin.googleapis.com/AttributionSettings\"\260\001\n" - + " UpdateAttributionSettingsRequest\022V\n" - + "\024attribution_settings\030\001" - + " \001(\01323.google.analytics.admin.v1alpha.AttributionSettingsB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\\\n" - + "\027GetAccessBindingRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/AccessBinding\"\250\001\n" - + "\035BatchGetAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-" - + "\022+analyticsadmin.googleapis.com/AccessBinding\022B\n" - + "\005names\030\002 \003(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/AccessBinding\"h\n" - + "\036BatchGetAccessBindingsResponse\022F\n" - + "\017access_bindings\030\001" - + " \003(\0132-.google.analytics.admin.v1alpha.AccessBinding\"\207\001\n" - + "\031ListAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+analy" - + "ticsadmin.googleapis.com/AccessBinding\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"}\n" - + "\032ListAccessBindingsResponse\022F\n" - + "\017access_bindings\030\001" - + " \003(\0132-.google.analytics.admin.v1alpha.AccessBinding\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\255\001\n" - + "\032CreateAccessBindingRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/AccessBinding\022J\n" - + "\016access_binding\030\002" - + " \001(\0132-.google.analytics.admin.v1alpha.AccessBindingB\003\340A\002\"\272\001\n" - + " BatchCreateAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A" - + "-\022+analyticsadmin.googleapis.com/AccessBinding\022Q\n" - + "\010requests\030\003 \003(\0132:.google.analyt" - + "ics.admin.v1alpha.CreateAccessBindingRequestB\003\340A\002\"k\n" - + "!BatchCreateAccessBindingsResponse\022F\n" - + "\017access_bindings\030\001 \003(\0132-.google" - + ".analytics.admin.v1alpha.AccessBinding\"h\n" - + "\032UpdateAccessBindingRequest\022J\n" - + "\016access_binding\030\001" - + " \001(\0132-.google.analytics.admin.v1alpha.AccessBindingB\003\340A\002\"\272\001\n" - + " BatchUpdateAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340" - + "A\002\372A-\022+analyticsadmin.googleapis.com/AccessBinding\022Q\n" - + "\010requests\030\002 \003(\0132:.google.an" - + "alytics.admin.v1alpha.UpdateAccessBindingRequestB\003\340A\002\"k\n" - + "!BatchUpdateAccessBindingsResponse\022F\n" - + "\017access_bindings\030\001 \003(\0132-.go" - + "ogle.analytics.admin.v1alpha.AccessBinding\"_\n" - + "\032DeleteAccessBindingRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/AccessBinding\"\272\001\n" - + " BatchDeleteAccessBindingsRequest\022C\n" - + "\006parent\030\001 \001(\tB3\340A\002\372A-" - + "\022+analyticsadmin.googleapis.com/AccessBinding\022Q\n" - + "\010requests\030\002 \003(\0132:.google.analyti" - + "cs.admin.v1alpha.DeleteAccessBindingRequestB\003\340A\002\"\266\001\n" - + "\034CreateExpandedDataSetRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ExpandedDataSet\022O\n" - + "\021expanded_data_set\030\002" - + " \001(\0132/.google.analytics.admin.v1alpha.ExpandedDataSetB\003\340A\002\"\245\001\n" - + "\034UpdateExpandedDataSetRequest\022O\n" - + "\021expanded_data_set\030\001" - + " \001(\0132/.google.analytics.admin.v1alpha.ExpandedDataSetB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"c\n" - + "\034DeleteExpandedDataSetRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/ExpandedDataSet\"`\n" - + "\031GetExpandedDataSetRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/ExpandedDataSet\"\213\001\n" - + "\033ListExpandedDataSetsRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/ExpandedDataSet\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\204\001\n" - + "\034ListExpandedDataSetsResponse\022K\n" - + "\022expanded_data_sets\030\001 " - + "\003(\0132/.google.analytics.admin.v1alpha.ExpandedDataSet\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\251\001\n" - + "\031CreateChannelGroupRequest\022B\n" + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/ChannelGroup\022H\n\r" - + "channel_group\030\002 \001(\0132," - + ".google.analytics.admin.v1alpha.ChannelGroupB\003\340A\002\"\233\001\n" - + "\031UpdateChannelGroupRequest\022H\n\r" - + "channel_group\030\001" - + " \001(\0132,.google.analytics.admin.v1alpha.ChannelGroupB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" - + "\031DeleteChannelGroupRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/ChannelGroup\"Z\n" - + "\026GetChannelGroupRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/ChannelGroup\"\205\001\n" - + "\030ListChannelGroupsRequest\022B\n" - + "\006parent\030\001 \001(\tB" - + "2\340A\002\372A,\022*analyticsadmin.googleapis.com/ChannelGroup\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"z\n" - + "\031ListChannelGroupsResponse\022D\n" - + "\016channel_groups\030\001" - + " \003(\0132,.google.analytics.admin.v1alpha.ChannelGroup\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\251\001\n" - + "\031CreateBigQueryLinkRequest\022B\n" - + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/BigQueryLink\022H\n\r" - + "bigquery_link\030\002" - + " \001(\0132,.google.analytics.admin.v1alpha.BigQueryLinkB\003\340A\002\"Z\n" - + "\026GetBigQueryLinkRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/BigQueryLink\"\205\001\n" - + "\030ListBigQueryLinksRequest\022B\n" - + "\006parent\030\001 \001(" - + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com/BigQueryLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"z\n" - + "\031ListBigQueryLinksResponse\022D\n" - + "\016bigquery_links\030\001" - + " \003(\0132,.google.analytics.admin.v1alpha.BigQueryLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\233\001\n" - + "\031UpdateBigQueryLinkRequest\022H\n\r" - + "bigquery_link\030\001 \001(\0132,.google" - + ".analytics.admin.v1alpha.BigQueryLinkB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" - + "\031DeleteBigQueryLinkRequest\022@\n" - + "\004name\030\001 \001(\tB2\340A\002\372A,\n" - + "*analyticsadmin.googleapis.com/BigQueryLink\"x\n" - + "%GetEnhancedMeasurementSettingsRequest\022O\n" - + "\004name\030\001 \001(\tBA\340A\002\372A;\n" - + "9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\"\311\001\n" - + "(UpdateEnhancedMeasurementSettingsRequest\022g\n" - + "\035enhanced_measurement_settings\030\001 \001(\0132;." - + "google.analytics.admin.v1alpha.EnhancedMeasurementSettingsB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"l\n" - + "\037GetDataRedactionSettingsRequest\022I\n" - + "\004name\030\001 \001(\tB;\340A\002\372A5\n" - + "3analyticsadmin.googleapis.com/DataRedactionSettings\"\267\001\n" - + "\"UpdateDataRedactionSettingsRequest\022[\n" - + "\027data_redaction_settings\030\001 \001(\01325.google.analytics.a" - + "dmin.v1alpha.DataRedactionSettingsB\003\340A\002\0224\n" - + "\013update_mask\030\002" - + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\245\001\n" - + "\030CreateAdSenseLinkRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\340A\002\372A+\022)analyticsadmin.googleapis.com/AdSenseLink\022F\n" - + "\014adsense_link\030\002" - + " \001(\0132+.google.analytics.admin.v1alpha.AdSenseLinkB\003\340A\002\"X\n" - + "\025GetAdSenseLinkRequest\022?\n" - + "\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")analyticsadmin.googleapis.com/AdSenseLink\"[\n" - + "\030DeleteAdSenseLinkRequest\022?\n" - + "\004name\030\001 \001(\tB1\340A\002\372A+\n" - + ")analyticsadmin.googleapis.com/AdSenseLink\"\203\001\n" - + "\027ListAdSenseLinksRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\340A\002\372A+\022)analyticsadmin.googleapis.com/AdSenseLink\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"w\n" - + "\030ListAdSenseLinksResponse\022B\n\r" - + "adsense_links\030\001 \003(\0132+.google.analytics.admin.v1alpha.AdSenseLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\266\001\n" - + "\034CreateEventCreateRuleRequest\022E\n" - + "\006parent\030\001 \001(\tB5\340A\002\372A/\022-an" - + "alyticsadmin.googleapis.com/EventCreateRule\022O\n" - + "\021event_create_rule\030\002 \001(\0132/.google." - + "analytics.admin.v1alpha.EventCreateRuleB\003\340A\002\"\245\001\n" - + "\034UpdateEventCreateRuleRequest\022O\n" - + "\021event_create_rule\030\001 \001(\0132/.google.analyt" - + "ics.admin.v1alpha.EventCreateRuleB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"c\n" - + "\034DeleteEventCreateRuleRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/EventCreateRule\"`\n" - + "\031GetEventCreateRuleRequest\022C\n" - + "\004name\030\001 \001(\tB5\340A\002\372A/\n" - + "-analyticsadmin.googleapis.com/EventCreateRule\"\213\001\n" - + "\033ListEventCreateRulesRequest\022E\n" - + "\006parent\030\001 \001(" - + "\tB5\340A\002\372A/\022-analyticsadmin.googleapis.com/EventCreateRule\022\021\n" - + "\tpage_size\030\002 \001(\005\022\022\n\n" - + "page_token\030\003 \001(\t\"\204\001\n" - + "\034ListEventCreateRulesResponse\022K\n" - + "\022event_create_rules\030\001" - + " \003(\0132/.google.analytics.admin.v1alpha.EventCreateRule\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\256\001\n" - + "\032CreateEventEditRuleRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/EventEditRule\022K\n" - + "\017event_edit_rule\030\002" - + " \001(\0132-.google.analytics.admin.v1alpha.EventEditRuleB\003\340A\002\"\237\001\n" - + "\032UpdateEventEditRuleRequest\022K\n" - + "\017event_edit_rule\030\001 \001(" - + "\0132-.google.analytics.admin.v1alpha.EventEditRuleB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"_\n" - + "\032DeleteEventEditRuleRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/EventEditRule\"\\\n" - + "\027GetEventEditRuleRequest\022A\n" - + "\004name\030\001 \001(\tB3\340A\002\372A-\n" - + "+analyticsadmin.googleapis.com/EventEditRule\"\221\001\n" - + "\031ListEventEditRulesRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/EventEditRule\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\"~\n" - + "\032ListEventEditRulesResponse\022G\n" - + "\020event_edit_rules\030\001" - + " \003(\0132-.google.analytics.admin.v1alpha.EventEditRule\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\202\001\n" - + "\034ReorderEventEditRulesRequest\022C\n" - + "\006parent\030\001 \001(" - + "\tB3\340A\002\372A-\022+analyticsadmin.googleapis.com/EventEditRule\022\035\n" - + "\020event_edit_rules\030\002 \003(\tB\003\340A\002\"\205\001\n" - + "\033CreateRollupPropertyRequest\022F\n" - + "\017rollup_property\030\001" - + " \001(\0132(.google.analytics.admin.v1alpha.PropertyB\003\340A\002\022\036\n" - + "\021source_properties\030\002 \003(\tB\003\340A\001\"\301\001\n" - + "\034CreateRollupPropertyResponse\022A\n" - + "\017rollup_property\030\001 \001(\0132(.google.analytics.admin.v1alpha.Property\022^\n" - + "\034rollup_property_source_links\030\002 \003(\01328.google.analytics" - + ".admin.v1alpha.RollupPropertySourceLink\"r\n" - + "\"GetRollupPropertySourceLinkRequest\022L\n" - + "\004name\030\001 \001(\tB>\340A\002\372A8\n" - + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\247\001\n" - + "$ListRollupPropertySourceLinksRequest\022N\n" - + "\006parent\030\001 \001(" - + "\tB>\340A\002\372A8\0226analyticsadmin.googleapis.com/RollupPropertySourceLink\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\"\240\001\n" - + "%ListRollupPropertySourceLinksResponse\022^\n" - + "\034rollup_property_source_links\030\001" - + " \003(\01328.google.analytics.admin.v1alpha.RollupPropertySourceLink\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\333\001\n" - + "%CreateRollupPropertySourceLinkRequest\022N\n" - + "\006parent\030\001 \001(\tB>\340A\002\372A8\0226anal" - + "yticsadmin.googleapis.com/RollupPropertySourceLink\022b\n" - + "\033rollup_property_source_link\030\002" - + " \001(\01328.google.analytics.admin.v1alpha.RollupPropertySourceLinkB\003\340A\002\"u\n" - + "%DeleteRollupPropertySourceLinkRequest\022L\n" - + "\004name\030\001 \001(\tB>\340A\002\372A8\n" - + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\"\313\002\n" - + "\033ProvisionSubpropertyRequest\022B\n" - + "\013subproperty\030\002 \001" - + "(\0132(.google.analytics.admin.v1alpha.PropertyB\003\340A\002\022]\n" - + "\030subproperty_event_filter\030\003 " - + "\001(\01326.google.analytics.admin.v1alpha.SubpropertyEventFilterB\003\340A\001\022\210\001\n" - + "0custom_dimension_and_metric_synchronization_mode\030\004 " - + "\001(\0162I.google.analytics.admin.v1alpha.Sub" - + "propertySyncConfig.SynchronizationModeB\003\340A\001\"\267\001\n" - + "\034ProvisionSubpropertyResponse\022=\n" - + "\013subproperty\030\001 \001(\0132(.google.analytics.admin.v1alpha.Property\022X\n" - + "\030subproperty_event_filter\030\002" - + " \001(\01326.google.analytics.admin.v1alpha.SubpropertyEventFilter\"\322\001\n" - + "#CreateSubpropertyEventFilterRequest\022L\n" - + "\006parent\030\001 \001(" - + "\tB<\340A\002\372A6\0224analyticsadmin.googleapis.com/SubpropertyEventFilter\022]\n" - + "\030subproperty_event_filter\030\002 \001(\01326.google.analytics" - + ".admin.v1alpha.SubpropertyEventFilterB\003\340A\002\"n\n" - + " GetSubpropertyEventFilterRequest\022J\n" - + "\004name\030\001 \001(\tB<\340A\002\372A6\n" - + "4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\243\001\n" - + "\"ListSubpropertyEventFiltersRequest\022L\n" - + "\006parent\030\001 \001(" - + "\tB<\340A\002\372A6\0224analyticsadmin.googleapis.com/SubpropertyEventFilter\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\"\231\001\n" - + "#ListSubpropertyEventFiltersResponse\022Y\n" - + "\031subproperty_event_filters\030\001 \003(\01326.go" - + "ogle.analytics.admin.v1alpha.SubpropertyEventFilter\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\272\001\n" - + "#UpdateSubpropertyEventFilterRequest\022]\n" - + "\030subproperty_event_filter\030\001 \001(\01326.google." - + "analytics.admin.v1alpha.SubpropertyEventFilterB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"q\n" - + "#DeleteSubpropertyEventFilterRequest\022J\n" - + "\004name\030\001 \001(\tB<\340A\002\372A6\n" - + "4analyticsadmin.googleapis.com/SubpropertyEventFilter\"\326\001\n" - + "$CreateReportingDataAnnotationRequest\022M\n" - + "\006parent\030\001 \001(\tB=\340" - + "A\002\372A7\0225analyticsadmin.googleapis.com/ReportingDataAnnotation\022_\n" - + "\031reporting_data_annotation\030\002" - + " \001(\01327.google.analytics.admin.v1alpha.ReportingDataAnnotationB\003\340A\002\"p\n" - + "!GetReportingDataAnnotationRequest\022K\n" - + "\004name\030\001 \001(\tB=\340A\002\372A7\n" - + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\272\001\n" - + "#ListReportingDataAnnotationsRequest\022M\n" - + "\006parent\030\001 \001(" - + "\tB=\340A\002\372A7\0225analyticsadmin.googleapis.com/ReportingDataAnnotation\022\023\n" - + "\006filter\030\002 \001(\tB\003\340A\001\022\026\n" - + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" - + "page_token\030\004 \001(\tB\003\340A\001\"\234\001\n" - + "$ListReportingDataAnnotationsResponse\022[\n" - + "\032reporting_data_annotations\030\001" - + " \003(\01327.google.analytics.admin.v1alpha.ReportingDataAnnotation\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\275\001\n" - + "$UpdateReportingDataAnnotationRequest\022_\n" - + "\031reporting_data_annotation\030\001" - + " \001(\01327.google.analytics.admin.v1alpha.ReportingDataAnnotationB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"s\n" - + "$DeleteReportingDataAnnotationRequest\022K\n" - + "\004name\030\001 \001(\tB=\340A\002\372A7\n" - + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\"\302\001\n" - + "\031SubmitUserDeletionRequest\022\021\n" - + "\007user_id\030\002 \001(\tH\000\022\023\n" - + "\tclient_id\030\003 \001(\tH\000\022\031\n" - + "\017app_instance_id\030\004 \001(\tH\000\022\034\n" - + "\022user_provided_data\030\005 \001(\tH\000\022<\n" - + "\004name\030\001 \001(\tB.\340A\002\372A(\n" - + "&analyticsadmin.googleapis.com/PropertyB\006\n" - + "\004user\"W\n" - + "\032SubmitUserDeletionResponse\0229\n" - + "\025deletion_request_time\030\001 \001(\0132\032.google.protobuf.Timestamp\"l\n" - + "\037GetSubpropertySyncConfigRequest\022I\n" - + "\004name\030\001 \001(\tB;\340A\002\372A5\n" - + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\"\241\001\n" - + "!ListSubpropertySyncConfigsRequest\022K\n" - + "\006parent\030\001 \001(\tB;\340A\002\372A5\0223analyticsadm" - + "in.googleapis.com/SubpropertySyncConfig\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\"\226\001\n" - + "\"ListSubpropertySyncConfigsResponse\022W\n" - + "\030subproperty_sync_configs\030\001 \003(" - + "\01325.google.analytics.admin.v1alpha.SubpropertySyncConfig\022\027\n" - + "\017next_page_token\030\002 \001(\t\"\267\001\n" - + "\"UpdateSubpropertySyncConfigRequest\022[\n" - + "\027subproperty_sync_config\030\001 \001(\01325.goog" - + "le.analytics.admin.v1alpha.SubpropertySyncConfigB\003\340A\002\0224\n" - + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"t\n" - + "#GetReportingIdentitySettingsRequest\022M\n" - + "\004name\030\001 \001(\tB?\340A\002\372A9\n" - + "7analyticsadmin.googleapis.com/ReportingIdentitySettings2\244\227\002\n" - + "\025AnalyticsAdminService\022\223\001\n\n" - + "GetAccount\0221.google.analytics.admin.v1alpha.GetAccountRequest\032\'" - + ".google.analytics.admin.v1alpha.Account\"" - + ")\332A\004name\202\323\344\223\002\034\022\032/v1alpha/{name=accounts/*}\022\224\001\n" - + "\014ListAccounts\0223.google.analytics.admin.v1alpha.ListAccountsRequest\0324.googl" - + "e.analytics.admin.v1alpha.ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alpha/accounts\022\210\001\n\r" - + "DeleteAccount\0224.google.analytics.admin.v1a" - + "lpha.DeleteAccountRequest\032\026.google.proto" - + "buf.Empty\")\332A\004name\202\323\344\223\002\034*\032/v1alpha/{name=accounts/*}\022\271\001\n\r" - + "UpdateAccount\0224.google.analytics.admin.v1alpha.UpdateAccountReq" - + "uest\032\'.google.analytics.admin.v1alpha.Ac" - + "count\"I\332A\023account,update_mask\202\323\344\223\002-2\"/v1" - + "alpha/{account.name=accounts/*}:\007account\022\314\001\n" - + "\026ProvisionAccountTicket\022=.google.analytics.admin.v1alpha.ProvisionAccountTic" - + "ketRequest\032>.google.analytics.admin.v1al" - + "pha.ProvisionAccountTicketResponse\"3\202\323\344\223" - + "\002-\"(/v1alpha/accounts:provisionAccountTicket:\001*\022\264\001\n" - + "\024ListAccountSummaries\022;.google.analytics.admin.v1alpha.ListAccountSum" - + "mariesRequest\032<.google.analytics.admin.v" - + "1alpha.ListAccountSummariesResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSummaries\022\230\001\n" - + "\013GetProperty\0222.google.analytics.admin.v1alpha." - + "GetPropertyRequest\032(.google.analytics.ad" - + "min.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036\022\034/v1alpha/{name=properties/*}\022\234\001\n" - + "\016ListProperties\0225.google.analytics.admin.v1alpha.Li" - + "stPropertiesRequest\0326.google.analytics.a" - + "dmin.v1alpha.ListPropertiesResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/properties\022\243\001\n" - + "\016CreateProperty\0225.google.analytics.admin.v1alpha.Cre" - + "atePropertyRequest\032(.google.analytics.ad" - + "min.v1alpha.Property\"0\332A\010property\202\323\344\223\002\037\"\023/v1alpha/properties:\010property\022\236\001\n" - + "\016DeleteProperty\0225.google.analytics.admin.v1alp" - + "ha.DeletePropertyRequest\032(.google.analyt" - + "ics.admin.v1alpha.Property\"+\332A\004name\202\323\344\223\002\036*\034/v1alpha/{name=properties/*}\022\301\001\n" - + "\016UpdateProperty\0225.google.analytics.admin.v1al" - + "pha.UpdatePropertyRequest\032(.google.analy" - + "tics.admin.v1alpha.Property\"N\332A\024property" - + ",update_mask\202\323\344\223\00212%/v1alpha/{property.name=properties/*}:\010property\022\331\001\n" - + "\022CreateFirebaseLink\0229.google.analytics.admin.v1al" - + "pha.CreateFirebaseLinkRequest\032,.google.a" - + "nalytics.admin.v1alpha.FirebaseLink\"Z\332A\024" - + "parent,firebase_link\202\323\344\223\002=\",/v1alpha/{parent=properties/*}/firebaseLinks:\r" - + "firebase_link\022\244\001\n" - + "\022DeleteFirebaseLink\0229.google.analytics.admin.v1alpha.DeleteFirebaseLi" - + "nkRequest\032\026.google.protobuf.Empty\";\332A\004na" - + "me\202\323\344\223\002.*,/v1alpha/{name=properties/*/firebaseLinks/*}\022\307\001\n" - + "\021ListFirebaseLinks\0228.google.analytics.admin.v1alpha.ListFireba" - + "seLinksRequest\0329.google.analytics.admin." - + "v1alpha.ListFirebaseLinksResponse\"=\332A\006pa" - + "rent\202\323\344\223\002.\022,/v1alpha/{parent=properties/*}/firebaseLinks\022\303\001\n" - + "\020GetGlobalSiteTag\0227.google.analytics.admin.v1alpha.GetGlobal" - + "SiteTagRequest\032-.google.analytics.admin." - + "v1alpha.GlobalSiteTag\"G\332A\004name\202\323\344\223\002:\0228/v" - + "1alpha/{name=properties/*/dataStreams/*/globalSiteTag}\022\341\001\n" - + "\023CreateGoogleAdsLink\022:.google.analytics.admin.v1alpha.CreateGo" - + "ogleAdsLinkRequest\032-.google.analytics.ad" - + "min.v1alpha.GoogleAdsLink\"_\332A\026parent,goo" - + "gle_ads_link\202\323\344\223\002@\"-/v1alpha/{parent=pro" - + "perties/*}/googleAdsLinks:\017google_ads_link\022\366\001\n" - + "\023UpdateGoogleAdsLink\022:.google.analytics.admin.v1alpha.UpdateGoogleAdsLinkR" - + "equest\032-.google.analytics.admin.v1alpha." - + "GoogleAdsLink\"t\332A\033google_ads_link,update" - + "_mask\202\323\344\223\002P2=/v1alpha/{google_ads_link.n", - "ame=properties/*/googleAdsLinks/*}:\017goog" - + "le_ads_link\022\247\001\n\023DeleteGoogleAdsLink\022:.go" - + "ogle.analytics.admin.v1alpha.DeleteGoogl" - + "eAdsLinkRequest\032\026.google.protobuf.Empty\"" - + "<\332A\004name\202\323\344\223\002/*-/v1alpha/{name=propertie" - + "s/*/googleAdsLinks/*}\022\313\001\n\022ListGoogleAdsL" - + "inks\0229.google.analytics.admin.v1alpha.Li" - + "stGoogleAdsLinksRequest\032:.google.analyti" - + "cs.admin.v1alpha.ListGoogleAdsLinksRespo" - + "nse\">\332A\006parent\202\323\344\223\002/\022-/v1alpha/{parent=p" - + "roperties/*}/googleAdsLinks\022\313\001\n\026GetDataS" - + "haringSettings\022=.google.analytics.admin." - + "v1alpha.GetDataSharingSettingsRequest\0323." - + "google.analytics.admin.v1alpha.DataShari" - + "ngSettings\"=\332A\004name\202\323\344\223\0020\022./v1alpha/{nam" - + "e=accounts/*/dataSharingSettings}\022\366\001\n\034Ge" - + "tMeasurementProtocolSecret\022C.google.anal" - + "ytics.admin.v1alpha.GetMeasurementProtoc" - + "olSecretRequest\0329.google.analytics.admin" - + ".v1alpha.MeasurementProtocolSecret\"V\332A\004n" - + "ame\202\323\344\223\002I\022G/v1alpha/{name=properties/*/d" - + "ataStreams/*/measurementProtocolSecrets/" - + "*}\022\211\002\n\036ListMeasurementProtocolSecrets\022E." - + "google.analytics.admin.v1alpha.ListMeasu" - + "rementProtocolSecretsRequest\032F.google.an" - + "alytics.admin.v1alpha.ListMeasurementPro" - + "tocolSecretsResponse\"X\332A\006parent\202\323\344\223\002I\022G/" - + "v1alpha/{parent=properties/*/dataStreams" - + "/*}/measurementProtocolSecrets\022\270\002\n\037Creat" - + "eMeasurementProtocolSecret\022F.google.anal" - + "ytics.admin.v1alpha.CreateMeasurementPro" - + "tocolSecretRequest\0329.google.analytics.ad" - + "min.v1alpha.MeasurementProtocolSecret\"\221\001" - + "\332A\"parent,measurement_protocol_secret\202\323\344" - + "\223\002f\"G/v1alpha/{parent=properties/*/dataS" - + "treams/*}/measurementProtocolSecrets:\033me" - + "asurement_protocol_secret\022\331\001\n\037DeleteMeas" - + "urementProtocolSecret\022F.google.analytics" - + ".admin.v1alpha.DeleteMeasurementProtocol" - + "SecretRequest\032\026.google.protobuf.Empty\"V\332" - + "A\004name\202\323\344\223\002I*G/v1alpha/{name=properties/" - + "*/dataStreams/*/measurementProtocolSecre" - + "ts/*}\022\332\002\n\037UpdateMeasurementProtocolSecre" - + "t\022F.google.analytics.admin.v1alpha.Updat" - + "eMeasurementProtocolSecretRequest\0329.goog" - + "le.analytics.admin.v1alpha.MeasurementPr" - + "otocolSecret\"\263\001\332A\'measurement_protocol_s" - + "ecret,update_mask\202\323\344\223\002\202\0012c/v1alpha/{meas" - + "urement_protocol_secret.name=properties/" - + "*/dataStreams/*/measurementProtocolSecre" - + "ts/*}:\033measurement_protocol_secret\022\367\001\n\035A" - + "cknowledgeUserDataCollection\022D.google.an" - + "alytics.admin.v1alpha.AcknowledgeUserDat" - + "aCollectionRequest\032E.google.analytics.ad" - + "min.v1alpha.AcknowledgeUserDataCollectio" - + "nResponse\"I\202\323\344\223\002C\">/v1alpha/{property=pr" - + "operties/*}:acknowledgeUserDataCollectio" - + "n:\001*\022\221\002\n#GetSKAdNetworkConversionValueSc" - + "hema\022J.google.analytics.admin.v1alpha.Ge" - + "tSKAdNetworkConversionValueSchemaRequest" - + "\032@.google.analytics.admin.v1alpha.SKAdNe" - + "tworkConversionValueSchema\"\\\332A\004name\202\323\344\223\002" - + "O\022M/v1alpha/{name=properties/*/dataStrea" - + "ms/*/sKAdNetworkConversionValueSchema/*}" - + "\022\343\002\n&CreateSKAdNetworkConversionValueSch" - + "ema\022M.google.analytics.admin.v1alpha.Cre" - + "ateSKAdNetworkConversionValueSchemaReque" - + "st\032@.google.analytics.admin.v1alpha.SKAd" - + "NetworkConversionValueSchema\"\247\001\332A*parent" - + ",skadnetwork_conversion_value_schema\202\323\344\223" - + "\002t\"M/v1alpha/{parent=properties/*/dataSt" - + "reams/*}/sKAdNetworkConversionValueSchem" - + "a:#skadnetwork_conversion_value_schema\022\355" - + "\001\n&DeleteSKAdNetworkConversionValueSchem" - + "a\022M.google.analytics.admin.v1alpha.Delet" - + "eSKAdNetworkConversionValueSchemaRequest" - + "\032\026.google.protobuf.Empty\"\\\332A\004name\202\323\344\223\002O*" - + "M/v1alpha/{name=properties/*/dataStreams" - + "/*/sKAdNetworkConversionValueSchema/*}\022\215" - + "\003\n&UpdateSKAdNetworkConversionValueSchem" - + "a\022M.google.analytics.admin.v1alpha.Updat" - + "eSKAdNetworkConversionValueSchemaRequest" - + "\032@.google.analytics.admin.v1alpha.SKAdNe" - + "tworkConversionValueSchema\"\321\001\332A/skadnetw" - + "ork_conversion_value_schema,update_mask\202" - + "\323\344\223\002\230\0012q/v1alpha/{skadnetwork_conversion" - + "_value_schema.name=properties/*/dataStre" - + "ams/*/sKAdNetworkConversionValueSchema/*" - + "}:#skadnetwork_conversion_value_schema\022\244" - + "\002\n%ListSKAdNetworkConversionValueSchemas" - + "\022L.google.analytics.admin.v1alpha.ListSK" - + "AdNetworkConversionValueSchemasRequest\032M" - + ".google.analytics.admin.v1alpha.ListSKAd" - + "NetworkConversionValueSchemasResponse\"^\332" - + "A\006parent\202\323\344\223\002O\022M/v1alpha/{parent=propert" - + "ies/*/dataStreams/*}/sKAdNetworkConversi" - + "onValueSchema\022\344\001\n\031SearchChangeHistoryEve" - + "nts\022@.google.analytics.admin.v1alpha.Sea" - + "rchChangeHistoryEventsRequest\032A.google.a" - + "nalytics.admin.v1alpha.SearchChangeHisto" - + "ryEventsResponse\"B\202\323\344\223\002<\"7/v1alpha/{acco" - + "unt=accounts/*}:searchChangeHistoryEvent" - + "s:\001*\022\325\001\n\030GetGoogleSignalsSettings\022?.goog" - + "le.analytics.admin.v1alpha.GetGoogleSign" - + "alsSettingsRequest\0325.google.analytics.ad" - + "min.v1alpha.GoogleSignalsSettings\"A\332A\004na" - + "me\202\323\344\223\0024\0222/v1alpha/{name=properties/*/go" - + "ogleSignalsSettings}\022\254\002\n\033UpdateGoogleSig" - + "nalsSettings\022B.google.analytics.admin.v1" - + "alpha.UpdateGoogleSignalsSettingsRequest" - + "\0325.google.analytics.admin.v1alpha.Google" - + "SignalsSettings\"\221\001\332A#google_signals_sett" - + "ings,update_mask\202\323\344\223\002e2J/v1alpha/{google" - + "_signals_settings.name=properties/*/goog" - + "leSignalsSettings}:\027google_signals_setti" - + "ngs\022\356\001\n\025CreateConversionEvent\022<.google.a" - + "nalytics.admin.v1alpha.CreateConversionE" - + "ventRequest\032/.google.analytics.admin.v1a" - + "lpha.ConversionEvent\"f\210\002\001\332A\027parent,conve" - + "rsion_event\202\323\344\223\002C\"//v1alpha/{parent=prop" - + "erties/*}/conversionEvents:\020conversion_e" - + "vent\022\204\002\n\025UpdateConversionEvent\022<.google." - + "analytics.admin.v1alpha.UpdateConversion" - + "EventRequest\032/.google.analytics.admin.v1" - + "alpha.ConversionEvent\"|\210\002\001\332A\034conversion_" - + "event,update_mask\202\323\344\223\002T2@/v1alpha/{conve" - + "rsion_event.name=properties/*/conversion" - + "Events/*}:\020conversion_event\022\303\001\n\022GetConve" - + "rsionEvent\0229.google.analytics.admin.v1al" - + "pha.GetConversionEventRequest\032/.google.a" - + "nalytics.admin.v1alpha.ConversionEvent\"A" - + "\210\002\001\332A\004name\202\323\344\223\0021\022//v1alpha/{name=propert" - + "ies/*/conversionEvents/*}\022\260\001\n\025DeleteConv" - + "ersionEvent\022<.google.analytics.admin.v1a" - + "lpha.DeleteConversionEventRequest\032\026.goog" - + "le.protobuf.Empty\"A\210\002\001\332A\004name\202\323\344\223\0021*//v1" - + "alpha/{name=properties/*/conversionEvent" - + "s/*}\022\326\001\n\024ListConversionEvents\022;.google.a" - + "nalytics.admin.v1alpha.ListConversionEve" - + "ntsRequest\032<.google.analytics.admin.v1al" - + "pha.ListConversionEventsResponse\"C\210\002\001\332A\006" - + "parent\202\323\344\223\0021\022//v1alpha/{parent=propertie" - + "s/*}/conversionEvents\022\301\001\n\016CreateKeyEvent" - + "\0225.google.analytics.admin.v1alpha.Create" - + "KeyEventRequest\032(.google.analytics.admin" - + ".v1alpha.KeyEvent\"N\332A\020parent,key_event\202\323" - + "\344\223\0025\"(/v1alpha/{parent=properties/*}/key" - + "Events:\tkey_event\022\320\001\n\016UpdateKeyEvent\0225.g" - + "oogle.analytics.admin.v1alpha.UpdateKeyE" - + "ventRequest\032(.google.analytics.admin.v1a" - + "lpha.KeyEvent\"]\332A\025key_event,update_mask\202" - + "\323\344\223\002?22/v1alpha/{key_event.name=properti" - + "es/*/keyEvents/*}:\tkey_event\022\244\001\n\013GetKeyE" - + "vent\0222.google.analytics.admin.v1alpha.Ge" - + "tKeyEventRequest\032(.google.analytics.admi" - + "n.v1alpha.KeyEvent\"7\332A\004name\202\323\344\223\002*\022(/v1al" - + "pha/{name=properties/*/keyEvents/*}\022\230\001\n\016" - + "DeleteKeyEvent\0225.google.analytics.admin." - + "v1alpha.DeleteKeyEventRequest\032\026.google.p" - + "rotobuf.Empty\"7\332A\004name\202\323\344\223\002**(/v1alpha/{" - + "name=properties/*/keyEvents/*}\022\267\001\n\rListK" - + "eyEvents\0224.google.analytics.admin.v1alph" - + "a.ListKeyEventsRequest\0325.google.analytic" - + "s.admin.v1alpha.ListKeyEventsResponse\"9\332" - + "A\006parent\202\323\344\223\002*\022(/v1alpha/{parent=propert" - + "ies/*}/keyEvents\022\370\001\n GetDisplayVideo360A" - + "dvertiserLink\022G.google.analytics.admin.v" - + "1alpha.GetDisplayVideo360AdvertiserLinkR" - + "equest\032=.google.analytics.admin.v1alpha." - + "DisplayVideo360AdvertiserLink\"L\332A\004name\202\323" - + "\344\223\002?\022=/v1alpha/{name=properties/*/displa" - + "yVideo360AdvertiserLinks/*}\022\213\002\n\"ListDisp" - + "layVideo360AdvertiserLinks\022I.google.anal" - + "ytics.admin.v1alpha.ListDisplayVideo360A" - + "dvertiserLinksRequest\032J.google.analytics" - + ".admin.v1alpha.ListDisplayVideo360Advert" - + "iserLinksResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1a" - + "lpha/{parent=properties/*}/displayVideo3" - + "60AdvertiserLinks\022\306\002\n#CreateDisplayVideo" - + "360AdvertiserLink\022J.google.analytics.adm" - + "in.v1alpha.CreateDisplayVideo360Advertis" - + "erLinkRequest\032=.google.analytics.admin.v" - + "1alpha.DisplayVideo360AdvertiserLink\"\223\001\332" - + "A(parent,display_video_360_advertiser_li" - + "nk\202\323\344\223\002b\"=/v1alpha/{parent=properties/*}" - + "/displayVideo360AdvertiserLinks:!display" - + "_video_360_advertiser_link\022\327\001\n#DeleteDis" - + "playVideo360AdvertiserLink\022J.google.anal" - + "ytics.admin.v1alpha.DeleteDisplayVideo36" - + "0AdvertiserLinkRequest\032\026.google.protobuf" - + ".Empty\"L\332A\004name\202\323\344\223\002?*=/v1alpha/{name=pr" + + "\tB0\340A\002\372A*\022(analyticsadmin.googleapis.com/DataStream\022\021\n" + + "\tpage_si", + "ze\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"t\n\027ListData" + + "StreamsResponse\022@\n\014data_streams\030\001 \003(\0132*." + + "google.analytics.admin.v1alpha.DataStrea" + + "m\022\027\n\017next_page_token\030\002 \001(\t\"V\n\024GetDataStr" + + "eamRequest\022>\n\004name\030\001 \001(\tB0\340A\002\372A*\n(analyt" + + "icsadmin.googleapis.com/DataStream\"R\n\022Ge" + + "tAudienceRequest\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\n&" + + "analyticsadmin.googleapis.com/Audience\"}" + + "\n\024ListAudiencesRequest\022>\n\006parent\030\001 \001(\tB." + + "\340A\002\372A(\022&analyticsadmin.googleapis.com/Au" + + "dience\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030" + + "\003 \001(\t\"m\n\025ListAudiencesResponse\022;\n\taudien" + + "ces\030\001 \003(\0132(.google.analytics.admin.v1alp" + + "ha.Audience\022\027\n\017next_page_token\030\002 \001(\t\"\230\001\n" + + "\025CreateAudienceRequest\022>\n\006parent\030\001 \001(\tB." + + "\340A\002\372A(\022&analyticsadmin.googleapis.com/Au" + + "dience\022?\n\010audience\030\002 \001(\0132(.google.analyt" + + "ics.admin.v1alpha.AudienceB\003\340A\002\"\216\001\n\025Upda" + + "teAudienceRequest\022?\n\010audience\030\001 \001(\0132(.go" + + "ogle.analytics.admin.v1alpha.AudienceB\003\340" + + "A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protobu" + + "f.FieldMaskB\003\340A\002\"V\n\026ArchiveAudienceReque" + + "st\022<\n\004name\030\001 \001(\tB.\340A\002\372A(\022&analyticsadmin" + + ".googleapis.com/Audience\"h\n\035GetAttributi" + + "onSettingsRequest\022G\n\004name\030\001 \001(\tB9\340A\002\372A3\n" + + "1analyticsadmin.googleapis.com/Attributi" + + "onSettings\"\260\001\n UpdateAttributionSettings" + + "Request\022V\n\024attribution_settings\030\001 \001(\01323." + + "google.analytics.admin.v1alpha.Attributi" + + "onSettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.g" + + "oogle.protobuf.FieldMaskB\003\340A\002\"\\\n\027GetAcce" + + "ssBindingRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+" + + "analyticsadmin.googleapis.com/AccessBind" + + "ing\"\250\001\n\035BatchGetAccessBindingsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.go" + + "ogleapis.com/AccessBinding\022B\n\005names\030\002 \003(" + + "\tB3\340A\002\372A-\n+analyticsadmin.googleapis.com" + + "/AccessBinding\"h\n\036BatchGetAccessBindings" + + "Response\022F\n\017access_bindings\030\001 \003(\0132-.goog" + + "le.analytics.admin.v1alpha.AccessBinding" + + "\"\207\001\n\031ListAccessBindingsRequest\022C\n\006parent" + + "\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.googleapi" + + "s.com/AccessBinding\022\021\n\tpage_size\030\002 \001(\005\022\022" + + "\n\npage_token\030\003 \001(\t\"}\n\032ListAccessBindings" + + "Response\022F\n\017access_bindings\030\001 \003(\0132-.goog" + + "le.analytics.admin.v1alpha.AccessBinding" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\255\001\n\032CreateAcce" + + "ssBindingRequest\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-" + + "\022+analyticsadmin.googleapis.com/AccessBi" + + "nding\022J\n\016access_binding\030\002 \001(\0132-.google.a" + + "nalytics.admin.v1alpha.AccessBindingB\003\340A" + + "\002\"\272\001\n BatchCreateAccessBindingsRequest\022C" + + "\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.g" + + "oogleapis.com/AccessBinding\022Q\n\010requests\030" + + "\003 \003(\0132:.google.analytics.admin.v1alpha.C" + + "reateAccessBindingRequestB\003\340A\002\"k\n!BatchC" + + "reateAccessBindingsResponse\022F\n\017access_bi" + + "ndings\030\001 \003(\0132-.google.analytics.admin.v1" + + "alpha.AccessBinding\"h\n\032UpdateAccessBindi" + + "ngRequest\022J\n\016access_binding\030\001 \001(\0132-.goog" + + "le.analytics.admin.v1alpha.AccessBinding" + + "B\003\340A\002\"\272\001\n BatchUpdateAccessBindingsReque" + + "st\022C\n\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadm" + + "in.googleapis.com/AccessBinding\022Q\n\010reque" + + "sts\030\002 \003(\0132:.google.analytics.admin.v1alp" + + "ha.UpdateAccessBindingRequestB\003\340A\002\"k\n!Ba" + + "tchUpdateAccessBindingsResponse\022F\n\017acces" + + "s_bindings\030\001 \003(\0132-.google.analytics.admi" + + "n.v1alpha.AccessBinding\"_\n\032DeleteAccessB" + + "indingRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+ana" + + "lyticsadmin.googleapis.com/AccessBinding" + + "\"\272\001\n BatchDeleteAccessBindingsRequest\022C\n" + + "\006parent\030\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.go" + + "ogleapis.com/AccessBinding\022Q\n\010requests\030\002" + + " \003(\0132:.google.analytics.admin.v1alpha.De" + + "leteAccessBindingRequestB\003\340A\002\"\266\001\n\034Create" + + "ExpandedDataSetRequest\022E\n\006parent\030\001 \001(\tB5" + + "\340A\002\372A/\022-analyticsadmin.googleapis.com/Ex" + + "pandedDataSet\022O\n\021expanded_data_set\030\002 \001(\013" + + "2/.google.analytics.admin.v1alpha.Expand" + + "edDataSetB\003\340A\002\"\245\001\n\034UpdateExpandedDataSet" + + "Request\022O\n\021expanded_data_set\030\001 \001(\0132/.goo" + + "gle.analytics.admin.v1alpha.ExpandedData" + + "SetB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMaskB\003\340A\002\"c\n\034DeleteExpanded" + + "DataSetRequest\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-an" + + "alyticsadmin.googleapis.com/ExpandedData" + + "Set\"`\n\031GetExpandedDataSetRequest\022C\n\004name" + + "\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmin.googleapi" + + "s.com/ExpandedDataSet\"\213\001\n\033ListExpandedDa" + + "taSetsRequest\022E\n\006parent\030\001 \001(\tB5\340A\002\372A/\022-a" + + "nalyticsadmin.googleapis.com/ExpandedDat" + + "aSet\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 " + + "\001(\t\"\204\001\n\034ListExpandedDataSetsResponse\022K\n\022" + + "expanded_data_sets\030\001 \003(\0132/.google.analyt" + + "ics.admin.v1alpha.ExpandedDataSet\022\027\n\017nex" + + "t_page_token\030\002 \001(\t\"\251\001\n\031CreateChannelGrou" + + "pRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyt" + + "icsadmin.googleapis.com/ChannelGroup\022H\n\r" + + "channel_group\030\002 \001(\0132,.google.analytics.a" + + "dmin.v1alpha.ChannelGroupB\003\340A\002\"\233\001\n\031Updat" + + "eChannelGroupRequest\022H\n\rchannel_group\030\001 " + + "\001(\0132,.google.analytics.admin.v1alpha.Cha" + + "nnelGroupB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.go" + + "ogle.protobuf.FieldMaskB\003\340A\002\"]\n\031DeleteCh" + + "annelGroupRequest\022@\n\004name\030\001 \001(\tB2\340A\002\372A,\n" + + "*analyticsadmin.googleapis.com/ChannelGr" + + "oup\"Z\n\026GetChannelGroupRequest\022@\n\004name\030\001 " + + "\001(\tB2\340A\002\372A,\n*analyticsadmin.googleapis.c" + + "om/ChannelGroup\"\205\001\n\030ListChannelGroupsReq" + + "uest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyticsa" + + "dmin.googleapis.com/ChannelGroup\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031ListC" + + "hannelGroupsResponse\022D\n\016channel_groups\030\001" + + " \003(\0132,.google.analytics.admin.v1alpha.Ch" + + "annelGroup\022\027\n\017next_page_token\030\002 \001(\t\"\251\001\n\031" + + "CreateBigQueryLinkRequest\022B\n\006parent\030\001 \001(" + + "\tB2\340A\002\372A,\022*analyticsadmin.googleapis.com" + + "/BigQueryLink\022H\n\rbigquery_link\030\002 \001(\0132,.g" + + "oogle.analytics.admin.v1alpha.BigQueryLi" + + "nkB\003\340A\002\"Z\n\026GetBigQueryLinkRequest\022@\n\004nam" + + "e\030\001 \001(\tB2\340A\002\372A,\n*analyticsadmin.googleap" + + "is.com/BigQueryLink\"\205\001\n\030ListBigQueryLink" + + "sRequest\022B\n\006parent\030\001 \001(\tB2\340A\002\372A,\022*analyt" + + "icsadmin.googleapis.com/BigQueryLink\022\021\n\t" + + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"z\n\031L" + + "istBigQueryLinksResponse\022D\n\016bigquery_lin" + + "ks\030\001 \003(\0132,.google.analytics.admin.v1alph" + + "a.BigQueryLink\022\027\n\017next_page_token\030\002 \001(\t\"" + + "\233\001\n\031UpdateBigQueryLinkRequest\022H\n\rbigquer" + + "y_link\030\001 \001(\0132,.google.analytics.admin.v1" + + "alpha.BigQueryLinkB\003\340A\002\0224\n\013update_mask\030\002" + + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\"]\n" + + "\031DeleteBigQueryLinkRequest\022@\n\004name\030\001 \001(\t" + + "B2\340A\002\372A,\n*analyticsadmin.googleapis.com/" + + "BigQueryLink\"x\n%GetEnhancedMeasurementSe" + + "ttingsRequest\022O\n\004name\030\001 \001(\tBA\340A\002\372A;\n9ana" + + "lyticsadmin.googleapis.com/EnhancedMeasu" + + "rementSettings\"\311\001\n(UpdateEnhancedMeasure" + + "mentSettingsRequest\022g\n\035enhanced_measurem" + + "ent_settings\030\001 \001(\0132;.google.analytics.ad" + + "min.v1alpha.EnhancedMeasurementSettingsB" + + "\003\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.proto" + + "buf.FieldMaskB\003\340A\002\"l\n\037GetDataRedactionSe" + + "ttingsRequest\022I\n\004name\030\001 \001(\tB;\340A\002\372A5\n3ana" + + "lyticsadmin.googleapis.com/DataRedaction" + + "Settings\"\267\001\n\"UpdateDataRedactionSettings" + + "Request\022[\n\027data_redaction_settings\030\001 \001(\013" + + "25.google.analytics.admin.v1alpha.DataRe" + + "dactionSettingsB\003\340A\002\0224\n\013update_mask\030\002 \001(" + + "\0132\032.google.protobuf.FieldMaskB\003\340A\002\"\245\001\n\030C" + + "reateAdSenseLinkRequest\022A\n\006parent\030\001 \001(\tB" + + "1\340A\002\372A+\022)analyticsadmin.googleapis.com/A" + + "dSenseLink\022F\n\014adsense_link\030\002 \001(\0132+.googl" + + "e.analytics.admin.v1alpha.AdSenseLinkB\003\340" + + "A\002\"X\n\025GetAdSenseLinkRequest\022?\n\004name\030\001 \001(" + + "\tB1\340A\002\372A+\n)analyticsadmin.googleapis.com" + + "/AdSenseLink\"[\n\030DeleteAdSenseLinkRequest" + + "\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)analyticsadmin.g" + + "oogleapis.com/AdSenseLink\"\203\001\n\027ListAdSens" + + "eLinksRequest\022A\n\006parent\030\001 \001(\tB1\340A\002\372A+\022)a" + + "nalyticsadmin.googleapis.com/AdSenseLink" + + "\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"" + + "w\n\030ListAdSenseLinksResponse\022B\n\radsense_l" + + "inks\030\001 \003(\0132+.google.analytics.admin.v1al" + + "pha.AdSenseLink\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\266\001\n\034CreateEventCreateRuleRequest\022E\n\006par" + + "ent\030\001 \001(\tB5\340A\002\372A/\022-analyticsadmin.google" + + "apis.com/EventCreateRule\022O\n\021event_create" + + "_rule\030\002 \001(\0132/.google.analytics.admin.v1a" + + "lpha.EventCreateRuleB\003\340A\002\"\245\001\n\034UpdateEven" + + "tCreateRuleRequest\022O\n\021event_create_rule\030" + + "\001 \001(\0132/.google.analytics.admin.v1alpha.E" + + "ventCreateRuleB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\"c\n\034Del" + + "eteEventCreateRuleRequest\022C\n\004name\030\001 \001(\tB" + + "5\340A\002\372A/\n-analyticsadmin.googleapis.com/E" + + "ventCreateRule\"`\n\031GetEventCreateRuleRequ" + + "est\022C\n\004name\030\001 \001(\tB5\340A\002\372A/\n-analyticsadmi" + + "n.googleapis.com/EventCreateRule\"\213\001\n\033Lis" + + "tEventCreateRulesRequest\022E\n\006parent\030\001 \001(\t" + + "B5\340A\002\372A/\022-analyticsadmin.googleapis.com/" + + "EventCreateRule\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npa" + + "ge_token\030\003 \001(\t\"\204\001\n\034ListEventCreateRulesR" + + "esponse\022K\n\022event_create_rules\030\001 \003(\0132/.go" + + "ogle.analytics.admin.v1alpha.EventCreate" + + "Rule\022\027\n\017next_page_token\030\002 \001(\t\"\256\001\n\032Create" + + "EventEditRuleRequest\022C\n\006parent\030\001 \001(\tB3\340A" + + "\002\372A-\022+analyticsadmin.googleapis.com/Even" + + "tEditRule\022K\n\017event_edit_rule\030\002 \001(\0132-.goo" + + "gle.analytics.admin.v1alpha.EventEditRul" + + "eB\003\340A\002\"\237\001\n\032UpdateEventEditRuleRequest\022K\n" + + "\017event_edit_rule\030\001 \001(\0132-.google.analytic" + + "s.admin.v1alpha.EventEditRuleB\003\340A\002\0224\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\002\"_\n\032DeleteEventEditRuleRequest\022A" + + "\n\004name\030\001 \001(\tB3\340A\002\372A-\n+analyticsadmin.goo" + + "gleapis.com/EventEditRule\"\\\n\027GetEventEdi" + + "tRuleRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+anal" + + "yticsadmin.googleapis.com/EventEditRule\"" + + "\221\001\n\031ListEventEditRulesRequest\022C\n\006parent\030" + + "\001 \001(\tB3\340A\002\372A-\022+analyticsadmin.googleapis" + + ".com/EventEditRule\022\026\n\tpage_size\030\002 \001(\005B\003\340" + + "A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"~\n\032ListEvent" + + "EditRulesResponse\022G\n\020event_edit_rules\030\001 " + + "\003(\0132-.google.analytics.admin.v1alpha.Eve" + + "ntEditRule\022\027\n\017next_page_token\030\002 \001(\t\"\202\001\n\034" + + "ReorderEventEditRulesRequest\022C\n\006parent\030\001" + + " \001(\tB3\340A\002\372A-\022+analyticsadmin.googleapis." + + "com/EventEditRule\022\035\n\020event_edit_rules\030\002 " + + "\003(\tB\003\340A\002\"\205\001\n\033CreateRollupPropertyRequest" + + "\022F\n\017rollup_property\030\001 \001(\0132(.google.analy" + + "tics.admin.v1alpha.PropertyB\003\340A\002\022\036\n\021sour" + + "ce_properties\030\002 \003(\tB\003\340A\001\"\301\001\n\034CreateRollu" + + "pPropertyResponse\022A\n\017rollup_property\030\001 \001" + + "(\0132(.google.analytics.admin.v1alpha.Prop" + + "erty\022^\n\034rollup_property_source_links\030\002 \003" + + "(\01328.google.analytics.admin.v1alpha.Roll" + + "upPropertySourceLink\"r\n\"GetRollupPropert" + + "ySourceLinkRequest\022L\n\004name\030\001 \001(\tB>\340A\002\372A8" + + "\n6analyticsadmin.googleapis.com/RollupPr" + + "opertySourceLink\"\247\001\n$ListRollupPropertyS" + + "ourceLinksRequest\022N\n\006parent\030\001 \001(\tB>\340A\002\372A" + + "8\0226analyticsadmin.googleapis.com/RollupP" + + "ropertySourceLink\022\026\n\tpage_size\030\002 \001(\005B\003\340A" + + "\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\240\001\n%ListRollu" + + "pPropertySourceLinksResponse\022^\n\034rollup_p" + + "roperty_source_links\030\001 \003(\01328.google.anal" + + "ytics.admin.v1alpha.RollupPropertySource" + + "Link\022\027\n\017next_page_token\030\002 \001(\t\"\333\001\n%Create" + + "RollupPropertySourceLinkRequest\022N\n\006paren" + + "t\030\001 \001(\tB>\340A\002\372A8\0226analyticsadmin.googleap" + + "is.com/RollupPropertySourceLink\022b\n\033rollu" + + "p_property_source_link\030\002 \001(\01328.google.an" + + "alytics.admin.v1alpha.RollupPropertySour" + + "ceLinkB\003\340A\002\"u\n%DeleteRollupPropertySourc" + + "eLinkRequest\022L\n\004name\030\001 \001(\tB>\340A\002\372A8\n6anal" + + "yticsadmin.googleapis.com/RollupProperty" + + "SourceLink\"\313\002\n\033ProvisionSubpropertyReque" + + "st\022B\n\013subproperty\030\002 \001(\0132(.google.analyti" + + "cs.admin.v1alpha.PropertyB\003\340A\002\022]\n\030subpro" + + "perty_event_filter\030\003 \001(\01326.google.analyt" + + "ics.admin.v1alpha.SubpropertyEventFilter" + + "B\003\340A\001\022\210\001\n0custom_dimension_and_metric_sy" + + "nchronization_mode\030\004 \001(\0162I.google.analyt" + + "ics.admin.v1alpha.SubpropertySyncConfig." + + "SynchronizationModeB\003\340A\001\"\267\001\n\034ProvisionSu" + + "bpropertyResponse\022=\n\013subproperty\030\001 \001(\0132(" + + ".google.analytics.admin.v1alpha.Property" + + "\022X\n\030subproperty_event_filter\030\002 \001(\01326.goo" + + "gle.analytics.admin.v1alpha.SubpropertyE" + + "ventFilter\"\322\001\n#CreateSubpropertyEventFil" + + "terRequest\022L\n\006parent\030\001 \001(\tB<\340A\002\372A6\0224anal" + + "yticsadmin.googleapis.com/SubpropertyEve" + + "ntFilter\022]\n\030subproperty_event_filter\030\002 \001" + + "(\01326.google.analytics.admin.v1alpha.Subp" + + "ropertyEventFilterB\003\340A\002\"n\n GetSubpropert" + + "yEventFilterRequest\022J\n\004name\030\001 \001(\tB<\340A\002\372A" + + "6\n4analyticsadmin.googleapis.com/Subprop" + + "ertyEventFilter\"\243\001\n\"ListSubpropertyEvent" + + "FiltersRequest\022L\n\006parent\030\001 \001(\tB<\340A\002\372A6\0224" + + "analyticsadmin.googleapis.com/Subpropert" + + "yEventFilter\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\"\231\001\n#ListSubpropert" + + "yEventFiltersResponse\022Y\n\031subproperty_eve" + + "nt_filters\030\001 \003(\01326.google.analytics.admi" + + "n.v1alpha.SubpropertyEventFilter\022\027\n\017next" + + "_page_token\030\002 \001(\t\"\272\001\n#UpdateSubpropertyE" + + "ventFilterRequest\022]\n\030subproperty_event_f" + + "ilter\030\001 \001(\01326.google.analytics.admin.v1a" + + "lpha.SubpropertyEventFilterB\003\340A\002\0224\n\013upda" + + "te_mask\030\002 \001(\0132\032.google.protobuf.FieldMas" + + "kB\003\340A\002\"q\n#DeleteSubpropertyEventFilterRe" + + "quest\022J\n\004name\030\001 \001(\tB<\340A\002\372A6\n4analyticsad" + + "min.googleapis.com/SubpropertyEventFilte" + + "r\"\326\001\n$CreateReportingDataAnnotationReque" + + "st\022M\n\006parent\030\001 \001(\tB=\340A\002\372A7\0225analyticsadm" + + "in.googleapis.com/ReportingDataAnnotatio" + + "n\022_\n\031reporting_data_annotation\030\002 \001(\01327.g" + + "oogle.analytics.admin.v1alpha.ReportingD" + + "ataAnnotationB\003\340A\002\"p\n!GetReportingDataAn" + + "notationRequest\022K\n\004name\030\001 \001(\tB=\340A\002\372A7\n5a" + + "nalyticsadmin.googleapis.com/ReportingDa" + + "taAnnotation\"\272\001\n#ListReportingDataAnnota" + + "tionsRequest\022M\n\006parent\030\001 \001(\tB=\340A\002\372A7\0225an" + + "alyticsadmin.googleapis.com/ReportingDat" + + "aAnnotation\022\023\n\006filter\030\002 \001(\tB\003\340A\001\022\026\n\tpage" + + "_size\030\003 \001(\005B\003\340A\001\022\027\n\npage_token\030\004 \001(\tB\003\340A" + + "\001\"\234\001\n$ListReportingDataAnnotationsRespon" + + "se\022[\n\032reporting_data_annotations\030\001 \003(\01327" + + ".google.analytics.admin.v1alpha.Reportin" + + "gDataAnnotation\022\027\n\017next_page_token\030\002 \001(\t" + + "\"\275\001\n$UpdateReportingDataAnnotationReques" + + "t\022_\n\031reporting_data_annotation\030\001 \001(\01327.g" + + "oogle.analytics.admin.v1alpha.ReportingD" + + "ataAnnotationB\003\340A\002\0224\n\013update_mask\030\002 \001(\0132" + + "\032.google.protobuf.FieldMaskB\003\340A\001\"s\n$Dele" + + "teReportingDataAnnotationRequest\022K\n\004name" + + "\030\001 \001(\tB=\340A\002\372A7\n5analyticsadmin.googleapi" + + "s.com/ReportingDataAnnotation\"\302\001\n\031Submit" + + "UserDeletionRequest\022\021\n\007user_id\030\002 \001(\tH\000\022\023" + + "\n\tclient_id\030\003 \001(\tH\000\022\031\n\017app_instance_id\030\004" + + " \001(\tH\000\022\034\n\022user_provided_data\030\005 \001(\tH\000\022<\n\004" + + "name\030\001 \001(\tB.\340A\002\372A(\n&analyticsadmin.googl" + + "eapis.com/PropertyB\006\n\004user\"W\n\032SubmitUser" + + "DeletionResponse\0229\n\025deletion_request_tim" + + "e\030\001 \001(\0132\032.google.protobuf.Timestamp\"l\n\037G" + + "etSubpropertySyncConfigRequest\022I\n\004name\030\001" + + " \001(\tB;\340A\002\372A5\n3analyticsadmin.googleapis." + + "com/SubpropertySyncConfig\"\241\001\n!ListSubpro" + + "pertySyncConfigsRequest\022K\n\006parent\030\001 \001(\tB" + + ";\340A\002\372A5\0223analyticsadmin.googleapis.com/S" + + "ubpropertySyncConfig\022\026\n\tpage_size\030\002 \001(\005B" + + "\003\340A\001\022\027\n\npage_token\030\003 \001(\tB\003\340A\001\"\226\001\n\"ListSu" + + "bpropertySyncConfigsResponse\022W\n\030subprope" + + "rty_sync_configs\030\001 \003(\01325.google.analytic" + + "s.admin.v1alpha.SubpropertySyncConfig\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\267\001\n\"UpdateSubprop" + + "ertySyncConfigRequest\022[\n\027subproperty_syn" + + "c_config\030\001 \001(\01325.google.analytics.admin." + + "v1alpha.SubpropertySyncConfigB\003\340A\002\0224\n\013up" + + "date_mask\030\002 \001(\0132\032.google.protobuf.FieldM" + + "askB\003\340A\001\"t\n#GetReportingIdentitySettings" + + "Request\022M\n\004name\030\001 \001(\tB?\340A\002\372A9\n7analytics" + + "admin.googleapis.com/ReportingIdentitySe" + + "ttings\"r\n\"GetUserProvidedDataSettingsReq" + + "uest\022L\n\004name\030\001 \001(\tB>\340A\002\372A8\n6analyticsadm" + + "in.googleapis.com/UserProvidedDataSettin" + + "gs2\210\231\002\n\025AnalyticsAdminService\022\223\001\n\nGetAcc" + + "ount\0221.google.analytics.admin.v1alpha.Ge" + + "tAccountRequest\032\'.google.analytics.admin" + + ".v1alpha.Account\")\332A\004name\202\323\344\223\002\034\022\032/v1alph" + + "a/{name=accounts/*}\022\224\001\n\014ListAccounts\0223.g" + + "oogle.analytics.admin.v1alpha.ListAccoun" + + "tsRequest\0324.google.analytics.admin.v1alp" + + "ha.ListAccountsResponse\"\031\202\323\344\223\002\023\022\021/v1alph" + + "a/accounts\022\210\001\n\rDeleteAccount\0224.google.an" + + "alytics.admin.v1alpha.DeleteAccountReque" + + "st\032\026.google.protobuf.Empty\")\332A\004name\202\323\344\223\002" + + "\034*\032/v1alpha/{name=accounts/*}\022\271\001\n\rUpdate" + + "Account\0224.google.analytics.admin.v1alpha" + + ".UpdateAccountRequest\032\'.google.analytics" + + ".admin.v1alpha.Account\"I\332A\023account,updat" + + "e_mask\202\323\344\223\002-2\"/v1alpha/{account.name=acc" + + "ounts/*}:\007account\022\314\001\n\026ProvisionAccountTi" + + "cket\022=.google.analytics.admin.v1alpha.Pr" + + "ovisionAccountTicketRequest\032>.google.ana" + + "lytics.admin.v1alpha.ProvisionAccountTic" + + "ketResponse\"3\202\323\344\223\002-\"(/v1alpha/accounts:p" + + "rovisionAccountTicket:\001*\022\264\001\n\024ListAccount" + + "Summaries\022;.google.analytics.admin.v1alp" + + "ha.ListAccountSummariesRequest\032<.google." + + "analytics.admin.v1alpha.ListAccountSumma" + + "riesResponse\"!\202\323\344\223\002\033\022\031/v1alpha/accountSu" + + "mmaries\022\230\001\n\013GetProperty\0222.google.analyti" + + "cs.admin.v1alpha.GetPropertyRequest\032(.go" + + "ogle.analytics.admin.v1alpha.Property\"+\332" + + "A\004name\202\323\344\223\002\036\022\034/v1alpha/{name=properties/" + + "*}\022\234\001\n\016ListProperties\0225.google.analytics" + + ".admin.v1alpha.ListPropertiesRequest\0326.g" + + "oogle.analytics.admin.v1alpha.ListProper" + + "tiesResponse\"\033\202\323\344\223\002\025\022\023/v1alpha/propertie" + + "s\022\243\001\n\016CreateProperty\0225.google.analytics." + + "admin.v1alpha.CreatePropertyRequest\032(.go" + + "ogle.analytics.admin.v1alpha.Property\"0\332" + + "A\010property\202\323\344\223\002\037\"\023/v1alpha/properties:\010p" + + "roperty\022\236\001\n\016DeleteProperty\0225.google.anal" + + "ytics.admin.v1alpha.DeletePropertyReques" + + "t\032(.google.analytics.admin.v1alpha.Prope" + + "rty\"+\332A\004name\202\323\344\223\002\036*\034/v1alpha/{name=prope" + + "rties/*}\022\301\001\n\016UpdateProperty\0225.google.ana" + + "lytics.admin.v1alpha.UpdatePropertyReque" + + "st\032(.google.analytics.admin.v1alpha.Prop" + + "erty\"N\332A\024property,update_mask\202\323\344\223\00212%/v1" + + "alpha/{property.name=properties/*}:\010prop" + + "erty\022\331\001\n\022CreateFirebaseLink\0229.google.ana" + + "lytics.admin.v1alpha.CreateFirebaseLinkR" + + "equest\032,.google.analytics.admin.v1alpha." + + "FirebaseLink\"Z\332A\024parent,firebase_link\202\323\344" + + "\223\002=\",/v1alpha/{parent=properties/*}/fire" + + "baseLinks:\rfirebase_link\022\244\001\n\022DeleteFireb" + + "aseLink\0229.google.analytics.admin.v1alpha" + + ".DeleteFirebaseLinkRequest\032\026.google.prot" + + "obuf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{nam" + + "e=properties/*/firebaseLinks/*}\022\307\001\n\021List" + + "FirebaseLinks\0228.google.analytics.admin.v" + + "1alpha.ListFirebaseLinksRequest\0329.google" + + ".analytics.admin.v1alpha.ListFirebaseLin" + + "ksResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{p" + + "arent=properties/*}/firebaseLinks\022\303\001\n\020Ge" + + "tGlobalSiteTag\0227.google.analytics.admin." + + "v1alpha.GetGlobalSiteTagRequest\032-.google" + + ".analytics.admin.v1alpha.GlobalSiteTag\"G" + + "\332A\004name\202\323\344\223\002:\0228/v1alpha/{name=properties" + + "/*/dataStreams/*/globalSiteTag}\022\341\001\n\023Crea" + + "teGoogleAdsLink\022:.google.analytics.admin" + + ".v1alpha.CreateGoogleAdsLinkRequest\032-.go" + + "ogle.analytics.admin.v1alpha.GoogleAdsLi" + + "nk\"_\332A\026parent,google_ads_link\202\323\344\223\002@\"-/v1" + + "alpha/{parent=properties/*}/googleAdsLin", + "ks:\017google_ads_link\022\366\001\n\023UpdateGoogleAdsL" + + "ink\022:.google.analytics.admin.v1alpha.Upd" + + "ateGoogleAdsLinkRequest\032-.google.analyti" + + "cs.admin.v1alpha.GoogleAdsLink\"t\332A\033googl" + + "e_ads_link,update_mask\202\323\344\223\002P2=/v1alpha/{" + + "google_ads_link.name=properties/*/google" + + "AdsLinks/*}:\017google_ads_link\022\247\001\n\023DeleteG" + + "oogleAdsLink\022:.google.analytics.admin.v1" + + "alpha.DeleteGoogleAdsLinkRequest\032\026.googl" + + "e.protobuf.Empty\"<\332A\004name\202\323\344\223\002/*-/v1alph" + + "a/{name=properties/*/googleAdsLinks/*}\022\313" + + "\001\n\022ListGoogleAdsLinks\0229.google.analytics" + + ".admin.v1alpha.ListGoogleAdsLinksRequest" + + "\032:.google.analytics.admin.v1alpha.ListGo" + + "ogleAdsLinksResponse\">\332A\006parent\202\323\344\223\002/\022-/" + + "v1alpha/{parent=properties/*}/googleAdsL" + + "inks\022\313\001\n\026GetDataSharingSettings\022=.google" + + ".analytics.admin.v1alpha.GetDataSharingS" + + "ettingsRequest\0323.google.analytics.admin." + + "v1alpha.DataSharingSettings\"=\332A\004name\202\323\344\223" + + "\0020\022./v1alpha/{name=accounts/*/dataSharin" + + "gSettings}\022\366\001\n\034GetMeasurementProtocolSec" + + "ret\022C.google.analytics.admin.v1alpha.Get" + + "MeasurementProtocolSecretRequest\0329.googl" + + "e.analytics.admin.v1alpha.MeasurementPro" + + "tocolSecret\"V\332A\004name\202\323\344\223\002I\022G/v1alpha/{na" + + "me=properties/*/dataStreams/*/measuremen" + + "tProtocolSecrets/*}\022\211\002\n\036ListMeasurementP" + + "rotocolSecrets\022E.google.analytics.admin." + + "v1alpha.ListMeasurementProtocolSecretsRe" + + "quest\032F.google.analytics.admin.v1alpha.L" + + "istMeasurementProtocolSecretsResponse\"X\332" + + "A\006parent\202\323\344\223\002I\022G/v1alpha/{parent=propert" + + "ies/*/dataStreams/*}/measurementProtocol" + + "Secrets\022\270\002\n\037CreateMeasurementProtocolSec" + + "ret\022F.google.analytics.admin.v1alpha.Cre" + + "ateMeasurementProtocolSecretRequest\0329.go" + + "ogle.analytics.admin.v1alpha.Measurement" + + "ProtocolSecret\"\221\001\332A\"parent,measurement_p" + + "rotocol_secret\202\323\344\223\002f\"G/v1alpha/{parent=p" + + "roperties/*/dataStreams/*}/measurementPr" + + "otocolSecrets:\033measurement_protocol_secr" + + "et\022\331\001\n\037DeleteMeasurementProtocolSecret\022F" + + ".google.analytics.admin.v1alpha.DeleteMe" + + "asurementProtocolSecretRequest\032\026.google." + + "protobuf.Empty\"V\332A\004name\202\323\344\223\002I*G/v1alpha/" + + "{name=properties/*/dataStreams/*/measure" + + "mentProtocolSecrets/*}\022\332\002\n\037UpdateMeasure" + + "mentProtocolSecret\022F.google.analytics.ad" + + "min.v1alpha.UpdateMeasurementProtocolSec" + + "retRequest\0329.google.analytics.admin.v1al" + + "pha.MeasurementProtocolSecret\"\263\001\332A\'measu" + + "rement_protocol_secret,update_mask\202\323\344\223\002\202" + + "\0012c/v1alpha/{measurement_protocol_secret" + + ".name=properties/*/dataStreams/*/measure" + + "mentProtocolSecrets/*}:\033measurement_prot" + + "ocol_secret\022\367\001\n\035AcknowledgeUserDataColle" + + "ction\022D.google.analytics.admin.v1alpha.A" + + "cknowledgeUserDataCollectionRequest\032E.go" + + "ogle.analytics.admin.v1alpha.Acknowledge" + + "UserDataCollectionResponse\"I\202\323\344\223\002C\">/v1a" + + "lpha/{property=properties/*}:acknowledge" + + "UserDataCollection:\001*\022\221\002\n#GetSKAdNetwork" + + "ConversionValueSchema\022J.google.analytics" + + ".admin.v1alpha.GetSKAdNetworkConversionV" + + "alueSchemaRequest\032@.google.analytics.adm" + + "in.v1alpha.SKAdNetworkConversionValueSch" + + "ema\"\\\332A\004name\202\323\344\223\002O\022M/v1alpha/{name=prope" + + "rties/*/dataStreams/*/sKAdNetworkConvers" + + "ionValueSchema/*}\022\343\002\n&CreateSKAdNetworkC" + + "onversionValueSchema\022M.google.analytics." + + "admin.v1alpha.CreateSKAdNetworkConversio" + + "nValueSchemaRequest\032@.google.analytics.a" + + "dmin.v1alpha.SKAdNetworkConversionValueS" + + "chema\"\247\001\332A*parent,skadnetwork_conversion" + + "_value_schema\202\323\344\223\002t\"M/v1alpha/{parent=pr" + + "operties/*/dataStreams/*}/sKAdNetworkCon" + + "versionValueSchema:#skadnetwork_conversi" + + "on_value_schema\022\355\001\n&DeleteSKAdNetworkCon" + + "versionValueSchema\022M.google.analytics.ad" + + "min.v1alpha.DeleteSKAdNetworkConversionV" + + "alueSchemaRequest\032\026.google.protobuf.Empt" + + "y\"\\\332A\004name\202\323\344\223\002O*M/v1alpha/{name=propert" + + "ies/*/dataStreams/*/sKAdNetworkConversio" + + "nValueSchema/*}\022\215\003\n&UpdateSKAdNetworkCon" + + "versionValueSchema\022M.google.analytics.ad" + + "min.v1alpha.UpdateSKAdNetworkConversionV" + + "alueSchemaRequest\032@.google.analytics.adm" + + "in.v1alpha.SKAdNetworkConversionValueSch" + + "ema\"\321\001\332A/skadnetwork_conversion_value_sc" + + "hema,update_mask\202\323\344\223\002\230\0012q/v1alpha/{skadn" + + "etwork_conversion_value_schema.name=prop" + + "erties/*/dataStreams/*/sKAdNetworkConver" + + "sionValueSchema/*}:#skadnetwork_conversi" + + "on_value_schema\022\244\002\n%ListSKAdNetworkConve" + + "rsionValueSchemas\022L.google.analytics.adm" + + "in.v1alpha.ListSKAdNetworkConversionValu" + + "eSchemasRequest\032M.google.analytics.admin" + + ".v1alpha.ListSKAdNetworkConversionValueS" + + "chemasResponse\"^\332A\006parent\202\323\344\223\002O\022M/v1alph" + + "a/{parent=properties/*/dataStreams/*}/sK" + + "AdNetworkConversionValueSchema\022\344\001\n\031Searc" + + "hChangeHistoryEvents\022@.google.analytics." + + "admin.v1alpha.SearchChangeHistoryEventsR" + + "equest\032A.google.analytics.admin.v1alpha." + + "SearchChangeHistoryEventsResponse\"B\202\323\344\223\002" + + "<\"7/v1alpha/{account=accounts/*}:searchC" + + "hangeHistoryEvents:\001*\022\325\001\n\030GetGoogleSigna" + + "lsSettings\022?.google.analytics.admin.v1al" + + "pha.GetGoogleSignalsSettingsRequest\0325.go" + + "ogle.analytics.admin.v1alpha.GoogleSigna" + + "lsSettings\"A\332A\004name\202\323\344\223\0024\0222/v1alpha/{nam" + + "e=properties/*/googleSignalsSettings}\022\254\002" + + "\n\033UpdateGoogleSignalsSettings\022B.google.a" + + "nalytics.admin.v1alpha.UpdateGoogleSigna" + + "lsSettingsRequest\0325.google.analytics.adm" + + "in.v1alpha.GoogleSignalsSettings\"\221\001\332A#go" + + "ogle_signals_settings,update_mask\202\323\344\223\002e2" + + "J/v1alpha/{google_signals_settings.name=" + + "properties/*/googleSignalsSettings}:\027goo" + + "gle_signals_settings\022\356\001\n\025CreateConversio" + + "nEvent\022<.google.analytics.admin.v1alpha." + + "CreateConversionEventRequest\032/.google.an" + + "alytics.admin.v1alpha.ConversionEvent\"f\210" + + "\002\001\332A\027parent,conversion_event\202\323\344\223\002C\"//v1a" + + "lpha/{parent=properties/*}/conversionEve" + + "nts:\020conversion_event\022\204\002\n\025UpdateConversi" + + "onEvent\022<.google.analytics.admin.v1alpha" + + ".UpdateConversionEventRequest\032/.google.a" + + "nalytics.admin.v1alpha.ConversionEvent\"|" + + "\210\002\001\332A\034conversion_event,update_mask\202\323\344\223\002T" + + "2@/v1alpha/{conversion_event.name=proper" + + "ties/*/conversionEvents/*}:\020conversion_e" + + "vent\022\303\001\n\022GetConversionEvent\0229.google.ana" + + "lytics.admin.v1alpha.GetConversionEventR" + + "equest\032/.google.analytics.admin.v1alpha." + + "ConversionEvent\"A\210\002\001\332A\004name\202\323\344\223\0021\022//v1al" + + "pha/{name=properties/*/conversionEvents/" + + "*}\022\260\001\n\025DeleteConversionEvent\022<.google.an" + + "alytics.admin.v1alpha.DeleteConversionEv" + + "entRequest\032\026.google.protobuf.Empty\"A\210\002\001\332" + + "A\004name\202\323\344\223\0021*//v1alpha/{name=properties/" + + "*/conversionEvents/*}\022\326\001\n\024ListConversion" + + "Events\022;.google.analytics.admin.v1alpha." + + "ListConversionEventsRequest\032<.google.ana" + + "lytics.admin.v1alpha.ListConversionEvent" + + "sResponse\"C\210\002\001\332A\006parent\202\323\344\223\0021\022//v1alpha/" + + "{parent=properties/*}/conversionEvents\022\301" + + "\001\n\016CreateKeyEvent\0225.google.analytics.adm" + + "in.v1alpha.CreateKeyEventRequest\032(.googl" + + "e.analytics.admin.v1alpha.KeyEvent\"N\332A\020p" + + "arent,key_event\202\323\344\223\0025\"(/v1alpha/{parent=" + + "properties/*}/keyEvents:\tkey_event\022\320\001\n\016U" + + "pdateKeyEvent\0225.google.analytics.admin.v" + + "1alpha.UpdateKeyEventRequest\032(.google.an" + + "alytics.admin.v1alpha.KeyEvent\"]\332A\025key_e" + + "vent,update_mask\202\323\344\223\002?22/v1alpha/{key_ev" + + "ent.name=properties/*/keyEvents/*}:\tkey_" + + "event\022\244\001\n\013GetKeyEvent\0222.google.analytics" + + ".admin.v1alpha.GetKeyEventRequest\032(.goog" + + "le.analytics.admin.v1alpha.KeyEvent\"7\332A\004" + + "name\202\323\344\223\002*\022(/v1alpha/{name=properties/*/" + + "keyEvents/*}\022\230\001\n\016DeleteKeyEvent\0225.google" + + ".analytics.admin.v1alpha.DeleteKeyEventR" + + "equest\032\026.google.protobuf.Empty\"7\332A\004name\202" + + "\323\344\223\002**(/v1alpha/{name=properties/*/keyEv" + + "ents/*}\022\267\001\n\rListKeyEvents\0224.google.analy" + + "tics.admin.v1alpha.ListKeyEventsRequest\032" + + "5.google.analytics.admin.v1alpha.ListKey" + + "EventsResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alph" + + "a/{parent=properties/*}/keyEvents\022\370\001\n Ge" + + "tDisplayVideo360AdvertiserLink\022G.google." + + "analytics.admin.v1alpha.GetDisplayVideo3" + + "60AdvertiserLinkRequest\032=.google.analyti" + + "cs.admin.v1alpha.DisplayVideo360Advertis" + + "erLink\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=pr" + "operties/*/displayVideo360AdvertiserLink" - + "s/*}\022\356\002\n#UpdateDisplayVideo360Advertiser" - + "Link\022J.google.analytics.admin.v1alpha.Up" - + "dateDisplayVideo360AdvertiserLinkRequest" - + "\032=.google.analytics.admin.v1alpha.Displa" - + "yVideo360AdvertiserLink\"\273\001\332A-display_vid" - + "eo_360_advertiser_link,update_mask\202\323\344\223\002\204" - + "\0012_/v1alpha/{display_video_360_advertise" - + "r_link.name=properties/*/displayVideo360" - + "AdvertiserLinks/*}:!display_video_360_ad" - + "vertiser_link\022\230\002\n(GetDisplayVideo360Adve" - + "rtiserLinkProposal\022O.google.analytics.ad" - + "min.v1alpha.GetDisplayVideo360Advertiser" - + "LinkProposalRequest\032E.google.analytics.a" - + "dmin.v1alpha.DisplayVideo360AdvertiserLi" - + "nkProposal\"T\332A\004name\202\323\344\223\002G\022E/v1alpha/{nam" - + "e=properties/*/displayVideo360Advertiser" - + "LinkProposals/*}\022\253\002\n*ListDisplayVideo360" - + "AdvertiserLinkProposals\022Q.google.analyti" - + "cs.admin.v1alpha.ListDisplayVideo360Adve" - + "rtiserLinkProposalsRequest\032R.google.anal" - + "ytics.admin.v1alpha.ListDisplayVideo360A" - + "dvertiserLinkProposalsResponse\"V\332A\006paren" - + "t\202\323\344\223\002G\022E/v1alpha/{parent=properties/*}/" - + "displayVideo360AdvertiserLinkProposals\022\370" - + "\002\n+CreateDisplayVideo360AdvertiserLinkPr" - + "oposal\022R.google.analytics.admin.v1alpha." - + "CreateDisplayVideo360AdvertiserLinkPropo" - + "salRequest\032E.google.analytics.admin.v1al" - + "pha.DisplayVideo360AdvertiserLinkProposa" - + "l\"\255\001\332A1parent,display_video_360_advertis" - + "er_link_proposal\202\323\344\223\002s\"E/v1alpha/{parent" - + "=properties/*}/displayVideo360Advertiser" - + "LinkProposals:*display_video_360_adverti" - + "ser_link_proposal\022\357\001\n+DeleteDisplayVideo" - + "360AdvertiserLinkProposal\022R.google.analy" - + "tics.admin.v1alpha.DeleteDisplayVideo360" - + "AdvertiserLinkProposalRequest\032\026.google.p" - + "rotobuf.Empty\"T\332A\004name\202\323\344\223\002G*E/v1alpha/{" - + "name=properties/*/displayVideo360Adverti" - + "serLinkProposals/*}\022\263\002\n,ApproveDisplayVi" - + "deo360AdvertiserLinkProposal\022S.google.an" - + "alytics.admin.v1alpha.ApproveDisplayVide" - + "o360AdvertiserLinkProposalRequest\032T.goog" - + "le.analytics.admin.v1alpha.ApproveDispla" - + "yVideo360AdvertiserLinkProposalResponse\"" - + "X\202\323\344\223\002R\"M/v1alpha/{name=properties/*/dis" - + "playVideo360AdvertiserLinkProposals/*}:a" - + "pprove:\001*\022\241\002\n+CancelDisplayVideo360Adver" - + "tiserLinkProposal\022R.google.analytics.adm" - + "in.v1alpha.CancelDisplayVideo360Advertis" - + "erLinkProposalRequest\032E.google.analytics" - + ".admin.v1alpha.DisplayVideo360Advertiser" - + "LinkProposal\"W\202\323\344\223\002Q\"L/v1alpha/{name=pro" - + "perties/*/displayVideo360AdvertiserLinkP" - + "roposals/*}:cancel:\001*\022\353\001\n\025CreateCustomDi" - + "mension\022<.google.analytics.admin.v1alpha" - + ".CreateCustomDimensionRequest\032/.google.a" - + "nalytics.admin.v1alpha.CustomDimension\"c" - + "\332A\027parent,custom_dimension\202\323\344\223\002C\"//v1alp" - + "ha/{parent=properties/*}/customDimension" - + "s:\020custom_dimension\022\201\002\n\025UpdateCustomDime" - + "nsion\022<.google.analytics.admin.v1alpha.U" - + "pdateCustomDimensionRequest\032/.google.ana" - + "lytics.admin.v1alpha.CustomDimension\"y\332A" - + "\034custom_dimension,update_mask\202\323\344\223\002T2@/v1" - + "alpha/{custom_dimension.name=properties/" - + "*/customDimensions/*}:\020custom_dimension\022" - + "\323\001\n\024ListCustomDimensions\022;.google.analyt" - + "ics.admin.v1alpha.ListCustomDimensionsRe" - + "quest\032<.google.analytics.admin.v1alpha.L" - + "istCustomDimensionsResponse\"@\332A\006parent\202\323" - + "\344\223\0021\022//v1alpha/{parent=properties/*}/cus" - + "tomDimensions\022\272\001\n\026ArchiveCustomDimension" - + "\022=.google.analytics.admin.v1alpha.Archiv" - + "eCustomDimensionRequest\032\026.google.protobu" - + "f.Empty\"I\332A\004name\202\323\344\223\002<\"7/v1alpha/{name=p" - + "roperties/*/customDimensions/*}:archive:" - + "\001*\022\300\001\n\022GetCustomDimension\0229.google.analy" - + "tics.admin.v1alpha.GetCustomDimensionReq" + + "s/*}\022\213\002\n\"ListDisplayVideo360AdvertiserLi" + + "nks\022I.google.analytics.admin.v1alpha.Lis" + + "tDisplayVideo360AdvertiserLinksRequest\032J" + + ".google.analytics.admin.v1alpha.ListDisp" + + "layVideo360AdvertiserLinksResponse\"N\332A\006p" + + "arent\202\323\344\223\002?\022=/v1alpha/{parent=properties" + + "/*}/displayVideo360AdvertiserLinks\022\306\002\n#C" + + "reateDisplayVideo360AdvertiserLink\022J.goo" + + "gle.analytics.admin.v1alpha.CreateDispla" + + "yVideo360AdvertiserLinkRequest\032=.google." + + "analytics.admin.v1alpha.DisplayVideo360A" + + "dvertiserLink\"\223\001\332A(parent,display_video_" + + "360_advertiser_link\202\323\344\223\002b\"=/v1alpha/{par" + + "ent=properties/*}/displayVideo360Adverti" + + "serLinks:!display_video_360_advertiser_l" + + "ink\022\327\001\n#DeleteDisplayVideo360AdvertiserL" + + "ink\022J.google.analytics.admin.v1alpha.Del" + + "eteDisplayVideo360AdvertiserLinkRequest\032" + + "\026.google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=" + + "/v1alpha/{name=properties/*/displayVideo" + + "360AdvertiserLinks/*}\022\356\002\n#UpdateDisplayV" + + "ideo360AdvertiserLink\022J.google.analytics" + + ".admin.v1alpha.UpdateDisplayVideo360Adve" + + "rtiserLinkRequest\032=.google.analytics.adm" + + "in.v1alpha.DisplayVideo360AdvertiserLink" + + "\"\273\001\332A-display_video_360_advertiser_link," + + "update_mask\202\323\344\223\002\204\0012_/v1alpha/{display_vi" + + "deo_360_advertiser_link.name=properties/" + + "*/displayVideo360AdvertiserLinks/*}:!dis" + + "play_video_360_advertiser_link\022\230\002\n(GetDi" + + "splayVideo360AdvertiserLinkProposal\022O.go" + + "ogle.analytics.admin.v1alpha.GetDisplayV" + + "ideo360AdvertiserLinkProposalRequest\032E.g" + + "oogle.analytics.admin.v1alpha.DisplayVid" + + "eo360AdvertiserLinkProposal\"T\332A\004name\202\323\344\223" + + "\002G\022E/v1alpha/{name=properties/*/displayV" + + "ideo360AdvertiserLinkProposals/*}\022\253\002\n*Li" + + "stDisplayVideo360AdvertiserLinkProposals" + + "\022Q.google.analytics.admin.v1alpha.ListDi" + + "splayVideo360AdvertiserLinkProposalsRequ" + + "est\032R.google.analytics.admin.v1alpha.Lis" + + "tDisplayVideo360AdvertiserLinkProposalsR" + + "esponse\"V\332A\006parent\202\323\344\223\002G\022E/v1alpha/{pare" + + "nt=properties/*}/displayVideo360Advertis" + + "erLinkProposals\022\370\002\n+CreateDisplayVideo36" + + "0AdvertiserLinkProposal\022R.google.analyti" + + "cs.admin.v1alpha.CreateDisplayVideo360Ad" + + "vertiserLinkProposalRequest\032E.google.ana" + + "lytics.admin.v1alpha.DisplayVideo360Adve" + + "rtiserLinkProposal\"\255\001\332A1parent,display_v" + + "ideo_360_advertiser_link_proposal\202\323\344\223\002s\"" + + "E/v1alpha/{parent=properties/*}/displayV" + + "ideo360AdvertiserLinkProposals:*display_" + + "video_360_advertiser_link_proposal\022\357\001\n+D" + + "eleteDisplayVideo360AdvertiserLinkPropos" + + "al\022R.google.analytics.admin.v1alpha.Dele" + + "teDisplayVideo360AdvertiserLinkProposalR" + + "equest\032\026.google.protobuf.Empty\"T\332A\004name\202" + + "\323\344\223\002G*E/v1alpha/{name=properties/*/displ" + + "ayVideo360AdvertiserLinkProposals/*}\022\263\002\n" + + ",ApproveDisplayVideo360AdvertiserLinkPro" + + "posal\022S.google.analytics.admin.v1alpha.A" + + "pproveDisplayVideo360AdvertiserLinkPropo" + + "salRequest\032T.google.analytics.admin.v1al" + + "pha.ApproveDisplayVideo360AdvertiserLink" + + "ProposalResponse\"X\202\323\344\223\002R\"M/v1alpha/{name" + + "=properties/*/displayVideo360AdvertiserL" + + "inkProposals/*}:approve:\001*\022\241\002\n+CancelDis" + + "playVideo360AdvertiserLinkProposal\022R.goo" + + "gle.analytics.admin.v1alpha.CancelDispla" + + "yVideo360AdvertiserLinkProposalRequest\032E" + + ".google.analytics.admin.v1alpha.DisplayV" + + "ideo360AdvertiserLinkProposal\"W\202\323\344\223\002Q\"L/" + + "v1alpha/{name=properties/*/displayVideo3" + + "60AdvertiserLinkProposals/*}:cancel:\001*\022\353" + + "\001\n\025CreateCustomDimension\022<.google.analyt" + + "ics.admin.v1alpha.CreateCustomDimensionR" + + "equest\032/.google.analytics.admin.v1alpha." + + "CustomDimension\"c\332A\027parent,custom_dimens" + + "ion\202\323\344\223\002C\"//v1alpha/{parent=properties/*" + + "}/customDimensions:\020custom_dimension\022\201\002\n" + + "\025UpdateCustomDimension\022<.google.analytic" + + "s.admin.v1alpha.UpdateCustomDimensionReq" + "uest\032/.google.analytics.admin.v1alpha.Cu" - + "stomDimension\">\332A\004name\202\323\344\223\0021\022//v1alpha/{" - + "name=properties/*/customDimensions/*}\022\331\001" - + "\n\022CreateCustomMetric\0229.google.analytics." - + "admin.v1alpha.CreateCustomMetricRequest\032" - + ",.google.analytics.admin.v1alpha.CustomM" - + "etric\"Z\332A\024parent,custom_metric\202\323\344\223\002=\",/v" - + "1alpha/{parent=properties/*}/customMetri" - + "cs:\rcustom_metric\022\354\001\n\022UpdateCustomMetric" - + "\0229.google.analytics.admin.v1alpha.Update" - + "CustomMetricRequest\032,.google.analytics.a" - + "dmin.v1alpha.CustomMetric\"m\332A\031custom_met" - + "ric,update_mask\202\323\344\223\002K2:/v1alpha/{custom_" - + "metric.name=properties/*/customMetrics/*" - + "}:\rcustom_metric\022\307\001\n\021ListCustomMetrics\0228" - + ".google.analytics.admin.v1alpha.ListCust" - + "omMetricsRequest\0329.google.analytics.admi" - + "n.v1alpha.ListCustomMetricsResponse\"=\332A\006" - + "parent\202\323\344\223\002.\022,/v1alpha/{parent=propertie" - + "s/*}/customMetrics\022\261\001\n\023ArchiveCustomMetr" - + "ic\022:.google.analytics.admin.v1alpha.Arch" - + "iveCustomMetricRequest\032\026.google.protobuf" - + ".Empty\"F\332A\004name\202\323\344\223\0029\"4/v1alpha/{name=pr" - + "operties/*/customMetrics/*}:archive:\001*\022\264" - + "\001\n\017GetCustomMetric\0226.google.analytics.ad" - + "min.v1alpha.GetCustomMetricRequest\032,.goo" - + "gle.analytics.admin.v1alpha.CustomMetric" - + "\";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=properti" - + "es/*/customMetrics/*}\022\325\001\n\030GetDataRetenti" - + "onSettings\022?.google.analytics.admin.v1al" - + "pha.GetDataRetentionSettingsRequest\0325.go" - + "ogle.analytics.admin.v1alpha.DataRetenti" - + "onSettings\"A\332A\004name\202\323\344\223\0024\0222/v1alpha/{nam" - + "e=properties/*/dataRetentionSettings}\022\254\002" - + "\n\033UpdateDataRetentionSettings\022B.google.a" - + "nalytics.admin.v1alpha.UpdateDataRetenti" - + "onSettingsRequest\0325.google.analytics.adm" - + "in.v1alpha.DataRetentionSettings\"\221\001\332A#da" - + "ta_retention_settings,update_mask\202\323\344\223\002e2" - + "J/v1alpha/{data_retention_settings.name=" - + "properties/*/dataRetentionSettings}:\027dat" - + "a_retention_settings\022\315\001\n\020CreateDataStrea" - + "m\0227.google.analytics.admin.v1alpha.Creat" - + "eDataStreamRequest\032*.google.analytics.ad" - + "min.v1alpha.DataStream\"T\332A\022parent,data_s" - + "tream\202\323\344\223\0029\"*/v1alpha/{parent=properties" - + "/*}/dataStreams:\013data_stream\022\236\001\n\020DeleteD" - + "ataStream\0227.google.analytics.admin.v1alp" - + "ha.DeleteDataStreamRequest\032\026.google.prot" - + "obuf.Empty\"9\332A\004name\202\323\344\223\002,**/v1alpha/{nam" - + "e=properties/*/dataStreams/*}\022\336\001\n\020Update" - + "DataStream\0227.google.analytics.admin.v1al" - + "pha.UpdateDataStreamRequest\032*.google.ana" - + "lytics.admin.v1alpha.DataStream\"e\332A\027data" - + "_stream,update_mask\202\323\344\223\002E26/v1alpha/{dat" - + "a_stream.name=properties/*/dataStreams/*" - + "}:\013data_stream\022\277\001\n\017ListDataStreams\0226.goo" - + "gle.analytics.admin.v1alpha.ListDataStre" - + "amsRequest\0327.google.analytics.admin.v1al" - + "pha.ListDataStreamsResponse\";\332A\006parent\202\323" - + "\344\223\002,\022*/v1alpha/{parent=properties/*}/dat" - + "aStreams\022\254\001\n\rGetDataStream\0224.google.anal" - + "ytics.admin.v1alpha.GetDataStreamRequest" - + "\032*.google.analytics.admin.v1alpha.DataSt" - + "ream\"9\332A\004name\202\323\344\223\002,\022*/v1alpha/{name=prop" - + "erties/*/dataStreams/*}\022\244\001\n\013GetAudience\022" - + "2.google.analytics.admin.v1alpha.GetAudi" - + "enceRequest\032(.google.analytics.admin.v1a" - + "lpha.Audience\"7\332A\004name\202\323\344\223\002*\022(/v1alpha/{" - + "name=properties/*/audiences/*}\022\267\001\n\rListA" - + "udiences\0224.google.analytics.admin.v1alph" - + "a.ListAudiencesRequest\0325.google.analytic" - + "s.admin.v1alpha.ListAudiencesResponse\"9\332" - + "A\006parent\202\323\344\223\002*\022(/v1alpha/{parent=propert" - + "ies/*}/audiences\022\277\001\n\016CreateAudience\0225.go" - + "ogle.analytics.admin.v1alpha.CreateAudie" - + "nceRequest\032(.google.analytics.admin.v1al" - + "pha.Audience\"L\332A\017parent,audience\202\323\344\223\0024\"(" - + "/v1alpha/{parent=properties/*}/audiences" - + ":\010audience\022\315\001\n\016UpdateAudience\0225.google.a" - + "nalytics.admin.v1alpha.UpdateAudienceReq" - + "uest\032(.google.analytics.admin.v1alpha.Au" - + "dience\"Z\332A\024audience,update_mask\202\323\344\223\002=21/" - + "v1alpha/{audience.name=properties/*/audi" - + "ences/*}:\010audience\022\236\001\n\017ArchiveAudience\0226" - + ".google.analytics.admin.v1alpha.ArchiveA" - + "udienceRequest\032\026.google.protobuf.Empty\";" - + "\202\323\344\223\0025\"0/v1alpha/{name=properties/*/audi" - + "ences/*}:archive:\001*\022\304\001\n\023GetSearchAds360L" - + "ink\022:.google.analytics.admin.v1alpha.Get" + + "stomDimension\"y\332A\034custom_dimension,updat" + + "e_mask\202\323\344\223\002T2@/v1alpha/{custom_dimension" + + ".name=properties/*/customDimensions/*}:\020" + + "custom_dimension\022\323\001\n\024ListCustomDimension" + + "s\022;.google.analytics.admin.v1alpha.ListC" + + "ustomDimensionsRequest\032<.google.analytic" + + "s.admin.v1alpha.ListCustomDimensionsResp" + + "onse\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=" + + "properties/*}/customDimensions\022\272\001\n\026Archi" + + "veCustomDimension\022=.google.analytics.adm" + + "in.v1alpha.ArchiveCustomDimensionRequest" + + "\032\026.google.protobuf.Empty\"I\332A\004name\202\323\344\223\002<\"" + + "7/v1alpha/{name=properties/*/customDimen" + + "sions/*}:archive:\001*\022\300\001\n\022GetCustomDimensi" + + "on\0229.google.analytics.admin.v1alpha.GetC" + + "ustomDimensionRequest\032/.google.analytics" + + ".admin.v1alpha.CustomDimension\">\332A\004name\202" + + "\323\344\223\0021\022//v1alpha/{name=properties/*/custo" + + "mDimensions/*}\022\331\001\n\022CreateCustomMetric\0229." + + "google.analytics.admin.v1alpha.CreateCus" + + "tomMetricRequest\032,.google.analytics.admi" + + "n.v1alpha.CustomMetric\"Z\332A\024parent,custom" + + "_metric\202\323\344\223\002=\",/v1alpha/{parent=properti" + + "es/*}/customMetrics:\rcustom_metric\022\354\001\n\022U" + + "pdateCustomMetric\0229.google.analytics.adm" + + "in.v1alpha.UpdateCustomMetricRequest\032,.g" + + "oogle.analytics.admin.v1alpha.CustomMetr" + + "ic\"m\332A\031custom_metric,update_mask\202\323\344\223\002K2:" + + "/v1alpha/{custom_metric.name=properties/" + + "*/customMetrics/*}:\rcustom_metric\022\307\001\n\021Li" + + "stCustomMetrics\0228.google.analytics.admin" + + ".v1alpha.ListCustomMetricsRequest\0329.goog" + + "le.analytics.admin.v1alpha.ListCustomMet" + + "ricsResponse\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/" + + "{parent=properties/*}/customMetrics\022\261\001\n\023" + + "ArchiveCustomMetric\022:.google.analytics.a" + + "dmin.v1alpha.ArchiveCustomMetricRequest\032" + + "\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029\"4" + + "/v1alpha/{name=properties/*/customMetric" + + "s/*}:archive:\001*\022\264\001\n\017GetCustomMetric\0226.go" + + "ogle.analytics.admin.v1alpha.GetCustomMe" + + "tricRequest\032,.google.analytics.admin.v1a" + + "lpha.CustomMetric\";\332A\004name\202\323\344\223\002.\022,/v1alp" + + "ha/{name=properties/*/customMetrics/*}\022\325" + + "\001\n\030GetDataRetentionSettings\022?.google.ana" + + "lytics.admin.v1alpha.GetDataRetentionSet" + + "tingsRequest\0325.google.analytics.admin.v1" + + "alpha.DataRetentionSettings\"A\332A\004name\202\323\344\223" + + "\0024\0222/v1alpha/{name=properties/*/dataRete" + + "ntionSettings}\022\254\002\n\033UpdateDataRetentionSe" + + "ttings\022B.google.analytics.admin.v1alpha." + + "UpdateDataRetentionSettingsRequest\0325.goo" + + "gle.analytics.admin.v1alpha.DataRetentio" + + "nSettings\"\221\001\332A#data_retention_settings,u" + + "pdate_mask\202\323\344\223\002e2J/v1alpha/{data_retenti" + + "on_settings.name=properties/*/dataRetent" + + "ionSettings}:\027data_retention_settings\022\315\001" + + "\n\020CreateDataStream\0227.google.analytics.ad" + + "min.v1alpha.CreateDataStreamRequest\032*.go" + + "ogle.analytics.admin.v1alpha.DataStream\"" + + "T\332A\022parent,data_stream\202\323\344\223\0029\"*/v1alpha/{" + + "parent=properties/*}/dataStreams:\013data_s" + + "tream\022\236\001\n\020DeleteDataStream\0227.google.anal" + + "ytics.admin.v1alpha.DeleteDataStreamRequ" + + "est\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344\223" + + "\002,**/v1alpha/{name=properties/*/dataStre" + + "ams/*}\022\336\001\n\020UpdateDataStream\0227.google.ana" + + "lytics.admin.v1alpha.UpdateDataStreamReq" + + "uest\032*.google.analytics.admin.v1alpha.Da" + + "taStream\"e\332A\027data_stream,update_mask\202\323\344\223" + + "\002E26/v1alpha/{data_stream.name=propertie" + + "s/*/dataStreams/*}:\013data_stream\022\277\001\n\017List" + + "DataStreams\0226.google.analytics.admin.v1a" + + "lpha.ListDataStreamsRequest\0327.google.ana" + + "lytics.admin.v1alpha.ListDataStreamsResp" + + "onse\";\332A\006parent\202\323\344\223\002,\022*/v1alpha/{parent=" + + "properties/*}/dataStreams\022\254\001\n\rGetDataStr" + + "eam\0224.google.analytics.admin.v1alpha.Get" + + "DataStreamRequest\032*.google.analytics.adm" + + "in.v1alpha.DataStream\"9\332A\004name\202\323\344\223\002,\022*/v" + + "1alpha/{name=properties/*/dataStreams/*}" + + "\022\244\001\n\013GetAudience\0222.google.analytics.admi" + + "n.v1alpha.GetAudienceRequest\032(.google.an" + + "alytics.admin.v1alpha.Audience\"7\332A\004name\202" + + "\323\344\223\002*\022(/v1alpha/{name=properties/*/audie" + + "nces/*}\022\267\001\n\rListAudiences\0224.google.analy" + + "tics.admin.v1alpha.ListAudiencesRequest\032" + + "5.google.analytics.admin.v1alpha.ListAud" + + "iencesResponse\"9\332A\006parent\202\323\344\223\002*\022(/v1alph" + + "a/{parent=properties/*}/audiences\022\277\001\n\016Cr" + + "eateAudience\0225.google.analytics.admin.v1" + + "alpha.CreateAudienceRequest\032(.google.ana" + + "lytics.admin.v1alpha.Audience\"L\332A\017parent" + + ",audience\202\323\344\223\0024\"(/v1alpha/{parent=proper" + + "ties/*}/audiences:\010audience\022\315\001\n\016UpdateAu" + + "dience\0225.google.analytics.admin.v1alpha." + + "UpdateAudienceRequest\032(.google.analytics" + + ".admin.v1alpha.Audience\"Z\332A\024audience,upd" + + "ate_mask\202\323\344\223\002=21/v1alpha/{audience.name=" + + "properties/*/audiences/*}:\010audience\022\236\001\n\017" + + "ArchiveAudience\0226.google.analytics.admin" + + ".v1alpha.ArchiveAudienceRequest\032\026.google" + + ".protobuf.Empty\";\202\323\344\223\0025\"0/v1alpha/{name=" + + "properties/*/audiences/*}:archive:\001*\022\304\001\n" + + "\023GetSearchAds360Link\022:.google.analytics." + + "admin.v1alpha.GetSearchAds360LinkRequest" + + "\0320.google.analytics.admin.v1alpha.Search" + + "Ads360Link\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{nam" + + "e=properties/*/searchAds360Links/*}\022\327\001\n\025" + + "ListSearchAds360Links\022<.google.analytics" + + ".admin.v1alpha.ListSearchAds360LinksRequ" + + "est\032=.google.analytics.admin.v1alpha.Lis" + + "tSearchAds360LinksResponse\"A\332A\006parent\202\323\344" + + "\223\0022\0220/v1alpha/{parent=properties/*}/sear" + + "chAds360Links\022\365\001\n\026CreateSearchAds360Link" + + "\022=.google.analytics.admin.v1alpha.Create" + "SearchAds360LinkRequest\0320.google.analyti" - + "cs.admin.v1alpha.SearchAds360Link\"?\332A\004na" - + "me\202\323\344\223\0022\0220/v1alpha/{name=properties/*/se" - + "archAds360Links/*}\022\327\001\n\025ListSearchAds360L" - + "inks\022<.google.analytics.admin.v1alpha.Li" - + "stSearchAds360LinksRequest\032=.google.anal" - + "ytics.admin.v1alpha.ListSearchAds360Link" - + "sResponse\"A\332A\006parent\202\323\344\223\0022\0220/v1alpha/{pa" - + "rent=properties/*}/searchAds360Links\022\365\001\n" - + "\026CreateSearchAds360Link\022=.google.analyti" - + "cs.admin.v1alpha.CreateSearchAds360LinkR" - + "equest\0320.google.analytics.admin.v1alpha." - + "SearchAds360Link\"j\332A\032parent,search_ads_3" - + "60_link\202\323\344\223\002G\"0/v1alpha/{parent=properti" - + "es/*}/searchAds360Links:\023search_ads_360_" - + "link\022\260\001\n\026DeleteSearchAds360Link\022=.google" - + ".analytics.admin.v1alpha.DeleteSearchAds" - + "360LinkRequest\032\026.google.protobuf.Empty\"?" - + "\332A\004name\202\323\344\223\0022*0/v1alpha/{name=properties" - + "/*/searchAds360Links/*}\022\217\002\n\026UpdateSearch" - + "Ads360Link\022=.google.analytics.admin.v1al" - + "pha.UpdateSearchAds360LinkRequest\0320.goog" - + "le.analytics.admin.v1alpha.SearchAds360L" - + "ink\"\203\001\332A\037search_ads_360_link,update_mask" - + "\202\323\344\223\002[2D/v1alpha/{search_ads_360_link.na" - + "me=properties/*/searchAds360Links/*}:\023se" - + "arch_ads_360_link\022\315\001\n\026GetAttributionSett" - + "ings\022=.google.analytics.admin.v1alpha.Ge" - + "tAttributionSettingsRequest\0323.google.ana" - + "lytics.admin.v1alpha.AttributionSettings" - + "\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{name=properti" - + "es/*/attributionSettings}\022\233\002\n\031UpdateAttr" - + "ibutionSettings\022@.google.analytics.admin" - + ".v1alpha.UpdateAttributionSettingsReques" - + "t\0323.google.analytics.admin.v1alpha.Attri" - + "butionSettings\"\206\001\332A attribution_settings" - + ",update_mask\202\323\344\223\002]2E/v1alpha/{attributio" - + "n_settings.name=properties/*/attribution" - + "Settings}:\024attribution_settings\022\360\001\n\017RunA", - "ccessReport\0226.google.analytics.admin.v1a" - + "lpha.RunAccessReportRequest\0327.google.ana" - + "lytics.admin.v1alpha.RunAccessReportResp" - + "onse\"l\202\323\344\223\002f\"./v1alpha/{entity=propertie" - + "s/*}:runAccessReport:\001*Z1\",/v1alpha/{ent" - + "ity=accounts/*}:runAccessReport:\001*\022\237\002\n\023C" - + "reateAccessBinding\022:.google.analytics.ad" - + "min.v1alpha.CreateAccessBindingRequest\032-" - + ".google.analytics.admin.v1alpha.AccessBi" - + "nding\"\234\001\332A\025parent,access_binding\202\323\344\223\002~\"+" - + "/v1alpha/{parent=accounts/*}/accessBindi" - + "ngs:\016access_bindingZ?\"-/v1alpha/{parent=" - + "properties/*}/accessBindings:\016access_bin" - + "ding\022\347\001\n\020GetAccessBinding\0227.google.analy" - + "tics.admin.v1alpha.GetAccessBindingReque" - + "st\032-.google.analytics.admin.v1alpha.Acce" - + "ssBinding\"k\332A\004name\202\323\344\223\002^\022+/v1alpha/{name" - + "=accounts/*/accessBindings/*}Z/\022-/v1alph" - + "a/{name=properties/*/accessBindings/*}\022\267" - + "\002\n\023UpdateAccessBinding\022:.google.analytic" - + "s.admin.v1alpha.UpdateAccessBindingReque" - + "st\032-.google.analytics.admin.v1alpha.Acce" - + "ssBinding\"\264\001\332A\016access_binding\202\323\344\223\002\234\0012:/v" - + "1alpha/{access_binding.name=accounts/*/a" - + "ccessBindings/*}:\016access_bindingZN2\"9/v1alpha/{parent=prope" - + "rties/*}/accessBindings:batchCreate:\001*\022\217" - + "\002\n\026BatchGetAccessBindings\022=.google.analy" + + "cs.admin.v1alpha.SearchAds360Link\"j\332A\032pa" + + "rent,search_ads_360_link\202\323\344\223\002G\"0/v1alpha" + + "/{parent=properties/*}/searchAds360Links" + + ":\023search_ads_360_link\022\260\001\n\026DeleteSearchAd" + + "s360Link\022=.google.analytics.admin.v1alph" + + "a.DeleteSearchAds360LinkRequest\032\026.google" + + ".protobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1alpha" + + "/{name=properties/*/searchAds360Links/*}" + + "\022\217\002\n\026UpdateSearchAds360Link\022=.google.ana" + + "lytics.admin.v1alpha.UpdateSearchAds360L" + + "inkRequest\0320.google.analytics.admin.v1al" + + "pha.SearchAds360Link\"\203\001\332A\037search_ads_360" + + "_link,update_mask\202\323\344\223\002[2D/v1alpha/{searc" + + "h_ads_360_link.name=properties/*/searchA" + + "ds360Links/*}:\023search_ads_360_link\022\315\001\n\026G" + + "etAttributionSettings\022=.google.analytics" + + ".admin.v1alpha.GetAttributionSettingsReq" + + "uest\0323.google.analytics.admin.v1alpha.At" + + "tributionSettings\"?\332A\004name\202\323\344\223\0022\0220/v1alp" + + "ha/{name=properties/*/attributionSetting" + + "s}\022\233\002\n\031UpdateAttributionSettings\022@.googl" + + "e.analytics.admin.v1alpha.UpdateAttribut", + "ionSettingsRequest\0323.google.analytics.ad" + + "min.v1alpha.AttributionSettings\"\206\001\332A att" + + "ribution_settings,update_mask\202\323\344\223\002]2E/v1" + + "alpha/{attribution_settings.name=propert" + + "ies/*/attributionSettings}:\024attribution_" + + "settings\022\360\001\n\017RunAccessReport\0226.google.an" + + "alytics.admin.v1alpha.RunAccessReportReq" + + "uest\0327.google.analytics.admin.v1alpha.Ru" + + "nAccessReportResponse\"l\202\323\344\223\002f\"./v1alpha/" + + "{entity=properties/*}:runAccessReport:\001*" + + "Z1\",/v1alpha/{entity=accounts/*}:runAcce" + + "ssReport:\001*\022\237\002\n\023CreateAccessBinding\022:.go" + + "ogle.analytics.admin.v1alpha.CreateAcces" + + "sBindingRequest\032-.google.analytics.admin" + + ".v1alpha.AccessBinding\"\234\001\332A\025parent,acces" + + "s_binding\202\323\344\223\002~\"+/v1alpha/{parent=accoun" + + "ts/*}/accessBindings:\016access_bindingZ?\"-" + + "/v1alpha/{parent=properties/*}/accessBin" + + "dings:\016access_binding\022\347\001\n\020GetAccessBindi" + + "ng\0227.google.analytics.admin.v1alpha.GetA" + + "ccessBindingRequest\032-.google.analytics.a" + + "dmin.v1alpha.AccessBinding\"k\332A\004name\202\323\344\223\002" + + "^\022+/v1alpha/{name=accounts/*/accessBindi" + + "ngs/*}Z/\022-/v1alpha/{name=properties/*/ac" + + "cessBindings/*}\022\267\002\n\023UpdateAccessBinding\022" + + ":.google.analytics.admin.v1alpha.UpdateA" + + "ccessBindingRequest\032-.google.analytics.a" + + "dmin.v1alpha.AccessBinding\"\264\001\332A\016access_b" + + "inding\202\323\344\223\002\234\0012:/v1alpha/{access_binding." + + "name=accounts/*/accessBindings/*}:\016acces" + + "s_bindingZN2\"9/v1al" + + "pha/{parent=properties/*}/accessBindings" + + ":batchCreate:\001*\022\217\002\n\026BatchGetAccessBindin" + + "gs\022=.google.analytics.admin.v1alpha.Batc" + + "hGetAccessBindingsRequest\032>.google.analy" + "tics.admin.v1alpha.BatchGetAccessBinding" - + "sRequest\032>.google.analytics.admin.v1alph" - + "a.BatchGetAccessBindingsResponse\"v\202\323\344\223\002p" - + "\0224/v1alpha/{parent=accounts/*}/accessBin" - + "dings:batchGetZ8\0226/v1alpha/{parent=prope" - + "rties/*}/accessBindings:batchGet\022\245\002\n\031Bat" - + "chUpdateAccessBindings\022@.google.analytic" - + "s.admin.v1alpha.BatchUpdateAccessBinding" - + "sRequest\032A.google.analytics.admin.v1alph" - + "a.BatchUpdateAccessBindingsResponse\"\202\001\202\323" - + "\344\223\002|\"7/v1alpha/{parent=accounts/*}/acces" - + "sBindings:batchUpdate:\001*Z>\"9/v1alpha/{pa" - + "rent=properties/*}/accessBindings:batchU" - + "pdate:\001*\022\372\001\n\031BatchDeleteAccessBindings\022@" - + ".google.analytics.admin.v1alpha.BatchDel" - + "eteAccessBindingsRequest\032\026.google.protob" - + "uf.Empty\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent=acco" - + "unts/*}/accessBindings:batchDelete:\001*Z>\"" - + "9/v1alpha/{parent=properties/*}/accessBi" - + "ndings:batchDelete:\001*\022\300\001\n\022GetExpandedDat" - + "aSet\0229.google.analytics.admin.v1alpha.Ge" - + "tExpandedDataSetRequest\032/.google.analyti" - + "cs.admin.v1alpha.ExpandedDataSet\">\332A\004nam" - + "e\202\323\344\223\0021\022//v1alpha/{name=properties/*/exp" - + "andedDataSets/*}\022\323\001\n\024ListExpandedDataSet" - + "s\022;.google.analytics.admin.v1alpha.ListE" - + "xpandedDataSetsRequest\032<.google.analytic" - + "s.admin.v1alpha.ListExpandedDataSetsResp" - + "onse\"@\332A\006parent\202\323\344\223\0021\022//v1alpha/{parent=" - + "properties/*}/expandedDataSets\022\355\001\n\025Creat" - + "eExpandedDataSet\022<.google.analytics.admi" - + "n.v1alpha.CreateExpandedDataSetRequest\032/" - + ".google.analytics.admin.v1alpha.Expanded" - + "DataSet\"e\332A\030parent,expanded_data_set\202\323\344\223" - + "\002D\"//v1alpha/{parent=properties/*}/expan" - + "dedDataSets:\021expanded_data_set\022\204\002\n\025Updat" + + "sResponse\"v\202\323\344\223\002p\0224/v1alpha/{parent=acco" + + "unts/*}/accessBindings:batchGetZ8\0226/v1al" + + "pha/{parent=properties/*}/accessBindings" + + ":batchGet\022\245\002\n\031BatchUpdateAccessBindings\022" + + "@.google.analytics.admin.v1alpha.BatchUp" + + "dateAccessBindingsRequest\032A.google.analy" + + "tics.admin.v1alpha.BatchUpdateAccessBind" + + "ingsResponse\"\202\001\202\323\344\223\002|\"7/v1alpha/{parent=" + + "accounts/*}/accessBindings:batchUpdate:\001" + + "*Z>\"9/v1alpha/{parent=properties/*}/acce" + + "ssBindings:batchUpdate:\001*\022\372\001\n\031BatchDelet" + + "eAccessBindings\022@.google.analytics.admin" + + ".v1alpha.BatchDeleteAccessBindingsReques" + + "t\032\026.google.protobuf.Empty\"\202\001\202\323\344\223\002|\"7/v1a" + + "lpha/{parent=accounts/*}/accessBindings:" + + "batchDelete:\001*Z>\"9/v1alpha/{parent=prope" + + "rties/*}/accessBindings:batchDelete:\001*\022\300" + + "\001\n\022GetExpandedDataSet\0229.google.analytics" + + ".admin.v1alpha.GetExpandedDataSetRequest" + + "\032/.google.analytics.admin.v1alpha.Expand" + + "edDataSet\">\332A\004name\202\323\344\223\0021\022//v1alpha/{name" + + "=properties/*/expandedDataSets/*}\022\323\001\n\024Li" + + "stExpandedDataSets\022;.google.analytics.ad" + + "min.v1alpha.ListExpandedDataSetsRequest\032" + + "<.google.analytics.admin.v1alpha.ListExp" + + "andedDataSetsResponse\"@\332A\006parent\202\323\344\223\0021\022/" + + "/v1alpha/{parent=properties/*}/expandedD" + + "ataSets\022\355\001\n\025CreateExpandedDataSet\022<.goog" + + "le.analytics.admin.v1alpha.CreateExpande" + + "dDataSetRequest\032/.google.analytics.admin" + + ".v1alpha.ExpandedDataSet\"e\332A\030parent,expa" + + "nded_data_set\202\323\344\223\002D\"//v1alpha/{parent=pr" + + "operties/*}/expandedDataSets:\021expanded_d" + + "ata_set\022\204\002\n\025UpdateExpandedDataSet\022<.goog" + + "le.analytics.admin.v1alpha.UpdateExpande" + + "dDataSetRequest\032/.google.analytics.admin" + + ".v1alpha.ExpandedDataSet\"|\332A\035expanded_da" + + "ta_set,update_mask\202\323\344\223\002V2A/v1alpha/{expa" + + "nded_data_set.name=properties/*/expanded" + + "DataSets/*}:\021expanded_data_set\022\255\001\n\025Delet" + "eExpandedDataSet\022<.google.analytics.admi" - + "n.v1alpha.UpdateExpandedDataSetRequest\032/" - + ".google.analytics.admin.v1alpha.Expanded" - + "DataSet\"|\332A\035expanded_data_set,update_mas" - + "k\202\323\344\223\002V2A/v1alpha/{expanded_data_set.nam" - + "e=properties/*/expandedDataSets/*}:\021expa" - + "nded_data_set\022\255\001\n\025DeleteExpandedDataSet\022" - + "<.google.analytics.admin.v1alpha.DeleteE" - + "xpandedDataSetRequest\032\026.google.protobuf." - + "Empty\">\332A\004name\202\323\344\223\0021*//v1alpha/{name=pro" - + "perties/*/expandedDataSets/*}\022\264\001\n\017GetCha" - + "nnelGroup\0226.google.analytics.admin.v1alp" - + "ha.GetChannelGroupRequest\032,.google.analy" - + "tics.admin.v1alpha.ChannelGroup\";\332A\004name" - + "\202\323\344\223\002.\022,/v1alpha/{name=properties/*/chan" - + "nelGroups/*}\022\307\001\n\021ListChannelGroups\0228.goo" - + "gle.analytics.admin.v1alpha.ListChannelG" - + "roupsRequest\0329.google.analytics.admin.v1" - + "alpha.ListChannelGroupsResponse\"=\332A\006pare" - + "nt\202\323\344\223\002.\022,/v1alpha/{parent=properties/*}" - + "/channelGroups\022\331\001\n\022CreateChannelGroup\0229." - + "google.analytics.admin.v1alpha.CreateCha" - + "nnelGroupRequest\032,.google.analytics.admi" - + "n.v1alpha.ChannelGroup\"Z\332A\024parent,channe" - + "l_group\202\323\344\223\002=\",/v1alpha/{parent=properti" - + "es/*}/channelGroups:\rchannel_group\022\354\001\n\022U" - + "pdateChannelGroup\0229.google.analytics.adm" - + "in.v1alpha.UpdateChannelGroupRequest\032,.g" - + "oogle.analytics.admin.v1alpha.ChannelGro" - + "up\"m\332A\031channel_group,update_mask\202\323\344\223\002K2:" - + "/v1alpha/{channel_group.name=properties/" - + "*/channelGroups/*}:\rchannel_group\022\244\001\n\022De" - + "leteChannelGroup\0229.google.analytics.admi" - + "n.v1alpha.DeleteChannelGroupRequest\032\026.go" - + "ogle.protobuf.Empty\";\332A\004name\202\323\344\223\002.*,/v1a" - + "lpha/{name=properties/*/channelGroups/*}" - + "\022\331\001\n\022CreateBigQueryLink\0229.google.analyti" - + "cs.admin.v1alpha.CreateBigQueryLinkReque" - + "st\032,.google.analytics.admin.v1alpha.BigQ" - + "ueryLink\"Z\332A\024parent,bigquery_link\202\323\344\223\002=\"" - + ",/v1alpha/{parent=properties/*}/bigQuery" - + "Links:\rbigquery_link\022\264\001\n\017GetBigQueryLink" - + "\0226.google.analytics.admin.v1alpha.GetBig" - + "QueryLinkRequest\032,.google.analytics.admi" - + "n.v1alpha.BigQueryLink\";\332A\004name\202\323\344\223\002.\022,/" - + "v1alpha/{name=properties/*/bigQueryLinks" - + "/*}\022\307\001\n\021ListBigQueryLinks\0228.google.analy" - + "tics.admin.v1alpha.ListBigQueryLinksRequ" - + "est\0329.google.analytics.admin.v1alpha.Lis" - + "tBigQueryLinksResponse\"=\332A\006parent\202\323\344\223\002.\022" - + ",/v1alpha/{parent=properties/*}/bigQuery" - + "Links\022\244\001\n\022DeleteBigQueryLink\0229.google.an" - + "alytics.admin.v1alpha.DeleteBigQueryLink" - + "Request\032\026.google.protobuf.Empty\";\332A\004name" - + "\202\323\344\223\002.*,/v1alpha/{name=properties/*/bigQ" - + "ueryLinks/*}\022\354\001\n\022UpdateBigQueryLink\0229.go" - + "ogle.analytics.admin.v1alpha.UpdateBigQu" - + "eryLinkRequest\032,.google.analytics.admin." - + "v1alpha.BigQueryLink\"m\332A\031bigquery_link,u" - + "pdate_mask\202\323\344\223\002K2:/v1alpha/{bigquery_lin" - + "k.name=properties/*/bigQueryLinks/*}:\rbi" - + "gquery_link\022\373\001\n\036GetEnhancedMeasurementSe" - + "ttings\022E.google.analytics.admin.v1alpha." - + "GetEnhancedMeasurementSettingsRequest\032;." - + "google.analytics.admin.v1alpha.EnhancedM" - + "easurementSettings\"U\332A\004name\202\323\344\223\002H\022F/v1al" - + "pha/{name=properties/*/dataStreams/*/enh" - + "ancedMeasurementSettings}\022\345\002\n!UpdateEnha" - + "ncedMeasurementSettings\022H.google.analyti" - + "cs.admin.v1alpha.UpdateEnhancedMeasureme" - + "ntSettingsRequest\032;.google.analytics.adm" - + "in.v1alpha.EnhancedMeasurementSettings\"\270" - + "\001\332A)enhanced_measurement_settings,update" - + "_mask\202\323\344\223\002\205\0012d/v1alpha/{enhanced_measure" - + "ment_settings.name=properties/*/dataStre" - + "ams/*/enhancedMeasurementSettings}:\035enha" - + "nced_measurement_settings\022\260\001\n\016GetAdSense" - + "Link\0225.google.analytics.admin.v1alpha.Ge" - + "tAdSenseLinkRequest\032+.google.analytics.a" - + "dmin.v1alpha.AdSenseLink\":\332A\004name\202\323\344\223\002-\022" - + "+/v1alpha/{name=properties/*/adSenseLink" - + "s/*}\022\323\001\n\021CreateAdSenseLink\0228.google.anal" - + "ytics.admin.v1alpha.CreateAdSenseLinkReq" - + "uest\032+.google.analytics.admin.v1alpha.Ad" - + "SenseLink\"W\332A\023parent,adsense_link\202\323\344\223\002;\"" - + "+/v1alpha/{parent=properties/*}/adSenseL" - + "inks:\014adsense_link\022\241\001\n\021DeleteAdSenseLink" - + "\0228.google.analytics.admin.v1alpha.Delete" - + "AdSenseLinkRequest\032\026.google.protobuf.Emp" - + "ty\":\332A\004name\202\323\344\223\002-*+/v1alpha/{name=proper" - + "ties/*/adSenseLinks/*}\022\303\001\n\020ListAdSenseLi" - + "nks\0227.google.analytics.admin.v1alpha.Lis" - + "tAdSenseLinksRequest\0328.google.analytics." - + "admin.v1alpha.ListAdSenseLinksResponse\"<" - + "\332A\006parent\202\323\344\223\002-\022+/v1alpha/{parent=proper" - + "ties/*}/adSenseLinks\022\316\001\n\022GetEventCreateR" - + "ule\0229.google.analytics.admin.v1alpha.Get" - + "EventCreateRuleRequest\032/.google.analytic" - + "s.admin.v1alpha.EventCreateRule\"L\332A\004name" - + "\202\323\344\223\002?\022=/v1alpha/{name=properties/*/data" - + "Streams/*/eventCreateRules/*}\022\341\001\n\024ListEv" - + "entCreateRules\022;.google.analytics.admin." - + "v1alpha.ListEventCreateRulesRequest\032<.go" - + "ogle.analytics.admin.v1alpha.ListEventCr" - + "eateRulesResponse\"N\332A\006parent\202\323\344\223\002?\022=/v1a" - + "lpha/{parent=properties/*/dataStreams/*}" - + "/eventCreateRules\022\373\001\n\025CreateEventCreateR" - + "ule\022<.google.analytics.admin.v1alpha.Cre" - + "ateEventCreateRuleRequest\032/.google.analy" - + "tics.admin.v1alpha.EventCreateRule\"s\332A\030p" - + "arent,event_create_rule\202\323\344\223\002R\"=/v1alpha/" - + "{parent=properties/*/dataStreams/*}/even" - + "tCreateRules:\021event_create_rule\022\223\002\n\025Upda" - + "teEventCreateRule\022<.google.analytics.adm" - + "in.v1alpha.UpdateEventCreateRuleRequest\032" + + "n.v1alpha.DeleteExpandedDataSetRequest\032\026" + + ".google.protobuf.Empty\">\332A\004name\202\323\344\223\0021*//" + + "v1alpha/{name=properties/*/expandedDataS" + + "ets/*}\022\264\001\n\017GetChannelGroup\0226.google.anal" + + "ytics.admin.v1alpha.GetChannelGroupReque" + + "st\032,.google.analytics.admin.v1alpha.Chan" + + "nelGroup\";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=" + + "properties/*/channelGroups/*}\022\307\001\n\021ListCh" + + "annelGroups\0228.google.analytics.admin.v1a" + + "lpha.ListChannelGroupsRequest\0329.google.a" + + "nalytics.admin.v1alpha.ListChannelGroups" + + "Response\"=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{par" + + "ent=properties/*}/channelGroups\022\331\001\n\022Crea" + + "teChannelGroup\0229.google.analytics.admin." + + "v1alpha.CreateChannelGroupRequest\032,.goog" + + "le.analytics.admin.v1alpha.ChannelGroup\"" + + "Z\332A\024parent,channel_group\202\323\344\223\002=\",/v1alpha" + + "/{parent=properties/*}/channelGroups:\rch" + + "annel_group\022\354\001\n\022UpdateChannelGroup\0229.goo" + + "gle.analytics.admin.v1alpha.UpdateChanne" + + "lGroupRequest\032,.google.analytics.admin.v" + + "1alpha.ChannelGroup\"m\332A\031channel_group,up" + + "date_mask\202\323\344\223\002K2:/v1alpha/{channel_group" + + ".name=properties/*/channelGroups/*}:\rcha" + + "nnel_group\022\244\001\n\022DeleteChannelGroup\0229.goog" + + "le.analytics.admin.v1alpha.DeleteChannel" + + "GroupRequest\032\026.google.protobuf.Empty\";\332A" + + "\004name\202\323\344\223\002.*,/v1alpha/{name=properties/*" + + "/channelGroups/*}\022\331\001\n\022CreateBigQueryLink" + + "\0229.google.analytics.admin.v1alpha.Create" + + "BigQueryLinkRequest\032,.google.analytics.a" + + "dmin.v1alpha.BigQueryLink\"Z\332A\024parent,big" + + "query_link\202\323\344\223\002=\",/v1alpha/{parent=prope" + + "rties/*}/bigQueryLinks:\rbigquery_link\022\264\001" + + "\n\017GetBigQueryLink\0226.google.analytics.adm" + + "in.v1alpha.GetBigQueryLinkRequest\032,.goog" + + "le.analytics.admin.v1alpha.BigQueryLink\"" + + ";\332A\004name\202\323\344\223\002.\022,/v1alpha/{name=propertie" + + "s/*/bigQueryLinks/*}\022\307\001\n\021ListBigQueryLin" + + "ks\0228.google.analytics.admin.v1alpha.List" + + "BigQueryLinksRequest\0329.google.analytics." + + "admin.v1alpha.ListBigQueryLinksResponse\"" + + "=\332A\006parent\202\323\344\223\002.\022,/v1alpha/{parent=prope" + + "rties/*}/bigQueryLinks\022\244\001\n\022DeleteBigQuer" + + "yLink\0229.google.analytics.admin.v1alpha.D" + + "eleteBigQueryLinkRequest\032\026.google.protob" + + "uf.Empty\";\332A\004name\202\323\344\223\002.*,/v1alpha/{name=" + + "properties/*/bigQueryLinks/*}\022\354\001\n\022Update" + + "BigQueryLink\0229.google.analytics.admin.v1" + + "alpha.UpdateBigQueryLinkRequest\032,.google" + + ".analytics.admin.v1alpha.BigQueryLink\"m\332" + + "A\031bigquery_link,update_mask\202\323\344\223\002K2:/v1al" + + "pha/{bigquery_link.name=properties/*/big" + + "QueryLinks/*}:\rbigquery_link\022\373\001\n\036GetEnha" + + "ncedMeasurementSettings\022E.google.analyti" + + "cs.admin.v1alpha.GetEnhancedMeasurementS" + + "ettingsRequest\032;.google.analytics.admin." + + "v1alpha.EnhancedMeasurementSettings\"U\332A\004" + + "name\202\323\344\223\002H\022F/v1alpha/{name=properties/*/" + + "dataStreams/*/enhancedMeasurementSetting" + + "s}\022\345\002\n!UpdateEnhancedMeasurementSettings" + + "\022H.google.analytics.admin.v1alpha.Update" + + "EnhancedMeasurementSettingsRequest\032;.goo" + + "gle.analytics.admin.v1alpha.EnhancedMeas" + + "urementSettings\"\270\001\332A)enhanced_measuremen" + + "t_settings,update_mask\202\323\344\223\002\205\0012d/v1alpha/" + + "{enhanced_measurement_settings.name=prop" + + "erties/*/dataStreams/*/enhancedMeasureme" + + "ntSettings}:\035enhanced_measurement_settin" + + "gs\022\260\001\n\016GetAdSenseLink\0225.google.analytics" + + ".admin.v1alpha.GetAdSenseLinkRequest\032+.g" + + "oogle.analytics.admin.v1alpha.AdSenseLin" + + "k\":\332A\004name\202\323\344\223\002-\022+/v1alpha/{name=propert" + + "ies/*/adSenseLinks/*}\022\323\001\n\021CreateAdSenseL" + + "ink\0228.google.analytics.admin.v1alpha.Cre" + + "ateAdSenseLinkRequest\032+.google.analytics" + + ".admin.v1alpha.AdSenseLink\"W\332A\023parent,ad" + + "sense_link\202\323\344\223\002;\"+/v1alpha/{parent=prope" + + "rties/*}/adSenseLinks:\014adsense_link\022\241\001\n\021" + + "DeleteAdSenseLink\0228.google.analytics.adm" + + "in.v1alpha.DeleteAdSenseLinkRequest\032\026.go" + + "ogle.protobuf.Empty\":\332A\004name\202\323\344\223\002-*+/v1a" + + "lpha/{name=properties/*/adSenseLinks/*}\022" + + "\303\001\n\020ListAdSenseLinks\0227.google.analytics." + + "admin.v1alpha.ListAdSenseLinksRequest\0328." + + "google.analytics.admin.v1alpha.ListAdSen" + + "seLinksResponse\"<\332A\006parent\202\323\344\223\002-\022+/v1alp" + + "ha/{parent=properties/*}/adSenseLinks\022\316\001" + + "\n\022GetEventCreateRule\0229.google.analytics." + + "admin.v1alpha.GetEventCreateRuleRequest\032" + "/.google.analytics.admin.v1alpha.EventCr" - + "eateRule\"\212\001\332A\035event_create_rule,update_m" - + "ask\202\323\344\223\002d2O/v1alpha/{event_create_rule.n" - + "ame=properties/*/dataStreams/*/eventCrea" - + "teRules/*}:\021event_create_rule\022\273\001\n\025Delete" - + "EventCreateRule\022<.google.analytics.admin" - + ".v1alpha.DeleteEventCreateRuleRequest\032\026." - + "google.protobuf.Empty\"L\332A\004name\202\323\344\223\002?*=/v" - + "1alpha/{name=properties/*/dataStreams/*/" - + "eventCreateRules/*}\022\306\001\n\020GetEventEditRule" - + "\0227.google.analytics.admin.v1alpha.GetEve" - + "ntEditRuleRequest\032-.google.analytics.adm" - + "in.v1alpha.EventEditRule\"J\332A\004name\202\323\344\223\002=\022" - + ";/v1alpha/{name=properties/*/dataStreams" - + "/*/eventEditRules/*}\022\331\001\n\022ListEventEditRu" - + "les\0229.google.analytics.admin.v1alpha.Lis" - + "tEventEditRulesRequest\032:.google.analytic" - + "s.admin.v1alpha.ListEventEditRulesRespon" - + "se\"L\332A\006parent\202\323\344\223\002=\022;/v1alpha/{parent=pr" - + "operties/*/dataStreams/*}/eventEditRules" - + "\022\357\001\n\023CreateEventEditRule\022:.google.analyt" - + "ics.admin.v1alpha.CreateEventEditRuleReq" - + "uest\032-.google.analytics.admin.v1alpha.Ev" - + "entEditRule\"m\332A\026parent,event_edit_rule\202\323" - + "\344\223\002N\";/v1alpha/{parent=properties/*/data" - + "Streams/*}/eventEditRules:\017event_edit_ru" - + "le\022\205\002\n\023UpdateEventEditRule\022:.google.anal" - + "ytics.admin.v1alpha.UpdateEventEditRuleR" - + "equest\032-.google.analytics.admin.v1alpha." - + "EventEditRule\"\202\001\332A\033event_edit_rule,updat" - + "e_mask\202\323\344\223\002^2K/v1alpha/{event_edit_rule." - + "name=properties/*/dataStreams/*/eventEdi" - + "tRules/*}:\017event_edit_rule\022\265\001\n\023DeleteEve" - + "ntEditRule\022:.google.analytics.admin.v1al" - + "pha.DeleteEventEditRuleRequest\032\026.google." - + "protobuf.Empty\"J\332A\004name\202\323\344\223\002=*;/v1alpha/" - + "{name=properties/*/dataStreams/*/eventEd" - + "itRules/*}\022\275\001\n\025ReorderEventEditRules\022<.g" - + "oogle.analytics.admin.v1alpha.ReorderEve" - + "ntEditRulesRequest\032\026.google.protobuf.Emp" - + "ty\"N\202\323\344\223\002H\"C/v1alpha/{parent=properties/" - + "*/dataStreams/*}/eventEditRules:reorder:" - + "\001*\022\272\002\n\033UpdateDataRedactionSettings\022B.goo" - + "gle.analytics.admin.v1alpha.UpdateDataRe" - + "dactionSettingsRequest\0325.google.analytic" - + "s.admin.v1alpha.DataRedactionSettings\"\237\001" - + "\332A#data_redaction_settings,update_mask\202\323" - + "\344\223\002s2X/v1alpha/{data_redaction_settings." - + "name=properties/*/dataStreams/*/dataReda" - + "ctionSettings}:\027data_redaction_settings\022" - + "\343\001\n\030GetDataRedactionSettings\022?.google.an" - + "alytics.admin.v1alpha.GetDataRedactionSe" - + "ttingsRequest\0325.google.analytics.admin.v" - + "1alpha.DataRedactionSettings\"O\332A\004name\202\323\344" - + "\223\002B\022@/v1alpha/{name=properties/*/dataStr" - + "eams/*/dataRedactionSettings}\022\304\001\n\023GetCal" - + "culatedMetric\022:.google.analytics.admin.v" - + "1alpha.GetCalculatedMetricRequest\0320.goog" - + "le.analytics.admin.v1alpha.CalculatedMet" - + "ric\"?\332A\004name\202\323\344\223\0022\0220/v1alpha/{name=prope" - + "rties/*/calculatedMetrics/*}\022\206\002\n\026CreateC" - + "alculatedMetric\022=.google.analytics.admin" - + ".v1alpha.CreateCalculatedMetricRequest\0320" - + ".google.analytics.admin.v1alpha.Calculat" - + "edMetric\"{\332A-parent,calculated_metric,ca" - + "lculated_metric_id\202\323\344\223\002E\"0/v1alpha/{pare" - + "nt=properties/*}/calculatedMetrics:\021calc" - + "ulated_metric\022\327\001\n\025ListCalculatedMetrics\022" - + "<.google.analytics.admin.v1alpha.ListCal" - + "culatedMetricsRequest\032=.google.analytics" - + ".admin.v1alpha.ListCalculatedMetricsResp" - + "onse\"A\332A\006parent\202\323\344\223\0022\0220/v1alpha/{parent=" - + "properties/*}/calculatedMetrics\022\210\002\n\026Upda" - + "teCalculatedMetric\022=.google.analytics.ad" - + "min.v1alpha.UpdateCalculatedMetricReques" - + "t\0320.google.analytics.admin.v1alpha.Calcu" - + "latedMetric\"}\332A\035calculated_metric,update" - + "_mask\202\323\344\223\002W2B/v1alpha/{calculated_metric" - + ".name=properties/*/calculatedMetrics/*}:" - + "\021calculated_metric\022\260\001\n\026DeleteCalculatedM" - + "etric\022=.google.analytics.admin.v1alpha.D" - + "eleteCalculatedMetricRequest\032\026.google.pr" - + "otobuf.Empty\"?\332A\004name\202\323\344\223\0022*0/v1alpha/{n" - + "ame=properties/*/calculatedMetrics/*}\022\306\001" - + "\n\024CreateRollupProperty\022;.google.analytic" - + "s.admin.v1alpha.CreateRollupPropertyRequ" - + "est\032<.google.analytics.admin.v1alpha.Cre" - + "ateRollupPropertyResponse\"3\202\323\344\223\002-\"(/v1al" - + "pha/properties:createRollupProperty:\001*\022\344" - + "\001\n\033GetRollupPropertySourceLink\022B.google." - + "analytics.admin.v1alpha.GetRollupPropert" - + "ySourceLinkRequest\0328.google.analytics.ad" - + "min.v1alpha.RollupPropertySourceLink\"G\332A" - + "\004name\202\323\344\223\002:\0228/v1alpha/{name=properties/*" - + "/rollupPropertySourceLinks/*}\022\367\001\n\035ListRo" - + "llupPropertySourceLinks\022D.google.analyti" - + "cs.admin.v1alpha.ListRollupPropertySourc" - + "eLinksRequest\032E.google.analytics.admin.v" - + "1alpha.ListRollupPropertySourceLinksResp" - + "onse\"I\332A\006parent\202\323\344\223\002:\0228/v1alpha/{parent=" - + "properties/*}/rollupPropertySourceLinks\022" - + "\246\002\n\036CreateRollupPropertySourceLink\022E.goo" - + "gle.analytics.admin.v1alpha.CreateRollup" - + "PropertySourceLinkRequest\0328.google.analy" - + "tics.admin.v1alpha.RollupPropertySourceL" - + "ink\"\202\001\332A\"parent,rollup_property_source_l" - + "ink\202\323\344\223\002W\"8/v1alpha/{parent=properties/*" - + "}/rollupPropertySourceLinks:\033rollup_prop" - + "erty_source_link\022\310\001\n\036DeleteRollupPropert" + + "eateRule\"L\332A\004name\202\323\344\223\002?\022=/v1alpha/{name=" + + "properties/*/dataStreams/*/eventCreateRu" + + "les/*}\022\341\001\n\024ListEventCreateRules\022;.google" + + ".analytics.admin.v1alpha.ListEventCreate" + + "RulesRequest\032<.google.analytics.admin.v1" + + "alpha.ListEventCreateRulesResponse\"N\332A\006p" + + "arent\202\323\344\223\002?\022=/v1alpha/{parent=properties" + + "/*/dataStreams/*}/eventCreateRules\022\373\001\n\025C" + + "reateEventCreateRule\022<.google.analytics." + + "admin.v1alpha.CreateEventCreateRuleReque" + + "st\032/.google.analytics.admin.v1alpha.Even" + + "tCreateRule\"s\332A\030parent,event_create_rule" + + "\202\323\344\223\002R\"=/v1alpha/{parent=properties/*/da" + + "taStreams/*}/eventCreateRules:\021event_cre" + + "ate_rule\022\223\002\n\025UpdateEventCreateRule\022<.goo" + + "gle.analytics.admin.v1alpha.UpdateEventC" + + "reateRuleRequest\032/.google.analytics.admi" + + "n.v1alpha.EventCreateRule\"\212\001\332A\035event_cre" + + "ate_rule,update_mask\202\323\344\223\002d2O/v1alpha/{ev" + + "ent_create_rule.name=properties/*/dataSt" + + "reams/*/eventCreateRules/*}:\021event_creat" + + "e_rule\022\273\001\n\025DeleteEventCreateRule\022<.googl" + + "e.analytics.admin.v1alpha.DeleteEventCre" + + "ateRuleRequest\032\026.google.protobuf.Empty\"L" + + "\332A\004name\202\323\344\223\002?*=/v1alpha/{name=properties" + + "/*/dataStreams/*/eventCreateRules/*}\022\306\001\n" + + "\020GetEventEditRule\0227.google.analytics.adm" + + "in.v1alpha.GetEventEditRuleRequest\032-.goo" + + "gle.analytics.admin.v1alpha.EventEditRul" + + "e\"J\332A\004name\202\323\344\223\002=\022;/v1alpha/{name=propert" + + "ies/*/dataStreams/*/eventEditRules/*}\022\331\001" + + "\n\022ListEventEditRules\0229.google.analytics." + + "admin.v1alpha.ListEventEditRulesRequest\032" + + ":.google.analytics.admin.v1alpha.ListEve" + + "ntEditRulesResponse\"L\332A\006parent\202\323\344\223\002=\022;/v" + + "1alpha/{parent=properties/*/dataStreams/" + + "*}/eventEditRules\022\357\001\n\023CreateEventEditRul" + + "e\022:.google.analytics.admin.v1alpha.Creat" + + "eEventEditRuleRequest\032-.google.analytics" + + ".admin.v1alpha.EventEditRule\"m\332A\026parent," + + "event_edit_rule\202\323\344\223\002N\";/v1alpha/{parent=" + + "properties/*/dataStreams/*}/eventEditRul" + + "es:\017event_edit_rule\022\205\002\n\023UpdateEventEditR" + + "ule\022:.google.analytics.admin.v1alpha.Upd" + + "ateEventEditRuleRequest\032-.google.analyti" + + "cs.admin.v1alpha.EventEditRule\"\202\001\332A\033even" + + "t_edit_rule,update_mask\202\323\344\223\002^2K/v1alpha/" + + "{event_edit_rule.name=properties/*/dataS" + + "treams/*/eventEditRules/*}:\017event_edit_r" + + "ule\022\265\001\n\023DeleteEventEditRule\022:.google.ana" + + "lytics.admin.v1alpha.DeleteEventEditRule" + + "Request\032\026.google.protobuf.Empty\"J\332A\004name" + + "\202\323\344\223\002=*;/v1alpha/{name=properties/*/data" + + "Streams/*/eventEditRules/*}\022\275\001\n\025ReorderE" + + "ventEditRules\022<.google.analytics.admin.v" + + "1alpha.ReorderEventEditRulesRequest\032\026.go" + + "ogle.protobuf.Empty\"N\202\323\344\223\002H\"C/v1alpha/{p" + + "arent=properties/*/dataStreams/*}/eventE" + + "ditRules:reorder:\001*\022\272\002\n\033UpdateDataRedact" + + "ionSettings\022B.google.analytics.admin.v1a" + + "lpha.UpdateDataRedactionSettingsRequest\032" + + "5.google.analytics.admin.v1alpha.DataRed" + + "actionSettings\"\237\001\332A#data_redaction_setti" + + "ngs,update_mask\202\323\344\223\002s2X/v1alpha/{data_re" + + "daction_settings.name=properties/*/dataS" + + "treams/*/dataRedactionSettings}:\027data_re" + + "daction_settings\022\343\001\n\030GetDataRedactionSet" + + "tings\022?.google.analytics.admin.v1alpha.G" + + "etDataRedactionSettingsRequest\0325.google." + + "analytics.admin.v1alpha.DataRedactionSet" + + "tings\"O\332A\004name\202\323\344\223\002B\022@/v1alpha/{name=pro" + + "perties/*/dataStreams/*/dataRedactionSet" + + "tings}\022\304\001\n\023GetCalculatedMetric\022:.google." + + "analytics.admin.v1alpha.GetCalculatedMet" + + "ricRequest\0320.google.analytics.admin.v1al" + + "pha.CalculatedMetric\"?\332A\004name\202\323\344\223\0022\0220/v1" + + "alpha/{name=properties/*/calculatedMetri" + + "cs/*}\022\206\002\n\026CreateCalculatedMetric\022=.googl" + + "e.analytics.admin.v1alpha.CreateCalculat" + + "edMetricRequest\0320.google.analytics.admin" + + ".v1alpha.CalculatedMetric\"{\332A-parent,cal" + + "culated_metric,calculated_metric_id\202\323\344\223\002" + + "E\"0/v1alpha/{parent=properties/*}/calcul" + + "atedMetrics:\021calculated_metric\022\327\001\n\025ListC" + + "alculatedMetrics\022<.google.analytics.admi" + + "n.v1alpha.ListCalculatedMetricsRequest\032=" + + ".google.analytics.admin.v1alpha.ListCalc" + + "ulatedMetricsResponse\"A\332A\006parent\202\323\344\223\0022\0220" + + "/v1alpha/{parent=properties/*}/calculate" + + "dMetrics\022\210\002\n\026UpdateCalculatedMetric\022=.go" + + "ogle.analytics.admin.v1alpha.UpdateCalcu" + + "latedMetricRequest\0320.google.analytics.ad" + + "min.v1alpha.CalculatedMetric\"}\332A\035calcula" + + "ted_metric,update_mask\202\323\344\223\002W2B/v1alpha/{" + + "calculated_metric.name=properties/*/calc" + + "ulatedMetrics/*}:\021calculated_metric\022\260\001\n\026" + + "DeleteCalculatedMetric\022=.google.analytic" + + "s.admin.v1alpha.DeleteCalculatedMetricRe" + + "quest\032\026.google.protobuf.Empty\"?\332A\004name\202\323" + + "\344\223\0022*0/v1alpha/{name=properties/*/calcul" + + "atedMetrics/*}\022\306\001\n\024CreateRollupProperty\022" + + ";.google.analytics.admin.v1alpha.CreateR" + + "ollupPropertyRequest\032<.google.analytics." + + "admin.v1alpha.CreateRollupPropertyRespon" + + "se\"3\202\323\344\223\002-\"(/v1alpha/properties:createRo" + + "llupProperty:\001*\022\344\001\n\033GetRollupPropertySou" + + "rceLink\022B.google.analytics.admin.v1alpha" + + ".GetRollupPropertySourceLinkRequest\0328.go" + + "ogle.analytics.admin.v1alpha.RollupPrope" + + "rtySourceLink\"G\332A\004name\202\323\344\223\002:\0228/v1alpha/{" + + "name=properties/*/rollupPropertySourceLi" + + "nks/*}\022\367\001\n\035ListRollupPropertySourceLinks" + + "\022D.google.analytics.admin.v1alpha.ListRo" + + "llupPropertySourceLinksRequest\032E.google." + + "analytics.admin.v1alpha.ListRollupProper" + + "tySourceLinksResponse\"I\332A\006parent\202\323\344\223\002:\0228" + + "/v1alpha/{parent=properties/*}/rollupPro" + + "pertySourceLinks\022\246\002\n\036CreateRollupPropert" + "ySourceLink\022E.google.analytics.admin.v1a" - + "lpha.DeleteRollupPropertySourceLinkReque" - + "st\032\026.google.protobuf.Empty\"G\332A\004name\202\323\344\223\002" - + ":*8/v1alpha/{name=properties/*/rollupPro" - + "pertySourceLinks/*}\022\306\001\n\024ProvisionSubprop" - + "erty\022;.google.analytics.admin.v1alpha.Pr" - + "ovisionSubpropertyRequest\032<.google.analy" - + "tics.admin.v1alpha.ProvisionSubpropertyR" - + "esponse\"3\202\323\344\223\002-\"(/v1alpha/properties:pro" - + "visionSubproperty:\001*\022\227\002\n\034CreateSubproper" - + "tyEventFilter\022C.google.analytics.admin.v" - + "1alpha.CreateSubpropertyEventFilterReque" - + "st\0326.google.analytics.admin.v1alpha.Subp" - + "ropertyEventFilter\"z\332A\037parent,subpropert" - + "y_event_filter\202\323\344\223\002R\"6/v1alpha/{parent=p" - + "roperties/*}/subpropertyEventFilters:\030su" - + "bproperty_event_filter\022\334\001\n\031GetSubpropert" - + "yEventFilter\022@.google.analytics.admin.v1" - + "alpha.GetSubpropertyEventFilterRequest\0326" - + ".google.analytics.admin.v1alpha.Subprope" - + "rtyEventFilter\"E\332A\004name\202\323\344\223\0028\0226/v1alpha/" - + "{name=properties/*/subpropertyEventFilte" - + "rs/*}\022\357\001\n\033ListSubpropertyEventFilters\022B." - + "google.analytics.admin.v1alpha.ListSubpr" - + "opertyEventFiltersRequest\032C.google.analy" - + "tics.admin.v1alpha.ListSubpropertyEventF" - + "iltersResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1alph" - + "a/{parent=properties/*}/subpropertyEvent" - + "Filters\022\266\002\n\034UpdateSubpropertyEventFilter" - + "\022C.google.analytics.admin.v1alpha.Update" - + "SubpropertyEventFilterRequest\0326.google.a" - + "nalytics.admin.v1alpha.SubpropertyEventF" - + "ilter\"\230\001\332A$subproperty_event_filter,upda" - + "te_mask\202\323\344\223\002k2O/v1alpha/{subproperty_eve" - + "nt_filter.name=properties/*/subpropertyE" - + "ventFilters/*}:\030subproperty_event_filter" - + "\022\302\001\n\034DeleteSubpropertyEventFilter\022C.goog" - + "le.analytics.admin.v1alpha.DeleteSubprop" - + "ertyEventFilterRequest\032\026.google.protobuf" - + ".Empty\"E\332A\004name\202\323\344\223\0028*6/v1alpha/{name=pr" - + "operties/*/subpropertyEventFilters/*}\022\235\002" - + "\n\035CreateReportingDataAnnotation\022D.google" - + ".analytics.admin.v1alpha.CreateReporting" - + "DataAnnotationRequest\0327.google.analytics" - + ".admin.v1alpha.ReportingDataAnnotation\"}" - + "\332A parent,reporting_data_annotation\202\323\344\223\002" - + "T\"7/v1alpha/{parent=properties/*}/report" - + "ingDataAnnotations:\031reporting_data_annot" - + "ation\022\340\001\n\032GetReportingDataAnnotation\022A.g" - + "oogle.analytics.admin.v1alpha.GetReporti" - + "ngDataAnnotationRequest\0327.google.analyti" - + "cs.admin.v1alpha.ReportingDataAnnotation" - + "\"F\332A\004name\202\323\344\223\0029\0227/v1alpha/{name=properti" - + "es/*/reportingDataAnnotations/*}\022\363\001\n\034Lis" - + "tReportingDataAnnotations\022C.google.analy" - + "tics.admin.v1alpha.ListReportingDataAnno" - + "tationsRequest\032D.google.analytics.admin." - + "v1alpha.ListReportingDataAnnotationsResp" - + "onse\"H\332A\006parent\202\323\344\223\0029\0227/v1alpha/{parent=" - + "properties/*}/reportingDataAnnotations\022\275" - + "\002\n\035UpdateReportingDataAnnotation\022D.googl" - + "e.analytics.admin.v1alpha.UpdateReportin" - + "gDataAnnotationRequest\0327.google.analytic" - + "s.admin.v1alpha.ReportingDataAnnotation\"" - + "\234\001\332A%reporting_data_annotation,update_ma" - + "sk\202\323\344\223\002n2Q/v1alpha/{reporting_data_annot" - + "ation.name=properties/*/reportingDataAnn" - + "otations/*}:\031reporting_data_annotation\022\305" - + "\001\n\035DeleteReportingDataAnnotation\022D.googl" - + "e.analytics.admin.v1alpha.DeleteReportin" - + "gDataAnnotationRequest\032\026.google.protobuf" - + ".Empty\"F\332A\004name\202\323\344\223\0029*7/v1alpha/{name=pr" - + "operties/*/reportingDataAnnotations/*}\022\316" - + "\001\n\022SubmitUserDeletion\0229.google.analytics" - + ".admin.v1alpha.SubmitUserDeletionRequest" - + "\032:.google.analytics.admin.v1alpha.Submit" - + "UserDeletionResponse\"A\332A\004name\202\323\344\223\0024\"//v1" - + "alpha/{name=properties/*}:submitUserDele" - + "tion:\001*\022\353\001\n\032ListSubpropertySyncConfigs\022A" - + ".google.analytics.admin.v1alpha.ListSubp" - + "ropertySyncConfigsRequest\032B.google.analy" - + "tics.admin.v1alpha.ListSubpropertySyncCo" - + "nfigsResponse\"F\332A\006parent\202\323\344\223\0027\0225/v1alpha" - + "/{parent=properties/*}/subpropertySyncCo" - + "nfigs\022\257\002\n\033UpdateSubpropertySyncConfig\022B." - + "google.analytics.admin.v1alpha.UpdateSub" - + "propertySyncConfigRequest\0325.google.analy" - + "tics.admin.v1alpha.SubpropertySyncConfig" - + "\"\224\001\332A#subproperty_sync_config,update_mas" - + "k\202\323\344\223\002h2M/v1alpha/{subproperty_sync_conf" - + "ig.name=properties/*/subpropertySyncConf" - + "igs/*}:\027subproperty_sync_config\022\330\001\n\030GetS" - + "ubpropertySyncConfig\022?.google.analytics.", - "admin.v1alpha.GetSubpropertySyncConfigRe" - + "quest\0325.google.analytics.admin.v1alpha.S" - + "ubpropertySyncConfig\"D\332A\004name\202\323\344\223\0027\0225/v1" - + "alpha/{name=properties/*/subpropertySync" - + "Configs/*}\022\345\001\n\034GetReportingIdentitySetti" - + "ngs\022C.google.analytics.admin.v1alpha.Get" - + "ReportingIdentitySettingsRequest\0329.googl" - + "e.analytics.admin.v1alpha.ReportingIdent" - + "itySettings\"E\332A\004name\202\323\344\223\0028\0226/v1alpha/{na" - + "me=properties/*/reportingIdentitySetting" - + "s}\032\374\001\312A\035analyticsadmin.googleapis.com\322A\330" - + "\001https://www.googleapis.com/auth/analyti" - + "cs.edit,https://www.googleapis.com/auth/" - + "analytics.manage.users,https://www.googl" - + "eapis.com/auth/analytics.manage.users.re" - + "adonly,https://www.googleapis.com/auth/a" - + "nalytics.readonlyB{\n\"com.google.analytic" - + "s.admin.v1alphaB\023AnalyticsAdminProtoP\001Z>" - + "cloud.google.com/go/analytics/admin/apiv" - + "1alpha/adminpb;adminpbb\006proto3" + + "lpha.CreateRollupPropertySourceLinkReque" + + "st\0328.google.analytics.admin.v1alpha.Roll" + + "upPropertySourceLink\"\202\001\332A\"parent,rollup_" + + "property_source_link\202\323\344\223\002W\"8/v1alpha/{pa" + + "rent=properties/*}/rollupPropertySourceL" + + "inks:\033rollup_property_source_link\022\310\001\n\036De" + + "leteRollupPropertySourceLink\022E.google.an" + + "alytics.admin.v1alpha.DeleteRollupProper" + + "tySourceLinkRequest\032\026.google.protobuf.Em" + + "pty\"G\332A\004name\202\323\344\223\002:*8/v1alpha/{name=prope" + + "rties/*/rollupPropertySourceLinks/*}\022\306\001\n" + + "\024ProvisionSubproperty\022;.google.analytics" + + ".admin.v1alpha.ProvisionSubpropertyReque" + + "st\032<.google.analytics.admin.v1alpha.Prov" + + "isionSubpropertyResponse\"3\202\323\344\223\002-\"(/v1alp" + + "ha/properties:provisionSubproperty:\001*\022\227\002" + + "\n\034CreateSubpropertyEventFilter\022C.google." + + "analytics.admin.v1alpha.CreateSubpropert" + + "yEventFilterRequest\0326.google.analytics.a" + + "dmin.v1alpha.SubpropertyEventFilter\"z\332A\037" + + "parent,subproperty_event_filter\202\323\344\223\002R\"6/" + + "v1alpha/{parent=properties/*}/subpropert" + + "yEventFilters:\030subproperty_event_filter\022" + + "\334\001\n\031GetSubpropertyEventFilter\022@.google.a" + + "nalytics.admin.v1alpha.GetSubpropertyEve" + + "ntFilterRequest\0326.google.analytics.admin" + + ".v1alpha.SubpropertyEventFilter\"E\332A\004name" + + "\202\323\344\223\0028\0226/v1alpha/{name=properties/*/subp" + + "ropertyEventFilters/*}\022\357\001\n\033ListSubproper" + + "tyEventFilters\022B.google.analytics.admin." + + "v1alpha.ListSubpropertyEventFiltersReque" + + "st\032C.google.analytics.admin.v1alpha.List" + + "SubpropertyEventFiltersResponse\"G\332A\006pare" + + "nt\202\323\344\223\0028\0226/v1alpha/{parent=properties/*}" + + "/subpropertyEventFilters\022\266\002\n\034UpdateSubpr" + + "opertyEventFilter\022C.google.analytics.adm" + + "in.v1alpha.UpdateSubpropertyEventFilterR" + + "equest\0326.google.analytics.admin.v1alpha." + + "SubpropertyEventFilter\"\230\001\332A$subproperty_" + + "event_filter,update_mask\202\323\344\223\002k2O/v1alpha" + + "/{subproperty_event_filter.name=properti" + + "es/*/subpropertyEventFilters/*}:\030subprop" + + "erty_event_filter\022\302\001\n\034DeleteSubpropertyE" + + "ventFilter\022C.google.analytics.admin.v1al" + + "pha.DeleteSubpropertyEventFilterRequest\032" + + "\026.google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028*6" + + "/v1alpha/{name=properties/*/subpropertyE" + + "ventFilters/*}\022\235\002\n\035CreateReportingDataAn" + + "notation\022D.google.analytics.admin.v1alph" + + "a.CreateReportingDataAnnotationRequest\0327" + + ".google.analytics.admin.v1alpha.Reportin" + + "gDataAnnotation\"}\332A parent,reporting_dat" + + "a_annotation\202\323\344\223\002T\"7/v1alpha/{parent=pro" + + "perties/*}/reportingDataAnnotations:\031rep" + + "orting_data_annotation\022\340\001\n\032GetReportingD" + + "ataAnnotation\022A.google.analytics.admin.v" + + "1alpha.GetReportingDataAnnotationRequest" + + "\0327.google.analytics.admin.v1alpha.Report" + + "ingDataAnnotation\"F\332A\004name\202\323\344\223\0029\0227/v1alp" + + "ha/{name=properties/*/reportingDataAnnot" + + "ations/*}\022\363\001\n\034ListReportingDataAnnotatio" + + "ns\022C.google.analytics.admin.v1alpha.List" + + "ReportingDataAnnotationsRequest\032D.google" + + ".analytics.admin.v1alpha.ListReportingDa" + + "taAnnotationsResponse\"H\332A\006parent\202\323\344\223\0029\0227" + + "/v1alpha/{parent=properties/*}/reporting" + + "DataAnnotations\022\275\002\n\035UpdateReportingDataA" + + "nnotation\022D.google.analytics.admin.v1alp" + + "ha.UpdateReportingDataAnnotationRequest\032" + + "7.google.analytics.admin.v1alpha.Reporti" + + "ngDataAnnotation\"\234\001\332A%reporting_data_ann" + + "otation,update_mask\202\323\344\223\002n2Q/v1alpha/{rep" + + "orting_data_annotation.name=properties/*" + + "/reportingDataAnnotations/*}:\031reporting_" + + "data_annotation\022\305\001\n\035DeleteReportingDataA" + + "nnotation\022D.google.analytics.admin.v1alp" + + "ha.DeleteReportingDataAnnotationRequest\032" + + "\026.google.protobuf.Empty\"F\332A\004name\202\323\344\223\0029*7" + + "/v1alpha/{name=properties/*/reportingDat" + + "aAnnotations/*}\022\316\001\n\022SubmitUserDeletion\0229" + + ".google.analytics.admin.v1alpha.SubmitUs" + + "erDeletionRequest\032:.google.analytics.adm" + + "in.v1alpha.SubmitUserDeletionResponse\"A\332" + + "A\004name\202\323\344\223\0024\"//v1alpha/{name=properties/" + + "*}:submitUserDeletion:\001*\022\353\001\n\032ListSubprop" + + "ertySyncConfigs\022A.google.analytics.admin" + + ".v1alpha.ListSubpropertySyncConfigsReque" + + "st\032B.google.analytics.admin.v1alpha.List" + + "SubpropertySyncConfigsResponse\"F\332A\006paren" + + "t\202\323\344\223\0027\0225/v1alpha/{parent=properties/*}/" + + "subpropertySyncConfigs\022\257\002\n\033UpdateSubprop" + + "ertySyncConfig\022B.google.analytics.admin." + + "v1alpha.UpdateSubpropertySyncConfigReque" + + "st\0325.google.analytics.admin.v1alpha.Subp", + "ropertySyncConfig\"\224\001\332A#subproperty_sync_" + + "config,update_mask\202\323\344\223\002h2M/v1alpha/{subp" + + "roperty_sync_config.name=properties/*/su" + + "bpropertySyncConfigs/*}:\027subproperty_syn" + + "c_config\022\330\001\n\030GetSubpropertySyncConfig\022?." + + "google.analytics.admin.v1alpha.GetSubpro" + + "pertySyncConfigRequest\0325.google.analytic" + + "s.admin.v1alpha.SubpropertySyncConfig\"D\332" + + "A\004name\202\323\344\223\0027\0225/v1alpha/{name=properties/" + + "*/subpropertySyncConfigs/*}\022\345\001\n\034GetRepor" + + "tingIdentitySettings\022C.google.analytics." + + "admin.v1alpha.GetReportingIdentitySettin" + + "gsRequest\0329.google.analytics.admin.v1alp" + + "ha.ReportingIdentitySettings\"E\332A\004name\202\323\344" + + "\223\0028\0226/v1alpha/{name=properties/*/reporti" + + "ngIdentitySettings}\022\341\001\n\033GetUserProvidedD" + + "ataSettings\022B.google.analytics.admin.v1a" + + "lpha.GetUserProvidedDataSettingsRequest\032" + + "8.google.analytics.admin.v1alpha.UserPro" + + "videdDataSettings\"D\332A\004name\202\323\344\223\0027\0225/v1alp" + + "ha/{name=properties/*/userProvidedDataSe" + + "ttings}\032\374\001\312A\035analyticsadmin.googleapis.c" + + "om\322A\330\001https://www.googleapis.com/auth/an" + + "alytics.edit,https://www.googleapis.com/" + + "auth/analytics.manage.users,https://www." + + "googleapis.com/auth/analytics.manage.use" + + "rs.readonly,https://www.googleapis.com/a" + + "uth/analytics.readonlyB{\n\"com.google.ana" + + "lytics.admin.v1alphaB\023AnalyticsAdminProt" + + "oP\001Z>cloud.google.com/go/analytics/admin" + + "/apiv1alpha/adminpb;adminpbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -4093,6 +4083,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor = + getDescriptor().getMessageType(193); + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor, + new java.lang.String[] { + "Name", + }); descriptor.resolveAllFeaturesImmutable(); com.google.analytics.admin.v1alpha.AccessReportProto.getDescriptor(); com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetric.java index ad77053b5435..aadc9cfda222 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetric.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetric.java @@ -615,11 +615,11 @@ private RestrictedMetricType(int value) { * * *
-   * Output only. Resource name for this CalculatedMetric.
+   * Identifier. Resource name for this CalculatedMetric.
    * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -640,11 +640,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this CalculatedMetric.
+   * Identifier. Resource name for this CalculatedMetric.
    * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1602,11 +1602,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1626,11 +1626,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1650,11 +1650,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1673,11 +1673,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1692,11 +1692,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this CalculatedMetric.
+     * Identifier. Resource name for this CalculatedMetric.
      * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricOrBuilder.java index 74c8a6a6339b..94b438f72e50 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CalculatedMetricOrBuilder.java @@ -30,11 +30,11 @@ public interface CalculatedMetricOrBuilder * * *
-   * Output only. Resource name for this CalculatedMetric.
+   * Identifier. Resource name for this CalculatedMetric.
    * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CalculatedMetricOrBuilder * * *
-   * Output only. Resource name for this CalculatedMetric.
+   * Identifier. Resource name for this CalculatedMetric.
    * Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}'
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java index 6ed65f4d0ba1..24547e5b0062 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryChange.java @@ -1224,6 +1224,50 @@ public interface ChangeHistoryResourceOrBuilder com.google.analytics.admin.v1alpha.ReportingIdentitySettingsOrBuilder getReportingIdentitySettingsOrBuilder(); + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return Whether the userProvidedDataSettings field is set. + */ + boolean hasUserProvidedDataSettings(); + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return The userProvidedDataSettings. + */ + com.google.analytics.admin.v1alpha.UserProvidedDataSettings getUserProvidedDataSettings(); + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder + getUserProvidedDataSettingsOrBuilder(); + com.google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource.ResourceCase getResourceCase(); } @@ -1315,6 +1359,7 @@ public enum ResourceCase REPORTING_DATA_ANNOTATION(32), SUBPROPERTY_SYNC_CONFIG(33), REPORTING_IDENTITY_SETTINGS(34), + USER_PROVIDED_DATA_SETTINGS(35), RESOURCE_NOT_SET(0); private final int value; @@ -1392,6 +1437,8 @@ public static ResourceCase forNumber(int value) { return SUBPROPERTY_SYNC_CONFIG; case 34: return REPORTING_IDENTITY_SETTINGS; + case 35: + return USER_PROVIDED_DATA_SETTINGS; case 0: return RESOURCE_NOT_SET; default: @@ -3062,6 +3109,68 @@ public boolean hasReportingIdentitySettings() { return com.google.analytics.admin.v1alpha.ReportingIdentitySettings.getDefaultInstance(); } + public static final int USER_PROVIDED_DATA_SETTINGS_FIELD_NUMBER = 35; + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return Whether the userProvidedDataSettings field is set. + */ + @java.lang.Override + public boolean hasUserProvidedDataSettings() { + return resourceCase_ == 35; + } + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return The userProvidedDataSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings + getUserProvidedDataSettings() { + if (resourceCase_ == 35) { + return (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_; + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + + /** + * + * + *
+     * A snapshot of a UserProvidedDataSettings resource in change history.
+     * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder + getUserProvidedDataSettingsOrBuilder() { + if (resourceCase_ == 35) { + return (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_; + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -3175,6 +3284,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 34, (com.google.analytics.admin.v1alpha.ReportingIdentitySettings) resource_); } + if (resourceCase_ == 35) { + output.writeMessage( + 35, (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_); + } getUnknownFields().writeTo(output); } @@ -3332,6 +3445,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 34, (com.google.analytics.admin.v1alpha.ReportingIdentitySettings) resource_); } + if (resourceCase_ == 35) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 35, (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -3446,6 +3564,10 @@ public boolean equals(final java.lang.Object obj) { if (!getReportingIdentitySettings().equals(other.getReportingIdentitySettings())) return false; break; + case 35: + if (!getUserProvidedDataSettings().equals(other.getUserProvidedDataSettings())) + return false; + break; case 0: default: } @@ -3577,6 +3699,10 @@ public int hashCode() { hash = (37 * hash) + REPORTING_IDENTITY_SETTINGS_FIELD_NUMBER; hash = (53 * hash) + getReportingIdentitySettings().hashCode(); break; + case 35: + hash = (37 * hash) + USER_PROVIDED_DATA_SETTINGS_FIELD_NUMBER; + hash = (53 * hash) + getUserProvidedDataSettings().hashCode(); + break; case 0: default: } @@ -3818,6 +3944,9 @@ public Builder clear() { if (reportingIdentitySettingsBuilder_ != null) { reportingIdentitySettingsBuilder_.clear(); } + if (userProvidedDataSettingsBuilder_ != null) { + userProvidedDataSettingsBuilder_.clear(); + } resourceCase_ = 0; resource_ = null; return this; @@ -3955,6 +4084,9 @@ private void buildPartialOneofs( if (resourceCase_ == 34 && reportingIdentitySettingsBuilder_ != null) { result.resource_ = reportingIdentitySettingsBuilder_.build(); } + if (resourceCase_ == 35 && userProvidedDataSettingsBuilder_ != null) { + result.resource_ = userProvidedDataSettingsBuilder_.build(); + } } @java.lang.Override @@ -4122,6 +4254,11 @@ public Builder mergeFrom( mergeReportingIdentitySettings(other.getReportingIdentitySettings()); break; } + case USER_PROVIDED_DATA_SETTINGS: + { + mergeUserProvidedDataSettings(other.getUserProvidedDataSettings()); + break; + } case RESOURCE_NOT_SET: { break; @@ -4367,6 +4504,14 @@ public Builder mergeFrom( resourceCase_ = 34; break; } // case 274 + case 282: + { + input.readMessage( + internalGetUserProvidedDataSettingsFieldBuilder().getBuilder(), + extensionRegistry); + resourceCase_ = 35; + break; + } // case 282 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11056,6 +11201,250 @@ public Builder clearReportingIdentitySettings() { return reportingIdentitySettingsBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder, + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder> + userProvidedDataSettingsBuilder_; + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return Whether the userProvidedDataSettings field is set. + */ + @java.lang.Override + public boolean hasUserProvidedDataSettings() { + return resourceCase_ == 35; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + * + * @return The userProvidedDataSettings. + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings + getUserProvidedDataSettings() { + if (userProvidedDataSettingsBuilder_ == null) { + if (resourceCase_ == 35) { + return (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_; + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } else { + if (resourceCase_ == 35) { + return userProvidedDataSettingsBuilder_.getMessage(); + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public Builder setUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings value) { + if (userProvidedDataSettingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resource_ = value; + onChanged(); + } else { + userProvidedDataSettingsBuilder_.setMessage(value); + } + resourceCase_ = 35; + return this; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public Builder setUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder builderForValue) { + if (userProvidedDataSettingsBuilder_ == null) { + resource_ = builderForValue.build(); + onChanged(); + } else { + userProvidedDataSettingsBuilder_.setMessage(builderForValue.build()); + } + resourceCase_ = 35; + return this; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public Builder mergeUserProvidedDataSettings( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings value) { + if (userProvidedDataSettingsBuilder_ == null) { + if (resourceCase_ == 35 + && resource_ + != com.google.analytics.admin.v1alpha.UserProvidedDataSettings + .getDefaultInstance()) { + resource_ = + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.newBuilder( + (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_) + .mergeFrom(value) + .buildPartial(); + } else { + resource_ = value; + } + onChanged(); + } else { + if (resourceCase_ == 35) { + userProvidedDataSettingsBuilder_.mergeFrom(value); + } else { + userProvidedDataSettingsBuilder_.setMessage(value); + } + } + resourceCase_ = 35; + return this; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public Builder clearUserProvidedDataSettings() { + if (userProvidedDataSettingsBuilder_ == null) { + if (resourceCase_ == 35) { + resourceCase_ = 0; + resource_ = null; + onChanged(); + } + } else { + if (resourceCase_ == 35) { + resourceCase_ = 0; + resource_ = null; + } + userProvidedDataSettingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder + getUserProvidedDataSettingsBuilder() { + return internalGetUserProvidedDataSettingsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder + getUserProvidedDataSettingsOrBuilder() { + if ((resourceCase_ == 35) && (userProvidedDataSettingsBuilder_ != null)) { + return userProvidedDataSettingsBuilder_.getMessageOrBuilder(); + } else { + if (resourceCase_ == 35) { + return (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_; + } + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + } + + /** + * + * + *
+       * A snapshot of a UserProvidedDataSettings resource in change history.
+       * 
+ * + * + * .google.analytics.admin.v1alpha.UserProvidedDataSettings user_provided_data_settings = 35; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder, + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder> + internalGetUserProvidedDataSettingsFieldBuilder() { + if (userProvidedDataSettingsBuilder_ == null) { + if (!(resourceCase_ == 35)) { + resource_ = + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + userProvidedDataSettingsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.analytics.admin.v1alpha.UserProvidedDataSettings, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder, + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder>( + (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) resource_, + getParentForChildren(), + isClean()); + resource_ = null; + } + resourceCase_ = 35; + onChanged(); + return userProvidedDataSettingsBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource) } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java index 9a16be4b6dd1..172dfbd8a34c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ChangeHistoryResourceType.java @@ -331,6 +331,16 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes * REPORTING_IDENTITY_SETTINGS = 34; */ REPORTING_IDENTITY_SETTINGS(34), + /** + * + * + *
+   * UserProvidedDataSettings resource
+   * 
+ * + * USER_PROVIDED_DATA_SETTINGS = 35; + */ + USER_PROVIDED_DATA_SETTINGS(35), UNRECOGNIZED(-1), ; @@ -674,6 +684,17 @@ public enum ChangeHistoryResourceType implements com.google.protobuf.ProtocolMes */ public static final int REPORTING_IDENTITY_SETTINGS_VALUE = 34; + /** + * + * + *
+   * UserProvidedDataSettings resource
+   * 
+ * + * USER_PROVIDED_DATA_SETTINGS = 35; + */ + public static final int USER_PROVIDED_DATA_SETTINGS_VALUE = 35; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -758,6 +779,8 @@ public static ChangeHistoryResourceType forNumber(int value) { return SUBPROPERTY_SYNC_CONFIG; case 34: return REPORTING_IDENTITY_SETTINGS; + case 35: + return USER_PROVIDED_DATA_SETTINGS; default: return null; } diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java index 1f673258a0e6..13888a94abf3 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEvent.java @@ -1154,11 +1154,11 @@ public com.google.protobuf.Parser getParserForType() { * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1179,11 +1179,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1959,11 +1959,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1983,11 +1983,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -2007,11 +2007,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -2030,11 +2030,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -2049,11 +2049,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this conversion event.
+     * Identifier. Resource name of this conversion event.
      * Format: properties/{property}/conversionEvents/{conversion_event}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java index 9575c5e330e5..0a983ee5f9fb 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ConversionEventOrBuilder.java @@ -30,11 +30,11 @@ public interface ConversionEventOrBuilder * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface ConversionEventOrBuilder * * *
-   * Output only. Resource name of this conversion event.
+   * Identifier. Resource name of this conversion event.
    * Format: properties/{property}/conversionEvents/{conversion_event}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java index 77e66f2c06a4..0b27443dd5c1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimension.java @@ -277,11 +277,11 @@ private DimensionScope(int value) { * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -302,11 +302,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1021,11 +1021,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1045,11 +1045,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1069,11 +1069,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1092,11 +1092,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1111,11 +1111,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this CustomDimension resource.
+     * Identifier. Resource name for this CustomDimension resource.
      * Format: properties/{property}/customDimensions/{customDimension}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java index 1337e3301930..2abac1e0bb99 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomDimensionOrBuilder.java @@ -30,11 +30,11 @@ public interface CustomDimensionOrBuilder * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CustomDimensionOrBuilder * * *
-   * Output only. Resource name for this CustomDimension resource.
+   * Identifier. Resource name for this CustomDimension resource.
    * Format: properties/{property}/customDimensions/{customDimension}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java index 6a5a651ad973..a749e2b71af6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetric.java @@ -762,11 +762,11 @@ private RestrictedMetricType(int value) { * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -787,11 +787,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1712,11 +1712,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1736,11 +1736,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1760,11 +1760,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1783,11 +1783,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1802,11 +1802,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this CustomMetric resource.
+     * Identifier. Resource name for this CustomMetric resource.
      * Format: properties/{property}/customMetrics/{customMetric}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java index 7c98547cc35c..3e956263a45e 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/CustomMetricOrBuilder.java @@ -30,11 +30,11 @@ public interface CustomMetricOrBuilder * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface CustomMetricOrBuilder * * *
-   * Output only. Resource name for this CustomMetric resource.
+   * Identifier. Resource name for this CustomMetric resource.
    * Format: properties/{property}/customMetrics/{customMetric}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java index 068a41e44bb4..16667f06ec7b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettings.java @@ -330,11 +330,11 @@ private RetentionDuration(int value) { * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -355,11 +355,11 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -881,11 +881,11 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -905,11 +905,11 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -929,11 +929,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -952,11 +952,11 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -971,11 +971,11 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this DataRetentionSetting resource.
+     * Identifier. Resource name for this DataRetentionSetting resource.
      * Format: properties/{property}/dataRetentionSettings
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java index e279c4ef640a..5acbb17f4226 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataRetentionSettingsOrBuilder.java @@ -30,11 +30,11 @@ public interface DataRetentionSettingsOrBuilder * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -44,11 +44,11 @@ public interface DataRetentionSettingsOrBuilder * * *
-   * Output only. Resource name for this DataRetentionSetting resource.
+   * Identifier. Resource name for this DataRetentionSetting resource.
    * Format: properties/{property}/dataRetentionSettings
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java index ef70ef5b05ed..2c5b9ccafb76 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettings.java @@ -80,12 +80,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -106,12 +106,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -193,7 +193,7 @@ public boolean getSharingWithGoogleAssignedSalesEnabled() { * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled is - * deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Override @@ -698,12 +698,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -723,12 +723,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -748,12 +748,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -772,12 +772,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -792,12 +792,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name.
+     * Identifier. Resource name.
      * Format: accounts/{account}/dataSharingSettings
      * Example: "accounts/1000/dataSharingSettings"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. @@ -977,7 +977,7 @@ public Builder clearSharingWithGoogleAssignedSalesEnabled() { * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled - * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Override @@ -997,7 +997,7 @@ public boolean getSharingWithGoogleAnySalesEnabled() { * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled - * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @param value The sharingWithGoogleAnySalesEnabled to set. * @return This builder for chaining. */ @@ -1021,7 +1021,7 @@ public Builder setSharingWithGoogleAnySalesEnabled(boolean value) { * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled - * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * is deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java index 8858717e54dc..54a1a46e0309 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataSharingSettingsOrBuilder.java @@ -30,12 +30,12 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface DataSharingSettingsOrBuilder * * *
-   * Output only. Resource name.
+   * Identifier. Resource name.
    * Format: accounts/{account}/dataSharingSettings
    * Example: "accounts/1000/dataSharingSettings"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -106,7 +106,7 @@ public interface DataSharingSettingsOrBuilder * * @deprecated * google.analytics.admin.v1alpha.DataSharingSettings.sharing_with_google_any_sales_enabled is - * deprecated. See google/analytics/admin/v1alpha/resources.proto;l=707 + * deprecated. See google/analytics/admin/v1alpha/resources.proto;l=724 * @return The sharingWithGoogleAnySalesEnabled. */ @java.lang.Deprecated diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java index 324023042a48..ae0976b77f78 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStream.java @@ -3307,12 +3307,12 @@ public com.google.analytics.admin.v1alpha.DataStream.IosAppStreamData getIosAppS * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -3333,12 +3333,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4881,12 +4881,12 @@ public Builder clearIosAppStreamData() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -4906,12 +4906,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -4931,12 +4931,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -4955,12 +4955,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -4975,12 +4975,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this Data Stream.
+     * Identifier. Resource name of this Data Stream.
      * Format: properties/{property_id}/dataStreams/{stream_id}
      * Example: "properties/1000/dataStreams/2000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java index 405cbf2873e8..4c8af3e40600 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DataStreamOrBuilder.java @@ -161,12 +161,12 @@ public interface DataStreamOrBuilder * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -176,12 +176,12 @@ public interface DataStreamOrBuilder * * *
-   * Output only. Resource name of this Data Stream.
+   * Identifier. Resource name of this Data Stream.
    * Format: properties/{property_id}/dataStreams/{stream_id}
    * Example: "properties/1000/dataStreams/2000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java index be9514468c9c..e35d4f858256 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLink.java @@ -83,14 +83,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * Identifier. The resource name for this DisplayVideo360AdvertiserLink
    * resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
    *
    * Note: linkId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -111,14 +111,14 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * Identifier. The resource name for this DisplayVideo360AdvertiserLink
    * resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
    *
    * Note: linkId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -937,14 +937,14 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. The resource name for this DisplayVideo360AdvertiserLink
      * resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
      *
      * Note: linkId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -964,14 +964,14 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. The resource name for this DisplayVideo360AdvertiserLink
      * resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
      *
      * Note: linkId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -991,14 +991,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. The resource name for this DisplayVideo360AdvertiserLink
      * resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
      *
      * Note: linkId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1017,14 +1017,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. The resource name for this DisplayVideo360AdvertiserLink
      * resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
      *
      * Note: linkId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1039,14 +1039,14 @@ public Builder clearName() { * * *
-     * Output only. The resource name for this DisplayVideo360AdvertiserLink
+     * Identifier. The resource name for this DisplayVideo360AdvertiserLink
      * resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
      *
      * Note: linkId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java index 94f0bda0af0d..3cb060160990 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkOrBuilder.java @@ -30,14 +30,14 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder * * *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * Identifier. The resource name for this DisplayVideo360AdvertiserLink
    * resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
    *
    * Note: linkId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -47,14 +47,14 @@ public interface DisplayVideo360AdvertiserLinkOrBuilder * * *
-   * Output only. The resource name for this DisplayVideo360AdvertiserLink
+   * Identifier. The resource name for this DisplayVideo360AdvertiserLink
    * resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId}
    *
    * Note: linkId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java index beeda1de1baa..74f151e99256 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposal.java @@ -90,14 +90,14 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The resource name for this
+   * Identifier. The resource name for this
    * DisplayVideo360AdvertiserLinkProposal resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
    *
    * Note: proposalId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -118,14 +118,14 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name for this
+   * Identifier. The resource name for this
    * DisplayVideo360AdvertiserLinkProposal resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
    *
    * Note: proposalId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1141,14 +1141,14 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1168,14 +1168,14 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1195,14 +1195,14 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1221,14 +1221,14 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1243,14 +1243,14 @@ public Builder clearName() { * * *
-     * Output only. The resource name for this
+     * Identifier. The resource name for this
      * DisplayVideo360AdvertiserLinkProposal resource. Format:
      * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
      *
      * Note: proposalId is not the Display & Video 360 Advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java index 79a10b46a4b0..ea01e3732d76 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/DisplayVideo360AdvertiserLinkProposalOrBuilder.java @@ -30,14 +30,14 @@ public interface DisplayVideo360AdvertiserLinkProposalOrBuilder * * *
-   * Output only. The resource name for this
+   * Identifier. The resource name for this
    * DisplayVideo360AdvertiserLinkProposal resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
    *
    * Note: proposalId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -47,14 +47,14 @@ public interface DisplayVideo360AdvertiserLinkProposalOrBuilder * * *
-   * Output only. The resource name for this
+   * Identifier. The resource name for this
    * DisplayVideo360AdvertiserLinkProposal resource. Format:
    * properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId}
    *
    * Note: proposalId is not the Display & Video 360 Advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java index d58948b2782c..2321bc3a6bf6 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLink.java @@ -81,10 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -105,10 +105,10 @@ public java.lang.String getName() { * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -626,10 +626,10 @@ public Builder mergeFrom( * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -649,10 +649,10 @@ public java.lang.String getName() { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -672,10 +672,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -694,10 +694,10 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -712,10 +712,10 @@ public Builder clearName() { * * *
-     * Output only. Example format: properties/1234/firebaseLinks/5678
+     * Identifier. Example format: properties/1234/firebaseLinks/5678
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java index a8259ba0a54f..67e36aa653e8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/FirebaseLinkOrBuilder.java @@ -30,10 +30,10 @@ public interface FirebaseLinkOrBuilder * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -43,10 +43,10 @@ public interface FirebaseLinkOrBuilder * * *
-   * Output only. Example format: properties/1234/firebaseLinks/5678
+   * Identifier. Example format: properties/1234/firebaseLinks/5678
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequest.java new file mode 100644 index 000000000000..2dbff56557c9 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequest.java @@ -0,0 +1,630 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/analytics_admin.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Request message for GetUserProvidedDataSettings RPC
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest} + */ +@com.google.protobuf.Generated +public final class GetUserProvidedDataSettingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + GetUserProvidedDataSettingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetUserProvidedDataSettingsRequest"); + } + + // Use GetUserProvidedDataSettingsRequest.newBuilder() to construct. + private GetUserProvidedDataSettingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetUserProvidedDataSettingsRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Required. The name of the user provided data settings to retrieve.
+   * Format: properties/{property}/userProvidedDataSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The name of the user provided data settings to retrieve.
+   * Format: properties/{property}/userProvidedDataSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest other = + (com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest 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.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for GetUserProvidedDataSettings RPC
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.class, + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.Builder.class); + } + + // Construct using + // com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.AnalyticsAdminProto + .internal_static_google_analytics_admin_v1alpha_GetUserProvidedDataSettingsRequest_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest build() { + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest buildPartial() { + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest result = + new com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) { + return mergeFrom( + (com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest other) { + if (other + == com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The name of the user provided data settings to retrieve.
+     * Format: properties/{property}/userProvidedDataSettings
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + private static final com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest(); + } + + public static com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetUserProvidedDataSettingsRequest 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.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequestOrBuilder.java new file mode 100644 index 000000000000..db2c62b73b6a --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GetUserProvidedDataSettingsRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/analytics_admin.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +@com.google.protobuf.Generated +public interface GetUserProvidedDataSettingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the user provided data settings to retrieve.
+   * Format: properties/{property}/userProvidedDataSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Required. The name of the user provided data settings to retrieve.
+   * Format: properties/{property}/userProvidedDataSettings
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java index d896ec6a3099..79a997aa1ae0 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTag.java @@ -81,12 +81,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name for this GlobalSiteTag resource.
+   * Identifier. Resource name for this GlobalSiteTag resource.
    * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
    * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -107,12 +107,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name for this GlobalSiteTag resource.
+   * Identifier. Resource name for this GlobalSiteTag resource.
    * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
    * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -525,12 +525,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -550,12 +550,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -575,12 +575,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -599,12 +599,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -619,12 +619,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name for this GlobalSiteTag resource.
+     * Identifier. Resource name for this GlobalSiteTag resource.
      * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
      * Example: "properties/123/dataStreams/456/globalSiteTag"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java index f41680b667ec..71d582d6f38b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GlobalSiteTagOrBuilder.java @@ -30,12 +30,12 @@ public interface GlobalSiteTagOrBuilder * * *
-   * Output only. Resource name for this GlobalSiteTag resource.
+   * Identifier. Resource name for this GlobalSiteTag resource.
    * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
    * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface GlobalSiteTagOrBuilder * * *
-   * Output only. Resource name for this GlobalSiteTag resource.
+   * Identifier. Resource name for this GlobalSiteTag resource.
    * Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag
    * Example: "properties/123/dataStreams/456/globalSiteTag"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java index 04a623e5a4dc..ed0e88c71f53 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLink.java @@ -82,13 +82,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,13 +109,13 @@ public java.lang.String getName() { * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -930,13 +930,13 @@ public Builder mergeFrom( * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -956,13 +956,13 @@ public java.lang.String getName() { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -982,13 +982,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1007,13 +1007,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1028,13 +1028,13 @@ public Builder clearName() { * * *
-     * Output only. Format:
+     * Identifier. Format:
      * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
      *
      * Note: googleAdsLinkId is not the Google Ads customer ID.
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java index 47fae2ce0c3d..242521f3e7d8 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/GoogleAdsLinkOrBuilder.java @@ -30,13 +30,13 @@ public interface GoogleAdsLinkOrBuilder * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -46,13 +46,13 @@ public interface GoogleAdsLinkOrBuilder * * *
-   * Output only. Format:
+   * Identifier. Format:
    * properties/{propertyId}/googleAdsLinks/{googleAdsLinkId}
    *
    * Note: googleAdsLinkId is not the Google Ads customer ID.
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java index 7091dc8b91f8..acc46060be03 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequest.java @@ -77,13 +77,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The maximum number of AccountSummary resources to return. The service may
-   * return fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * Optional. The maximum number of AccountSummary resources to return. The
+   * service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 resources will be returned. The maximum
+   * value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -101,13 +101,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListAccountSummaries`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListAccountSummaries` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -128,13 +128,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListAccountSummaries`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListAccountSummaries` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -493,13 +493,13 @@ public Builder mergeFrom( * * *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * Optional. The maximum number of AccountSummary resources to return. The
+     * service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 resources will be returned. The maximum
+     * value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -512,13 +512,13 @@ public int getPageSize() { * * *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * Optional. The maximum number of AccountSummary resources to return. The
+     * service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 resources will be returned. The maximum
+     * value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -535,13 +535,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of AccountSummary resources to return. The service may
-     * return fewer than this value, even if there are additional pages.
-     * If unspecified, at most 50 resources will be returned.
-     * The maximum value is 200; (higher values will be coerced to the maximum)
+     * Optional. The maximum number of AccountSummary resources to return. The
+     * service may return fewer than this value, even if there are additional
+     * pages. If unspecified, at most 50 resources will be returned. The maximum
+     * value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -558,13 +558,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -584,13 +584,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -610,13 +610,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -635,13 +635,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -656,13 +656,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListAccountSummaries` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListAccountSummaries`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListAccountSummaries`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListAccountSummaries` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java index 12164fb85e20..5a7ca5687ac1 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountSummariesRequestOrBuilder.java @@ -30,13 +30,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
-   * The maximum number of AccountSummary resources to return. The service may
-   * return fewer than this value, even if there are additional pages.
-   * If unspecified, at most 50 resources will be returned.
-   * The maximum value is 200; (higher values will be coerced to the maximum)
+   * Optional. The maximum number of AccountSummary resources to return. The
+   * service may return fewer than this value, even if there are additional
+   * pages. If unspecified, at most 50 resources will be returned. The maximum
+   * value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -46,13 +46,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListAccountSummaries`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListAccountSummaries` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -62,13 +62,13 @@ public interface ListAccountSummariesRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccountSummaries` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListAccountSummaries`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListAccountSummaries`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListAccountSummaries` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java index cd61e4c739ce..cd076da61d93 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequest.java @@ -77,13 +77,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -101,13 +101,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. A page token, received from a previous `ListAccounts` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListAccounts` must
    * match the call that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -128,13 +128,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. A page token, received from a previous `ListAccounts` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListAccounts` must
    * match the call that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -533,13 +533,13 @@ public Builder mergeFrom( * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -552,13 +552,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -575,13 +575,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -598,13 +598,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -624,13 +624,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -650,13 +650,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -675,13 +675,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -696,13 +696,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListAccounts` call.
+     * Optional. A page token, received from a previous `ListAccounts` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListAccounts` must
      * match the call that provided the page token.
      * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java index 8ae99637d287..7e9c309b07de 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListAccountsRequestOrBuilder.java @@ -30,13 +30,13 @@ public interface ListAccountsRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 1; + * int32 page_size = 1 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -46,13 +46,13 @@ public interface ListAccountsRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. A page token, received from a previous `ListAccounts` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListAccounts` must
    * match the call that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -62,13 +62,13 @@ public interface ListAccountsRequestOrBuilder * * *
-   * A page token, received from a previous `ListAccounts` call.
+   * Optional. A page token, received from a previous `ListAccounts` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListAccounts` must
    * match the call that provided the page token.
    * 
* - * string page_token = 2; + * string page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java index 87683fff40e2..50827d73a2c7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,13 +160,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListConversionEvents`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListConversionEvents` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -187,13 +187,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListConversionEvents`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListConversionEvents` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -702,12 +702,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -720,12 +720,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -742,12 +742,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -764,13 +764,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -790,13 +790,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -816,13 +816,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -841,13 +841,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -862,13 +862,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListConversionEvents` call.
-     * Provide this to retrieve the subsequent page.
-     * When paginating, all other parameters provided to `ListConversionEvents`
-     * must match the call that provided the page token.
+     * Optional. A page token, received from a previous `ListConversionEvents`
+     * call. Provide this to retrieve the subsequent page. When paginating, all
+     * other parameters provided to `ListConversionEvents` must match the call
+     * that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java index 9ed717d1ce44..fcd239328a18 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListConversionEventsRequestOrBuilder.java @@ -62,12 +62,12 @@ public interface ListConversionEventsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -77,13 +77,13 @@ public interface ListConversionEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListConversionEvents`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListConversionEvents` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -93,13 +93,13 @@ public interface ListConversionEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListConversionEvents` call.
-   * Provide this to retrieve the subsequent page.
-   * When paginating, all other parameters provided to `ListConversionEvents`
-   * must match the call that provided the page token.
+   * Optional. A page token, received from a previous `ListConversionEvents`
+   * call. Provide this to retrieve the subsequent page. When paginating, all
+   * other parameters provided to `ListConversionEvents` must match the call
+   * that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java index 36ef26e47dfc..7ad90efbe643 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequest.java @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200 (higher values will be coerced to the maximum).
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,14 +158,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * call. Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListCustomDimensions`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -186,14 +186,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * call. Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListCustomDimensions`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -697,12 +697,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -715,12 +715,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -737,12 +737,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,14 +759,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -786,14 +786,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,14 +813,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -839,14 +839,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -861,14 +861,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListCustomDimensions` call.
-     * Provide this to retrieve the subsequent page.
+     * Optional. A page token, received from a previous `ListCustomDimensions`
+     * call. Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListCustomDimensions`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java index 713a9ce8adc6..42648b8c213d 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListCustomDimensionsRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200 (higher values will be coerced to the maximum).
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * call. Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListCustomDimensions`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListCustomDimensionsRequestOrBuilder * * *
-   * A page token, received from a previous `ListCustomDimensions` call.
-   * Provide this to retrieve the subsequent page.
+   * Optional. A page token, received from a previous `ListCustomDimensions`
+   * call. Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListCustomDimensions`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java index 87050a994bc0..f022be577ea7 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequest.java @@ -139,13 +139,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -163,13 +163,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -190,13 +190,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -707,13 +707,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -726,13 +726,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -749,13 +749,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -772,13 +772,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -798,13 +798,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -824,13 +824,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -849,13 +849,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -870,13 +870,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListFirebaseLinks` call.
+     * Optional. A page token, received from a previous `ListFirebaseLinks` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListFirebaseLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java index d8586049f9d7..82fd5a3f2333 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListFirebaseLinksRequestOrBuilder.java @@ -64,13 +64,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -80,13 +80,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -96,13 +96,13 @@ public interface ListFirebaseLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListFirebaseLinks` call.
+   * Optional. A page token, received from a previous `ListFirebaseLinks` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListFirebaseLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java index 650a36c4c05c..f5e0597e561a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequest.java @@ -135,12 +135,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200 (higher values will be coerced to the maximum).
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -158,14 +158,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
    * Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -186,14 +186,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
    * Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -697,12 +697,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -715,12 +715,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -737,12 +737,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200 (higher values will be coerced to the maximum).
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -759,14 +759,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -786,14 +786,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,14 +813,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -839,14 +839,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -861,14 +861,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListGoogleAdsLinks` call.
+     * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
      * Provide this to retrieve the subsequent page.
      *
      * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java index 1921be1fde52..ea250220031b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListGoogleAdsLinksRequestOrBuilder.java @@ -60,12 +60,12 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200 (higher values will be coerced to the maximum).
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -75,14 +75,14 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
    * Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -92,14 +92,14 @@ public interface ListGoogleAdsLinksRequestOrBuilder * * *
-   * A page token, received from a previous `ListGoogleAdsLinks` call.
+   * Optional. A page token, received from a previous `ListGoogleAdsLinks` call.
    * Provide this to retrieve the subsequent page.
    *
    * When paginating, all other parameters provided to `ListGoogleAdsLinks` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequest.java index 826bda5e9cb2..5ea3b9c6f2ca 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequest.java @@ -137,12 +137,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -160,13 +160,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -187,13 +187,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -699,12 +699,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -717,12 +717,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -739,12 +739,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -761,13 +761,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -787,13 +787,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -813,13 +813,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -838,13 +838,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -859,13 +859,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListKeyEvents` call.
+     * Optional. A page token, received from a previous `ListKeyEvents` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListKeyEvents`
      * must match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequestOrBuilder.java index 32266d6c0379..2547f33f280a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListKeyEventsRequestOrBuilder.java @@ -62,12 +62,12 @@ public interface ListKeyEventsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -77,13 +77,13 @@ public interface ListKeyEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -93,13 +93,13 @@ public interface ListKeyEventsRequestOrBuilder * * *
-   * A page token, received from a previous `ListKeyEvents` call.
+   * Optional. A page token, received from a previous `ListKeyEvents` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListKeyEvents`
    * must match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java index 6b82ed2404eb..6d487a8a52ae 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequest.java @@ -141,12 +141,12 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 10 resources will be returned.
    * The maximum value is 10. Higher values will be coerced to the maximum.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -164,13 +164,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListMeasurementProtocolSecrets` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -191,13 +192,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListMeasurementProtocolSecrets` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -720,12 +722,12 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 10 resources will be returned.
      * The maximum value is 10. Higher values will be coerced to the maximum.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -738,12 +740,12 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 10 resources will be returned.
      * The maximum value is 10. Higher values will be coerced to the maximum.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -760,12 +762,12 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return.
+     * Optional. The maximum number of resources to return.
      * If unspecified, at most 10 resources will be returned.
      * The maximum value is 10. Higher values will be coerced to the maximum.
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -782,13 +784,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -808,13 +811,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -834,13 +838,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -859,13 +864,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -880,13 +886,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListMeasurementProtocolSecrets`
-     * call. Provide this to retrieve the subsequent page. When paginating, all
-     * other parameters provided to `ListMeasurementProtocolSecrets` must match
-     * the call that provided the page token.
+     * Optional. A page token, received from a previous
+     * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+     * subsequent page. When paginating, all other parameters provided to
+     * `ListMeasurementProtocolSecrets` must match the call that provided the page
+     * token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java index 1a7f4dcc9ae8..0ea903f34503 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListMeasurementProtocolSecretsRequestOrBuilder.java @@ -64,12 +64,12 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
-   * The maximum number of resources to return.
+   * Optional. The maximum number of resources to return.
    * If unspecified, at most 10 resources will be returned.
    * The maximum value is 10. Higher values will be coerced to the maximum.
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -79,13 +79,14 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListMeasurementProtocolSecrets` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -95,13 +96,14 @@ public interface ListMeasurementProtocolSecretsRequestOrBuilder * * *
-   * A page token, received from a previous `ListMeasurementProtocolSecrets`
-   * call. Provide this to retrieve the subsequent page. When paginating, all
-   * other parameters provided to `ListMeasurementProtocolSecrets` must match
-   * the call that provided the page token.
+   * Optional. A page token, received from a previous
+   * `ListMeasurementProtocolSecrets` call. Provide this to retrieve the
+   * subsequent page. When paginating, all other parameters provided to
+   * `ListMeasurementProtocolSecrets` must match the call that provided the page
+   * token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java index 6fdc8c9dd776..1af15f0e326b 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequest.java @@ -161,13 +161,13 @@ public com.google.protobuf.ByteString getFilterBytes() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -185,13 +185,13 @@ public int getPageSize() { * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. A page token, received from a previous `ListProperties` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListProperties` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -212,13 +212,13 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. A page token, received from a previous `ListProperties` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListProperties` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -827,13 +827,13 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -846,13 +846,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -869,13 +869,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -892,13 +892,13 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -918,13 +918,13 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -944,13 +944,13 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -969,13 +969,13 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -990,13 +990,13 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous `ListProperties` call.
+     * Optional. A page token, received from a previous `ListProperties` call.
      * Provide this to retrieve the subsequent page.
      * When paginating, all other parameters provided to `ListProperties` must
      * match the call that provided the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java index 96505ae09a56..97c85f547ab4 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListPropertiesRequestOrBuilder.java @@ -86,13 +86,13 @@ public interface ListPropertiesRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -102,13 +102,13 @@ public interface ListPropertiesRequestOrBuilder * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. A page token, received from a previous `ListProperties` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListProperties` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -118,13 +118,13 @@ public interface ListPropertiesRequestOrBuilder * * *
-   * A page token, received from a previous `ListProperties` call.
+   * Optional. A page token, received from a previous `ListProperties` call.
    * Provide this to retrieve the subsequent page.
    * When paginating, all other parameters provided to `ListProperties` must
    * match the call that provided the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java index 4a473bf954cd..f194113bfd66 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequest.java @@ -144,13 +144,13 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -168,14 +168,14 @@ public int getPageSize() { * * *
-   * A page token, received from a previous
+   * Optional. A page token, received from a previous
    * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
    * subsequent page. When paginating, all other parameters provided to
    * `ListSKAdNetworkConversionValueSchema` must match the call that provided
    * the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -196,14 +196,14 @@ public java.lang.String getPageToken() { * * *
-   * A page token, received from a previous
+   * Optional. A page token, received from a previous
    * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
    * subsequent page. When paginating, all other parameters provided to
    * `ListSKAdNetworkConversionValueSchema` must match the call that provided
    * the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -741,13 +741,13 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -760,13 +760,13 @@ public int getPageSize() { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageSize to set. * @return This builder for chaining. @@ -783,13 +783,13 @@ public Builder setPageSize(int value) { * * *
-     * The maximum number of resources to return. The service may return
+     * Optional. The maximum number of resources to return. The service may return
      * fewer than this value, even if there are additional pages.
      * If unspecified, at most 50 resources will be returned.
      * The maximum value is 200; (higher values will be coerced to the maximum)
      * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -806,14 +806,14 @@ public Builder clearPageSize() { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -833,14 +833,14 @@ public java.lang.String getPageToken() { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ @@ -860,14 +860,14 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The pageToken to set. * @return This builder for chaining. @@ -886,14 +886,14 @@ public Builder setPageToken(java.lang.String value) { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -908,14 +908,14 @@ public Builder clearPageToken() { * * *
-     * A page token, received from a previous
+     * Optional. A page token, received from a previous
      * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
      * subsequent page. When paginating, all other parameters provided to
      * `ListSKAdNetworkConversionValueSchema` must match the call that provided
      * the page token.
      * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for pageToken to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java index ad86ee7b9ea4..a11788fe61ab 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ListSKAdNetworkConversionValueSchemasRequestOrBuilder.java @@ -66,13 +66,13 @@ public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder * * *
-   * The maximum number of resources to return. The service may return
+   * Optional. The maximum number of resources to return. The service may return
    * fewer than this value, even if there are additional pages.
    * If unspecified, at most 50 resources will be returned.
    * The maximum value is 200; (higher values will be coerced to the maximum)
    * 
* - * int32 page_size = 2; + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageSize. */ @@ -82,14 +82,14 @@ public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder * * *
-   * A page token, received from a previous
+   * Optional. A page token, received from a previous
    * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
    * subsequent page. When paginating, all other parameters provided to
    * `ListSKAdNetworkConversionValueSchema` must match the call that provided
    * the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The pageToken. */ @@ -99,14 +99,14 @@ public interface ListSKAdNetworkConversionValueSchemasRequestOrBuilder * * *
-   * A page token, received from a previous
+   * Optional. A page token, received from a previous
    * `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the
    * subsequent page. When paginating, all other parameters provided to
    * `ListSKAdNetworkConversionValueSchema` must match the call that provided
    * the page token.
    * 
* - * string page_token = 3; + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for pageToken. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java index 9c4c465fd807..c7b48a2501c0 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecret.java @@ -81,12 +81,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. Resource name of this secret. This secret may be a child of any
+   * type of stream. Format:
    * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -107,12 +107,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. Resource name of this secret. This secret may be a child of any
+   * type of stream. Format:
    * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -607,12 +607,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -632,12 +632,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -657,12 +657,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -681,12 +681,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -701,12 +701,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this secret. This secret may be a child of
-     * any type of stream. Format:
+     * Identifier. Resource name of this secret. This secret may be a child of any
+     * type of stream. Format:
      * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java index c908a2424a22..76e195d5f658 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/MeasurementProtocolSecretOrBuilder.java @@ -30,12 +30,12 @@ public interface MeasurementProtocolSecretOrBuilder * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. Resource name of this secret. This secret may be a child of any
+   * type of stream. Format:
    * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface MeasurementProtocolSecretOrBuilder * * *
-   * Output only. Resource name of this secret. This secret may be a child of
-   * any type of stream. Format:
+   * Identifier. Resource name of this secret. This secret may be a child of any
+   * type of stream. Format:
    * properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret}
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java index 2a494ee7dc17..325084e5d3b5 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/Property.java @@ -88,12 +88,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -114,12 +114,12 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1446,12 +1446,12 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1471,12 +1471,12 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1496,12 +1496,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1520,12 +1520,12 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1540,12 +1540,12 @@ public Builder clearName() { * * *
-     * Output only. Resource name of this property.
+     * Identifier. Resource name of this property.
      * Format: properties/{property_id}
      * Example: "properties/1000"
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java index 7a12596a9e5c..96ddb55c3668 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/PropertyOrBuilder.java @@ -30,12 +30,12 @@ public interface PropertyOrBuilder * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -45,12 +45,12 @@ public interface PropertyOrBuilder * * *
-   * Output only. Resource name of this property.
+   * Identifier. Resource name of this property.
    * Format: properties/{property_id}
    * Example: "properties/1000"
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java index b926361f7953..c9088665a89c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/ResourcesProto.java @@ -216,6 +216,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_analytics_admin_v1alpha_ReportingIdentitySettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_analytics_admin_v1alpha_ReportingIdentitySettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -232,9 +236,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "6google/analytics/admin/v1alpha/expanded_data_set.proto\032\037google/api/field_behavi" + "or.proto\032\031google/api/resource.proto\032\037goo" + "gle/protobuf/timestamp.proto\032\036google/pro" - + "tobuf/wrappers.proto\032\026google/type/date.proto\"\344\002\n" + + "tobuf/wrappers.proto\032\026google/type/date.proto\"\367\002\n" + "\007Account\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\0224\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" + "\013update_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" @@ -242,19 +246,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013region_code\030\005 \001(\t\022\024\n" + "\007deleted\030\006 \001(\010B\003\340A\003\022T\n" + "\020gmp_organization\030\007 \001(\tB:\340A\003\372A4\n" - + "2marketingplatformadmin.googleapis.com/Organization:>\352A;\n" - + "%analyticsadmin.googleapis.com/Account\022\022accounts/{account}\"\271\005\n" + + "2marketingplatformadmin.googleapis.com/Organization:Q\352AN\n" + + "%analyticsadmin" + + ".googleapis.com/Account\022\022accounts/{account}*\010accounts2\007account\"\317\005\n" + "\010Property\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022H\n\r" - + "property_type\030\016" - + " \001(\0162,.google.analytics.admin.v1alpha.PropertyTypeB\003\340A\005\0224\n" + + "\004name\030\001 \001(\tB\003\340A\010\022H\n\r" + + "property_type\030\016 \001(\0162,." + + "google.analytics.admin.v1alpha.PropertyTypeB\003\340A\005\0224\n" + "\013create_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\004" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\023\n" + "\006parent\030\002 \001(\tB\003\340A\005\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\002\022K\n" - + "\021industry_category\030\006" - + " \001(\01620.google.analytics.admin.v1alpha.IndustryCategory\022\026\n" + + "\021industry_category\030\006 \001(\01620.google" + + ".analytics.admin.v1alpha.IndustryCategory\022\026\n" + "\ttime_zone\030\007 \001(\tB\003\340A\002\022\025\n\r" + "currency_code\030\010 \001(\t\022H\n\r" + "service_level\030\n" @@ -263,18 +268,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013expire_time\030\014 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022>\n" + "\007account\030\r" + " \001(\tB-\340A\005\372A\'\n" - + "%analyticsadmin.googleapis.com/Account:B\352A?\n" - + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}\"\364\007\n\n" + + "%analyticsadmin.googleapis.com/Account:X\352AU\n" + + "&analyticsadmin.googleapis.com/Property\022\025properties/{property}*\n" + + "properties2\010property\"\215\010\n\n" + "DataStream\022S\n" - + "\017web_stream_data\030\006 \001(\01328.google.analyti" - + "cs.admin.v1alpha.DataStream.WebStreamDataH\000\022b\n" - + "\027android_app_stream_data\030\007 \001(\0132?.g" - + "oogle.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataH\000\022Z\n" + + "\017web_stream_data\030\006 \001(\01328.google.analyt" + + "ics.admin.v1alpha.DataStream.WebStreamDataH\000\022b\n" + + "\027android_app_stream_data\030\007 \001(\0132?." + + "google.analytics.admin.v1alpha.DataStream.AndroidAppStreamDataH\000\022Z\n" + "\023ios_app_stream_data\030\010" + " \001(\0132;.google.analytics.admin.v1alpha.DataStream.IosAppStreamDataH\000\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022O\n" - + "\004type\030\002 \001(\01629.google.an" - + "alytics.admin.v1alpha.DataStream.DataStreamTypeB\006\340A\005\340A\002\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022O\n" + + "\004type\030\002 \001(\01629.google.a" + + "nalytics.admin.v1alpha.DataStream.DataStreamTypeB\006\340A\005\340A\002\022\024\n" + "\014display_name\030\003 \001(\t\0224\n" + "\013create_time\030\004 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\005" @@ -293,80 +299,86 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034DATA_STREAM_TYPE_UNSPECIFIED\020\000\022\023\n" + "\017WEB_DATA_STREAM\020\001\022\033\n" + "\027ANDROID_APP_DATA_STREAM\020\002\022\027\n" - + "\023IOS_APP_DATA_STREAM\020\003:^\352A[\n" - + "(analyticsadmin.googleapis." - + "com/DataStream\022/properties/{property}/dataStreams/{data_stream}B\r\n" - + "\013stream_data\"\323\001\n" + + "\023IOS_APP_DATA_STREAM\020\003:w\352At\n" + + "(analyticsadmin.googleapis" + + ".com/DataStream\022/properties/{property}/dataStreams/{data_stream}*\013dataStreams2\n" + + "dataStreamB\r\n" + + "\013stream_data\"\361\001\n" + "\014FirebaseLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + "\007project\030\002 \001(\tB\003\340A\005\0224\n" + "\013create_time\030\003" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:d\352Aa\n" - + "*analyticsadmin.googleapis.com/FirebaseLink\022" - + "3properties/{property}/firebaseLinks/{firebase_link}\"\251\001\n\r" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003:\201\001\352A~\n" + + "*analyticsadmin.googleapis.com/FirebaseLink\0223properties/{" + + "property}/firebaseLinks/{firebase_link}*\r" + + "firebaseLinks2\014firebaseLink\"\312\001\n\r" + "GlobalSiteTag\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" - + "\007snippet\030\002 \001(\tB\003\340A\005:o\352Al\n" - + "+analyticsadmin.googleapis.com/GlobalSiteTa" - + "g\022=properties/{property}/dataStreams/{data_stream}/globalSiteTag\"\230\003\n\r" + + "\004name\030\001 \001(\tB\003\340A\010\022\024\n" + + "\007snippet\030\002 \001(\tB\003\340A\005:\217\001\352A\213\001\n" + + "+analyticsadmin.googleapis.com/GlobalSiteTag\022=properties/{propert" + + "y}/dataStreams/{data_stream}/globalSiteTag*\016globalSiteTags2\r" + + "globalSiteTag\"\271\003\n\r" + "GoogleAdsLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\013customer_id\030\003 \001(\tB\003\340A\005\022\037\n" + "\022can_manage_clients\030\004 \001(\010B\003\340A\003\022?\n" + "\033ads_personalization_enabled\030\005" + " \001(\0132\032.google.protobuf.BoolValue\0224\n" + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\010 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\"\n" - + "\025creator_email_address\030\t \001(\tB\003\340A\003:h\352Ae\n" - + "+analyticsadmin.googleapi" - + "s.com/GoogleAdsLink\0226properties/{property}/googleAdsLinks/{google_ads_link}\"\357\002\n" + + "\025creator_email_address\030\t \001(\tB\003\340A\003:\210\001\352A\204\001\n" + + "+analyticsadmin.googleapis.com/GoogleAdsLink\0226properti" + + "es/{property}/googleAdsLinks/{google_ads_link}*\016googleAdsLinks2\r" + + "googleAdsLink\"\233\003\n" + "\023DataSharingSettings\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022+\n" + + "\004name\030\001 \001(\tB\003\340A\010\022+\n" + "#sharing_with_google_support_enabled\030\002 \001(\010\0222\n" + "*sharing_with_google_assigned_sales_enabled\030\003 \001(\010\0221\n" + "%sharing_with_google_any_sales_enabled\030\004 \001(\010B\002\030\001\022,\n" + "$sharing_with_google_products_enabled\030\005 \001(\010\022#\n" - + "\033sharing_with_others_enabled\030\006 \001(\010:^\352A[\n" - + "1analyticsadmin.googleapis.com/DataSharingSet" - + "tings\022&accounts/{account}/dataSharingSettings\"\225\002\n" - + "\016AccountSummary\022\014\n" - + "\004name\030\001 \001(\t\022;\n" + + "\033sharing_with_others_enabled\030\006 \001(\010:\211\001\352A\205\001\n" + + "1analyticsadmin.googleapis.com/DataSharingSettings\022&accounts/{account}/dataSharin" + + "gSettings*\023dataSharingSettings2\023dataSharingSettings\"\274\002\n" + + "\016AccountSummary\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022;\n" + "\007account\030\002 \001(\tB*\372A\'\n" + "%analyticsadmin.googleapis.com/Account\022\024\n" + "\014display_name\030\003 \001(\t\022K\n" - + "\022property_summaries\030\004 \003(\0132/.google.a" - + "nalytics.admin.v1alpha.PropertySummary:U\352AR\n" - + ",analyticsadmin.googleapis.com/Accou" - + "ntSummary\022\"accountSummaries/{account_summary}\"\273\001\n" + + "\022property_summaries\030\004 \003(\013" + + "2/.google.analytics.admin.v1alpha.PropertySummary:w\352At\n" + + ",analyticsadmin.googleapis.com/AccountSummary\022\"accountSummaries/{" + + "account_summary}*\020accountSummaries2\016accountSummary\"\273\001\n" + "\017PropertySummary\022=\n" + "\010property\030\001 \001(\tB+\372A(\n" + "&analyticsadmin.googleapis.com/Property\022\024\n" + "\014display_name\030\002 \001(\t\022C\n\r" + "property_type\030\003" + " \001(\0162,.google.analytics.admin.v1alpha.PropertyType\022\016\n" - + "\006parent\030\004 \001(\t\"\216\002\n" + + "\006parent\030\004 \001(\t\"\305\002\n" + "\031MeasurementProtocolSecret\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\031\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\031\n" - + "\014secret_value\030\003 \001(\tB\003\340A\003:\247\001\352A\243\001\n" - + "7analyticsadmin.googleapis.com/MeasurementProtocolSecr" - + "et\022hproperties/{property}/dataStreams/{d" - + "ata_stream}/measurementProtocolSecrets/{measurement_protocol_secret}\"\203\004\n" + + "\014secret_value\030\003 \001(\tB\003\340A\003:\336\001\352A\332\001\n" + + "7analyticsadmin.googleapis.com/MeasurementProtoco" + + "lSecret\022hproperties/{property}/dataStreams/{data_stream}/measurementProtocolSecr" + + "ets/{measurement_protocol_secret}*\032measu" + + "rementProtocolSecrets2\031measurementProtocolSecret\"\310\004\n" + " SKAdNetworkConversionValueSchema\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022P\n" - + "\023postback_window_one\030\002 \001(\0132..goog" - + "le.analytics.admin.v1alpha.PostbackWindowB\003\340A\002\022K\n" - + "\023postback_window_two\030\003 \001(\0132..go" - + "ogle.analytics.admin.v1alpha.PostbackWindow\022M\n" - + "\025postback_window_three\030\004 \001(\0132..goo" - + "gle.analytics.admin.v1alpha.PostbackWindow\022\037\n" - + "\027apply_conversion_values\030\005 \001(\010:\274\001\352A\270\001\n" - + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema\022vproperties/{" - + "property}/dataStreams/{data_stream}/sKAd" - + "NetworkConversionValueSchema/{skadnetwork_conversion_value_schema}\"\207\001\n" + + "\004name\030\001 \001(\tB\003\340A\010\022P\n" + + "\023postback_window_one\030\002" + + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindowB\003\340A\002\022K\n" + + "\023postback_window_two\030\003" + + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindow\022M\n" + + "\025postback_window_three\030\004" + + " \001(\0132..google.analytics.admin.v1alpha.PostbackWindow\022\037\n" + + "\027apply_conversion_values\030\005 \001(\010:\201\002\352A\375\001\n" + + ">analyticsadmin.googleapis.com/SKAdNetworkConversionValue" + + "Schema\022vproperties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionVal" + + "ueSchema/{skadnetwork_conversion_value_schema}*!skAdNetworkConversionValueSchemas2" + + " skAdNetworkConversionValueSchema\"\207\001\n" + "\016PostbackWindow\022K\n" - + "\021conversion_values\030\001 \003(\01320.googl" - + "e.analytics.admin.v1alpha.ConversionValues\022(\n" + + "\021conversion_values\030\001 \003(" + + "\01320.google.analytics.admin.v1alpha.ConversionValues\022(\n" + " postback_window_settings_enabled\030\002 \001(\010\"\364\001\n" + "\020ConversionValues\022\024\n" + "\014display_name\030\001 \001(\t\022\027\n\n" @@ -377,7 +389,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132,.google.analytics.admin.v1alpha.EventMapping\022\024\n" + "\014lock_enabled\030\005 \001(\010B\r\n" + "\013_fine_value\"\357\001\n" - + "\014EventMapping\022\027\n\n" + + "\014EventMapping\022\027\n" + + "\n" + "event_name\030\001 \001(\tB\003\340A\002\022\034\n" + "\017min_event_count\030\002 \001(\003H\000\210\001\001\022\034\n" + "\017max_event_count\030\003 \001(\003H\001\210\001\001\022\034\n" @@ -393,31 +406,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "actor_type\030\003 \001(\0162).google.analytics.admin.v1alpha.ActorType\022\030\n" + "\020user_actor_email\030\004 \001(\t\022\030\n" + "\020changes_filtered\030\005 \001(\010\022D\n" - + "\007changes\030\006 \003(\01323.google.a" - + "nalytics.admin.v1alpha.ChangeHistoryChange\"\270\025\n" + + "\007changes\030\006 \003(\01323" + + ".google.analytics.admin.v1alpha.ChangeHistoryChange\"\231\026\n" + "\023ChangeHistoryChange\022\020\n" + "\010resource\030\001 \001(\t\022:\n" + "\006action\030\002 \001(\0162*.google.analytics.admin.v1alpha.ActionType\022i\n" - + "\026resource_before_change\030\003 \001(\0132I.google.analytics.admi" - + "n.v1alpha.ChangeHistoryChange.ChangeHistoryResource\022h\n" - + "\025resource_after_change\030\004 \001(\0132I.google.analytics.admin.v1alpha.Chan" - + "geHistoryChange.ChangeHistoryResource\032\375\022\n" + + "\026resource_before_change\030\003 \001(\0132I.google.analy" + + "tics.admin.v1alpha.ChangeHistoryChange.ChangeHistoryResource\022h\n" + + "\025resource_after_change\030\004 \001(\0132I.google.analytics.admin.v1a" + + "lpha.ChangeHistoryChange.ChangeHistoryResource\032\336\023\n" + "\025ChangeHistoryResource\022:\n" + "\007account\030\001 \001(\0132\'.google.analytics.admin.v1alpha.AccountH\000\022<\n" + "\010property\030\002 \001(\0132(.google.analytics.admin.v1alpha.PropertyH\000\022E\n\r" + "firebase_link\030\006" + " \001(\0132,.google.analytics.admin.v1alpha.FirebaseLinkH\000\022H\n" - + "\017google_ads_link\030\007 \001(" - + "\0132-.google.analytics.admin.v1alpha.GoogleAdsLinkH\000\022X\n" - + "\027google_signals_settings\030\010 " - + "\001(\01325.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\000\022j\n" - + "!display_video_360_advertiser_link\030\t \001(\0132=.google.analyti" - + "cs.admin.v1alpha.DisplayVideo360AdvertiserLinkH\000\022{\n" + + "\017google_ads_link\030\007" + + " \001(\0132-.google.analytics.admin.v1alpha.GoogleAdsLinkH\000\022X\n" + + "\027google_signals_settings\030\010" + + " \001(\01325.google.analytics.admin.v1alpha.GoogleSignalsSettingsH\000\022j\n" + + "!display_video_360_advertiser_link\030\t \001(\0132=.googl" + + "e.analytics.admin.v1alpha.DisplayVideo360AdvertiserLinkH\000\022{\n" + "*display_video_360_advertiser_link_proposal\030\n" - + " \001(\0132E.google.analytics." - + "admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\000\022K\n" - + "\020conversion_event\030\013 \001(\0132" - + "/.google.analytics.admin.v1alpha.ConversionEventH\000\022`\n" + + " \001(\0132E.google.a" + + "nalytics.admin.v1alpha.DisplayVideo360AdvertiserLinkProposalH\000\022K\n" + + "\020conversion_event\030\013" + + " \001(\0132/.google.analytics.admin.v1alpha.ConversionEventH\000\022`\n" + "\033measurement_protocol_secret\030\014" + " \001(\01329.google.analytics.admin.v1alpha.MeasurementProtocolSecretH\000\022K\n" + "\020custom_dimension\030\r" @@ -434,48 +447,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01323.google.analytics.admin.v1alpha.AttributionSettingsH\000\022L\n" + "\021expanded_data_set\030\025" + " \001(\0132/.google.analytics.admin.v1alpha.ExpandedDataSetH\000\022E\n\r" - + "channel_group\030\026 \001(\013" - + "2,.google.analytics.admin.v1alpha.ChannelGroupH\000\022E\n\r" - + "bigquery_link\030\027 \001(\0132,.google" - + ".analytics.admin.v1alpha.BigQueryLinkH\000\022d\n" - + "\035enhanced_measurement_settings\030\030 \001(\0132;" - + ".google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\000\022X\n" - + "\027data_redaction_settings\030\031" - + " \001(\01325.google.analytics.admin.v1alpha.DataRedactionSettingsH\000\022o\n" - + "#skadnetwork_conversion_value_schema\030\032 \001(\0132@.g" - + "oogle.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\000\022C\n" + + "channel_group\030\026" + + " \001(\0132,.google.analytics.admin.v1alpha.ChannelGroupH\000\022E\n\r" + + "bigquery_link\030\027 \001(\013" + + "2,.google.analytics.admin.v1alpha.BigQueryLinkH\000\022d\n" + + "\035enhanced_measurement_settings\030\030" + + " \001(\0132;.google.analytics.admin.v1alpha.EnhancedMeasurementSettingsH\000\022X\n" + + "\027data_redaction_settings\030\031 \001(\01325.google.analyti" + + "cs.admin.v1alpha.DataRedactionSettingsH\000\022o\n" + + "#skadnetwork_conversion_value_schema\030\032" + + " \001(\0132@.google.analytics.admin.v1alpha.SKAdNetworkConversionValueSchemaH\000\022C\n" + "\014adsense_link\030\033" + " \001(\0132+.google.analytics.admin.v1alpha.AdSenseLinkH\000\022<\n" + "\010audience\030\034 \001(\0132(.google.analytics.admin.v1alpha.AudienceH\000\022L\n" - + "\021event_create_rule\030\035" - + " \001(\0132/.google.analytics.admin.v1alpha.EventCreateRuleH\000\022=\n" + + "\021event_create_rule\030\035 \001(\0132/.google" + + ".analytics.admin.v1alpha.EventCreateRuleH\000\022=\n" + "\tkey_event\030\036 \001(\0132(.google.analytics.admin.v1alpha.KeyEventH\000\022M\n" - + "\021calculated_metric\030\037 " - + "\001(\01320.google.analytics.admin.v1alpha.CalculatedMetricH\000\022\\\n" - + "\031reporting_data_annotation\030 " - + " \001(\01327.google.analytics.admin.v1alpha.ReportingDataAnnotationH\000\022X\n" - + "\027subproperty_sync_config\030! \001(\01325.google.analytic" - + "s.admin.v1alpha.SubpropertySyncConfigH\000\022`\n" - + "\033reporting_identity_settings\030\" \001(\01329.g" - + "oogle.analytics.admin.v1alpha.ReportingIdentitySettingsH\000B\n\n" - + "\010resource\"\337\003\n" + + "\021calculated_metric\030\037" + + " \001(\01320.google.analytics.admin.v1alpha.CalculatedMetricH\000\022\\\n" + + "\031reporting_data_annotation\030 \001(\01327.google.analytics.a" + + "dmin.v1alpha.ReportingDataAnnotationH\000\022X\n" + + "\027subproperty_sync_config\030! \001(\01325.google" + + ".analytics.admin.v1alpha.SubpropertySyncConfigH\000\022`\n" + + "\033reporting_identity_settings\030\"" + + " \001(\01329.google.analytics.admin.v1alpha.ReportingIdentitySettingsH\000\022_\n" + + "\033user_provided_data_settings\030# \001(\01328.google.analyti" + + "cs.admin.v1alpha.UserProvidedDataSettingsH\000B\n\n" + + "\010resource\"\236\004\n" + "\035DisplayVideo360AdvertiserLink\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\032\n\r" + + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022$\n" + "\027advertiser_display_name\030\003 \001(\tB\003\340A\003\022?\n" + "\033ads_personalization_enabled\030\004" + " \001(\0132\032.google.protobuf.BoolValue\022F\n" + "\035campaign_data_sharing_enabled\030\005" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" - + "\031cost_data_sharing_enabled\030\006 \001(\013" - + "2\032.google.protobuf.BoolValueB\003\340A\005:\233\001\352A\227\001\n" - + ";analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink\022Xproperties/{prope" - + "rty}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}\"\212\005\n" + + "\031cost_data_sharing_enabled\030\006" + + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\332\001\352A\326\001\n" + + ";analyticsadmin.googleapis.com/DisplayVideo360Adverti" + + "serLink\022Xproperties/{property}/displayVideo360AdvertiserLinks/{display_video_360" + + "_advertiser_link}*\036displayVideo360Advert" + + "iserLinks2\035displayVideo360AdvertiserLink\"\331\005\n" + "%DisplayVideo360AdvertiserLinkProposal\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\032\n\r" + + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022d\n" - + "\034link_proposal_status_details\030\003 \001(\01329" - + ".google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\003\340A\003\022$\n" + + "\034link_proposal_status_details\030\003" + + " \001(\01329.google.analytics.admin.v1alpha.LinkProposalStatusDetailsB\003\340A\003\022$\n" + "\027advertiser_display_name\030\004 \001(\tB\003\340A\003\022\035\n" + "\020validation_email\030\005 \001(\tB\003\340A\004\022D\n" + "\033ads_personalization_enabled\030\006" @@ -483,12 +500,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035campaign_data_sharing_enabled\030\007" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" + "\031cost_data_sharing_enabled\030\010" - + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\264\001\352A\260\001\n" - + "Canalyticsadmin.googleapis.com/DisplayVideo360Adver" - + "tiserLinkProposal\022iproperties/{property}/displayVideo360AdvertiserLinkProposals/" - + "{display_video_360_advertiser_link_proposal}\"\350\003\n" + + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005:\203\002\352A\377\001\n" + + "Canalyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal\022iproperties/{" + + "property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_l" + + "ink_proposal}*&displayVideo360Advertiser" + + "LinkProposals2%displayVideo360AdvertiserLinkProposal\"\217\004\n" + "\020SearchAds360Link\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\032\n\r" + + "\004name\030\001 \001(\tB\003\340A\010\022\032\n\r" + "advertiser_id\030\002 \001(\tB\003\340A\005\022F\n" + "\035campaign_data_sharing_enabled\030\003" + " \001(\0132\032.google.protobuf.BoolValueB\003\340A\005\022B\n" @@ -498,26 +516,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033ads_personalization_enabled\030\006" + " \001(\0132\032.google.protobuf.BoolValue\022>\n" + "\032site_stats_sharing_enabled\030\007" - + " \001(\0132\032.google.protobuf.BoolValue:r\352Ao\n" - + ".analyticsadmin.googleapis.com/SearchAds360Link\022=proper" - + "ties/{property}/searchAds360Links/{search_ads_360_link}\"\374\001\n" + + " \001(\0132\032.google.protobuf.BoolValue:\230\001\352A\224\001\n" + + ".analyticsadmin.googleapis.com/SearchAds360Li" + + "nk\022=properties/{property}/searchAds360Li" + + "nks/{search_ads_360_link}*\021searchAds360Links2\020searchAds360Link\"\374\001\n" + "\031LinkProposalStatusDetails\022l\n" - + " link_proposal_initiating_product\030\001" - + " \001(\0162=.google.analytics.admin.v1alpha.LinkProposalInitiatingProductB\003\340A\003\022\034\n" + + " link_proposal_initiating_product\030\001 \001(\0162=.google.analytics.admin." + + "v1alpha.LinkProposalInitiatingProductB\003\340A\003\022\034\n" + "\017requestor_email\030\002 \001(\tB\003\340A\003\022S\n" - + "\023link_proposal_state\030\003" - + " \001(\01621.google.analytics.admin.v1alpha.LinkProposalStateB\003\340A\003\"\340\005\n" + + "\023link_proposal_state\030\003 \001(\01621.google.analytics" + + ".admin.v1alpha.LinkProposalStateB\003\340A\003\"\205\006\n" + "\017ConversionEvent\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\027\n\n" + "event_name\030\002 \001(\tB\003\340A\005\0224\n" + "\013create_time\030\003" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022f\n" - + "\017counting_method\030\006 \001(\0162H.google.analytics.ad" - + "min.v1alpha.ConversionEvent.ConversionCountingMethodB\003\340A\001\022r\n" - + "\030default_conversion_value\030\007 \001(\0132F.google.analytics.admin.v1a" - + "lpha.ConversionEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + + "\017counting_method\030\006 \001(\0162H.google.analy" + + "tics.admin.v1alpha.ConversionEvent.ConversionCountingMethodB\003\340A\001\022r\n" + + "\030default_conversion_value\030\007 \001(\0132F.google.analytics.ad" + + "min.v1alpha.ConversionEvent.DefaultConversionValueB\003\340A\001H\000\210\001\001\032d\n" + "\026DefaultConversionValue\022\022\n" + "\005value\030\001 \001(\001H\000\210\001\001\022\032\n\r" + "currency_code\030\002 \001(\tH\001\210\001\001B\010\n" @@ -526,9 +545,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\030ConversionCountingMethod\022*\n" + "&CONVERSION_COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" - + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "-analyticsadmin.googleapis.com/ConversionEven" - + "t\0229properties/{property}/conversionEvents/{conversion_event}B\033\n" + + "\020ONCE_PER_SESSION\020\002:\221\001\352A\215\001\n" + + "-analyticsadmin.googleapis.com/ConversionEvent\0229properties/{property}/conver" + + "sionEvents/{conversion_event}*\020conversionEvents2\017conversionEventB\033\n" + "\031_default_conversion_value\"\327\004\n" + "\010KeyEvent\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\027\n\n" @@ -537,10 +556,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\026\n" + "\tdeletable\030\004 \001(\010B\003\340A\003\022\023\n" + "\006custom\030\005 \001(\010B\003\340A\003\022U\n" - + "\017counting_method\030\006 \001(\01627.google." - + "analytics.admin.v1alpha.KeyEvent.CountingMethodB\003\340A\002\022Q\n\r" - + "default_value\030\007 \001(\01325.go" - + "ogle.analytics.admin.v1alpha.KeyEvent.DefaultValueB\003\340A\001\032F\n" + + "\017counting_method\030\006 \001(\01627.goo" + + "gle.analytics.admin.v1alpha.KeyEvent.CountingMethodB\003\340A\002\022Q\n\r" + + "default_value\030\007 \001(\0132" + + "5.google.analytics.admin.v1alpha.KeyEvent.DefaultValueB\003\340A\001\032F\n" + "\014DefaultValue\022\032\n\r" + "numeric_value\030\001 \001(\001B\003\340A\002\022\032\n\r" + "currency_code\030\002 \001(\tB\003\340A\002\"[\n" @@ -548,42 +567,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033COUNTING_METHOD_UNSPECIFIED\020\000\022\022\n" + "\016ONCE_PER_EVENT\020\001\022\024\n" + "\020ONCE_PER_SESSION\020\002:m\352Aj\n" - + "&analyticsadmi" - + "n.googleapis.com/KeyEvent\022+properties/{property}/keyEvents/{key_event}*" + + "&analytics" + + "admin.googleapis.com/KeyEvent\022+properties/{property}/keyEvents/{key_event}*" + "\tkeyEvents2\010keyEvent\"\240\002\n" + "\025GoogleSignalsSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022A\n" + "\005state\030\003 \001(\01622.google.analytics.admin.v1alpha.GoogleSignalsState\022J\n" - + "\007consent\030\004 \001(\01624.google.analytics." - + "admin.v1alpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n" - + "3analyticsadmin.googleapis.com/Goog" - + "leSignalsSettings\022+properties/{property}/googleSignalsSettings\"\274\003\n" + + "\007consent\030\004 \001(\01624.google.analyt" + + "ics.admin.v1alpha.GoogleSignalsConsentB\003\340A\003:e\352Ab\n" + + "3analyticsadmin.googleapis.com/" + + "GoogleSignalsSettings\022+properties/{property}/googleSignalsSettings\"\341\003\n" + "\017CustomDimension\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\036\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022U\n" - + "\005scope\030\005 \001(" - + "\0162>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + + "\005scope\030\005" + + " \001(\0162>.google.analytics.admin.v1alpha.CustomDimension.DimensionScopeB\006\340A\002\340A\005\022)\n" + "\034disallow_ads_personalization\030\006 \001(\010B\003\340A\001\"P\n" + "\016DimensionScope\022\037\n" + "\033DIMENSION_SCOPE_UNSPECIFIED\020\000\022\t\n" + "\005EVENT\020\001\022\010\n" + "\004USER\020\002\022\010\n" - + "\004ITEM\020\003:m\352Aj\n" - + "-analyticsadmin.googleapis.com/Custo" - + "mDimension\0229properties/{property}/customDimensions/{custom_dimension}\"\305\006\n" + + "\004ITEM\020\003:\221\001\352A\215\001\n" + + "-analyticsadmin.googleapis.com/CustomDimension\0229properties/{property}/" + + "customDimensions/{custom_dimension}*\020customDimensions2\017customDimension\"\343\006\n" + "\014CustomMetric\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\036\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + "\016parameter_name\030\002 \001(\tB\006\340A\002\340A\005\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022[\n" - + "\020measurement_unit\030\005 \001(\0162<.google.analytics.admi" - + "n.v1alpha.CustomMetric.MeasurementUnitB\003\340A\002\022O\n" - + "\005scope\030\006 \001(\01628.google.analytics.ad" - + "min.v1alpha.CustomMetric.MetricScopeB\006\340A\002\340A\005\022f\n" - + "\026restricted_metric_type\030\010 \003(\0162A.g" - + "oogle.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + + "\020measurement_unit\030\005 \001(\0162<.google.analytics.adm" + + "in.v1alpha.CustomMetric.MeasurementUnitB\003\340A\002\022O\n" + + "\005scope\030\006 \001(\01628.google.analytics.a" + + "dmin.v1alpha.CustomMetric.MetricScopeB\006\340A\002\340A\005\022f\n" + + "\026restricted_metric_type\030\010 \003(\0162A." + + "google.analytics.admin.v1alpha.CustomMetric.RestrictedMetricTypeB\003\340A\001\"\267\001\n" + "\017MeasurementUnit\022 \n" + "\034MEASUREMENT_UNIT_UNSPECIFIED\020\000\022\014\n" + "\010STANDARD\020\001\022\014\n" @@ -603,18 +622,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024RestrictedMetricType\022&\n" + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" - + "\014REVENUE_DATA\020\002:d\352Aa\n" - + "*analyticsadmin.googleapis." - + "com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}\"\247\006\n" + + "\014REVENUE_DATA\020\002:\201\001\352A~\n" + + "*analyticsadmin.googleapi" + + "s.com/CustomMetric\0223properties/{property}/customMetrics/{custom_metric}*\r" + + "customMetrics2\014customMetric\"\247\006\n" + "\020CalculatedMetric\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022\030\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\013description\030\002 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022!\n" + "\024calculated_metric_id\030\004 \001(\tB\003\340A\003\022U\n" - + "\013metric_unit\030\005 \001(\0162;.google.analytics.ad" - + "min.v1alpha.CalculatedMetric.MetricUnitB\003\340A\002\022j\n" - + "\026restricted_metric_type\030\006 \003(\0162E.g" - + "oogle.analytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\003\340A\003\022\024\n" + + "\013metric_unit\030\005" + + " \001(\0162;.google.analytics.admin.v1alpha.CalculatedMetric.MetricUnitB\003\340A\002\022j\n" + + "\026restricted_metric_type\030\006 \003(\0162E.google.ana" + + "lytics.admin.v1alpha.CalculatedMetric.RestrictedMetricTypeB\003\340A\003\022\024\n" + "\007formula\030\007 \001(\tB\003\340A\002\022%\n" + "\030invalid_metric_reference\030\t \001(\010B\003\340A\003\"\255\001\n\n" + "MetricUnit\022\033\n" @@ -634,15 +654,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\"RESTRICTED_METRIC_TYPE_UNSPECIFIED\020\000\022\r\n" + "\tCOST_DATA\020\001\022\020\n" + "\014REVENUE_DATA\020\002:\226\001\352A\222\001\n" - + ".analyticsadmin.googleapis.com/CalculatedMetric\022;properties/{prope" - + "rty}/calculatedMetrics/{calculated_metri" - + "c}*\021calculatedMetrics2\020calculatedMetric\"\262\004\n" + + ".analyticsadmin.googleapis.com/CalculatedMetric\022;properties/{property}/calc" + + "ulatedMetrics/{calculated_metric}*\021calculatedMetrics2\020calculatedMetric\"\342\004\n" + "\025DataRetentionSettings\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\003\022j\n" - + "\024event_data_retention\030\002 \001(\0162G.goo" - + "gle.analytics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022i\n" - + "\023user_data_retention\030\004 \001(\0162G.google.analytics" - + ".admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + + "\004name\030\001 \001(\tB\003\340A\010\022j\n" + + "\024event_data_retention\030\002 \001(\0162G.google.analy" + + "tics.admin.v1alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022i\n" + + "\023user_data_retention\030\004 \001(\0162G.google.analytics.admin.v1" + + "alpha.DataRetentionSettings.RetentionDurationB\003\340A\002\022\'\n" + "\037reset_user_data_on_new_activity\030\003 \001(\010\"\236\001\n" + "\021RetentionDuration\022\"\n" + "\036RETENTION_DURATION_UNSPECIFIED\020\000\022\016\n\n" @@ -650,22 +669,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017FOURTEEN_MONTHS\020\003\022\025\n" + "\021TWENTY_SIX_MONTHS\020\004\022\027\n" + "\023THIRTY_EIGHT_MONTHS\020\005\022\020\n" - + "\014FIFTY_MONTHS\020\006:e\352Ab\n" - + "3analyticsadmin.googleapis.com/DataRetentionSettings\022" - + "+properties/{property}/dataRetentionSettings\"\374\013\n" + + "\014FIFTY_MONTHS\020\006:\224\001\352A\220\001\n" + + "3analyticsadmin.googleapis.com/DataRetentionSettings\022+proper" + + "ties/{property}/dataRetentionSettings*\025d" + + "ataRetentionSettings2\025dataRetentionSettings\"\374\013\n" + "\023AttributionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\227\001\n" - + ",acquisition_conversion_event_lookback_window\030\002 \001(\0162\\.google.analytic" - + "s.admin.v1alpha.AttributionSettings.Acqu" - + "isitionConversionEventLookbackWindowB\003\340A\002\022\213\001\n" + + ",acquisition_conversion_event_lookback_window\030\002 \001(\0162\\.google.analytics" + + ".admin.v1alpha.AttributionSettings.Acqui" + + "sitionConversionEventLookbackWindowB\003\340A\002\022\213\001\n" + "&other_conversion_event_lookback_window\030\003" - + " \001(\0162V.google.analytics.admin.v1al" - + "pha.AttributionSettings.OtherConversionEventLookbackWindowB\003\340A\002\022w\n" - + "\033reporting_attribution_model\030\004 \001(\0162M.google.analytics." - + "admin.v1alpha.AttributionSettings.ReportingAttributionModelB\003\340A\002\022\206\001\n" - + "$ads_web_conversion_data_export_scope\030\005 \001(\0162S.google" - + ".analytics.admin.v1alpha.AttributionSett" - + "ings.AdsWebConversionDataExportScopeB\003\340A\002\"\333\001\n" + + " \001(\0162V.google.analytics.admin.v1alp" + + "ha.AttributionSettings.OtherConversionEventLookbackWindowB\003\340A\002\022w\n" + + "\033reporting_attribution_model\030\004 \001(\0162M.google.analytics.a" + + "dmin.v1alpha.AttributionSettings.Reporti", + "ngAttributionModelB\003\340A\002\022\206\001\n" + + "$ads_web_conversion_data_export_scope\030\005 \001(\0162S.google." + + "analytics.admin.v1alpha.AttributionSetti" + + "ngs.AdsWebConversionDataExportScopeB\003\340A\002\"\333\001\n" + "(AcquisitionConversionEventLookbackWindow\022<\n" + "8ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_UNSPECIFIED\020\000\0227\n" + "3ACQUISITION_CONVERSION_EVENT_LOOKBACK_WINDOW_7_DAYS\020\001\0228\n" @@ -679,22 +700,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\'REPORTING_ATTRIBUTION_MODEL_UNSPECIFIED\020\000\022)\n" + "%PAID_AND_ORGANIC_CHANNELS_DATA_DRIVEN\020\001\022(\n" + "$PAID_AND_ORGANIC_CHANNELS_LAST_CLICK\020\002\022#\n" - + "\037GO", - "OGLE_PAID_CHANNELS_LAST_CLICK\020\007\"\246\001\n" + + "\037GOOGLE_PAID_CHANNELS_LAST_CLICK\020\007\"\246\001\n" + "\037AdsWebConversionDataExportScope\0224\n" + "0ADS_WEB_CONVERSION_DATA_EXPORT_SCOPE_UNSPECIFIED\020\000\022\024\n" + "\020NOT_SELECTED_YET\020\001\022\035\n" + "\031PAID_AND_ORGANIC_CHANNELS\020\002\022\030\n" + "\024GOOGLE_PAID_CHANNELS\020\003:a\352A^\n" - + "1analyticsadmin.googleapis.com/Att" - + "ributionSettings\022)properties/{property}/attributionSettings\"\361\001\n\r" + + "1analyticsadmin.googleapis.com/Attr" + + "ibutionSettings\022)properties/{property}/attributionSettings\"\361\001\n\r" + "AccessBinding\022\016\n" + "\004user\030\002 \001(\tH\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\r\n" + "\005roles\030\003 \003(\t:\234\001\352A\230\001\n" - + "+analyticsadmin.googleapis.com/AccessBinding\0222accounts/{account}/" - + "accessBindings/{access_binding}\0225propert" - + "ies/{property}/accessBindings/{access_binding}B\017\n\r" + + "+analyticsadmin.googleapis.com/AccessBinding\0222accounts/{account}/a" + + "ccessBindings/{access_binding}\0225properti" + + "es/{property}/accessBindings/{access_binding}B\017\n\r" + "access_target\"\252\003\n" + "\014BigQueryLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\024\n" @@ -709,8 +729,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017excluded_events\030\010 \003(\t\022 \n" + "\020dataset_location\030\n" + " \001(\tB\006\340A\005\340A\002:d\352Aa\n" - + "*analyticsadmin.googleapis.com/BigQueryLink\022" - + "3properties/{property}/bigQueryLinks/{bigquery_link}\"\363\003\n" + + "*analyticsadmin.googleapis.com/BigQueryLink\0223" + + "properties/{property}/bigQueryLinks/{bigquery_link}\"\363\003\n" + "\033EnhancedMeasurementSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\026\n" + "\016stream_enabled\030\002 \001(\010\022\027\n" @@ -724,30 +744,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026search_query_parameter\030\n" + " \001(\tB\003\340A\002\022\033\n" + "\023uri_query_parameter\030\013 \001(\t:\214\001\352A\210\001\n" - + "9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\022Kp" - + "roperties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\225\002\n" + + "9analyticsadmin.googleapis.com/EnhancedMeasurementSettings\022Kpr" + + "operties/{property}/dataStreams/{data_stream}/enhancedMeasurementSettings\"\225\002\n" + "\025DataRedactionSettings\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\037\n" + "\027email_redaction_enabled\030\002 \001(\010\022)\n" + "!query_parameter_redaction_enabled\030\003 \001(\010\022\034\n" + "\024query_parameter_keys\030\004 \003(\t:\177\352A|\n" - + "3analyticsadmin.googleapis.com/DataRedactionSetti" - + "ngs\022Eproperties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\240\001\n" + + "3analyticsadmin.googleapis.com/DataRedactionSettin" + + "gs\022Eproperties/{property}/dataStreams/{data_stream}/dataRedactionSettings\"\240\001\n" + "\013AdSenseLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\033\n" + "\016ad_client_code\030\002 \001(\tB\003\340A\005:a\352A^\n" - + ")analyticsadmin.googleapis.com/AdSenseLink\0221properties/{" - + "property}/adSenseLinks/{adsense_link}\"\216\002\n" + + ")analyticsadmin.g" + + "oogleapis.com/AdSenseLink\0221properties/{property}/adSenseLinks/{adsense_link}\"\216\002\n" + "\030RollupPropertySourceLink\022\021\n" + "\004name\030\001 \001(\tB\003\340A\003\022\034\n" + "\017source_property\030\002 \001(\tB\003\340A\005:\300\001\352A\274\001\n" - + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\022Mproperties/{property" - + "}/rollupPropertySourceLinks/{rollup_prop" - + "erty_source_link}*\031rollupPropertySourceLinks2\030rollupPropertySourceLink\"\366\005\n" + + "6analyticsadmin.googleapis.com/RollupPropertySourceLink\022Mproperties/{property}" + + "/rollupPropertySourceLinks/{rollup_prope" + + "rty_source_link}*\031rollupPropertySourceLinks2\030rollupPropertySourceLink\"\366\005\n" + "\027ReportingDataAnnotation\022,\n" + "\017annotation_date\030\004 \001(\0132\021.google.type.DateH\000\022b\n" - + "\025annotation_date_range\030\005 \001(\0132A.google.analytics.admin" - + ".v1alpha.ReportingDataAnnotation.DateRangeH\000\022\024\n" + + "\025annotation_date_range\030\005 \001(\0132A.google.analytics.admin." + + "v1alpha.ReportingDataAnnotation.DateRangeH\000\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\002\022\022\n" + "\005title\030\002 \001(\tB\003\340A\002\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022Q\n" @@ -766,35 +786,43 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\003RED\020\005\022\010\n" + "\004CYAN\020\006\022\n\n" + "\006ORANGE\020\007:\272\001\352A\266\001\n" - + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\022Jproperties/{property}/re" - + "portingDataAnnotations/{reporting_data_a" - + "nnotation}*\030reportingDataAnnotations2\027reportingDataAnnotationB\010\n" + + "5analyticsadmin.googleapis.com/ReportingDataAnnotation\022Jproperties/{property}/rep" + + "ortingDataAnnotations/{reporting_data_an" + + "notation}*\030reportingDataAnnotations2\027reportingDataAnnotationB\010\n" + "\006target\"\322\003\n" + "\025SubpropertySyncConfig\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022!\n" + "\021apply_to_property\030\002 \001(\tB\006\340A\005\340A\003\022}\n" - + "%custom_dimension_and_metric_sync_mode\030\003 \001(" - + "\0162I.google.analytics.admin.v1alpha.Subpr" - + "opertySyncConfig.SynchronizationModeB\003\340A\002\"N\n" + + "%custom_dimension_and_metric_sync_mode\030\003 \001(\016" + + "2I.google.analytics.admin.v1alpha.Subpro" + + "pertySyncConfig.SynchronizationModeB\003\340A\002\"N\n" + "\023SynchronizationMode\022$\n" + " SYNCHRONIZATION_MODE_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\007\n" + "\003ALL\020\002:\260\001\352A\254\001\n" - + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\022Fproperties/{prope" - + "rty}/subpropertySyncConfigs/{subproperty" - + "_sync_config}*\026subpropertySyncConfigs2\025subpropertySyncConfig\"\257\003\n" + + "3analyticsadmin.googleapis.com/SubpropertySyncConfig\022Fproperties/{proper" + + "ty}/subpropertySyncConfigs/{subproperty_" + + "sync_config}*\026subpropertySyncConfigs2\025subpropertySyncConfig\"\257\003\n" + "\031ReportingIdentitySettings\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022g\n" - + "\022reporting_identity\030\002 \001(\0162K.google.analytics." - + "admin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n" + + "\022reporting_identity\030\002 \001(\0162K.google.analytics.a" + + "dmin.v1alpha.ReportingIdentitySettings.ReportingIdentity\"l\n" + "\021ReportingIdentity\022*\n" + "&IDENTITY_BLENDING_STRATEGY_UNSPECIFIED\020\000\022\013\n" + "\007BLENDED\020\001\022\014\n" + "\010OBSERVED\020\002\022\020\n" + "\014DEVICE_BASED\020\003:\244\001\352A\240\001\n" - + "7analyticsadmin.googleapis.com/ReportingIdentitySettings\022/propert" - + "ies/{property}/reportingIdentitySettings" - + "*\031reportingIdentitySettings2\031reportingIdentitySettings*\252\004\n" + + "7analyticsadmin.googleapis.com/ReportingIdentitySettings\022/properti" + + "es/{property}/reportingIdentitySettings*" + + "\031reportingIdentitySettings2\031reportingIdentitySettings\"\301\002\n" + + "\030UserProvidedDataSettings\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\0222\n" + + "%user_provided_data_collection_enabled\030\002 \001(\010B\003\340A\001\022;\n" + + ".automatically_detected_data_collection_enabled\030\003" + + " \001(\010B\003\340A\001:\240\001\352A\234\001\n" + + "6analyticsadmin.googleapis.com/UserProvidedDataSettings\022.p" + + "roperties/{property}/userProvidedDataSet" + + "tings*\030userProvidedDataSettings2\030userProvidedDataSettings*\252\004\n" + "\020IndustryCategory\022!\n" + "\035INDUSTRY_CATEGORY_UNSPECIFIED\020\000\022\016\n\n" + "AUTOMOTIVE\020\001\022#\n" @@ -838,7 +866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027ACTION_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007CREATED\020\001\022\013\n" + "\007UPDATED\020\002\022\013\n" - + "\007DELETED\020\003*\241\006\n" + + "\007DELETED\020\003*\302\006\n" + "\031ChangeHistoryResourceType\022,\n" + "(CHANGE_HISTORY_RESOURCE_TYPE_UNSPECIFIED\020\000\022\013\n" + "\007ACCOUNT\020\001\022\014\n" @@ -871,7 +899,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021CALCULATED_METRIC\020\037\022\035\n" + "\031REPORTING_DATA_ANNOTATION\020 \022\033\n" + "\027SUBPROPERTY_SYNC_CONFIG\020!\022\037\n" - + "\033REPORTING_IDENTITY_SETTINGS\020\"*s\n" + + "\033REPORTING_IDENTITY_SETTINGS\020\"\022\037\n" + + "\033USER_PROVIDED_DATA_SETTINGS\020#*s\n" + "\022GoogleSignalsState\022$\n" + " GOOGLE_SIGNALS_STATE_UNSPECIFIED\020\000\022\032\n" + "\026GOOGLE_SIGNALS_ENABLED\020\001\022\033\n" @@ -902,10 +931,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020COARSE_VALUE_LOW\020\001\022\027\n" + "\023COARSE_VALUE_MEDIUM\020\002\022\025\n" + "\021COARSE_VALUE_HIGH\020\003B\313\001\n" - + "\"com.google.analytics.admin.v1alphaB\016Resource" - + "sProtoP\001Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\352AR\n" - + "2marketingplatformadmin.googleapis.com/Organ" - + "ization\022\034organizations/{organization}b\006proto3" + + "\"com.google.analytics.admin.v1alphaB\016ResourcesPro" + + "toP\001Z>cloud.google.com/go/analytics/admin/apiv1alpha/adminpb;adminpb\352AR\n" + + "2marketingplatformadmin.googleapis.com/Organizat" + + "ion\022\034organizations/{organization}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -1150,6 +1179,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ReportingDataAnnotation", "SubpropertySyncConfig", "ReportingIdentitySettings", + "UserProvidedDataSettings", "Resource", }); internal_static_google_analytics_admin_v1alpha_DisplayVideo360AdvertiserLink_descriptor = @@ -1426,6 +1456,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "ReportingIdentity", }); + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor = + getDescriptor().getMessageType(37); + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor, + new java.lang.String[] { + "Name", + "UserProvidedDataCollectionEnabled", + "AutomaticallyDetectedDataCollectionEnabled", + }); descriptor.resolveAllFeaturesImmutable(); com.google.analytics.admin.v1alpha.AudienceProto.getDescriptor(); com.google.analytics.admin.v1alpha.ChannelGroupProto.getDescriptor(); diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java index c597dc2f25e9..8c7275fc5e6c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchema.java @@ -81,13 +81,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * Identifier. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
    * Format:
    * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -108,13 +108,13 @@ public java.lang.String getName() { * * *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * Identifier. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
    * Format:
    * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -840,13 +840,13 @@ public Builder mergeFrom( * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -866,13 +866,13 @@ public java.lang.String getName() { * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -892,13 +892,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -917,13 +917,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -938,13 +938,13 @@ public Builder clearName() { * * *
-     * Output only. Resource name of the schema. This will be child of ONLY an iOS
+     * Identifier. Resource name of the schema. This will be child of ONLY an iOS
      * stream, and there can be at most one such child under an iOS stream.
      * Format:
      * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java index cef791be5f25..6e1cedcc2c86 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SKAdNetworkConversionValueSchemaOrBuilder.java @@ -30,13 +30,13 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder * * *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * Identifier. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
    * Format:
    * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -46,13 +46,13 @@ public interface SKAdNetworkConversionValueSchemaOrBuilder * * *
-   * Output only. Resource name of the schema. This will be child of ONLY an iOS
+   * Identifier. Resource name of the schema. This will be child of ONLY an iOS
    * stream, and there can be at most one such child under an iOS stream.
    * Format:
    * properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java index 6b0445615fe6..f3d4e99f8a61 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360Link.java @@ -82,13 +82,13 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Output only. The resource name for this SearchAds360Link resource.
+   * Identifier. The resource name for this SearchAds360Link resource.
    * Format: properties/{propertyId}/searchAds360Links/{linkId}
    *
    * Note: linkId is not the Search Ads 360 advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -109,13 +109,13 @@ public java.lang.String getName() { * * *
-   * Output only. The resource name for this SearchAds360Link resource.
+   * Identifier. The resource name for this SearchAds360Link resource.
    * Format: properties/{propertyId}/searchAds360Links/{linkId}
    *
    * Note: linkId is not the Search Ads 360 advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1027,13 +1027,13 @@ public Builder mergeFrom( * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. The resource name for this SearchAds360Link resource.
      * Format: properties/{propertyId}/searchAds360Links/{linkId}
      *
      * Note: linkId is not the Search Ads 360 advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -1053,13 +1053,13 @@ public java.lang.String getName() { * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. The resource name for this SearchAds360Link resource.
      * Format: properties/{propertyId}/searchAds360Links/{linkId}
      *
      * Note: linkId is not the Search Ads 360 advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ @@ -1079,13 +1079,13 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. The resource name for this SearchAds360Link resource.
      * Format: properties/{propertyId}/searchAds360Links/{linkId}
      *
      * Note: linkId is not the Search Ads 360 advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The name to set. * @return This builder for chaining. @@ -1104,13 +1104,13 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. The resource name for this SearchAds360Link resource.
      * Format: properties/{propertyId}/searchAds360Links/{linkId}
      *
      * Note: linkId is not the Search Ads 360 advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return This builder for chaining. */ @@ -1125,13 +1125,13 @@ public Builder clearName() { * * *
-     * Output only. The resource name for this SearchAds360Link resource.
+     * Identifier. The resource name for this SearchAds360Link resource.
      * Format: properties/{propertyId}/searchAds360Links/{linkId}
      *
      * Note: linkId is not the Search Ads 360 advertiser ID
      * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @param value The bytes for name to set. * @return This builder for chaining. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java index 1e763c2bcce8..392bb835ef27 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/SearchAds360LinkOrBuilder.java @@ -30,13 +30,13 @@ public interface SearchAds360LinkOrBuilder * * *
-   * Output only. The resource name for this SearchAds360Link resource.
+   * Identifier. The resource name for this SearchAds360Link resource.
    * Format: properties/{propertyId}/searchAds360Links/{linkId}
    *
    * Note: linkId is not the Search Ads 360 advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The name. */ @@ -46,13 +46,13 @@ public interface SearchAds360LinkOrBuilder * * *
-   * Output only. The resource name for this SearchAds360Link resource.
+   * Identifier. The resource name for this SearchAds360Link resource.
    * Format: properties/{propertyId}/searchAds360Links/{linkId}
    *
    * Note: linkId is not the Search Ads 360 advertiser ID
    * 
* - * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; * * @return The bytes for name. */ diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettings.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettings.java new file mode 100644 index 000000000000..9e9537d1e85e --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettings.java @@ -0,0 +1,843 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +/** + * + * + *
+ * Configuration for user-provided data collection. This is a singleton resource
+ * for a Google Analytics property.
+ * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UserProvidedDataSettings} + */ +@com.google.protobuf.Generated +public final class UserProvidedDataSettings extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.analytics.admin.v1alpha.UserProvidedDataSettings) + UserProvidedDataSettingsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UserProvidedDataSettings"); + } + + // Use UserProvidedDataSettings.newBuilder() to construct. + private UserProvidedDataSettings(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UserProvidedDataSettings() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.class, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
+   * Identifier. Resource name of this setting.
+   * Format: properties/{property}/userProvidedDataSettings
+   * Example: "properties/1000/userProvidedDataSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
+   * Identifier. Resource name of this setting.
+   * Format: properties/{property}/userProvidedDataSettings
+   * Example: "properties/1000/userProvidedDataSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int USER_PROVIDED_DATA_COLLECTION_ENABLED_FIELD_NUMBER = 2; + private boolean userProvidedDataCollectionEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether this property accepts user-provided data sent to it.
+   * 
+ * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userProvidedDataCollectionEnabled. + */ + @java.lang.Override + public boolean getUserProvidedDataCollectionEnabled() { + return userProvidedDataCollectionEnabled_; + } + + public static final int AUTOMATICALLY_DETECTED_DATA_COLLECTION_ENABLED_FIELD_NUMBER = 3; + private boolean automaticallyDetectedDataCollectionEnabled_ = false; + + /** + * + * + *
+   * Optional. Whether this property allows a Google Tag to automatically
+   * collect user-provided data from your website. This setting only takes
+   * effect if `user_provided_data_collection_enabled` is also true.
+   * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticallyDetectedDataCollectionEnabled. + */ + @java.lang.Override + public boolean getAutomaticallyDetectedDataCollectionEnabled() { + return automaticallyDetectedDataCollectionEnabled_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (userProvidedDataCollectionEnabled_ != false) { + output.writeBool(2, userProvidedDataCollectionEnabled_); + } + if (automaticallyDetectedDataCollectionEnabled_ != false) { + output.writeBool(3, automaticallyDetectedDataCollectionEnabled_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (userProvidedDataCollectionEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, userProvidedDataCollectionEnabled_); + } + if (automaticallyDetectedDataCollectionEnabled_ != false) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 3, automaticallyDetectedDataCollectionEnabled_); + } + 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.analytics.admin.v1alpha.UserProvidedDataSettings)) { + return super.equals(obj); + } + com.google.analytics.admin.v1alpha.UserProvidedDataSettings other = + (com.google.analytics.admin.v1alpha.UserProvidedDataSettings) obj; + + if (!getName().equals(other.getName())) return false; + if (getUserProvidedDataCollectionEnabled() != other.getUserProvidedDataCollectionEnabled()) + return false; + if (getAutomaticallyDetectedDataCollectionEnabled() + != other.getAutomaticallyDetectedDataCollectionEnabled()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + USER_PROVIDED_DATA_COLLECTION_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean(getUserProvidedDataCollectionEnabled()); + hash = (37 * hash) + AUTOMATICALLY_DETECTED_DATA_COLLECTION_ENABLED_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashBoolean( + getAutomaticallyDetectedDataCollectionEnabled()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings 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.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Configuration for user-provided data collection. This is a singleton resource
+   * for a Google Analytics property.
+   * 
+ * + * Protobuf type {@code google.analytics.admin.v1alpha.UserProvidedDataSettings} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.analytics.admin.v1alpha.UserProvidedDataSettings) + com.google.analytics.admin.v1alpha.UserProvidedDataSettingsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.class, + com.google.analytics.admin.v1alpha.UserProvidedDataSettings.Builder.class); + } + + // Construct using com.google.analytics.admin.v1alpha.UserProvidedDataSettings.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + userProvidedDataCollectionEnabled_ = false; + automaticallyDetectedDataCollectionEnabled_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.analytics.admin.v1alpha.ResourcesProto + .internal_static_google_analytics_admin_v1alpha_UserProvidedDataSettings_descriptor; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings getDefaultInstanceForType() { + return com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance(); + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings build() { + com.google.analytics.admin.v1alpha.UserProvidedDataSettings result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.analytics.admin.v1alpha.UserProvidedDataSettings buildPartial() { + com.google.analytics.admin.v1alpha.UserProvidedDataSettings result = + new com.google.analytics.admin.v1alpha.UserProvidedDataSettings(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.analytics.admin.v1alpha.UserProvidedDataSettings result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.userProvidedDataCollectionEnabled_ = userProvidedDataCollectionEnabled_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.automaticallyDetectedDataCollectionEnabled_ = + automaticallyDetectedDataCollectionEnabled_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.analytics.admin.v1alpha.UserProvidedDataSettings) { + return mergeFrom((com.google.analytics.admin.v1alpha.UserProvidedDataSettings) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.analytics.admin.v1alpha.UserProvidedDataSettings other) { + if (other == com.google.analytics.admin.v1alpha.UserProvidedDataSettings.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getUserProvidedDataCollectionEnabled() != false) { + setUserProvidedDataCollectionEnabled(other.getUserProvidedDataCollectionEnabled()); + } + if (other.getAutomaticallyDetectedDataCollectionEnabled() != false) { + setAutomaticallyDetectedDataCollectionEnabled( + other.getAutomaticallyDetectedDataCollectionEnabled()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + userProvidedDataCollectionEnabled_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 24: + { + automaticallyDetectedDataCollectionEnabled_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Identifier. Resource name of this setting.
+     * Format: properties/{property}/userProvidedDataSettings
+     * Example: "properties/1000/userProvidedDataSettings"
+     * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private boolean userProvidedDataCollectionEnabled_; + + /** + * + * + *
+     * Optional. Whether this property accepts user-provided data sent to it.
+     * 
+ * + * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userProvidedDataCollectionEnabled. + */ + @java.lang.Override + public boolean getUserProvidedDataCollectionEnabled() { + return userProvidedDataCollectionEnabled_; + } + + /** + * + * + *
+     * Optional. Whether this property accepts user-provided data sent to it.
+     * 
+ * + * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The userProvidedDataCollectionEnabled to set. + * @return This builder for chaining. + */ + public Builder setUserProvidedDataCollectionEnabled(boolean value) { + + userProvidedDataCollectionEnabled_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether this property accepts user-provided data sent to it.
+     * 
+ * + * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearUserProvidedDataCollectionEnabled() { + bitField0_ = (bitField0_ & ~0x00000002); + userProvidedDataCollectionEnabled_ = false; + onChanged(); + return this; + } + + private boolean automaticallyDetectedDataCollectionEnabled_; + + /** + * + * + *
+     * Optional. Whether this property allows a Google Tag to automatically
+     * collect user-provided data from your website. This setting only takes
+     * effect if `user_provided_data_collection_enabled` is also true.
+     * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticallyDetectedDataCollectionEnabled. + */ + @java.lang.Override + public boolean getAutomaticallyDetectedDataCollectionEnabled() { + return automaticallyDetectedDataCollectionEnabled_; + } + + /** + * + * + *
+     * Optional. Whether this property allows a Google Tag to automatically
+     * collect user-provided data from your website. This setting only takes
+     * effect if `user_provided_data_collection_enabled` is also true.
+     * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The automaticallyDetectedDataCollectionEnabled to set. + * @return This builder for chaining. + */ + public Builder setAutomaticallyDetectedDataCollectionEnabled(boolean value) { + + automaticallyDetectedDataCollectionEnabled_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Whether this property allows a Google Tag to automatically
+     * collect user-provided data from your website. This setting only takes
+     * effect if `user_provided_data_collection_enabled` is also true.
+     * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAutomaticallyDetectedDataCollectionEnabled() { + bitField0_ = (bitField0_ & ~0x00000004); + automaticallyDetectedDataCollectionEnabled_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.analytics.admin.v1alpha.UserProvidedDataSettings) + } + + // @@protoc_insertion_point(class_scope:google.analytics.admin.v1alpha.UserProvidedDataSettings) + private static final com.google.analytics.admin.v1alpha.UserProvidedDataSettings DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.analytics.admin.v1alpha.UserProvidedDataSettings(); + } + + public static com.google.analytics.admin.v1alpha.UserProvidedDataSettings getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UserProvidedDataSettings 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.analytics.admin.v1alpha.UserProvidedDataSettings getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java new file mode 100644 index 000000000000..b59c5571dc64 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsName.java @@ -0,0 +1,169 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class UserProvidedDataSettingsName implements ResourceName { + private static final PathTemplate PROPERTY = + PathTemplate.createWithoutUrlEncoding("properties/{property}/userProvidedDataSettings"); + private volatile Map fieldValuesMap; + private final String property; + + @Deprecated + protected UserProvidedDataSettingsName() { + property = null; + } + + private UserProvidedDataSettingsName(Builder builder) { + property = Preconditions.checkNotNull(builder.getProperty()); + } + + public String getProperty() { + return property; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static UserProvidedDataSettingsName of(String property) { + return newBuilder().setProperty(property).build(); + } + + public static String format(String property) { + return newBuilder().setProperty(property).build().toString(); + } + + public static UserProvidedDataSettingsName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROPERTY.validatedMatch( + formattedString, + "UserProvidedDataSettingsName.parse: formattedString not in valid format"); + return of(matchMap.get("property")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (UserProvidedDataSettingsName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROPERTY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (property != null) { + fieldMapBuilder.put("property", property); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROPERTY.instantiate("property", property); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + UserProvidedDataSettingsName that = ((UserProvidedDataSettingsName) o); + return Objects.equals(this.property, that.property); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(property); + return h; + } + + /** Builder for properties/{property}/userProvidedDataSettings. */ + public static class Builder { + private String property; + + protected Builder() {} + + public String getProperty() { + return property; + } + + public Builder setProperty(String property) { + this.property = property; + return this; + } + + private Builder(UserProvidedDataSettingsName userProvidedDataSettingsName) { + this.property = userProvidedDataSettingsName.property; + } + + public UserProvidedDataSettingsName build() { + return new UserProvidedDataSettingsName(this); + } + } +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsOrBuilder.java b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsOrBuilder.java new file mode 100644 index 000000000000..ef042c9d9ea1 --- /dev/null +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/java/com/google/analytics/admin/v1alpha/UserProvidedDataSettingsOrBuilder.java @@ -0,0 +1,89 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/analytics/admin/v1alpha/resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.analytics.admin.v1alpha; + +@com.google.protobuf.Generated +public interface UserProvidedDataSettingsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.analytics.admin.v1alpha.UserProvidedDataSettings) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Identifier. Resource name of this setting.
+   * Format: properties/{property}/userProvidedDataSettings
+   * Example: "properties/1000/userProvidedDataSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
+   * Identifier. Resource name of this setting.
+   * Format: properties/{property}/userProvidedDataSettings
+   * Example: "properties/1000/userProvidedDataSettings"
+   * 
+ * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Optional. Whether this property accepts user-provided data sent to it.
+   * 
+ * + * bool user_provided_data_collection_enabled = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The userProvidedDataCollectionEnabled. + */ + boolean getUserProvidedDataCollectionEnabled(); + + /** + * + * + *
+   * Optional. Whether this property allows a Google Tag to automatically
+   * collect user-provided data from your website. This setting only takes
+   * effect if `user_provided_data_collection_enabled` is also true.
+   * 
+ * + * + * bool automatically_detected_data_collection_enabled = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The automaticallyDetectedDataCollectionEnabled. + */ + boolean getAutomaticallyDetectedDataCollectionEnabled(); +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto index a1d497d16ada..567686a65507 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/access_report.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto index 2b5ea77d99de..af2055300082 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/analytics_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -1602,7 +1602,7 @@ service AnalyticsAdminService { option (google.api.method_signature) = "name"; } - // Returns the singleton data retention settings for this property. + // Returns the reporting identity settings for this property. rpc GetReportingIdentitySettings(GetReportingIdentitySettingsRequest) returns (ReportingIdentitySettings) { option (google.api.http) = { @@ -1610,6 +1610,15 @@ service AnalyticsAdminService { }; option (google.api.method_signature) = "name"; } + + // Looks up settings related to user-provided data for a property. + rpc GetUserProvidedDataSettings(GetUserProvidedDataSettingsRequest) + returns (UserProvidedDataSettings) { + option (google.api.http) = { + get: "/v1alpha/{name=properties/*/userProvidedDataSettings}" + }; + option (google.api.method_signature) = "name"; + } } // The request for a Data Access Record Report. @@ -1750,17 +1759,17 @@ message GetAccountRequest { // Request message for ListAccounts RPC. message ListAccountsRequest { - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 1; + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListAccounts` call. + // Optional. A page token, received from a previous `ListAccounts` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListAccounts` must // match the call that provided the page token. - string page_token = 2; + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; // Whether to include soft-deleted (ie: "trashed") Accounts in the // results. Accounts can be inspected to determine whether they are deleted or @@ -1854,17 +1863,17 @@ message ListPropertiesRequest { // ``` string filter = 1 [(google.api.field_behavior) = REQUIRED]; - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListProperties` call. + // Optional. A page token, received from a previous `ListProperties` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListProperties` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Whether to include soft-deleted (ie: "trashed") Properties in the // results. Properties can be inspected to determine whether they are deleted @@ -1958,17 +1967,17 @@ message ListFirebaseLinksRequest { } ]; - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListFirebaseLinks` call. + // Optional. A page token, received from a previous `ListFirebaseLinks` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListFirebaseLinks` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListFirebaseLinks RPC @@ -2046,17 +2055,17 @@ message ListGoogleAdsLinksRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListGoogleAdsLinks` call. + // Optional. A page token, received from a previous `ListGoogleAdsLinks` call. // Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListGoogleAdsLinks` must // match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListGoogleAdsLinks RPC. @@ -2085,17 +2094,17 @@ message GetDataSharingSettingsRequest { // Request message for ListAccountSummaries RPC. message ListAccountSummariesRequest { - // The maximum number of AccountSummary resources to return. The service may - // return fewer than this value, even if there are additional pages. - // If unspecified, at most 50 resources will be returned. - // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 1; + // Optional. The maximum number of AccountSummary resources to return. The + // service may return fewer than this value, even if there are additional + // pages. If unspecified, at most 50 resources will be returned. The maximum + // value is 200; (higher values will be coerced to the maximum) + int32 page_size = 1 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListAccountSummaries` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListAccountSummaries` - // must match the call that provided the page token. - string page_token = 2; + // Optional. A page token, received from a previous `ListAccountSummaries` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListAccountSummaries` must match the call + // that provided the page token. + string page_token = 2 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListAccountSummaries RPC. @@ -2273,16 +2282,17 @@ message ListMeasurementProtocolSecretsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 10 resources will be returned. // The maximum value is 10. Higher values will be coerced to the maximum. - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListMeasurementProtocolSecrets` - // call. Provide this to retrieve the subsequent page. When paginating, all - // other parameters provided to `ListMeasurementProtocolSecrets` must match - // the call that provided the page token. - string page_token = 3; + // Optional. A page token, received from a previous + // `ListMeasurementProtocolSecrets` call. Provide this to retrieve the + // subsequent page. When paginating, all other parameters provided to + // `ListMeasurementProtocolSecrets` must match the call that provided the page + // token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListMeasurementProtocolSecret RPC @@ -2362,18 +2372,18 @@ message ListSKAdNetworkConversionValueSchemasRequest { } ]; - // The maximum number of resources to return. The service may return + // Optional. The maximum number of resources to return. The service may return // fewer than this value, even if there are additional pages. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous + // Optional. A page token, received from a previous // `ListSKAdNetworkConversionValueSchemas` call. Provide this to retrieve the // subsequent page. When paginating, all other parameters provided to // `ListSKAdNetworkConversionValueSchema` must match the call that provided // the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListSKAdNetworkConversionValueSchemas RPC @@ -2484,16 +2494,16 @@ message ListConversionEventsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListConversionEvents` call. - // Provide this to retrieve the subsequent page. - // When paginating, all other parameters provided to `ListConversionEvents` - // must match the call that provided the page token. - string page_token = 3; + // Optional. A page token, received from a previous `ListConversionEvents` + // call. Provide this to retrieve the subsequent page. When paginating, all + // other parameters provided to `ListConversionEvents` must match the call + // that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListConversionEvents RPC. @@ -2572,16 +2582,16 @@ message ListKeyEventsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200; (higher values will be coerced to the maximum) - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListKeyEvents` call. + // Optional. A page token, received from a previous `ListKeyEvents` call. // Provide this to retrieve the subsequent page. // When paginating, all other parameters provided to `ListKeyEvents` // must match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListKeyEvents RPC. @@ -2907,17 +2917,17 @@ message ListCustomDimensionsRequest { } ]; - // The maximum number of resources to return. + // Optional. The maximum number of resources to return. // If unspecified, at most 50 resources will be returned. // The maximum value is 200 (higher values will be coerced to the maximum). - int32 page_size = 2; + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; - // A page token, received from a previous `ListCustomDimensions` call. - // Provide this to retrieve the subsequent page. + // Optional. A page token, received from a previous `ListCustomDimensions` + // call. Provide this to retrieve the subsequent page. // // When paginating, all other parameters provided to `ListCustomDimensions` // must match the call that provided the page token. - string page_token = 3; + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; } // Response message for ListCustomDimensions RPC. @@ -4625,3 +4635,15 @@ message GetReportingIdentitySettingsRequest { } ]; } + +// Request message for GetUserProvidedDataSettings RPC +message GetUserProvidedDataSettingsRequest { + // Required. The name of the user provided data settings to retrieve. + // Format: properties/{property}/userProvidedDataSettings + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "analyticsadmin.googleapis.com/UserProvidedDataSettings" + } + ]; +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto index c17562fb6a9f..39497c2c2b60 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/audience.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto index 61862f7fde25..2c1a3b932b5a 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/channel_group.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto index 9dbbe1bf0cc1..f96a8d57c119 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/event_create_and_edit.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto index a31eb4cb1330..12481d71591c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/expanded_data_set.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto index d666b945c24b..d253a61e5c84 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -253,6 +253,9 @@ enum ChangeHistoryResourceType { // ReportingIdentitySettings resource REPORTING_IDENTITY_SETTINGS = 34; + + // UserProvidedDataSettings resource + USER_PROVIDED_DATA_SETTINGS = 35; } // Status of the Google Signals settings. @@ -365,12 +368,14 @@ message Account { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/Account" pattern: "accounts/{account}" + plural: "accounts" + singular: "account" }; - // Output only. Resource name of this account. + // Identifier. Resource name of this account. // Format: accounts/{account} // Example: "accounts/100" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Output only. Time when this account was originally created. google.protobuf.Timestamp create_time = 2 @@ -406,12 +411,14 @@ message Property { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/Property" pattern: "properties/{property}" + plural: "properties" + singular: "property" }; - // Output only. Resource name of this property. + // Identifier. Resource name of this property. // Format: properties/{property_id} // Example: "properties/1000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The property type for this Property resource. When creating a // property, if the type is "PROPERTY_TYPE_UNSPECIFIED", then @@ -491,6 +498,8 @@ message DataStream { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataStream" pattern: "properties/{property}/dataStreams/{data_stream}" + plural: "dataStreams" + singular: "dataStream" }; // Data specific to web streams. @@ -565,10 +574,10 @@ message DataStream { IosAppStreamData ios_app_stream_data = 8; } - // Output only. Resource name of this Data Stream. + // Identifier. Resource name of this Data Stream. // Format: properties/{property_id}/dataStreams/{stream_id} // Example: "properties/1000/dataStreams/2000" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. The type of this DataStream resource. DataStreamType type = 2 [ @@ -597,10 +606,12 @@ message FirebaseLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/FirebaseLink" pattern: "properties/{property}/firebaseLinks/{firebase_link}" + plural: "firebaseLinks" + singular: "firebaseLink" }; - // Output only. Example format: properties/1234/firebaseLinks/5678 - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Identifier. Example format: properties/1234/firebaseLinks/5678 + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. Firebase project resource name. When creating a FirebaseLink, // you may provide this resource name using either a project number or project @@ -622,12 +633,14 @@ message GlobalSiteTag { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GlobalSiteTag" pattern: "properties/{property}/dataStreams/{data_stream}/globalSiteTag" + plural: "globalSiteTags" + singular: "globalSiteTag" }; - // Output only. Resource name for this GlobalSiteTag resource. + // Identifier. Resource name for this GlobalSiteTag resource. // Format: properties/{property_id}/dataStreams/{stream_id}/globalSiteTag // Example: "properties/123/dataStreams/456/globalSiteTag" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. JavaScript code snippet to be pasted as the first item into the // head tag of every webpage to measure. @@ -639,13 +652,15 @@ message GoogleAdsLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/GoogleAdsLink" pattern: "properties/{property}/googleAdsLinks/{google_ads_link}" + plural: "googleAdsLinks" + singular: "googleAdsLink" }; - // Output only. Format: + // Identifier. Format: // properties/{propertyId}/googleAdsLinks/{googleAdsLinkId} // // Note: googleAdsLinkId is not the Google Ads customer ID. - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. Google Ads customer ID. string customer_id = 3 [(google.api.field_behavior) = IMMUTABLE]; @@ -678,12 +693,14 @@ message DataSharingSettings { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataSharingSettings" pattern: "accounts/{account}/dataSharingSettings" + plural: "dataSharingSettings" + singular: "dataSharingSettings" }; - // Output only. Resource name. + // Identifier. Resource name. // Format: accounts/{account}/dataSharingSettings // Example: "accounts/1000/dataSharingSettings" - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Allows Google technical support representatives access to your Google // Analytics data and account when necessary to provide service and find @@ -730,12 +747,14 @@ message AccountSummary { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/AccountSummary" pattern: "accountSummaries/{account_summary}" + plural: "accountSummaries" + singular: "accountSummary" }; - // Resource name for this account summary. + // Identifier. Resource name for this account summary. // Format: accountSummaries/{account_id} // Example: "accountSummaries/1000" - string name = 1; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Resource name of account referred to by this account summary // Format: accounts/{account_id} @@ -779,12 +798,14 @@ message MeasurementProtocolSecret { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/MeasurementProtocolSecret" pattern: "properties/{property}/dataStreams/{data_stream}/measurementProtocolSecrets/{measurement_protocol_secret}" + plural: "measurementProtocolSecrets" + singular: "measurementProtocolSecret" }; - // Output only. Resource name of this secret. This secret may be a child of - // any type of stream. Format: + // Identifier. Resource name of this secret. This secret may be a child of any + // type of stream. Format: // properties/{property}/dataStreams/{dataStream}/measurementProtocolSecrets/{measurementProtocolSecret} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Human-readable display name for this secret. string display_name = 2 [(google.api.field_behavior) = REQUIRED]; @@ -800,13 +821,15 @@ message SKAdNetworkConversionValueSchema { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/SKAdNetworkConversionValueSchema" pattern: "properties/{property}/dataStreams/{data_stream}/sKAdNetworkConversionValueSchema/{skadnetwork_conversion_value_schema}" + plural: "skAdNetworkConversionValueSchemas" + singular: "skAdNetworkConversionValueSchema" }; - // Output only. Resource name of the schema. This will be child of ONLY an iOS + // Identifier. Resource name of the schema. This will be child of ONLY an iOS // stream, and there can be at most one such child under an iOS stream. // Format: // properties/{property}/dataStreams/{dataStream}/sKAdNetworkConversionValueSchema - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. The conversion value settings for the first postback window. // These differ from values for postback window two and three in that they @@ -1042,6 +1065,9 @@ message ChangeHistoryChange { // A snapshot of a ReportingIdentitySettings resource in change history. ReportingIdentitySettings reporting_identity_settings = 34; + + // A snapshot of a UserProvidedDataSettings resource in change history. + UserProvidedDataSettings user_provided_data_settings = 35; } } @@ -1066,14 +1092,16 @@ message DisplayVideo360AdvertiserLink { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLink" pattern: "properties/{property}/displayVideo360AdvertiserLinks/{display_video_360_advertiser_link}" + plural: "displayVideo360AdvertiserLinks" + singular: "displayVideo360AdvertiserLink" }; - // Output only. The resource name for this DisplayVideo360AdvertiserLink + // Identifier. The resource name for this DisplayVideo360AdvertiserLink // resource. Format: // properties/{propertyId}/displayVideo360AdvertiserLinks/{linkId} // // Note: linkId is not the Display & Video 360 Advertiser ID - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The Display & Video 360 Advertiser's advertiser ID. string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; @@ -1112,14 +1140,16 @@ message DisplayVideo360AdvertiserLinkProposal { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DisplayVideo360AdvertiserLinkProposal" pattern: "properties/{property}/displayVideo360AdvertiserLinkProposals/{display_video_360_advertiser_link_proposal}" + plural: "displayVideo360AdvertiserLinkProposals" + singular: "displayVideo360AdvertiserLinkProposal" }; - // Output only. The resource name for this + // Identifier. The resource name for this // DisplayVideo360AdvertiserLinkProposal resource. Format: // properties/{propertyId}/displayVideo360AdvertiserLinkProposals/{proposalId} // // Note: proposalId is not the Display & Video 360 Advertiser ID - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The Display & Video 360 Advertiser's advertiser ID. string advertiser_id = 2 [(google.api.field_behavior) = IMMUTABLE]; @@ -1163,13 +1193,15 @@ message SearchAds360Link { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/SearchAds360Link" pattern: "properties/{property}/searchAds360Links/{search_ads_360_link}" + plural: "searchAds360Links" + singular: "searchAds360Link" }; - // Output only. The resource name for this SearchAds360Link resource. + // Identifier. The resource name for this SearchAds360Link resource. // Format: properties/{propertyId}/searchAds360Links/{linkId} // // Note: linkId is not the Search Ads 360 advertiser ID - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. This field represents the Advertiser ID of the Search Ads 360 // Advertiser. that has been linked. @@ -1223,6 +1255,8 @@ message ConversionEvent { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/ConversionEvent" pattern: "properties/{property}/conversionEvents/{conversion_event}" + plural: "conversionEvents" + singular: "conversionEvent" }; // Defines a default value/currency for a conversion event. Both value and @@ -1253,9 +1287,9 @@ message ConversionEvent { ONCE_PER_SESSION = 2; } - // Output only. Resource name of this conversion event. + // Identifier. Resource name of this conversion event. // Format: properties/{property}/conversionEvents/{conversion_event} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Immutable. The event name for this conversion event. // Examples: 'click', 'purchase' @@ -1381,6 +1415,8 @@ message CustomDimension { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomDimension" pattern: "properties/{property}/customDimensions/{custom_dimension}" + plural: "customDimensions" + singular: "customDimension" }; // Valid values for the scope of this dimension. @@ -1398,9 +1434,9 @@ message CustomDimension { ITEM = 3; } - // Output only. Resource name for this CustomDimension resource. + // Identifier. Resource name for this CustomDimension resource. // Format: properties/{property}/customDimensions/{customDimension} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. Tagging parameter name for this custom dimension. // @@ -1449,6 +1485,8 @@ message CustomMetric { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/CustomMetric" pattern: "properties/{property}/customMetrics/{custom_metric}" + plural: "customMetrics" + singular: "customMetric" }; // Possible types of representing the custom metric's value. @@ -1512,9 +1550,9 @@ message CustomMetric { REVENUE_DATA = 2; } - // Output only. Resource name for this CustomMetric resource. + // Identifier. Resource name for this CustomMetric resource. // Format: properties/{property}/customMetrics/{customMetric} - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. Immutable. Tagging name for this custom metric. // @@ -1613,9 +1651,9 @@ message CalculatedMetric { REVENUE_DATA = 2; } - // Output only. Resource name for this CalculatedMetric. + // Identifier. Resource name for this CalculatedMetric. // Format: 'properties/{property_id}/calculatedMetrics/{calculated_metric_id}' - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Optional. Description for this calculated metric. // Max length of 4096 characters. @@ -1659,6 +1697,8 @@ message DataRetentionSettings { option (google.api.resource) = { type: "analyticsadmin.googleapis.com/DataRetentionSettings" pattern: "properties/{property}/dataRetentionSettings" + plural: "dataRetentionSettings" + singular: "dataRetentionSettings" }; // Valid values for the data retention duration. @@ -1685,9 +1725,9 @@ message DataRetentionSettings { FIFTY_MONTHS = 6; } - // Output only. Resource name for this DataRetentionSetting resource. + // Identifier. Resource name for this DataRetentionSetting resource. // Format: properties/{property}/dataRetentionSettings - string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; // Required. The length of time that event-level data is retained. RetentionDuration event_data_retention = 2 @@ -2220,3 +2260,29 @@ message ReportingIdentitySettings { // The strategy used for identifying user identities in reports. ReportingIdentity reporting_identity = 2; } + +// Configuration for user-provided data collection. This is a singleton resource +// for a Google Analytics property. +message UserProvidedDataSettings { + option (google.api.resource) = { + type: "analyticsadmin.googleapis.com/UserProvidedDataSettings" + pattern: "properties/{property}/userProvidedDataSettings" + plural: "userProvidedDataSettings" + singular: "userProvidedDataSettings" + }; + + // Identifier. Resource name of this setting. + // Format: properties/{property}/userProvidedDataSettings + // Example: "properties/1000/userProvidedDataSettings" + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Optional. Whether this property accepts user-provided data sent to it. + bool user_provided_data_collection_enabled = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Whether this property allows a Google Tag to automatically + // collect user-provided data from your website. This setting only takes + // effect if `user_provided_data_collection_enabled` is also true. + bool automatically_detected_data_collection_enabled = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto index 89e062a890a8..4a2e00a5103c 100644 --- a/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto +++ b/java-analytics-admin/proto-google-analytics-admin-v1alpha/src/main/proto/google/analytics/admin/v1alpha/subproperty_event_filter.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/AsyncGetUserProvidedDataSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/AsyncGetUserProvidedDataSettings.java new file mode 100644 index 000000000000..2d032e31bfff --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/AsyncGetUserProvidedDataSettings.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_async] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettingsName; +import com.google.api.core.ApiFuture; + +public class AsyncGetUserProvidedDataSettings { + + public static void main(String[] args) throws Exception { + asyncGetUserProvidedDataSettings(); + } + + public static void asyncGetUserProvidedDataSettings() 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetUserProvidedDataSettingsRequest request = + GetUserProvidedDataSettingsRequest.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .build(); + ApiFuture future = + analyticsAdminServiceClient.getUserProvidedDataSettingsCallable().futureCall(request); + // Do something. + UserProvidedDataSettings response = future.get(); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_async] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettings.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettings.java new file mode 100644 index 000000000000..21e3fd38ef6a --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettings.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.GetUserProvidedDataSettingsRequest; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettingsName; + +public class SyncGetUserProvidedDataSettings { + + public static void main(String[] args) throws Exception { + syncGetUserProvidedDataSettings(); + } + + public static void syncGetUserProvidedDataSettings() 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + GetUserProvidedDataSettingsRequest request = + GetUserProvidedDataSettingsRequest.newBuilder() + .setName(UserProvidedDataSettingsName.of("[PROPERTY]").toString()) + .build(); + UserProvidedDataSettings response = + analyticsAdminServiceClient.getUserProvidedDataSettings(request); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsString.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsString.java new file mode 100644 index 000000000000..b0422d15e677 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_String_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettingsName; + +public class SyncGetUserProvidedDataSettingsString { + + public static void main(String[] args) throws Exception { + syncGetUserProvidedDataSettingsString(); + } + + public static void syncGetUserProvidedDataSettingsString() 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + String name = UserProvidedDataSettingsName.of("[PROPERTY]").toString(); + UserProvidedDataSettings response = + analyticsAdminServiceClient.getUserProvidedDataSettings(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_String_sync] diff --git a/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsUserprovideddatasettingsname.java b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsUserprovideddatasettingsname.java new file mode 100644 index 000000000000..02814ee08767 --- /dev/null +++ b/java-analytics-admin/samples/snippets/generated/com/google/analytics/admin/v1alpha/analyticsadminservice/getuserprovideddatasettings/SyncGetUserProvidedDataSettingsUserprovideddatasettingsname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.analytics.admin.v1alpha.samples; + +// [START analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_Userprovideddatasettingsname_sync] +import com.google.analytics.admin.v1alpha.AnalyticsAdminServiceClient; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettings; +import com.google.analytics.admin.v1alpha.UserProvidedDataSettingsName; + +public class SyncGetUserProvidedDataSettingsUserprovideddatasettingsname { + + public static void main(String[] args) throws Exception { + syncGetUserProvidedDataSettingsUserprovideddatasettingsname(); + } + + public static void syncGetUserProvidedDataSettingsUserprovideddatasettingsname() + 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 (AnalyticsAdminServiceClient analyticsAdminServiceClient = + AnalyticsAdminServiceClient.create()) { + UserProvidedDataSettingsName name = UserProvidedDataSettingsName.of("[PROPERTY]"); + UserProvidedDataSettings response = + analyticsAdminServiceClient.getUserProvidedDataSettings(name); + } + } +} +// [END analyticsadmin_v1alpha_generated_AnalyticsAdminService_GetUserProvidedDataSettings_Userprovideddatasettingsname_sync] diff --git a/java-analytics-data/README.md b/java-analytics-data/README.md index c38ec30abfd4..908620a0b824 100644 --- a/java-analytics-data/README.md +++ b/java-analytics-data/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-analyticshub/README.md b/java-analyticshub/README.md index b45371ee3d6c..1cc1ff085593 100644 --- a/java-analyticshub/README.md +++ b/java-analyticshub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-api-gateway/README.md b/java-api-gateway/README.md index fac5fb8d8ae7..8f01050170f9 100644 --- a/java-api-gateway/README.md +++ b/java-api-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-apigee-connect/README.md b/java-apigee-connect/README.md index 0d7437589ea0..a0b1e4c7c4e8 100644 --- a/java-apigee-connect/README.md +++ b/java-apigee-connect/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-apigee-registry/README.md b/java-apigee-registry/README.md index a13b6a9294e2..829fe3e3eed7 100644 --- a/java-apigee-registry/README.md +++ b/java-apigee-registry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-apihub/README.md b/java-apihub/README.md index eb73556ce53a..f8acf14b653d 100644 --- a/java-apihub/README.md +++ b/java-apihub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-apikeys/README.md b/java-apikeys/README.md index dc21161168f9..b274b68670ec 100644 --- a/java-apikeys/README.md +++ b/java-apikeys/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-appengine-admin/README.md b/java-appengine-admin/README.md index 7b1201143554..7f668e24a7ca 100644 --- a/java-appengine-admin/README.md +++ b/java-appengine-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-apphub/README.md b/java-apphub/README.md index 3176244a316d..88b68719f9e7 100644 --- a/java-apphub/README.md +++ b/java-apphub/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-appoptimize/README.md b/java-appoptimize/README.md index 35e12307b610..d9592030a629 100644 --- a/java-appoptimize/README.md +++ b/java-appoptimize/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-area120-tables/README.md b/java-area120-tables/README.md index 3e55c1bb10c1..12610a297235 100644 --- a/java-area120-tables/README.md +++ b/java-area120-tables/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-artifact-registry/README.md b/java-artifact-registry/README.md index 4db8ccad4cbe..0354d450f988 100644 --- a/java-artifact-registry/README.md +++ b/java-artifact-registry/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-asset/README.md b/java-asset/README.md index 9b38f390e0c8..f7d8115c34c8 100644 --- a/java-asset/README.md +++ b/java-asset/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-assured-workloads/README.md b/java-assured-workloads/README.md index e91de4f6cc30..784c144c8e24 100644 --- a/java-assured-workloads/README.md +++ b/java-assured-workloads/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-auditmanager/README.md b/java-auditmanager/README.md index ddcd1cc4aa3a..734c9e445ebf 100644 --- a/java-auditmanager/README.md +++ b/java-auditmanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-automl/README.md b/java-automl/README.md index 4a957969499e..a1355b6902c1 100644 --- a/java-automl/README.md +++ b/java-automl/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-backupdr/README.md b/java-backupdr/README.md index 9ab3ce10dd1f..3ca5060bd558 100644 --- a/java-backupdr/README.md +++ b/java-backupdr/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-bare-metal-solution/README.md b/java-bare-metal-solution/README.md index 4e5970dadf7e..a3548973bf3e 100644 --- a/java-bare-metal-solution/README.md +++ b/java-bare-metal-solution/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-batch/README.md b/java-batch/README.md index 6987826e935d..d15c268c6dc7 100644 --- a/java-batch/README.md +++ b/java-batch/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-beyondcorp-appconnections/README.md b/java-beyondcorp-appconnections/README.md index 16d6d31e641f..dd6cf83583de 100644 --- a/java-beyondcorp-appconnections/README.md +++ b/java-beyondcorp-appconnections/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-beyondcorp-appconnectors/README.md b/java-beyondcorp-appconnectors/README.md index a67eed159e2c..4a821b6ed2a7 100644 --- a/java-beyondcorp-appconnectors/README.md +++ b/java-beyondcorp-appconnectors/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-beyondcorp-appgateways/README.md b/java-beyondcorp-appgateways/README.md index c4094dbe1d1d..026f67dfcc9a 100644 --- a/java-beyondcorp-appgateways/README.md +++ b/java-beyondcorp-appgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-beyondcorp-clientconnectorservices/README.md b/java-beyondcorp-clientconnectorservices/README.md index 9d61d9ecc37f..2a4e88f795dc 100644 --- a/java-beyondcorp-clientconnectorservices/README.md +++ b/java-beyondcorp-clientconnectorservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-beyondcorp-clientgateways/README.md b/java-beyondcorp-clientgateways/README.md index 13b70c13fdb9..5f389e984d86 100644 --- a/java-beyondcorp-clientgateways/README.md +++ b/java-beyondcorp-clientgateways/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-biglake/README.md b/java-biglake/README.md index c59d678a1ee3..6d03afb66fcd 100644 --- a/java-biglake/README.md +++ b/java-biglake/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-bigquery-data-exchange/README.md b/java-bigquery-data-exchange/README.md index 95d2acdd83bd..0b3c82cc3661 100644 --- a/java-bigquery-data-exchange/README.md +++ b/java-bigquery-data-exchange/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-bigqueryconnection/README.md b/java-bigqueryconnection/README.md index 92b248f1cf91..1b97b10af59d 100644 --- a/java-bigqueryconnection/README.md +++ b/java-bigqueryconnection/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-bigquerydatapolicy/README.md b/java-bigquerydatapolicy/README.md index 28ccc133452f..9ef74c570b47 100644 --- a/java-bigquerydatapolicy/README.md +++ b/java-bigquerydatapolicy/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-bigquerydatatransfer/README.md b/java-bigquerydatatransfer/README.md index 6c1721dd2a96..570f096b2cb2 100644 --- a/java-bigquerydatatransfer/README.md +++ b/java-bigquerydatatransfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-bigquerymigration/README.md b/java-bigquerymigration/README.md index c9306d999143..665682b335a8 100644 --- a/java-bigquerymigration/README.md +++ b/java-bigquerymigration/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-bigqueryreservation/README.md b/java-bigqueryreservation/README.md index f183d22a723e..1fd2898f58cb 100644 --- a/java-bigqueryreservation/README.md +++ b/java-bigqueryreservation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-bigquerystorage/README.md b/java-bigquerystorage/README.md index ec7993f9e05b..3d93c89b778e 100644 --- a/java-bigquerystorage/README.md +++ b/java-bigquerystorage/README.md @@ -56,7 +56,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.79.0') +implementation platform('com.google.cloud:libraries-bom:26.80.0') implementation 'com.google.cloud:google-cloud-bigquerystorage' ``` diff --git a/java-billing/README.md b/java-billing/README.md index 7737be14ecf1..63eb03b51ecd 100644 --- a/java-billing/README.md +++ b/java-billing/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-billingbudgets/README.md b/java-billingbudgets/README.md index 4e5d59d59738..dfe1717a917b 100644 --- a/java-billingbudgets/README.md +++ b/java-billingbudgets/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-binary-authorization/README.md b/java-binary-authorization/README.md index 681ac76cfc62..1e238dbdda12 100644 --- a/java-binary-authorization/README.md +++ b/java-binary-authorization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-capacityplanner/README.md b/java-capacityplanner/README.md index 8d6b9060ae8d..eca6b47770d7 100644 --- a/java-capacityplanner/README.md +++ b/java-capacityplanner/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-certificate-manager/README.md b/java-certificate-manager/README.md index ad8dda50a4d0..8368ddd5601f 100644 --- a/java-certificate-manager/README.md +++ b/java-certificate-manager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-ces/README.md b/java-ces/README.md index ac01628b06cf..3975f126ba1d 100644 --- a/java-ces/README.md +++ b/java-ces/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java index bfe1ab92e171..a12564f0b879 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceClient.java @@ -680,6 +680,26 @@ * * * + *

ExportEvaluations + *

Exports evaluations. + * + *

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

+ *
    + *
  • exportEvaluationsAsync(ExportEvaluationsRequest request) + *

+ *

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

+ *
    + *
  • exportEvaluationsAsync(AppName parent) + *

  • exportEvaluationsAsync(String parent) + *

+ *

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

+ *
    + *
  • exportEvaluationsOperationCallable() + *

  • exportEvaluationsCallable() + *

+ * + * + * *

ListLocations *

Lists information about the supported locations for this service. *

This method lists locations based on the resource scope provided inthe [ListLocationsRequest.name] field: @@ -5398,6 +5418,168 @@ public final TestPersonaVoiceResponse testPersonaVoice(TestPersonaVoiceRequest r return stub.testPersonaVoiceCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]");
+   *   ExportEvaluationsResponse response =
+   *       evaluationServiceClient.exportEvaluationsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the app to export evaluations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportEvaluationsAsync( + AppName parent) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return exportEvaluationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString();
+   *   ExportEvaluationsResponse response =
+   *       evaluationServiceClient.exportEvaluationsAsync(parent).get();
+   * }
+   * }
+ * + * @param parent Required. The resource name of the app to export evaluations from. Format: + * `projects/{project}/locations/{location}/apps/{app}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture exportEvaluationsAsync( + String parent) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder().setParent(parent).build(); + return exportEvaluationsAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   ExportEvaluationsRequest request =
+   *       ExportEvaluationsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .setExportOptions(ExportOptions.newBuilder().build())
+   *           .setIncludeEvaluationResults(true)
+   *           .setIncludeEvaluations(true)
+   *           .build();
+   *   ExportEvaluationsResponse response =
+   *       evaluationServiceClient.exportEvaluationsAsync(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 exportEvaluationsAsync( + ExportEvaluationsRequest request) { + return exportEvaluationsOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   ExportEvaluationsRequest request =
+   *       ExportEvaluationsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .setExportOptions(ExportOptions.newBuilder().build())
+   *           .setIncludeEvaluationResults(true)
+   *           .setIncludeEvaluations(true)
+   *           .build();
+   *   OperationFuture future =
+   *       evaluationServiceClient.exportEvaluationsOperationCallable().futureCall(request);
+   *   // Do something.
+   *   ExportEvaluationsResponse response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationCallable() { + return stub.exportEvaluationsOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Exports evaluations. + * + *

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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
+   *   ExportEvaluationsRequest request =
+   *       ExportEvaluationsRequest.newBuilder()
+   *           .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString())
+   *           .addAllNames(new ArrayList())
+   *           .setExportOptions(ExportOptions.newBuilder().build())
+   *           .setIncludeEvaluationResults(true)
+   *           .setIncludeEvaluations(true)
+   *           .build();
+   *   ApiFuture future =
+   *       evaluationServiceClient.exportEvaluationsCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable exportEvaluationsCallable() { + return stub.exportEvaluationsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java index 0fdf0d9c59c4..a357b3aad11f 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceSettings.java @@ -355,6 +355,18 @@ public UnaryCallSettings getEvaluationRu return ((EvaluationServiceStubSettings) getStubSettings()).testPersonaVoiceSettings(); } + /** Returns the object with the settings used for calls to exportEvaluations. */ + public UnaryCallSettings exportEvaluationsSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).exportEvaluationsSettings(); + } + + /** Returns the object with the settings used for calls to exportEvaluations. */ + public OperationCallSettings< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).exportEvaluationsOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -703,6 +715,19 @@ public UnaryCallSettings.Builder getEvaluation return getStubSettingsBuilder().testPersonaVoiceSettings(); } + /** Returns the builder for the settings used for calls to exportEvaluations. */ + public UnaryCallSettings.Builder + exportEvaluationsSettings() { + return getStubSettingsBuilder().exportEvaluationsSettings(); + } + + /** Returns the builder for the settings used for calls to exportEvaluations. */ + public OperationCallSettings.Builder< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings() { + return getStubSettingsBuilder().exportEvaluationsOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java index e982388e2325..c39b677a6a50 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/ToolServiceClient.java @@ -55,6 +55,7 @@ * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ExecuteToolResponse response = toolServiceClient.executeTool(request); * } @@ -265,6 +266,7 @@ public ToolServiceStub getStub() { * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ExecuteToolResponse response = toolServiceClient.executeTool(request); * } @@ -294,6 +296,7 @@ public final ExecuteToolResponse executeTool(ExecuteToolRequest request) { * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ApiFuture future = * toolServiceClient.executeToolCallable().futureCall(request); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json index 472878611640..f6f0d57d6c50 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/gapic_metadata.json @@ -208,6 +208,9 @@ "DeleteScheduledEvaluationRun": { "methods": ["deleteScheduledEvaluationRun", "deleteScheduledEvaluationRun", "deleteScheduledEvaluationRun", "deleteScheduledEvaluationRunCallable"] }, + "ExportEvaluations": { + "methods": ["exportEvaluationsAsync", "exportEvaluationsAsync", "exportEvaluationsAsync", "exportEvaluationsOperationCallable", "exportEvaluationsCallable"] + }, "GenerateEvaluation": { "methods": ["generateEvaluationAsync", "generateEvaluationAsync", "generateEvaluationAsync", "generateEvaluationOperationCallable", "generateEvaluationCallable"] }, diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java index 49ba9fd4a4a5..bfb92bf06c85 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/package-info.java @@ -97,6 +97,7 @@ * ExecuteToolRequest.newBuilder() * .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) * .setArgs(Struct.newBuilder().build()) + * .setMockConfig(MockConfig.newBuilder().build()) * .build(); * ExecuteToolResponse response = toolServiceClient.executeTool(request); * } diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java index bf1887399e3c..71fea4785471 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStub.java @@ -44,6 +44,8 @@ import com.google.cloud.ces.v1beta.EvaluationExpectation; import com.google.cloud.ces.v1beta.EvaluationResult; import com.google.cloud.ces.v1beta.EvaluationRun; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; import com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.GenerateEvaluationRequest; import com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest; @@ -67,6 +69,7 @@ import com.google.cloud.ces.v1beta.ListEvaluationsResponse; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse; +import com.google.cloud.ces.v1beta.OperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationRequest; import com.google.cloud.ces.v1beta.RunEvaluationResponse; @@ -316,6 +319,16 @@ public UnaryCallable listEvalua throw new UnsupportedOperationException("Not implemented: testPersonaVoiceCallable()"); } + public OperationCallable + exportEvaluationsOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: exportEvaluationsOperationCallable()"); + } + + public UnaryCallable exportEvaluationsCallable() { + throw new UnsupportedOperationException("Not implemented: exportEvaluationsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java index 0be362f784fd..1eef44d46eb0 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/EvaluationServiceStubSettings.java @@ -71,6 +71,8 @@ import com.google.cloud.ces.v1beta.EvaluationExpectation; import com.google.cloud.ces.v1beta.EvaluationResult; import com.google.cloud.ces.v1beta.EvaluationRun; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; import com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.GenerateEvaluationRequest; import com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest; @@ -94,6 +96,7 @@ import com.google.cloud.ces.v1beta.ListEvaluationsResponse; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse; +import com.google.cloud.ces.v1beta.OperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationRequest; import com.google.cloud.ces.v1beta.RunEvaluationResponse; @@ -289,6 +292,10 @@ public class EvaluationServiceStubSettings extends StubSettings testPersonaVoiceSettings; + private final UnaryCallSettings exportEvaluationsSettings; + private final OperationCallSettings< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -958,6 +965,18 @@ public UnaryCallSettings getEvaluationRu return testPersonaVoiceSettings; } + /** Returns the object with the settings used for calls to exportEvaluations. */ + public UnaryCallSettings exportEvaluationsSettings() { + return exportEvaluationsSettings; + } + + /** Returns the object with the settings used for calls to exportEvaluations. */ + public OperationCallSettings< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings() { + return exportEvaluationsOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -1126,6 +1145,9 @@ protected EvaluationServiceStubSettings(Builder settingsBuilder) throws IOExcept deleteScheduledEvaluationRunSettings = settingsBuilder.deleteScheduledEvaluationRunSettings().build(); testPersonaVoiceSettings = settingsBuilder.testPersonaVoiceSettings().build(); + exportEvaluationsSettings = settingsBuilder.exportEvaluationsSettings().build(); + exportEvaluationsOperationSettings = + settingsBuilder.exportEvaluationsOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); } @@ -1234,6 +1256,11 @@ public static class Builder extends StubSettings.Builder testPersonaVoiceSettings; + private final UnaryCallSettings.Builder + exportEvaluationsSettings; + private final OperationCallSettings.Builder< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -1317,6 +1344,8 @@ protected Builder(ClientContext clientContext) { updateScheduledEvaluationRunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteScheduledEvaluationRunSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testPersonaVoiceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportEvaluationsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + exportEvaluationsOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1353,6 +1382,7 @@ protected Builder(ClientContext clientContext) { updateScheduledEvaluationRunSettings, deleteScheduledEvaluationRunSettings, testPersonaVoiceSettings, + exportEvaluationsSettings, listLocationsSettings, getLocationSettings); initDefaults(this); @@ -1405,6 +1435,8 @@ protected Builder(EvaluationServiceStubSettings settings) { deleteScheduledEvaluationRunSettings = settings.deleteScheduledEvaluationRunSettings.toBuilder(); testPersonaVoiceSettings = settings.testPersonaVoiceSettings.toBuilder(); + exportEvaluationsSettings = settings.exportEvaluationsSettings.toBuilder(); + exportEvaluationsOperationSettings = settings.exportEvaluationsOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); @@ -1441,6 +1473,7 @@ protected Builder(EvaluationServiceStubSettings settings) { updateScheduledEvaluationRunSettings, deleteScheduledEvaluationRunSettings, testPersonaVoiceSettings, + exportEvaluationsSettings, listLocationsSettings, getLocationSettings); } @@ -1625,6 +1658,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .exportEvaluationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1736,6 +1774,31 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeoutDuration(Duration.ofMillis(300000L)) .build())); + builder + .exportEvaluationsOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + ExportEvaluationsResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + return builder; } @@ -1979,6 +2042,19 @@ public UnaryCallSettings.Builder getEvaluation return testPersonaVoiceSettings; } + /** Returns the builder for the settings used for calls to exportEvaluations. */ + public UnaryCallSettings.Builder + exportEvaluationsSettings() { + return exportEvaluationsSettings; + } + + /** Returns the builder for the settings used for calls to exportEvaluations. */ + public OperationCallSettings.Builder< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationSettings() { + return exportEvaluationsOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java index f2567143005a..74a084ba66b4 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/GrpcEvaluationServiceStub.java @@ -49,6 +49,8 @@ import com.google.cloud.ces.v1beta.EvaluationExpectation; import com.google.cloud.ces.v1beta.EvaluationResult; import com.google.cloud.ces.v1beta.EvaluationRun; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; import com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.GenerateEvaluationRequest; import com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest; @@ -72,6 +74,7 @@ import com.google.cloud.ces.v1beta.ListEvaluationsResponse; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse; +import com.google.cloud.ces.v1beta.OperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationRequest; import com.google.cloud.ces.v1beta.RunEvaluationResponse; @@ -480,6 +483,17 @@ public class GrpcEvaluationServiceStub extends EvaluationServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + exportEvaluationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.ces.v1beta.EvaluationService/ExportEvaluations") + .setRequestMarshaller( + ProtoUtils.marshaller(ExportEvaluationsRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -580,6 +594,10 @@ public class GrpcEvaluationServiceStub extends EvaluationServiceStub { deleteScheduledEvaluationRunCallable; private final UnaryCallable testPersonaVoiceCallable; + private final UnaryCallable exportEvaluationsCallable; + private final OperationCallable< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1001,6 +1019,17 @@ protected GrpcEvaluationServiceStub( }) .setResourceNameExtractor(request -> request.getApp()) .build(); + GrpcCallSettings exportEvaluationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(exportEvaluationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -1213,6 +1242,17 @@ protected GrpcEvaluationServiceStub( this.testPersonaVoiceCallable = callableFactory.createUnaryCallable( testPersonaVoiceTransportSettings, settings.testPersonaVoiceSettings(), clientContext); + this.exportEvaluationsCallable = + callableFactory.createUnaryCallable( + exportEvaluationsTransportSettings, + settings.exportEvaluationsSettings(), + clientContext); + this.exportEvaluationsOperationCallable = + callableFactory.createOperationCallable( + exportEvaluationsTransportSettings, + settings.exportEvaluationsOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -1467,6 +1507,17 @@ public UnaryCallable listEvalua return testPersonaVoiceCallable; } + @Override + public UnaryCallable exportEvaluationsCallable() { + return exportEvaluationsCallable; + } + + @Override + public OperationCallable + exportEvaluationsOperationCallable() { + return exportEvaluationsOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java index 82e37383ad70..16248369509b 100644 --- a/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java +++ b/java-ces/google-cloud-ces/src/main/java/com/google/cloud/ces/v1beta/stub/HttpJsonEvaluationServiceStub.java @@ -57,6 +57,8 @@ import com.google.cloud.ces.v1beta.EvaluationExpectation; import com.google.cloud.ces.v1beta.EvaluationResult; import com.google.cloud.ces.v1beta.EvaluationRun; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; import com.google.cloud.ces.v1beta.GenerateEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.GenerateEvaluationRequest; import com.google.cloud.ces.v1beta.GetEvaluationDatasetRequest; @@ -80,6 +82,7 @@ import com.google.cloud.ces.v1beta.ListEvaluationsResponse; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsRequest; import com.google.cloud.ces.v1beta.ListScheduledEvaluationRunsResponse; +import com.google.cloud.ces.v1beta.OperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationOperationMetadata; import com.google.cloud.ces.v1beta.RunEvaluationRequest; import com.google.cloud.ces.v1beta.RunEvaluationResponse; @@ -124,6 +127,8 @@ public class HttpJsonEvaluationServiceStub extends EvaluationServiceStub { .add(RunEvaluationOperationMetadata.getDescriptor()) .add(ImportEvaluationsOperationMetadata.getDescriptor()) .add(DeleteEvaluationRunOperationMetadata.getDescriptor()) + .add(ExportEvaluationsResponse.getDescriptor()) + .add(OperationMetadata.getDescriptor()) .add(Evaluation.getDescriptor()) .add(ImportEvaluationsResponse.getDescriptor()) .add(RunEvaluationResponse.getDescriptor()) @@ -1342,6 +1347,46 @@ public class HttpJsonEvaluationServiceStub extends EvaluationServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + exportEvaluationsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.cloud.ces.v1beta.EvaluationService/ExportEvaluations") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations:export", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("*", request.toBuilder().clearParent().build(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (ExportEvaluationsRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + private static final ApiMethodDescriptor listLocationsMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1489,6 +1534,10 @@ public class HttpJsonEvaluationServiceStub extends EvaluationServiceStub { deleteScheduledEvaluationRunCallable; private final UnaryCallable testPersonaVoiceCallable; + private final UnaryCallable exportEvaluationsCallable; + private final OperationCallable< + ExportEvaluationsRequest, ExportEvaluationsResponse, OperationMetadata> + exportEvaluationsOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -1973,6 +2022,18 @@ protected HttpJsonEvaluationServiceStub( }) .setResourceNameExtractor(request -> request.getApp()) .build(); + HttpJsonCallSettings exportEvaluationsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(exportEvaluationsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); HttpJsonCallSettings listLocationsTransportSettings = HttpJsonCallSettings.newBuilder() @@ -2188,6 +2249,17 @@ protected HttpJsonEvaluationServiceStub( this.testPersonaVoiceCallable = callableFactory.createUnaryCallable( testPersonaVoiceTransportSettings, settings.testPersonaVoiceSettings(), clientContext); + this.exportEvaluationsCallable = + callableFactory.createUnaryCallable( + exportEvaluationsTransportSettings, + settings.exportEvaluationsSettings(), + clientContext); + this.exportEvaluationsOperationCallable = + callableFactory.createOperationCallable( + exportEvaluationsTransportSettings, + settings.exportEvaluationsOperationSettings(), + clientContext, + httpJsonOperationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -2236,6 +2308,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(updateScheduledEvaluationRunMethodDescriptor); methodDescriptors.add(deleteScheduledEvaluationRunMethodDescriptor); methodDescriptors.add(testPersonaVoiceMethodDescriptor); + methodDescriptors.add(exportEvaluationsMethodDescriptor); methodDescriptors.add(listLocationsMethodDescriptor); methodDescriptors.add(getLocationMethodDescriptor); return methodDescriptors; @@ -2481,6 +2554,17 @@ public UnaryCallable listEvalua return testPersonaVoiceCallable; } + @Override + public UnaryCallable exportEvaluationsCallable() { + return exportEvaluationsCallable; + } + + @Override + public OperationCallable + exportEvaluationsOperationCallable() { + return exportEvaluationsOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json index 28650578353c..f8d2717bfe52 100644 --- a/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json +++ b/java-ces/google-cloud-ces/src/main/resources/META-INF/native-image/com.google.cloud.ces.v1beta/reflect-config.json @@ -2492,6 +2492,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$EndSessionConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$ErrorHandlingStrategy", "queryAllDeclaredConstructors": true, @@ -2501,6 +2519,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ErrorHandlingSettings$FallbackResponseConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.Evaluation", "queryAllDeclaredConstructors": true, @@ -3518,6 +3554,105 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportEvaluationsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportOptions", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportOptions$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.ExportOptions$ExportFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.ExpressionCondition", "queryAllDeclaredConstructors": true, @@ -5543,6 +5678,51 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.ces.v1beta.MockConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.MockConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.MockConfig$UnmatchedToolCallBehavior", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.MockedToolCall", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.ces.v1beta.MockedToolCall$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.ces.v1beta.ModelSettings", "queryAllDeclaredConstructors": true, diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java index d312fe516e3c..ecc82e691283 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientHttpJsonTest.java @@ -681,8 +681,12 @@ public void importEvaluationsTest() throws Exception { ImportEvaluationsResponse expectedResponse = ImportEvaluationsResponse.newBuilder() .addAllEvaluations(new ArrayList()) + .addAllEvaluationResults(new ArrayList()) + .addAllEvaluationRuns(new ArrayList()) .addAllErrorMessages(new ArrayList()) .setImportFailureCount(663262976) + .setEvaluationResultImportFailureCount(432529247) + .setEvaluationRunImportFailureCount(-1483443241) .build(); Operation resultOperation = Operation.newBuilder() @@ -732,8 +736,12 @@ public void importEvaluationsTest2() throws Exception { ImportEvaluationsResponse expectedResponse = ImportEvaluationsResponse.newBuilder() .addAllEvaluations(new ArrayList()) + .addAllEvaluationResults(new ArrayList()) + .addAllEvaluationRuns(new ArrayList()) .addAllErrorMessages(new ArrayList()) .setImportFailureCount(663262976) + .setEvaluationResultImportFailureCount(432529247) + .setEvaluationRunImportFailureCount(-1483443241) .build(); Operation resultOperation = Operation.newBuilder() @@ -3831,6 +3839,104 @@ public void testPersonaVoiceExceptionTest2() throws Exception { } } + @Test + public void exportEvaluationsTest() throws Exception { + ExportEvaluationsResponse expectedResponse = + ExportEvaluationsResponse.newBuilder() + .putAllFailedEvaluations(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEvaluationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ExportEvaluationsResponse actualResponse = client.exportEvaluationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportEvaluationsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.exportEvaluationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void exportEvaluationsTest2() throws Exception { + ExportEvaluationsResponse expectedResponse = + ExportEvaluationsResponse.newBuilder() + .putAllFailedEvaluations(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEvaluationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + + ExportEvaluationsResponse actualResponse = client.exportEvaluationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void exportEvaluationsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-8877/locations/location-8877/apps/app-8877"; + client.exportEvaluationsAsync(parent).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java index fcbc3839c7d6..f97b1814d4b1 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/EvaluationServiceClientTest.java @@ -646,8 +646,12 @@ public void importEvaluationsTest() throws Exception { ImportEvaluationsResponse expectedResponse = ImportEvaluationsResponse.newBuilder() .addAllEvaluations(new ArrayList()) + .addAllEvaluationResults(new ArrayList()) + .addAllEvaluationRuns(new ArrayList()) .addAllErrorMessages(new ArrayList()) .setImportFailureCount(663262976) + .setEvaluationResultImportFailureCount(432529247) + .setEvaluationRunImportFailureCount(-1483443241) .build(); Operation resultOperation = Operation.newBuilder() @@ -694,8 +698,12 @@ public void importEvaluationsTest2() throws Exception { ImportEvaluationsResponse expectedResponse = ImportEvaluationsResponse.newBuilder() .addAllEvaluations(new ArrayList()) + .addAllEvaluationResults(new ArrayList()) + .addAllEvaluationRuns(new ArrayList()) .addAllErrorMessages(new ArrayList()) .setImportFailureCount(663262976) + .setEvaluationResultImportFailureCount(432529247) + .setEvaluationRunImportFailureCount(-1483443241) .build(); Operation resultOperation = Operation.newBuilder() @@ -3378,6 +3386,98 @@ public void testPersonaVoiceExceptionTest2() throws Exception { } } + @Test + public void exportEvaluationsTest() throws Exception { + ExportEvaluationsResponse expectedResponse = + ExportEvaluationsResponse.newBuilder() + .putAllFailedEvaluations(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEvaluationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEvaluationService.addResponse(resultOperation); + + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + + ExportEvaluationsResponse actualResponse = client.exportEvaluationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportEvaluationsRequest actualRequest = ((ExportEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportEvaluationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + client.exportEvaluationsAsync(parent).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 exportEvaluationsTest2() throws Exception { + ExportEvaluationsResponse expectedResponse = + ExportEvaluationsResponse.newBuilder() + .putAllFailedEvaluations(new HashMap()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("exportEvaluationsTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockEvaluationService.addResponse(resultOperation); + + String parent = "parent-995424086"; + + ExportEvaluationsResponse actualResponse = client.exportEvaluationsAsync(parent).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ExportEvaluationsRequest actualRequest = ((ExportEvaluationsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void exportEvaluationsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + String parent = "parent-995424086"; + client.exportEvaluationsAsync(parent).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 listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockEvaluationServiceImpl.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockEvaluationServiceImpl.java index bbeccabe067c..300f76c78220 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockEvaluationServiceImpl.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/MockEvaluationServiceImpl.java @@ -740,4 +740,25 @@ public void testPersonaVoice( Exception.class.getName()))); } } + + @Override + public void exportEvaluations( + ExportEvaluationsRequest 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 ExportEvaluations, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientHttpJsonTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientHttpJsonTest.java index b8359e204312..f4dda712067a 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientHttpJsonTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientHttpJsonTest.java @@ -96,6 +96,7 @@ public void executeToolTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ExecuteToolResponse actualResponse = client.executeTool(request); @@ -128,6 +129,7 @@ public void executeToolExceptionTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); client.executeTool(request); Assert.fail("No exception raised"); diff --git a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientTest.java b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientTest.java index 81a9f94b6756..6f788b40ec57 100644 --- a/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientTest.java +++ b/java-ces/google-cloud-ces/src/test/java/com/google/cloud/ces/v1beta/ToolServiceClientTest.java @@ -102,6 +102,7 @@ public void executeToolTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ExecuteToolResponse actualResponse = client.executeTool(request); @@ -117,6 +118,7 @@ public void executeToolTest() throws Exception { Assert.assertEquals(request.getContext(), actualRequest.getContext()); Assert.assertEquals(request.getParent(), actualRequest.getParent()); Assert.assertEquals(request.getArgs(), actualRequest.getArgs()); + Assert.assertEquals(request.getMockConfig(), actualRequest.getMockConfig()); Assert.assertTrue( channelProvider.isHeaderSent( ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), @@ -133,6 +135,7 @@ public void executeToolExceptionTest() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); client.executeTool(request); Assert.fail("No exception raised"); diff --git a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceGrpc.java b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceGrpc.java index 563fe55b4f70..a21a1ec0c972 100644 --- a/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceGrpc.java +++ b/java-ces/grpc-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceGrpc.java @@ -1545,6 +1545,50 @@ private EvaluationServiceGrpc() {} return getTestPersonaVoiceMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ExportEvaluationsRequest, com.google.longrunning.Operation> + getExportEvaluationsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ExportEvaluations", + requestType = com.google.cloud.ces.v1beta.ExportEvaluationsRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ExportEvaluationsRequest, com.google.longrunning.Operation> + getExportEvaluationsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.ces.v1beta.ExportEvaluationsRequest, com.google.longrunning.Operation> + getExportEvaluationsMethod; + if ((getExportEvaluationsMethod = EvaluationServiceGrpc.getExportEvaluationsMethod) == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getExportEvaluationsMethod = EvaluationServiceGrpc.getExportEvaluationsMethod) + == null) { + EvaluationServiceGrpc.getExportEvaluationsMethod = + getExportEvaluationsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ExportEvaluations")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("ExportEvaluations")) + .build(); + } + } + } + return getExportEvaluationsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static EvaluationServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -2062,6 +2106,20 @@ default void testPersonaVoice( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getTestPersonaVoiceMethod(), responseObserver); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + default void exportEvaluations( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getExportEvaluationsMethod(), responseObserver); + } } /** @@ -2615,6 +2673,22 @@ public void testPersonaVoice( request, responseObserver); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + public void exportEvaluations( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getExportEvaluationsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -3072,6 +3146,20 @@ public com.google.cloud.ces.v1beta.TestPersonaVoiceResponse testPersonaVoice( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getTestPersonaVoiceMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + public com.google.longrunning.Operation exportEvaluations( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getExportEvaluationsMethod(), getCallOptions(), request); + } } /** @@ -3501,6 +3589,19 @@ public com.google.cloud.ces.v1beta.TestPersonaVoiceResponse testPersonaVoice( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getTestPersonaVoiceMethod(), getCallOptions(), request); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + public com.google.longrunning.Operation exportEvaluations( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getExportEvaluationsMethod(), getCallOptions(), request); + } } /** @@ -3962,6 +4063,19 @@ protected EvaluationServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getTestPersonaVoiceMethod(), getCallOptions()), request); } + + /** + * + * + *
+     * Exports evaluations.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + exportEvaluations(com.google.cloud.ces.v1beta.ExportEvaluationsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getExportEvaluationsMethod(), getCallOptions()), request); + } } private static final int METHODID_RUN_EVALUATION = 0; @@ -3995,6 +4109,7 @@ protected EvaluationServiceFutureStub build( private static final int METHODID_UPDATE_SCHEDULED_EVALUATION_RUN = 28; private static final int METHODID_DELETE_SCHEDULED_EVALUATION_RUN = 29; private static final int METHODID_TEST_PERSONA_VOICE = 30; + private static final int METHODID_EXPORT_EVALUATIONS = 31; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -4195,6 +4310,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_EXPORT_EVALUATIONS: + serviceImpl.exportEvaluations( + (com.google.cloud.ces.v1beta.ExportEvaluationsRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -4418,6 +4538,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.ces.v1beta.TestPersonaVoiceRequest, com.google.cloud.ces.v1beta.TestPersonaVoiceResponse>( service, METHODID_TEST_PERSONA_VOICE))) + .addMethod( + getExportEvaluationsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.ces.v1beta.ExportEvaluationsRequest, + com.google.longrunning.Operation>(service, METHODID_EXPORT_EVALUATIONS))) .build(); } @@ -4500,6 +4626,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateScheduledEvaluationRunMethod()) .addMethod(getDeleteScheduledEvaluationRunMethod()) .addMethod(getTestPersonaVoiceMethod()) + .addMethod(getExportEvaluationsMethod()) .build(); } } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java index 2a971ac644da..68eef9c2a117 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/AppProto.java @@ -92,6 +92,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -286,44 +298,59 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!evaluation_audio_recording_config\030\006 " + "\001(\0132-.google.cloud.ces.v1beta.AudioRecordingConfigB\003\340A\001\022V\n" + "\030metric_analysis_settings\030\007" - + " \001(\0132/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\003\340A\001\"\367\001\n" + + " \001(\0132/.google.cloud.ces.v1beta.MetricAnalysisSettingsB\003\340A\001\"\235\006\n" + "\025ErrorHandlingSettings\022j\n" + "\027error_handling_strategy\030\001 \001" - + "(\0162D.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\003\340A\001\"r\n" + + "(\0162D.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategyB\003\340A\001\022l\n" + + "\030fallback_response_config\030\002 \001(\0132E.google" + + ".cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigB\003\340A\001\022`\n" + + "\022end_session_config\030\003 \001(\0132?.google.cloud.ces.v1bet" + + "a.ErrorHandlingSettings.EndSessionConfigB\003\340A\001\032\206\002\n" + + "\026FallbackResponseConfig\022\210\001\n" + + "\030custom_fallback_messages\030\001 \003(\0132a.google.clo" + + "ud.ces.v1beta.ErrorHandlingSettings.Fall" + + "backResponseConfig.CustomFallbackMessagesEntryB\003\340A\001\022\"\n" + + "\025max_fallback_attempts\030\002 \001(\005B\003\340A\001\032=\n" + + "\033CustomFallbackMessagesEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001\032K\n" + + "\020EndSessionConfig\022\"\n" + + "\020escalate_session\030\001 \001(\010B\003\340A\001H\000\210\001\001B\023\n" + + "\021_escalate_session\"r\n" + "\025ErrorHandlingStrategy\022\'\n" + "#ERROR_HANDLING_STRATEGY_UNSPECIFIED\020\000\022\010\n" + "\004NONE\020\001\022\025\n" + "\021FALLBACK_RESPONSE\020\002\022\017\n" + "\013END_SESSION\020\003\"\250\020\n" + "\033EvaluationMetricsThresholds\022\211\001\n" - + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132V.googl" - + "e.cloud.ces.v1beta.EvaluationMetricsThre" - + "sholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022~\n" - + "\035hallucination_metric_behavior\030\003" - + " \001(\0162P.google.cloud.ces.v1beta.Evaluatio" - + "nMetricsThresholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\203\001\n" - + "$golden_hallucination_metric_behavior\030\005 \001(\0162P.google.cloud.ces." - + "v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\205\001\n" - + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.g" - + "oogle.cloud.ces.v1beta.EvaluationMetrics" - + "Thresholds.HallucinationMetricBehaviorB\003\340A\001\032\213\t\n" + + "$golden_evaluation_metrics_thresholds\030\001 \001(\0132V.google.cloud.ce" + + "s.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholdsB\003\340A\001\022~\n" + + "\035hallucination_metric_behavior\030\003 \001(\0162P.goo" + + "gle.cloud.ces.v1beta.EvaluationMetricsTh" + + "resholds.HallucinationMetricBehaviorB\005\030\001\340A\001\022\203\001\n" + + "$golden_hallucination_metric_behavior\030\005 \001(\0162P.google.cloud.ces.v1beta.Eva" + + "luationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\022\205\001\n" + + "&scenario_hallucination_metric_behavior\030\004 \001(\0162P.google.clou" + + "d.ces.v1beta.EvaluationMetricsThresholds.HallucinationMetricBehaviorB\003\340A\001\032\213" + + "\t\n" + "!GoldenEvaluationMetricsThresholds\022\235\001\n" - + "\035turn_level_metrics_thresholds\030\001 \001(" - + "\0132q.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsT" - + "hresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\253\001\n" - + "$expectation_level_metrics_thresholds\030\002" - + " \001(\0132x.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationM" - + "etricsThresholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022n\n" - + "\026tool_matching_settings\030\003 \001(\0132I.google.cloud.ces.v1beta.Evalua" - + "tionMetricsThresholds.ToolMatchingSettingsB\003\340A\001\032\212\004\n" + + "\035turn_level_metrics_thresholds\030\001 \001(\0132q.google" + + ".cloud.ces.v1beta.EvaluationMetricsThres" + + "holds.GoldenEvaluationMetricsThresholds.TurnLevelMetricsThresholdsB\003\340A\001\022\253\001\n" + + "$expectation_level_metrics_thresholds\030\002 \001(\0132x" + + ".google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThre" + + "sholds.ExpectationLevelMetricsThresholdsB\003\340A\001\022n\n" + + "\026tool_matching_settings\030\003 \001(\0132I." + + "google.cloud.ces.v1beta.EvaluationMetric" + + "sThresholds.ToolMatchingSettingsB\003\340A\001\032\212\004\n" + "\032TurnLevelMetricsThresholds\0227\n" + "%semantic_similarity_success_threshold\030\001" + " \001(\005B\003\340A\001H\000\210\001\001\022?\n" + "-overall_tool_invocation_correctness_threshold\030\002" + " \001(\002B\003\340A\001H\001\210\001\001\022\266\001\n" - + "\033semantic_similarity_channel\030\003 \001(\0162\213" - + "\001.google.cloud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThr" - + "esholds.TurnLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + + "\033semantic_similarity_channel\030\003 \001(\0162\213\001.google.c" + + "loud.ces.v1beta.EvaluationMetricsThresholds.GoldenEvaluationMetricsThresholds.Tu" + + "rnLevelMetricsThresholds.SemanticSimilarityChannelB\003\340A\001\"]\n" + "\031SemanticSimilarityChannel\022+\n" + "\'SEMANTIC_SIMILARITY_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" @@ -335,9 +362,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\002B\003\340A\001H\000\210\001\001B2\n" + "0_tool_invocation_parameter_correctness_threshold\032\367\001\n" + "\024ToolMatchingSettings\022\206\001\n" - + "\030extra_tool_call_behavior\030\001 \001(\0162_.google.c" - + "loud.ces.v1beta.EvaluationMetricsThresho" - + "lds.ToolMatchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + + "\030extra_tool_call_behavior\030\001 \001(\0162_.google.cloud.ces.v" + + "1beta.EvaluationMetricsThresholds.ToolMa" + + "tchingSettings.ExtraToolCallBehaviorB\003\340A\001\"V\n" + "\025ExtraToolCallBehavior\022(\n" + "$EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + "\004FAIL\020\001\022\t\n" @@ -347,12 +374,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010DISABLED\020\001\022\013\n" + "\007ENABLED\020\002\"\224\004\n" + "\022EvaluationSettings\022w\n" - + "\037scenario_conversation_initiator\030\001 \001(\0162I.google.cl" - + "oud.ces.v1beta.EvaluationSettings.ScenarioConversationInitiatorB\003\340A\001\022H\n" + + "\037scenario_conversation_initiator\030\001 \001(\0162I.google.cloud.ces.v1" + + "beta.EvaluationSettings.ScenarioConversationInitiatorB\003\340A\001\022H\n" + "\021golden_run_method\030\004" + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\003\340A\001\022h\n" - + "%golden_evaluation_tool_call_behaviour\030\002 \001(\01624.google.c" - + "loud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\022j\n" + + "%golden_evaluation_tool_call_behaviour\030\002 \001(\01624.google.cloud.ces.v" + + "1beta.EvaluationToolCallBehaviourB\003\340A\001\022j\n" + "\'scenario_evaluation_tool_call_behaviour\030\003" + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\"e\n" + "\035ScenarioConversationInitiator\022/\n" @@ -363,9 +390,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017tls_certificate\030\001 \001(\tB\003\340A\002\022G\n" + "\013private_key\030\002 \001(\tB2\340A\002\372A,\n" + "*secretmanager.googleapis.com/SecretVersion\022\027\n\n" - + "passphrase\030\003 \001(\tB\003\340A\001\"H\n" + + "passphrase\030\003 \001(\tB\003\340A\001\"\202\001\n" + "\033ConversationLoggingSettings\022)\n" - + "\034disable_conversation_logging\030\001 \001(\010B\003\340A\001\"9\n" + + "\034disable_conversation_logging\030\001 \001(\010B\003\340A\001\0228\n" + + "\020retention_window\030\002" + + " \001(\0132\031.google.protobuf.DurationB\003\340A\001\"9\n" + "\024CloudLoggingSettings\022!\n" + "\024enable_cloud_logging\030\001 \001(\010B\003\340A\001\"M\n" + "\024AudioRecordingConfig\022\027\n\n" @@ -378,8 +407,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023deidentify_template\030\003 \001(\tB-\340A\001\372A\'\n" + "%dlp.googleapis.com/DeidentifyTemplate\"\273\002\n" + "\021DataStoreSettings\022G\n" - + "\007engines\030\003 \003(\01321.google.cloud" - + ".ces.v1beta.DataStoreSettings.EngineB\003\340A\003\032\334\001\n" + + "\007engines\030\003 \003(\01321.goo" + + "gle.cloud.ces.v1beta.DataStoreSettings.EngineB\003\340A\003\032\334\001\n" + "\006Engine\022;\n" + "\004name\030\001 \001(\tB-\340A\003\372A\'\n" + "%discoveryengine.googleapis.com/Engine\022I\n" @@ -394,12 +423,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013description\030\002 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\003 \001(\tB\003\340A\002\022\030\n" + "\013personality\030\004 \001(\tB\003\340A\002\022S\n\r" - + "speech_config\030\005" - + " \001(\01327.google.cloud.ces.v1beta.EvaluationPersona.SpeechConfigB\003\340A\001\032\243\002\n" + + "speech_config\030\005 \001(\01327.google.cloud.ces.v1be" + + "ta.EvaluationPersona.SpeechConfigB\003\340A\001\032\243\002\n" + "\014SpeechConfig\022\032\n\r" + "speaking_rate\030\001 \001(\001B\003\340A\001\022g\n" - + "\013environment\030\002 \001(\0162M.google.cloud.ces.v1bet" - + "a.EvaluationPersona.SpeechConfig.BackgroundEnvironmentB\003\340A\001\022\025\n" + + "\013environment\030\002 \001(\0162M.google.cloud." + + "ces.v1beta.EvaluationPersona.SpeechConfig.BackgroundEnvironmentB\003\340A\001\022\025\n" + "\010voice_id\030\003 \001(\tB\003\340A\001\"w\n" + "\025BackgroundEnvironment\022&\n" + "\"BACKGROUND_ENVIRONMENT_UNSPECIFIED\020\000\022\017\n" @@ -407,16 +436,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007TRAFFIC\020\004\022\016\n\n" + "KIDS_NOISE\020\005\022\010\n" + "\004CAFE\020\006B\374\004\n" - + "\033com.google.cloud.ces.v1betaB\010App" - + "ProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" - + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{organizat" - + "ion}/locations/{location}/inspectTemplates/{inspect_template}\022Kprojects/{project" - + "}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" - + "%dlp.googleapis.com/DeidentifyTemplate\022[organizations/{or" - + "ganization}/locations/{location}/deidentifyTemplates/{deidentify_template}\022Qproj" - + "ects/{project}/locations/{location}/deidentifyTemplates/{deidentify_template}\352Az\n" - + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{location}" - + "/collections/{collection}/engines/{engine}b\006proto3" + + "\033com.google.cloud.ces.v1" + + "betaB\010AppProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352A\310\001\n" + + "\"dlp.googleapis.com/InspectTemplate\022Uorganizations/{" + + "organization}/locations/{location}/inspectTemplates/{inspect_template}\022Kprojects" + + "/{project}/locations/{location}/inspectTemplates/{inspect_template}\352A\327\001\n" + + "%dlp.googleapis.com/DeidentifyTemplate\022[organiza" + + "tions/{organization}/locations/{location}/deidentifyTemplates/{deidentify_templa" + + "te}\022Qprojects/{project}/locations/{locat" + + "ion}/deidentifyTemplates/{deidentify_template}\352Az\n" + + "%discoveryengine.googleapis.com/Engine\022Qprojects/{project}/locations/{" + + "location}/collections/{collection}/engines/{engine}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -569,7 +599,32 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor, new java.lang.String[] { - "ErrorHandlingStrategy", + "ErrorHandlingStrategy", "FallbackResponseConfig", "EndSessionConfig", + }); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor = + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor.getNestedType(0); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor, + new java.lang.String[] { + "CustomFallbackMessages", "MaxFallbackAttempts", + }); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor = + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor + .getNestedType(0); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor = + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_descriptor.getNestedType(1); + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor, + new java.lang.String[] { + "EscalateSession", }); internal_static_google_cloud_ces_v1beta_EvaluationMetricsThresholds_descriptor = getDescriptor().getMessageType(10); @@ -647,7 +702,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ConversationLoggingSettings_descriptor, new java.lang.String[] { - "DisableConversationLogging", + "DisableConversationLogging", "RetentionWindow", }); internal_static_google_cloud_ces_v1beta_CloudLoggingSettings_descriptor = getDescriptor().getMessageType(14); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettings.java index 0c4cb4422fa7..f99c05a1404a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettings.java @@ -68,6 +68,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { com.google.cloud.ces.v1beta.ConversationLoggingSettings.Builder.class); } + private int bitField0_; public static final int DISABLE_CONVERSATION_LOGGING_FIELD_NUMBER = 1; private boolean disableConversationLogging_ = false; @@ -87,6 +88,65 @@ public boolean getDisableConversationLogging() { return disableConversationLogging_; } + public static final int RETENTION_WINDOW_FIELD_NUMBER = 2; + private com.google.protobuf.Duration retentionWindow_; + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionWindow field is set. + */ + @java.lang.Override + public boolean hasRetentionWindow() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionWindow. + */ + @java.lang.Override + public com.google.protobuf.Duration getRetentionWindow() { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getRetentionWindowOrBuilder() { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -104,6 +164,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (disableConversationLogging_ != false) { output.writeBool(1, disableConversationLogging_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getRetentionWindow()); + } getUnknownFields().writeTo(output); } @@ -116,6 +179,9 @@ public int getSerializedSize() { if (disableConversationLogging_ != false) { size += com.google.protobuf.CodedOutputStream.computeBoolSize(1, disableConversationLogging_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getRetentionWindow()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -133,6 +199,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1beta.ConversationLoggingSettings) obj; if (getDisableConversationLogging() != other.getDisableConversationLogging()) return false; + if (hasRetentionWindow() != other.hasRetentionWindow()) return false; + if (hasRetentionWindow()) { + if (!getRetentionWindow().equals(other.getRetentionWindow())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -146,6 +216,10 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + DISABLE_CONVERSATION_LOGGING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisableConversationLogging()); + if (hasRetentionWindow()) { + hash = (37 * hash) + RETENTION_WINDOW_FIELD_NUMBER; + hash = (53 * hash) + getRetentionWindow().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -277,10 +351,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1beta.ConversationLoggingSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRetentionWindowFieldBuilder(); + } } @java.lang.Override @@ -288,6 +371,11 @@ public Builder clear() { super.clear(); bitField0_ = 0; disableConversationLogging_ = false; + retentionWindow_ = null; + if (retentionWindowBuilder_ != null) { + retentionWindowBuilder_.dispose(); + retentionWindowBuilder_ = null; + } return this; } @@ -327,6 +415,13 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ConversationLoggingSettin if (((from_bitField0_ & 0x00000001) != 0)) { result.disableConversationLogging_ = disableConversationLogging_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.retentionWindow_ = + retentionWindowBuilder_ == null ? retentionWindow_ : retentionWindowBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -345,6 +440,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ConversationLoggingSettings if (other.getDisableConversationLogging() != false) { setDisableConversationLogging(other.getDisableConversationLogging()); } + if (other.hasRetentionWindow()) { + mergeRetentionWindow(other.getRetentionWindow()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -377,6 +475,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + input.readMessage( + internalGetRetentionWindowFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -452,6 +557,227 @@ public Builder clearDisableConversationLogging() { return this; } + private com.google.protobuf.Duration retentionWindow_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + retentionWindowBuilder_; + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionWindow field is set. + */ + public boolean hasRetentionWindow() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionWindow. + */ + public com.google.protobuf.Duration getRetentionWindow() { + if (retentionWindowBuilder_ == null) { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } else { + return retentionWindowBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetentionWindow(com.google.protobuf.Duration value) { + if (retentionWindowBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + retentionWindow_ = value; + } else { + retentionWindowBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRetentionWindow(com.google.protobuf.Duration.Builder builderForValue) { + if (retentionWindowBuilder_ == null) { + retentionWindow_ = builderForValue.build(); + } else { + retentionWindowBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRetentionWindow(com.google.protobuf.Duration value) { + if (retentionWindowBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && retentionWindow_ != null + && retentionWindow_ != com.google.protobuf.Duration.getDefaultInstance()) { + getRetentionWindowBuilder().mergeFrom(value); + } else { + retentionWindow_ = value; + } + } else { + retentionWindowBuilder_.mergeFrom(value); + } + if (retentionWindow_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRetentionWindow() { + bitField0_ = (bitField0_ & ~0x00000002); + retentionWindow_ = null; + if (retentionWindowBuilder_ != null) { + retentionWindowBuilder_.dispose(); + retentionWindowBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Duration.Builder getRetentionWindowBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetRetentionWindowFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.DurationOrBuilder getRetentionWindowOrBuilder() { + if (retentionWindowBuilder_ != null) { + return retentionWindowBuilder_.getMessageOrBuilder(); + } else { + return retentionWindow_ == null + ? com.google.protobuf.Duration.getDefaultInstance() + : retentionWindow_; + } + } + + /** + * + * + *
+     * Optional. Controls the retention window for the conversation.
+     * If not set, the conversation will be retained for 365 days.
+     * 
+ * + * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetRetentionWindowFieldBuilder() { + if (retentionWindowBuilder_ == null) { + retentionWindowBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getRetentionWindow(), getParentForChildren(), isClean()); + retentionWindow_ = null; + } + return retentionWindowBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ConversationLoggingSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettingsOrBuilder.java index 2441ca63b93e..16251ad53986 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ConversationLoggingSettingsOrBuilder.java @@ -38,4 +38,47 @@ public interface ConversationLoggingSettingsOrBuilder * @return The disableConversationLogging. */ boolean getDisableConversationLogging(); + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the retentionWindow field is set. + */ + boolean hasRetentionWindow(); + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The retentionWindow. + */ + com.google.protobuf.Duration getRetentionWindow(); + + /** + * + * + *
+   * Optional. Controls the retention window for the conversation.
+   * If not set, the conversation will be retained for 365 days.
+   * 
+ * + * .google.protobuf.Duration retention_window = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.DurationOrBuilder getRetentionWindowOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java index b450f6e9a432..1ae24b897ef5 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettings.java @@ -271,6 +271,1651 @@ private ErrorHandlingStrategy(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategy) } + public interface FallbackResponseConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getCustomFallbackMessagesCount(); + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsCustomFallbackMessages(java.lang.String key); + + /** Use {@link #getCustomFallbackMessagesMap()} instead. */ + @java.lang.Deprecated + java.util.Map getCustomFallbackMessages(); + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getCustomFallbackMessagesMap(); + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getCustomFallbackMessagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getCustomFallbackMessagesOrThrow(java.lang.String key); + + /** + * + * + *
+     * Optional. The maximum number of fallback attempts to make before the
+     * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+     * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFallbackAttempts. + */ + int getMaxFallbackAttempts(); + } + + /** + * + * + *
+   * Configuration for handling fallback responses.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig} + */ + public static final class FallbackResponseConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + FallbackResponseConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FallbackResponseConfig"); + } + + // Use FallbackResponseConfig.newBuilder() to construct. + private FallbackResponseConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FallbackResponseConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetCustomFallbackMessages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.class, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder + .class); + } + + public static final int CUSTOM_FALLBACK_MESSAGES_FIELD_NUMBER = 1; + + private static final class CustomFallbackMessagesDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_CustomFallbackMessagesEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField + customFallbackMessages_; + + private com.google.protobuf.MapField + internalGetCustomFallbackMessages() { + if (customFallbackMessages_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry); + } + return customFallbackMessages_; + } + + public int getCustomFallbackMessagesCount() { + return internalGetCustomFallbackMessages().getMap().size(); + } + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomFallbackMessages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomFallbackMessages().getMap().containsKey(key); + } + + /** Use {@link #getCustomFallbackMessagesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomFallbackMessages() { + return getCustomFallbackMessagesMap(); + } + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomFallbackMessagesMap() { + return internalGetCustomFallbackMessages().getMap(); + } + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomFallbackMessagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Optional. The fallback messages in case of system errors (e.g. LLM
+     * errors), mapped by [supported language
+     * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+     * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomFallbackMessagesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int MAX_FALLBACK_ATTEMPTS_FIELD_NUMBER = 2; + private int maxFallbackAttempts_ = 0; + + /** + * + * + *
+     * Optional. The maximum number of fallback attempts to make before the
+     * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+     * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFallbackAttempts. + */ + @java.lang.Override + public int getMaxFallbackAttempts() { + return maxFallbackAttempts_; + } + + 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 { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetCustomFallbackMessages(), + CustomFallbackMessagesDefaultEntryHolder.defaultEntry, + 1); + if (maxFallbackAttempts_ != 0) { + output.writeInt32(2, maxFallbackAttempts_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry entry : + internalGetCustomFallbackMessages().getMap().entrySet()) { + com.google.protobuf.MapEntry customFallbackMessages__ = + CustomFallbackMessagesDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(1, customFallbackMessages__); + } + if (maxFallbackAttempts_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, maxFallbackAttempts_); + } + 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.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig other = + (com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) obj; + + if (!internalGetCustomFallbackMessages().equals(other.internalGetCustomFallbackMessages())) + return false; + if (getMaxFallbackAttempts() != other.getMaxFallbackAttempts()) 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 (!internalGetCustomFallbackMessages().getMap().isEmpty()) { + hash = (37 * hash) + CUSTOM_FALLBACK_MESSAGES_FIELD_NUMBER; + hash = (53 * hash) + internalGetCustomFallbackMessages().hashCode(); + } + hash = (37 * hash) + MAX_FALLBACK_ATTEMPTS_FIELD_NUMBER; + hash = (53 * hash) + getMaxFallbackAttempts(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + 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.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + 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.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configuration for handling fallback responses.
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetCustomFallbackMessages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableCustomFallbackMessages(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.class, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableCustomFallbackMessages().clear(); + maxFallbackAttempts_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_FallbackResponseConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig build() { + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + buildPartial() { + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig result = + new com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.customFallbackMessages_ = internalGetCustomFallbackMessages(); + result.customFallbackMessages_.makeImmutable(); + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxFallbackAttempts_ = maxFallbackAttempts_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) { + return mergeFrom( + (com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig other) { + if (other + == com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance()) return this; + internalGetMutableCustomFallbackMessages() + .mergeFrom(other.internalGetCustomFallbackMessages()); + bitField0_ |= 0x00000001; + if (other.getMaxFallbackAttempts() != 0) { + setMaxFallbackAttempts(other.getMaxFallbackAttempts()); + } + 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.protobuf.MapEntry + customFallbackMessages__ = + input.readMessage( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry + .getParserForType(), + extensionRegistry); + internalGetMutableCustomFallbackMessages() + .getMutableMap() + .put(customFallbackMessages__.getKey(), customFallbackMessages__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + maxFallbackAttempts_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.MapField + customFallbackMessages_; + + private com.google.protobuf.MapField + internalGetCustomFallbackMessages() { + if (customFallbackMessages_ == null) { + return com.google.protobuf.MapField.emptyMapField( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry); + } + return customFallbackMessages_; + } + + private com.google.protobuf.MapField + internalGetMutableCustomFallbackMessages() { + if (customFallbackMessages_ == null) { + customFallbackMessages_ = + com.google.protobuf.MapField.newMapField( + CustomFallbackMessagesDefaultEntryHolder.defaultEntry); + } + if (!customFallbackMessages_.isMutable()) { + customFallbackMessages_ = customFallbackMessages_.copy(); + } + bitField0_ |= 0x00000001; + onChanged(); + return customFallbackMessages_; + } + + public int getCustomFallbackMessagesCount() { + return internalGetCustomFallbackMessages().getMap().size(); + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsCustomFallbackMessages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetCustomFallbackMessages().getMap().containsKey(key); + } + + /** Use {@link #getCustomFallbackMessagesMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getCustomFallbackMessages() { + return getCustomFallbackMessagesMap(); + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getCustomFallbackMessagesMap() { + return internalGetCustomFallbackMessages().getMap(); + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getCustomFallbackMessagesOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getCustomFallbackMessagesOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetCustomFallbackMessages().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearCustomFallbackMessages() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableCustomFallbackMessages().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeCustomFallbackMessages(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableCustomFallbackMessages().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableCustomFallbackMessages() { + bitField0_ |= 0x00000001; + return internalGetMutableCustomFallbackMessages().getMutableMap(); + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putCustomFallbackMessages(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableCustomFallbackMessages().getMutableMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
+       * Optional. The fallback messages in case of system errors (e.g. LLM
+       * errors), mapped by [supported language
+       * code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language).
+       * 
+ * + * + * map<string, string> custom_fallback_messages = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllCustomFallbackMessages( + java.util.Map values) { + internalGetMutableCustomFallbackMessages().getMutableMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + private int maxFallbackAttempts_; + + /** + * + * + *
+       * Optional. The maximum number of fallback attempts to make before the
+       * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+       * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The maxFallbackAttempts. + */ + @java.lang.Override + public int getMaxFallbackAttempts() { + return maxFallbackAttempts_; + } + + /** + * + * + *
+       * Optional. The maximum number of fallback attempts to make before the
+       * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+       * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The maxFallbackAttempts to set. + * @return This builder for chaining. + */ + public Builder setMaxFallbackAttempts(int value) { + + maxFallbackAttempts_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. The maximum number of fallback attempts to make before the
+       * agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal.
+       * 
+ * + * int32 max_fallback_attempts = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearMaxFallbackAttempts() { + bitField0_ = (bitField0_ & ~0x00000002); + maxFallbackAttempts_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig) + private static final com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig(); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FallbackResponseConfig 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.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EndSessionConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+     * Optional. Whether to escalate the session in
+     * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+     * escalated, [metadata in
+     * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+     * `session_escalated = true`. See
+     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+     * for details.
+     * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the escalateSession field is set. + */ + boolean hasEscalateSession(); + + /** + * + * + *
+     * Optional. Whether to escalate the session in
+     * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+     * escalated, [metadata in
+     * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+     * `session_escalated = true`. See
+     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+     * for details.
+     * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escalateSession. + */ + boolean getEscalateSession(); + } + + /** + * + * + *
+   * Configuration for ending the session in case of system errors (e.g. LLM
+   * errors).
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig} + */ + public static final class EndSessionConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + EndSessionConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EndSessionConfig"); + } + + // Use EndSessionConfig.newBuilder() to construct. + private EndSessionConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EndSessionConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.class, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder.class); + } + + private int bitField0_; + public static final int ESCALATE_SESSION_FIELD_NUMBER = 1; + private boolean escalateSession_ = false; + + /** + * + * + *
+     * Optional. Whether to escalate the session in
+     * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+     * escalated, [metadata in
+     * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+     * `session_escalated = true`. See
+     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+     * for details.
+     * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the escalateSession field is set. + */ + @java.lang.Override + public boolean hasEscalateSession() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+     * Optional. Whether to escalate the session in
+     * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+     * escalated, [metadata in
+     * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+     * `session_escalated = true`. See
+     * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+     * for details.
+     * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escalateSession. + */ + @java.lang.Override + public boolean getEscalateSession() { + return escalateSession_; + } + + 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.writeBool(1, escalateSession_); + } + 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.computeBoolSize(1, escalateSession_); + } + 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.ces.v1beta.ErrorHandlingSettings.EndSessionConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig other = + (com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) obj; + + if (hasEscalateSession() != other.hasEscalateSession()) return false; + if (hasEscalateSession()) { + if (getEscalateSession() != other.getEscalateSession()) 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 (hasEscalateSession()) { + hash = (37 * hash) + ESCALATE_SESSION_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEscalateSession()); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig 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.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig 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.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+     * Configuration for ending the session in case of system errors (e.g. LLM
+     * errors).
+     * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.class, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder.class); + } + + // Construct using + // com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + escalateSession_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.AppProto + .internal_static_google_cloud_ces_v1beta_ErrorHandlingSettings_EndSessionConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig build() { + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig buildPartial() { + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig result = + new com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.escalateSession_ = escalateSession_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) { + return mergeFrom( + (com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig other) { + if (other + == com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance()) return this; + if (other.hasEscalateSession()) { + setEscalateSession(other.getEscalateSession()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + escalateSession_ = input.readBool(); + bitField0_ |= 0x00000001; + break; + } // case 8 + 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 boolean escalateSession_; + + /** + * + * + *
+       * Optional. Whether to escalate the session in
+       * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+       * escalated, [metadata in
+       * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+       * `session_escalated = true`. See
+       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+       * for details.
+       * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the escalateSession field is set. + */ + @java.lang.Override + public boolean hasEscalateSession() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+       * Optional. Whether to escalate the session in
+       * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+       * escalated, [metadata in
+       * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+       * `session_escalated = true`. See
+       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+       * for details.
+       * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The escalateSession. + */ + @java.lang.Override + public boolean getEscalateSession() { + return escalateSession_; + } + + /** + * + * + *
+       * Optional. Whether to escalate the session in
+       * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+       * escalated, [metadata in
+       * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+       * `session_escalated = true`. See
+       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+       * for details.
+       * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The escalateSession to set. + * @return This builder for chaining. + */ + public Builder setEscalateSession(boolean value) { + + escalateSession_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+       * Optional. Whether to escalate the session in
+       * [EndSession][google.cloud.ces.v1beta.EndSession]. If session is
+       * escalated, [metadata in
+       * EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain
+       * `session_escalated = true`. See
+       * https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent
+       * for details.
+       * 
+ * + * optional bool escalate_session = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEscalateSession() { + bitField0_ = (bitField0_ & ~0x00000001); + escalateSession_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig) + private static final com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig(); + } + + public static com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EndSessionConfig 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.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; public static final int ERROR_HANDLING_STRATEGY_FIELD_NUMBER = 1; private int errorHandlingStrategy_ = 0; @@ -316,6 +1961,133 @@ public int getErrorHandlingStrategyValue() { : result; } + public static final int FALLBACK_RESPONSE_CONFIG_FIELD_NUMBER = 2; + private com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + fallbackResponseConfig_; + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fallbackResponseConfig field is set. + */ + @java.lang.Override + public boolean hasFallbackResponseConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fallbackResponseConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getFallbackResponseConfig() { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder + getFallbackResponseConfigOrBuilder() { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } + + public static final int END_SESSION_CONFIG_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig endSessionConfig_; + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSessionConfig field is set. + */ + @java.lang.Override + public boolean hasEndSessionConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSessionConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig getEndSessionConfig() { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance() + : endSessionConfig_; + } + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder + getEndSessionConfigOrBuilder() { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.getDefaultInstance() + : endSessionConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -336,6 +2108,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(1, errorHandlingStrategy_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getFallbackResponseConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getEndSessionConfig()); + } getUnknownFields().writeTo(output); } @@ -351,6 +2129,13 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, errorHandlingStrategy_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(2, getFallbackResponseConfig()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndSessionConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -368,6 +2153,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1beta.ErrorHandlingSettings) obj; if (errorHandlingStrategy_ != other.errorHandlingStrategy_) return false; + if (hasFallbackResponseConfig() != other.hasFallbackResponseConfig()) return false; + if (hasFallbackResponseConfig()) { + if (!getFallbackResponseConfig().equals(other.getFallbackResponseConfig())) return false; + } + if (hasEndSessionConfig() != other.hasEndSessionConfig()) return false; + if (hasEndSessionConfig()) { + if (!getEndSessionConfig().equals(other.getEndSessionConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -381,6 +2174,14 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ERROR_HANDLING_STRATEGY_FIELD_NUMBER; hash = (53 * hash) + errorHandlingStrategy_; + if (hasFallbackResponseConfig()) { + hash = (37 * hash) + FALLBACK_RESPONSE_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getFallbackResponseConfig().hashCode(); + } + if (hasEndSessionConfig()) { + hash = (37 * hash) + END_SESSION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getEndSessionConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -511,10 +2312,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.ces.v1beta.ErrorHandlingSettings.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetFallbackResponseConfigFieldBuilder(); + internalGetEndSessionConfigFieldBuilder(); + } } @java.lang.Override @@ -522,6 +2333,16 @@ public Builder clear() { super.clear(); bitField0_ = 0; errorHandlingStrategy_ = 0; + fallbackResponseConfig_ = null; + if (fallbackResponseConfigBuilder_ != null) { + fallbackResponseConfigBuilder_.dispose(); + fallbackResponseConfigBuilder_ = null; + } + endSessionConfig_ = null; + if (endSessionConfigBuilder_ != null) { + endSessionConfigBuilder_.dispose(); + endSessionConfigBuilder_ = null; + } return this; } @@ -561,6 +2382,20 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ErrorHandlingSettings res if (((from_bitField0_ & 0x00000001) != 0)) { result.errorHandlingStrategy_ = errorHandlingStrategy_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.fallbackResponseConfig_ = + fallbackResponseConfigBuilder_ == null + ? fallbackResponseConfig_ + : fallbackResponseConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.endSessionConfig_ = + endSessionConfigBuilder_ == null ? endSessionConfig_ : endSessionConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -579,6 +2414,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ErrorHandlingSettings other if (other.errorHandlingStrategy_ != 0) { setErrorHandlingStrategyValue(other.getErrorHandlingStrategyValue()); } + if (other.hasFallbackResponseConfig()) { + mergeFallbackResponseConfig(other.getFallbackResponseConfig()); + } + if (other.hasEndSessionConfig()) { + mergeEndSessionConfig(other.getEndSessionConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -611,6 +2452,21 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 8 + case 18: + { + input.readMessage( + internalGetFallbackResponseConfigFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEndSessionConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -740,6 +2596,462 @@ public Builder clearErrorHandlingStrategy() { return this; } + private com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + fallbackResponseConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder> + fallbackResponseConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fallbackResponseConfig field is set. + */ + public boolean hasFallbackResponseConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fallbackResponseConfig. + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getFallbackResponseConfig() { + if (fallbackResponseConfigBuilder_ == null) { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } else { + return fallbackResponseConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFallbackResponseConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig value) { + if (fallbackResponseConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + fallbackResponseConfig_ = value; + } else { + fallbackResponseConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFallbackResponseConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder + builderForValue) { + if (fallbackResponseConfigBuilder_ == null) { + fallbackResponseConfig_ = builderForValue.build(); + } else { + fallbackResponseConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeFallbackResponseConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig value) { + if (fallbackResponseConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && fallbackResponseConfig_ != null + && fallbackResponseConfig_ + != com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance()) { + getFallbackResponseConfigBuilder().mergeFrom(value); + } else { + fallbackResponseConfig_ = value; + } + } else { + fallbackResponseConfigBuilder_.mergeFrom(value); + } + if (fallbackResponseConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFallbackResponseConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + fallbackResponseConfig_ = null; + if (fallbackResponseConfigBuilder_ != null) { + fallbackResponseConfigBuilder_.dispose(); + fallbackResponseConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder + getFallbackResponseConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetFallbackResponseConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder + getFallbackResponseConfigOrBuilder() { + if (fallbackResponseConfigBuilder_ != null) { + return fallbackResponseConfigBuilder_.getMessageOrBuilder(); + } else { + return fallbackResponseConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + .getDefaultInstance() + : fallbackResponseConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for handling fallback responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder> + internalGetFallbackResponseConfigFieldBuilder() { + if (fallbackResponseConfigBuilder_ == null) { + fallbackResponseConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder>( + getFallbackResponseConfig(), getParentForChildren(), isClean()); + fallbackResponseConfig_ = null; + } + return fallbackResponseConfigBuilder_; + } + + private com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig endSessionConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder> + endSessionConfigBuilder_; + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSessionConfig field is set. + */ + public boolean hasEndSessionConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSessionConfig. + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + getEndSessionConfig() { + if (endSessionConfigBuilder_ == null) { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance() + : endSessionConfig_; + } else { + return endSessionConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndSessionConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig value) { + if (endSessionConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endSessionConfig_ = value; + } else { + endSessionConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEndSessionConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder + builderForValue) { + if (endSessionConfigBuilder_ == null) { + endSessionConfig_ = builderForValue.build(); + } else { + endSessionConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEndSessionConfig( + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig value) { + if (endSessionConfigBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && endSessionConfig_ != null + && endSessionConfig_ + != com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance()) { + getEndSessionConfigBuilder().mergeFrom(value); + } else { + endSessionConfig_ = value; + } + } else { + endSessionConfigBuilder_.mergeFrom(value); + } + if (endSessionConfig_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEndSessionConfig() { + bitField0_ = (bitField0_ & ~0x00000004); + endSessionConfig_ = null; + if (endSessionConfigBuilder_ != null) { + endSessionConfigBuilder_.dispose(); + endSessionConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder + getEndSessionConfigBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEndSessionConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder + getEndSessionConfigOrBuilder() { + if (endSessionConfigBuilder_ != null) { + return endSessionConfigBuilder_.getMessageOrBuilder(); + } else { + return endSessionConfig_ == null + ? com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig + .getDefaultInstance() + : endSessionConfig_; + } + } + + /** + * + * + *
+     * Optional. Configuration for ending the session in case of system errors
+     * (e.g. LLM errors).
+     * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder> + internalGetEndSessionConfigFieldBuilder() { + if (endSessionConfigBuilder_ == null) { + endSessionConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig.Builder, + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder>( + getEndSessionConfig(), getParentForChildren(), isClean()); + endSessionConfig_ = null; + } + return endSessionConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ErrorHandlingSettings) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettingsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettingsOrBuilder.java index 2677f8611b5c..3666c502f582 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettingsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ErrorHandlingSettingsOrBuilder.java @@ -56,4 +56,96 @@ public interface ErrorHandlingSettingsOrBuilder */ com.google.cloud.ces.v1beta.ErrorHandlingSettings.ErrorHandlingStrategy getErrorHandlingStrategy(); + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the fallbackResponseConfig field is set. + */ + boolean hasFallbackResponseConfig(); + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The fallbackResponseConfig. + */ + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig + getFallbackResponseConfig(); + + /** + * + * + *
+   * Optional. Configuration for handling fallback responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfig fallback_response_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ErrorHandlingSettings.FallbackResponseConfigOrBuilder + getFallbackResponseConfigOrBuilder(); + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the endSessionConfig field is set. + */ + boolean hasEndSessionConfig(); + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The endSessionConfig. + */ + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig getEndSessionConfig(); + + /** + * + * + *
+   * Optional. Configuration for ending the session in case of system errors
+   * (e.g. LLM errors).
+   * 
+ * + * + * .google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfig end_session_config = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ErrorHandlingSettings.EndSessionConfigOrBuilder + getEndSessionConfigOrBuilder(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java index d46db23f2cee..c234e3d91302 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfig.java @@ -259,7 +259,7 @@ private EvaluationChannel(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return Whether the inputAudioConfig field is set. */ @java.lang.Override @@ -280,7 +280,7 @@ public boolean hasInputAudioConfig() { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return The inputAudioConfig. */ @java.lang.Override @@ -325,7 +325,7 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return Whether the outputAudioConfig field is set. */ @java.lang.Override @@ -346,7 +346,7 @@ public boolean hasOutputAudioConfig() { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return The outputAudioConfig. */ @java.lang.Override @@ -907,7 +907,7 @@ public Builder mergeFrom( * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return Whether the inputAudioConfig field is set. */ @java.lang.Deprecated @@ -927,7 +927,7 @@ public boolean hasInputAudioConfig() { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return The inputAudioConfig. */ @java.lang.Deprecated @@ -1133,7 +1133,7 @@ public com.google.cloud.ces.v1beta.InputAudioConfigOrBuilder getInputAudioConfig * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return Whether the outputAudioConfig field is set. */ @java.lang.Deprecated @@ -1153,7 +1153,7 @@ public boolean hasOutputAudioConfig() { * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return The outputAudioConfig. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java index e9edea45b74c..1292493bd3c3 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationConfigOrBuilder.java @@ -38,7 +38,7 @@ public interface EvaluationConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return Whether the inputAudioConfig field is set. */ @java.lang.Deprecated @@ -56,7 +56,7 @@ public interface EvaluationConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.input_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1421 + * google/cloud/ces/v1beta/evaluation.proto;l=1424 * @return The inputAudioConfig. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface EvaluationConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return Whether the outputAudioConfig field is set. */ @java.lang.Deprecated @@ -106,7 +106,7 @@ public interface EvaluationConfigOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationConfig.output_audio_config is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1425 + * google/cloud/ces/v1beta/evaluation.proto;l=1428 * @return The outputAudioConfig. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java index 286c9cfc83cf..1ee27eca9fc7 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholds.java @@ -4770,7 +4770,7 @@ public boolean hasGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -4792,7 +4792,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5586,7 +5586,7 @@ public Builder clearGoldenEvaluationMetricsThresholds() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Override @@ -5608,7 +5608,7 @@ public int getHallucinationMetricBehaviorValue() { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @param value The enum numeric value on the wire for hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5633,7 +5633,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The hallucinationMetricBehavior. */ @java.lang.Override @@ -5662,7 +5662,7 @@ public Builder setHallucinationMetricBehaviorValue(int value) { * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @param value The hallucinationMetricBehavior to set. * @return This builder for chaining. */ @@ -5691,7 +5691,7 @@ public Builder setHallucinationMetricBehavior( * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java index 9220a0d0d71b..7e95d5e040e2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationMetricsThresholdsOrBuilder.java @@ -84,7 +84,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The enum numeric value on the wire for hallucinationMetricBehavior. */ @java.lang.Deprecated @@ -103,7 +103,7 @@ public interface EvaluationMetricsThresholdsOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationMetricsThresholds.hallucination_metric_behavior - * is deprecated. See google/cloud/ces/v1beta/app.proto;l=546 + * is deprecated. See google/cloud/ces/v1beta/app.proto;l=581 * @return The hallucinationMetricBehavior. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java index 1ce6b21ec362..bfed484231ed 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationProto.java @@ -444,7 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.ces.v1beta.AggregatedMetricsB\003\340A\003:\255\001\352A\251\001\n" + "$ces.googleapis.com/EvaluationDataset\022Zprojects/{proje" + "ct}/locations/{location}/apps/{app}/eval" - + "uationDatasets/{evaluation_dataset}*\022evaluationDatasets2\021evaluationDataset\"\2637\n" + + "uationDatasets/{evaluation_dataset}*\022evaluationDatasets2\021evaluationDataset\"\3007\n" + "\020EvaluationResult\022T\n\r" + "golden_result\030\007 \001(\01326" + ".google.cloud.ces.v1beta.EvaluationResult.GoldenResultB\003\340A\003H\000\022X\n" @@ -642,19 +642,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\005B\003\340A\003H\000\210\001\001\022\022\n" + "\005label\030\002 \001(\tB\003\340A\003\022\030\n" + "\013explanation\030\003 \001(\tB\003\340A\003B\010\n" - + "\006_score\"6\n" + + "\006_score\"C\n" + "\007Outcome\022\027\n" + "\023OUTCOME_UNSPECIFIED\020\000\022\010\n" + "\004PASS\020\001\022\010\n" - + "\004FAIL\020\002\"X\n" + + "\004FAIL\020\002\022\013\n" + + "\007SKIPPED\020\003\"X\n" + "\016ExecutionState\022\037\n" + "\033EXECUTION_STATE_UNSPECIFIED\020\000\022\013\n" + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003:\267\001\352A\263\001\n" - + "#ces.googleapis.com/EvaluationResult\022gprojects/{project}/loc" - + "ations/{location}/apps/{app}/evaluations/{evaluation}/results/{evaluation_result" - + "}*\021evaluationResults2\020evaluationResultB\010\n" + + "#ces.googleapis.com/EvaluationResult\022gprojects/" + + "{project}/locations/{location}/apps/{app}/evaluations/{evaluation}/results/{eval" + + "uation_result}*\021evaluationResults2\020evaluationResultB\010\n" + "\006result\"\251\021\n\r" + "EvaluationRun\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" @@ -676,31 +677,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035ces.googleapis.com/Evaluation\022H\n" + "\022evaluation_dataset\030\010 \001(\tB,\340A\003\372A&\n" + "$ces.googleapis.com/EvaluationDataset\022S\n" - + "\017evaluation_type\030\t" - + " \001(\01625.google.cloud.ces.v1beta.EvaluationRun.EvaluationTypeB\003\340A\003\022M\n" + + "\017evaluation_type\030\t \001(\01625.google.cloud.ces.v1" + + "beta.EvaluationRun.EvaluationTypeB\003\340A\003\022M\n" + "\005state\030\n" - + " \001(\016" - + "29.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\003\340A\003\022F\n" - + "\010progress\030\013 \001" - + "(\0132/.google.cloud.ces.v1beta.EvaluationRun.ProgressB\003\340A\003\022>\n" - + "\006config\030\014 \001(\0132).googl" - + "e.cloud.ces.v1beta.EvaluationConfigB\003\340A\003\022(\n" + + " \001(\01629.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunStateB\003\340A\003\022F\n" + + "\010progress\030\013" + + " \001(\0132/.google.cloud.ces.v1beta.EvaluationRun.ProgressB\003\340A\003\022>\n" + + "\006config\030\014" + + " \001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\003\340A\003\022(\n" + "\005error\030\016 \001(\0132\022.google.rpc.StatusB\005\030\001\340A\003\022E\n\n" - + "error_info\030\021" - + " \001(\0132,.google.cloud.ces.v1beta.EvaluationErrorInfoB\003\340A\003\022i\n" - + "\030evaluation_run_summaries\030\017 \003(\0132B.google.clo" - + "ud.ces.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\003\340A\003\022C\n" + + "error_info\030\021 \001(\0132,.go" + + "ogle.cloud.ces.v1beta.EvaluationErrorInfoB\003\340A\003\022i\n" + + "\030evaluation_run_summaries\030\017 \003(\013" + + "2B.google.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummariesEntryB\003\340A\003\022C\n" + "\016latency_report\030\031" + " \001(\0132&.google.cloud.ces.v1beta.LatencyReportB\003\340A\003\022\026\n" + "\trun_count\030\020 \001(\005B\003\340A\003\022K\n" - + "\023persona_run_configs\030\022" - + " \003(\0132).google.cloud.ces.v1beta.PersonaRunConfigB\003\340A\003\022M\n" - + "\023optimization_config\030\023" - + " \001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\003\340A\001\022S\n" + + "\023persona_run_configs\030\022 \003(\0132).go" + + "ogle.cloud.ces.v1beta.PersonaRunConfigB\003\340A\003\022M\n" + + "\023optimization_config\030\023 \001(\0132+.googl" + + "e.cloud.ces.v1beta.OptimizationConfigB\003\340A\001\022S\n" + "\030scheduled_evaluation_run\030\024 \001(\tB1\340A\003\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\022H\n" - + "\021golden_run_method\030\025" - + " \001(\0162(.google.cloud.ces.v1beta.GoldenRunMethodB\003\340A\003\032\222\001\n" + + "\021golden_run_method\030\025 \001(\0162(.goo" + + "gle.cloud.ces.v1beta.GoldenRunMethodB\003\340A\003\032\222\001\n" + "\010Progress\022\030\n" + "\013total_count\030\001 \001(\005B\003\340A\003\022\031\n" + "\014failed_count\030\002 \001(\005B\003\340A\003\022\030\n" @@ -713,8 +713,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013error_count\030\003 \001(\005B\003\340A\003\032z\n" + "\033EvaluationRunSummariesEntry\022\013\n" + "\003key\030\001 \001(\t\022J\n" - + "\005value\030\002 \001(\0132;.google.cloud.ces." - + "v1beta.EvaluationRun.EvaluationRunSummary:\0028\001\"V\n" + + "\005value\030\002 \001(\0132;.goog" + + "le.cloud.ces.v1beta.EvaluationRun.EvaluationRunSummary:\0028\001\"V\n" + "\016EvaluationType\022\037\n" + "\033EVALUATION_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006GOLDEN\020\001\022\014\n" @@ -725,52 +725,52 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003:\231\001\352A\225\001\n" - + " ces.googleapis.com/EvaluationRun\022Rprojects/{project}/locations/{location}/apps/" - + "{app}/evaluationRuns/{evaluation_run}*\016evaluationRuns2\r" + + " ces.googleapis.com/EvaluationRun\022Rprojects/{project}/locations/{lo" + + "cation}/apps/{app}/evaluationRuns/{evaluation_run}*\016evaluationRuns2\r" + "evaluationRun\"\252\n\n\r" + "LatencyReport\022R\n" - + "\016tool_latencies\030\001 \003(\01322.google." - + "cloud.ces.v1beta.LatencyReport.ToolLatencyB\006\340A\003\340A\006\022Z\n" - + "\022callback_latencies\030\002 \003(\01326" - + ".google.cloud.ces.v1beta.LatencyReport.CallbackLatencyB\006\340A\003\340A\006\022\\\n" - + "\023guardrail_latencies\030\003" - + " \003(\01327.google.cloud.ces.v1beta.LatencyReport.GuardrailLatencyB\006\340A\003\340A\006\022Y\n" - + "\022llm_call_latencies\030\004 \003(\01325.google.cloud." - + "ces.v1beta.LatencyReport.LlmCallLatencyB\006\340A\003\340A\006\022\032\n\r" + + "\016tool_latencies\030\001 " + + "\003(\01322.google.cloud.ces.v1beta.LatencyReport.ToolLatencyB\006\340A\003\340A\006\022Z\n" + + "\022callback_latencies\030\002" + + " \003(\01326.google.cloud.ces.v1beta.LatencyReport.CallbackLatencyB\006\340A\003\340A\006\022\\\n" + + "\023guardrail_latencies\030\003 \003(\01327.google.cloud." + + "ces.v1beta.LatencyReport.GuardrailLatencyB\006\340A\003\340A\006\022Y\n" + + "\022llm_call_latencies\030\004 \003(\01325." + + "google.cloud.ces.v1beta.LatencyReport.LlmCallLatencyB\006\340A\003\340A\006\022\032\n\r" + "session_count\030\005 \001(\005B\003\340A\003\032\310\001\n" + "\016LatencyMetrics\0223\n" + "\013p50_latency\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0223\n" + "\013p90_latency\030\002 \001(\0132\031.google.protobuf.DurationB\003\340A\003\0223\n" + "\013p99_latency\030\003" + " \001(\0132\031.google.protobuf.DurationB\003\340A\003\022\027\n\n" - + "call_count\030\004 \001(\005B\003\340A\003\032\211", - "\002\n" + + "call_count", + "\030\004 \001(\005B\003\340A\003\032\211\002\n" + "\013ToolLatency\022/\n" + "\004tool\030\001 \001(\tB\037\340A\003\372A\031\n" + "\027ces.googleapis.com/ToolH\000\022A\n" + "\014toolset_tool\030\002" + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\003\340A\003H\000\022\036\n" + "\021tool_display_name\030\003 \001(\tB\003\340A\003\022S\n" - + "\017latency_metrics\030\004 \001(\01325.google.clo" - + "ud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003B\021\n" + + "\017latency_metrics\030\004 \001(\013" + + "25.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003B\021\n" + "\017tool_identifier\032z\n" + "\017CallbackLatency\022\022\n" + "\005stage\030\001 \001(\tB\003\340A\003\022S\n" - + "\017latency_metrics\030\002" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\032\305\001\n" + + "\017latency_metrics\030\002 \001(\01325.google.cloud.c" + + "es.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\032\305\001\n" + "\020GuardrailLatency\0227\n" + "\tguardrail\030\001 \001(\tB$\340A\003\372A\036\n" + "\034ces.googleapis.com/Guardrail\022#\n" + "\026guardrail_display_name\030\002 \001(\tB\003\340A\003\022S\n" - + "\017latency_metrics\030\003" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\032y\n" + + "\017latency_metrics\030\003 \001(\01325.google.cloud.c" + + "es.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\032y\n" + "\016LlmCallLatency\022\022\n" + "\005model\030\001 \001(\tB\003\340A\003\022S\n" - + "\017latency_metrics\030\002" - + " \001(\01325.google.cloud.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\"\244\004\n" + + "\017latency_metrics\030\002 \001(\01325.google.clou" + + "d.ces.v1beta.LatencyReport.LatencyMetricsB\003\340A\003\"\244\004\n" + "\025EvaluationExpectation\022W\n" - + "\014llm_criteria\030\003 \001(" - + "\0132:.google.cloud.ces.v1beta.EvaluationExpectation.LlmCriteriaB\003\340A\001H\000\022\021\n" + + "\014llm_criteria\030\003 \001(\0132:.google.cloud.ces.v1beta" + + ".EvaluationExpectation.LlmCriteriaB\003\340A\001H\000\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022\021\n" + "\004tags\030\010 \003(\tB\003\340A\001\0224\n" @@ -780,26 +780,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004etag\030\006 \001(\tB\003\340A\003\032\"\n" + "\013LlmCriteria\022\023\n" + "\006prompt\030\001 \001(\tB\003\340A\002:\301\001\352A\275\001\n" - + "(ces.googleapis.com/EvaluationExpectation\022bprojects/{pro" - + "ject}/locations/{location}/apps/{app}/evaluationExpectations/{evaluation_expecta" - + "tion}*\026evaluationExpectations2\025evaluationExpectationB\n\n" + + "(ces.googleapis.com/EvaluationExpectation\022bprojects/{project}/locations/{location}/" + + "apps/{app}/evaluationExpectations/{evalu" + + "ation_expectation}*\026evaluationExpectations2\025evaluationExpectationB\n\n" + "\010criteria\"\264\003\n" + "\020EvaluationConfig\022L\n" - + "\022input_audio_config\030\001 \001(\0132).goog" - + "le.cloud.ces.v1beta.InputAudioConfigB\005\030\001\340A\001\022N\n" - + "\023output_audio_config\030\002 \001(\0132*.googl" - + "e.cloud.ces.v1beta.OutputAudioConfigB\005\030\001\340A\001\022\\\n" - + "\022evaluation_channel\030\003 \001(\0162;.google" - + ".cloud.ces.v1beta.EvaluationConfig.EvaluationChannelB\003\340A\001\022V\n" - + "\023tool_call_behaviour\030\004" - + " \001(\01624.google.cloud.ces.v1beta.EvaluationToolCallBehaviourB\003\340A\001\"L\n" + + "\022input_audio_config\030\001" + + " \001(\0132).google.cloud.ces.v1beta.InputAudioConfigB\005\030\001\340A\001\022N\n" + + "\023output_audio_config\030\002" + + " \001(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\005\030\001\340A\001\022\\\n" + + "\022evaluation_channel\030\003" + + " \001(\0162;.google.cloud.ces.v1beta.EvaluationConfig.EvaluationChannelB\003\340A\001\022V\n" + + "\023tool_call_behaviour\030\004 \001(\01624.google.cloud.ces.v" + + "1beta.EvaluationToolCallBehaviourB\003\340A\001\"L\n" + "\021EvaluationChannel\022\"\n" + "\036EVALUATION_CHANNEL_UNSPECIFIED\020\000\022\010\n" + "\004TEXT\020\001\022\t\n" + "\005AUDIO\020\002\"\357\002\n" + "\023EvaluationErrorInfo\022O\n\n" - + "error_type\030\001 \001(\01626.google.clo" - + "ud.ces.v1beta.EvaluationErrorInfo.ErrorTypeB\003\340A\003\022\032\n\r" + + "error_type\030\001 \001(\016" + + "26.google.cloud.ces.v1beta.EvaluationErrorInfo.ErrorTypeB\003\340A\003\022\032\n\r" + "error_message\030\002 \001(\tB\003\340A\003\022\027\n\n" + "session_id\030\003 \001(\tB\003\340A\003\"\321\001\n" + "\tErrorType\022\032\n" @@ -820,13 +820,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\014display_name\030\004 \001(\tB\003\340A\001\022:\n" + "\013app_version\030\006 \001(\tB%\340A\001\372A\037\n" + "\035ces.googleapis.com/AppVersion\022>\n" - + "\006config\030\010" - + " \001(\0132).google.cloud.ces.v1beta.EvaluationConfigB\003\340A\001\022\033\n" + + "\006config\030\010 \001(\0132).goog" + + "le.cloud.ces.v1beta.EvaluationConfigB\003\340A\001\022\033\n" + "\trun_count\030\t \001(\005B\003\340A\001H\000\210\001\001\022K\n" + "\023persona_run_configs\030\n" + " \003(\0132).google.cloud.ces.v1beta.PersonaRunConfigB\003\340A\001\022M\n" - + "\023optimization_config\030\013 " - + "\001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\003\340A\001\022S\n" + + "\023optimization_config\030\013" + + " \001(\0132+.google.cloud.ces.v1beta.OptimizationConfigB\003\340A\001\022S\n" + "\030scheduled_evaluation_run\030\014 \001(\tB1\340A\001\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\022H\n" + "\021golden_run_method\030\r" @@ -836,11 +836,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\026ScheduledEvaluationRun\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\002\022C\n" - + "\007request\030\003 \001(\0132-.goo" - + "gle.cloud.ces.v1beta.RunEvaluationRequestB\003\340A\002\022\030\n" + + "\007request\030\003" + + " \001(\0132-.google.cloud.ces.v1beta.RunEvaluationRequestB\003\340A\002\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022`\n" - + "\021scheduling_config\030\005 \001(\0132@.google.cloud.ces.v" - + "1beta.ScheduledEvaluationRun.SchedulingConfigB\003\340A\002\022\023\n" + + "\021scheduling_config\030\005 \001(\0132@.googl" + + "e.cloud.ces.v1beta.ScheduledEvaluationRun.SchedulingConfigB\003\340A\002\022\023\n" + "\006active\030\006 \001(\010B\003\340A\001\022D\n" + "\022last_completed_run\030\007 \001(\tB(\340A\003\372A\"\n" + " ces.googleapis.com/EvaluationRun\022\035\n" @@ -856,8 +856,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\tB\003\340A\003\022\021\n" + "\004etag\030\016 \001(\tB\003\340A\003\032\235\002\n" + "\020SchedulingConfig\022b\n" - + "\tfrequency\030\001 \001(\0162J.google.clou" - + "d.ces.v1beta.ScheduledEvaluationRun.SchedulingConfig.FrequencyB\003\340A\002\0223\n\n" + + "\tfrequency\030\001 \001(\0162J.google.cloud.ces.v1beta.ScheduledEvalu" + + "ationRun.SchedulingConfig.FrequencyB\003\340A\002\0223\n\n" + "start_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\002\022\031\n" + "\014days_of_week\030\003 \003(\005B\003\340A\001\"U\n" + "\tFrequency\022\031\n" @@ -866,9 +866,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005DAILY\020\002\022\n\n" + "\006WEEKLY\020\003\022\014\n" + "\010BIWEEKLY\020\004:\307\001\352A\303\001\n" - + ")ces.googleapis.com/ScheduledEvaluationRun\022eprojects/{project}/locations/{loca" - + "tion}/apps/{app}/scheduledEvaluationRuns" - + "/{scheduled_evaluation_run}*\027scheduledEvaluationRuns2\026scheduledEvaluationRun\"A\n" + + ")ces.googleapis.com/ScheduledEvaluationRun\022eprojects/{project}/lo" + + "cations/{location}/apps/{app}/scheduledEvaluationRuns/{scheduled_evaluation_run}" + + "*\027scheduledEvaluationRuns2\026scheduledEvaluationRun\"A\n" + "\020PersonaRunConfig\022\024\n" + "\007persona\030\001 \001(\tB\003\340A\001\022\027\n\n" + "task_count\030\002 \001(\005B\003\340A\001\"\233\003\n" @@ -877,8 +877,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021assistant_session\030\002 \001(\tB\003\340A\003\022\033\n" + "\016report_summary\030\003 \001(\tB\003\340A\003\022\037\n" + "\022should_suggest_fix\030\005 \001(\010B\003\340A\003\022S\n" - + "\006status\030\004 \001(\0162>.google" - + ".cloud.ces.v1beta.OptimizationConfig.OptimizationStatusB\003\340A\003\022\032\n\r" + + "\006status\030\004" + + " \001(\0162>.google.cloud.ces.v1beta.OptimizationConfig.OptimizationStatusB\003\340A\003\022\032\n\r" + "error_message\030\006 \001(\tB\003\340A\003\0221\n" + "\013loss_report\030\007 \001(\0132\027.google.protobuf.StructB\003\340A\003\"`\n" + "\022OptimizationStatus\022#\n" @@ -886,8 +886,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007RUNNING\020\001\022\r\n" + "\tCOMPLETED\020\002\022\t\n" + "\005ERROR\020\003B_\n" - + "\033com.google.cloud.ces.v1betaB\017Evaluation" - + "ProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "\033com.google.cloud.ces.v1betaB\017EvaluationProtoP\001Z-cloud.google.com/g" + + "o/ces/apiv1beta/cespb;cespbb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java index ef2468c50189..7015877c05ab 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResult.java @@ -121,6 +121,16 @@ public enum Outcome implements com.google.protobuf.ProtocolMessageEnum { * FAIL = 2; */ FAIL(2), + /** + * + * + *
+     * Evaluation/Expectation was skipped.
+     * 
+ * + * SKIPPED = 3; + */ + SKIPPED(3), UNRECOGNIZED(-1), ; @@ -169,6 +179,17 @@ public enum Outcome implements com.google.protobuf.ProtocolMessageEnum { */ public static final int FAIL_VALUE = 2; + /** + * + * + *
+     * Evaluation/Expectation was skipped.
+     * 
+ * + * SKIPPED = 3; + */ + public static final int SKIPPED_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -199,6 +220,8 @@ public static Outcome forNumber(int value) { return PASS; case 2: return FAIL; + case 3: + return SKIPPED; default: return null; } @@ -34568,7 +34591,7 @@ public com.google.cloud.ces.v1beta.EvaluationErrorInfoOrBuilder getErrorInfoOrBu * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return Whether the error field is set. */ @java.lang.Override @@ -34590,7 +34613,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return The error. */ @java.lang.Override @@ -37643,7 +37666,7 @@ public com.google.cloud.ces.v1beta.EvaluationErrorInfoOrBuilder getErrorInfoOrBu * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -37664,7 +37687,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java index f20f2a72174e..0d18005ddfce 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationResultOrBuilder.java @@ -382,7 +382,7 @@ public interface EvaluationResultOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -401,7 +401,7 @@ public interface EvaluationResultOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationResult.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=988 + * google/cloud/ces/v1beta/evaluation.proto;l=991 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java index 365ed7d21f59..47fffbe7f562 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRun.java @@ -3116,7 +3116,7 @@ public com.google.cloud.ces.v1beta.EvaluationConfigOrBuilder getConfigOrBuilder( * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return Whether the error field is set. */ @java.lang.Override @@ -3138,7 +3138,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return The error. */ @java.lang.Override @@ -7191,7 +7191,7 @@ public com.google.cloud.ces.v1beta.EvaluationConfigOrBuilder getConfigOrBuilder( * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -7212,7 +7212,7 @@ public boolean hasError() { * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java index 96cb0d073a4e..742ad4b28938 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationRunOrBuilder.java @@ -634,7 +634,7 @@ public interface EvaluationRunOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return Whether the error field is set. */ @java.lang.Deprecated @@ -653,7 +653,7 @@ public interface EvaluationRunOrBuilder * * * @deprecated google.cloud.ces.v1beta.EvaluationRun.error is deprecated. See - * google/cloud/ces/v1beta/evaluation.proto;l=1206 + * google/cloud/ces/v1beta/evaluation.proto;l=1209 * @return The error. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java index d165854ace7c..c416c2616ccc 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/EvaluationServiceProto.java @@ -224,6 +224,30 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_ces_v1beta_ListEvaluationExpectationsResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_ces_v1beta_ListEvaluationExpectationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportOptions_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportOptions_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_FailedEvaluationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_FailedEvaluationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -238,10 +262,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "vice.proto\022\027google.cloud.ces.v1beta\032\034goo" + "gle/api/annotations.proto\032\027google/api/cl" + "ient.proto\032\037google/api/field_behavior.pr" - + "oto\032\031google/api/resource.proto\032*google/c" - + "loud/ces/v1beta/conversation.proto\032(google/cloud/ces/v1beta/evaluation.proto\032#go" - + "ogle/longrunning/operations.proto\032\036googl" - + "e/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + + "oto\032\031google/api/resource.proto\032+google/c" + + "loud/ces/v1beta/agent_service.proto\032*google/cloud/ces/v1beta/conversation.proto\032" + + "(google/cloud/ces/v1beta/evaluation.prot" + + "o\032#google/longrunning/operations.proto\032\036" + + "google/protobuf/duration.proto\032\033google/protobuf/empty.proto\032" + " google/protobuf/field_mask.proto\032\037google/protobuf/timestamp.proto\"V\n" + "\025RunEvaluationResponse\022=\n" + "\016evaluation_run\030\001 \001(\tB%\372A\"\n" @@ -266,33 +291,39 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031GenerateEvaluationRequest\022=\n" + "\014conversation\030\001 \001(\tB\'\340A\002\372A!\n" + "\037ces.googleapis.com/Conversation\022C\n" - + "\006source\030\002 \001(\0162" - + ",.google.cloud.ces.v1beta.Conversation.SourceB\005\030\001\340A\001\"\373\004\n" + + "\006source\030\002" + + " \001(\0162,.google.cloud.ces.v1beta.Conversation.SourceB\005\030\001\340A\001\"\373\004\n" + "\030ImportEvaluationsRequest\022_\n" - + "\021conversation_list\030\002 \001(\0132B.google.cl" - + "oud.ces.v1beta.ImportEvaluationsRequest.ConversationListH\000\022\021\n" + + "\021conversation_list\030\002 \001(\0132B.goog" + + "le.cloud.ces.v1beta.ImportEvaluationsRequest.ConversationListH\000\022\021\n" + "\007gcs_uri\030\003 \001(\tH\000\022\025\n" + "\013csv_content\030\004 \001(\014H\000\022.\n" + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022\\\n" - + "\016import_options\030\005 \001(\0132?.google.cloud.ces.v1beta.I" - + "mportEvaluationsRequest.ImportOptionsB\003\340A\001\032.\n" + + "\016import_options\030\005 \001(\0132?.google.cloud.ces.v1b" + + "eta.ImportEvaluationsRequest.ImportOptionsB\003\340A\001\032.\n" + "\020ConversationList\022\032\n\r" + "conversations\030\001 \003(\tB\003\340A\001\032\213\002\n\r" + "ImportOptions\022\205\001\n" - + "\034conflict_resolution_strategy\030\001 \001(\0162Z.google.clo" - + "ud.ces.v1beta.ImportEvaluationsRequest.I" - + "mportOptions.ConflictResolutionStrategyB\003\340A\001\"r\n" + + "\034conflict_resolution_strategy\030\001 \001(\0162Z.googl" + + "e.cloud.ces.v1beta.ImportEvaluationsRequ" + + "est.ImportOptions.ConflictResolutionStrategyB\003\340A\001\"r\n" + "\032ConflictResolutionStrategy\022,\n" + "(CONFLICT_RESOLUTION_STRATEGY_UNSPECIFIED\020\000\022\r\n" + "\tOVERWRITE\020\001\022\010\n" + "\004SKIP\020\002\022\r\n" + "\tDUPLICATE\020\003B\010\n" - + "\006source\"\220\001\n" + + "\006source\"\365\002\n" + "\031ImportEvaluationsResponse\0228\n" - + "\013evaluations\030\001 \003(\0132#.google.cloud.ces.v1beta.Evaluation\022\033\n" + + "\013evaluations\030\001 \003(\0132#.google.cloud.ces.v1beta.Evaluation\022E\n" + + "\022evaluation_results\030\004" + + " \003(\0132).google.cloud.ces.v1beta.EvaluationResult\022?\n" + + "\017evaluation_runs\030\005 \003(\0132" + + "&.google.cloud.ces.v1beta.EvaluationRun\022\033\n" + "\016error_messages\030\002 \003(\tB\003\340A\001\022\034\n" - + "\024import_failure_count\030\003 \001(\005\"\252\001\n" + + "\024import_failure_count\030\003 \001(\005\022.\n" + + "&evaluation_result_import_failure_count\030\006 \001(\005\022+\n" + + "#evaluation_run_import_failure_count\030\007 \001(\005\"\252\001\n" + "\"ImportEvaluationsOperationMetadata\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\033\n" @@ -301,8 +332,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022\"\n" + "\025evaluation_dataset_id\030\002 \001(\tB\003\340A\001\022K\n" - + "\022evaluation_dataset\030\003 \001(\0132*." - + "google.cloud.ces.v1beta.EvaluationDatasetB\003\340A\002\"\215\001\n" + + "\022evaluation_dataset\030\003 \001(\0132*.google" + + ".cloud.ces.v1beta.EvaluationDatasetB\003\340A\002\"\215\001\n" + "\027UpdateEvaluationRequest\022<\n\n" + "evaluation\030\001 \001(\0132#.google.cloud.ces.v1beta.EvaluationB\003\340A\002\0224\n" + "\013update_mask\030\002" @@ -377,25 +408,25 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \003(\0132).google.cloud.ces.v1beta.EvaluationResult\022\027\n" + "\017next_page_token\030\002 \001(\t\"\202\001\n" + "\036ListEvaluationDatasetsResponse\022G\n" - + "\023evaluation_datasets\030\001 \003" - + "(\0132*.google.cloud.ces.v1beta.EvaluationDataset\022\027\n" + + "\023evaluation_datasets\030\001 \003(\0132*.g" + + "oogle.cloud.ces.v1beta.EvaluationDataset\022\027\n" + "\017next_page_token\030\002 \001(\t\"v\n" + "\032ListEvaluationRunsResponse\022?\n" - + "\017evaluation_runs\030\001" - + " \003(\0132&.google.cloud.ces.v1beta.EvaluationRun\022\027\n" + + "\017evaluation_runs\030\001 \003(\013" + + "2&.google.cloud.ces.v1beta.EvaluationRun\022\027\n" + "\017next_page_token\030\002 \001(\t\"\327\001\n" + "#CreateScheduledEvaluationRunRequest\022.\n" + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022(\n" + "\033scheduled_evaluation_run_id\030\002 \001(\tB\003\340A\001\022V\n" - + "\030scheduled_evaluation_run\030\003 \001(\0132/.go" - + "ogle.cloud.ces.v1beta.ScheduledEvaluationRunB\003\340A\002\"c\n" + + "\030scheduled_evaluation_run\030\003 \001(\0132/.google.c" + + "loud.ces.v1beta.ScheduledEvaluationRunB\003\340A\002\"c\n" + " GetScheduledEvaluationRunRequest\022?\n" + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + ")ces.googleapis.com/ScheduledEvaluationRun\"\304\001\n" + "\"ListScheduledEvaluationRunsRequest\022A\n" - + "\006parent\030\001 \001(" - + "\tB1\340A\002\372A+\022)ces.googleapis.com/ScheduledEvaluationRun\022\026\n" + + "\006parent\030\001 \001(\tB" + + "1\340A\002\372A+\022)ces.googleapis.com/ScheduledEvaluationRun\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" @@ -432,11 +463,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + "\026ces.googleapis.com/App\022&\n" + "\031evaluation_expectation_id\030\002 \001(\tB\003\340A\001\022S\n" - + "\026evaluation_expectation\030\003 \001(\0132..goog" - + "le.cloud.ces.v1beta.EvaluationExpectationB\003\340A\002\"\257\001\n" + + "\026evaluation_expectation\030\003 \001(\0132..google.clo" + + "ud.ces.v1beta.EvaluationExpectationB\003\340A\002\"\257\001\n" + "\"UpdateEvaluationExpectationRequest\022S\n" - + "\026evaluation_expectation\030\001 \001(\0132.." - + "google.cloud.ces.v1beta.EvaluationExpectationB\003\340A\002\0224\n" + + "\026evaluation_expectation\030\001 \001(\0132..google" + + ".cloud.ces.v1beta.EvaluationExpectationB\003\340A\002\0224\n" + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"w\n" + "\"DeleteEvaluationExpectationRequest\022>\n" + "\004name\030\001 \001(\tB0\340A\002\372A*\n" @@ -453,161 +484,199 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\216\001\n" + "\"ListEvaluationExpectationsResponse\022O\n" - + "\027evaluation_expectations\030\001 \003(\0132..goog" - + "le.cloud.ces.v1beta.EvaluationExpectation\022\027\n" - + "\017next_page_token\030\002 \001(\t2\245:\n" + + "\027evaluation_expectations\030\001" + + " \003(\0132..google.cloud.ces.v1beta.EvaluationExpectation\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\271\001\n\r" + + "ExportOptions\022O\n\r" + + "export_format\030\001 \001(\01623.google.cloud.ces" + + ".v1beta.ExportOptions.ExportFormatB\003\340A\001\022\024\n" + + "\007gcs_uri\030\002 \001(\tB\003\340A\001\"A\n" + + "\014ExportFormat\022\035\n" + + "\031EXPORT_FORMAT_UNSPECIFIED\020\000\022\010\n" + + "\004JSON\020\001\022\010\n" + + "\004YAML\020\002\"\220\002\n" + + "\030ExportEvaluationsRequest\022.\n" + + "\006parent\030\001 \001(\tB\036\340A\002\372A\030\n" + + "\026ces.googleapis.com/App\0224\n" + + "\005names\030\002 \003(\tB%\340A\002\372A\037\n" + + "\035ces.googleapis.com/Evaluation\022C\n" + + "\016export_options\030\003 " + + "\001(\0132&.google.cloud.ces.v1beta.ExportOptionsB\003\340A\001\022\'\n" + + "\032include_evaluation_results\030\004 \001(\010B\003\340A\001\022 \n" + + "\023include_evaluations\030\005 \001(\010B\003\340A\001\"\212\002\n" + + "\031ExportEvaluationsResponse\022\035\n" + + "\023evaluations_content\030\001 \001(\014H\000\022\031\n" + + "\017evaluations_uri\030\002 \001(\tH\000\022j\n" + + "\022failed_evaluations\030\003 \003(\0132I.google.cloud.ces.v1beta.ExportEvaluati" + + "onsResponse.FailedEvaluationsEntryB\003\340A\003\0328\n" + + "\026FailedEvaluationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + + "\005value\030\002 \001(\t:\0028\001B\r\n" + + "\013evaluations\"\177\n" + + "\037ExportEvaluationResultsResponse\022$\n" + + "\032evaluation_results_content\030\001 \001(\014H\000\022 \n" + + "\026evaluation_results_uri\030\002 \001(\tH\000B\024\n" + + "\022evaluation_results\"s\n" + + "\034ExportEvaluationRunsResponse\022!\n" + + "\027evaluation_runs_content\030\001 \001(\014H\000\022\035\n" + + "\023evaluation_runs_uri\030\002 \001(\tH\000B\021\n" + + "\017evaluation_runs2\226<\n" + "\021EvaluationService\022\344\001\n\r" - + "RunEvaluation\022-.google.clou" - + "d.ces.v1beta.RunEvaluationRequest\032\035.google.longrunning.Operation\"\204\001\312A7\n" - + "\025RunEvaluationResponse\022\036RunEvaluationOperationMet" - + "adata\332A\003app\202\323\344\223\002>\"9/v1beta/{app=projects" - + "/*/locations/*/apps/*}:runEvaluation:\001*\022\370\001\n" - + "\025UploadEvaluationAudio\0225.google.cloud.ces.v1beta.UploadEvaluationAudioRequest" - + "\0326.google.cloud.ces.v1beta.UploadEvaluat" - + "ionAudioResponse\"p\332A\022name,audio_content\202" - + "\323\344\223\002U\"P/v1beta/{name=projects/*/location" - + "s/*/apps/*/evaluations/*}:uploadEvaluationAudio:\001*\022\360\001\n" - + "\020CreateEvaluation\0220.google.cloud.ces.v1beta.CreateEvaluationReques" - + "t\032#.google.cloud.ces.v1beta.Evaluation\"\204" - + "\001\332A\037parent,evaluation,evaluation_id\332A\021pa" - + "rent,evaluation\202\323\344\223\002H\":/v1beta/{parent=p" - + "rojects/*/locations/*/apps/*}/evaluations:\n" + + "RunEvaluation\022-.google.cloud.ces.v1beta.RunEvaluationRe" + + "quest\032\035.google.longrunning.Operation\"\204\001\312A7\n" + + "\025RunEvaluationResponse\022\036RunEvaluation" + + "OperationMetadata\332A\003app\202\323\344\223\002>\"9/v1beta/{" + + "app=projects/*/locations/*/apps/*}:runEvaluation:\001*\022\370\001\n" + + "\025UploadEvaluationAudio\0225.google.cloud.ces.v1beta.UploadEvaluation" + + "AudioRequest\0326.google.cloud.ces.v1beta.U" + + "ploadEvaluationAudioResponse\"p\332A\022name,au" + + "dio_content\202\323\344\223\002U\"P/v1beta/{name=project" + + "s/*/locations/*/apps/*/evaluations/*}:uploadEvaluationAudio:\001*\022\360\001\n" + + "\020CreateEvaluation\0220.google.cloud.ces.v1beta.CreateEval" + + "uationRequest\032#.google.cloud.ces.v1beta." + + "Evaluation\"\204\001\332A\037parent,evaluation,evalua" + + "tion_id\332A\021parent,evaluation\202\323\344\223\002H\":/v1be" + + "ta/{parent=projects/*/locations/*/apps/*}/evaluations:\n" + "evaluation\022\217\002\n" - + "\022GenerateEvaluation\0222.google.cloud.ces.v1beta.GenerateEvaluatio" - + "nRequest\032\035.google.longrunning.Operation\"\245\001\312A1\n\n" - + "Evaluation\022#GenerateEvaluationOpe" - + "rationMetadata\332A\014conversation\202\323\344\223\002\\\"W/v1" - + "beta/{conversation=projects/*/locations/" - + "*/apps/*/conversations/*}:generateEvaluation:\001*\022\376\001\n" - + "\021ImportEvaluations\0221.google.c" - + "loud.ces.v1beta.ImportEvaluationsRequest\032\035.google.longrunning.Operation\"\226\001\312A?\n" - + "\031ImportEvaluationsResponse\022\"ImportEvaluati" - + "onsOperationMetadata\332A\006parent\202\323\344\223\002E\"@/v1" - + "beta/{parent=projects/*/locations/*/apps/*}:importEvaluations:\001*\022\254\002\n" - + "\027CreateEvaluationDataset\0227.google.cloud.ces.v1beta.C" - + "reateEvaluationDatasetRequest\032*.google.c" - + "loud.ces.v1beta.EvaluationDataset\"\253\001\332A/p" - + "arent,evaluation_dataset,evaluation_data" - + "set_id\332A\031parent,evaluation_dataset\202\323\344\223\002W" - + "\"A/v1beta/{parent=projects/*/locations/*" - + "/apps/*}/evaluationDatasets:\022evaluation_dataset\022\335\001\n" - + "\020UpdateEvaluation\0220.google.cloud.ces.v1beta.UpdateEvaluationRequest\032#" - + ".google.cloud.ces.v1beta.Evaluation\"r\332A\026" - + "evaluation,update_mask\202\323\344\223\002S2E/v1beta/{e" - + "valuation.name=projects/*/locations/*/apps/*/evaluations/*}:\n" + + "\022GenerateEvaluation\0222.google.cloud.ces.v1beta.Gener" + + "ateEvaluationRequest\032\035.google.longrunning.Operation\"\245\001\312A1\n\n" + + "Evaluation\022#GenerateEvaluationOperationMetadata\332A\014conversatio" + + "n\202\323\344\223\002\\\"W/v1beta/{conversation=projects/" + + "*/locations/*/apps/*/conversations/*}:generateEvaluation:\001*\022\376\001\n" + + "\021ImportEvaluations\0221.google.cloud.ces.v1beta.ImportEvalua" + + "tionsRequest\032\035.google.longrunning.Operation\"\226\001\312A?\n" + + "\031ImportEvaluationsResponse\022\"ImportEvaluationsOperationMetadata\332A\006paren" + + "t\202\323\344\223\002E\"@/v1beta/{parent=projects/*/locations/*/apps/*}:importEvaluations:\001*\022\254\002\n" + + "\027CreateEvaluationDataset\0227.google.cloud.ces.v1beta.CreateEvaluationDatasetReques" + + "t\032*.google.cloud.ces.v1beta.EvaluationDa" + + "taset\"\253\001\332A/parent,evaluation_dataset,eva" + + "luation_dataset_id\332A\031parent,evaluation_d" + + "ataset\202\323\344\223\002W\"A/v1beta/{parent=projects/*" + + "/locations/*/apps/*}/evaluationDatasets:\022evaluation_dataset\022\335\001\n" + + "\020UpdateEvaluation\0220.google.cloud.ces.v1beta.UpdateEvaluat" + + "ionRequest\032#.google.cloud.ces.v1beta.Eva" + + "luation\"r\332A\026evaluation,update_mask\202\323\344\223\002S" + + "2E/v1beta/{evaluation.name=projects/*/locations/*/apps/*/evaluations/*}:\n" + "evaluation\022\222\002\n" - + "\027UpdateEvaluationDataset\0227.google.cloud.ces.v" - + "1beta.UpdateEvaluationDatasetRequest\032*.google.cloud.ces.v1beta.EvaluationDataset" - + "\"\221\001\332A\036evaluation_dataset,update_mask\202\323\344\223" - + "\002j2T/v1beta/{evaluation_dataset.name=pro" - + "jects/*/locations/*/apps/*/evaluationDatasets/*}:\022evaluation_dataset\022\247\001\n" - + "\020DeleteEvaluation\0220.google.cloud.ces.v1beta.Dele" - + "teEvaluationRequest\032\026.google.protobuf.Em" - + "pty\"I\332A\004name\202\323\344\223\002<*:/v1beta/{name=projec" - + "ts/*/locations/*/apps/*/evaluations/*}\022\275\001\n" - + "\026DeleteEvaluationResult\0226.google.cloud.ces.v1beta.DeleteEvaluationResultReques" - + "t\032\026.google.protobuf.Empty\"S\332A\004name\202\323\344\223\002F" - + "*D/v1beta/{name=projects/*/locations/*/apps/*/evaluations/*/results/*}\022\274\001\n" - + "\027DeleteEvaluationDataset\0227.google.cloud.ces.v1" - + "beta.DeleteEvaluationDatasetRequest\032\026.go" - + "ogle.protobuf.Empty\"P\332A\004name\202\323\344\223\002C*A/v1b" - + "eta/{name=projects/*/locations/*/apps/*/evaluationDatasets/*}\022\370\001\n" - + "\023DeleteEvaluationRun\0223.google.cloud.ces.v1beta.DeleteEv" - + "aluationRunRequest\032\035.google.longrunning.Operation\"\214\001\312A=\n" - + "\025google.protobuf.Empty\022$DeleteEvaluationRunOperationMetadata\332A\004n" - + "ame\202\323\344\223\002?*=/v1beta/{name=projects/*/locations/*/apps/*/evaluationRuns/*}\022\256\001\n\r" - + "GetEvaluation\022-.google.cloud.ces.v1beta.Get" - + "EvaluationRequest\032#.google.cloud.ces.v1b" - + "eta.Evaluation\"I\332A\004name\202\323\344\223\002<\022:/v1beta/{" - + "name=projects/*/locations/*/apps/*/evaluations/*}\022\312\001\n" - + "\023GetEvaluationResult\0223.google.cloud.ces.v1beta.GetEvaluationResultR" - + "equest\032).google.cloud.ces.v1beta.Evaluat" - + "ionResult\"S\332A\004name\202\323\344\223\002F\022D/v1beta/{name=" - + "projects/*/locations/*/apps/*/evaluations/*/results/*}\022\312\001\n" - + "\024GetEvaluationDataset\0224.google.cloud.ces.v1beta.GetEvaluationD" - + "atasetRequest\032*.google.cloud.ces.v1beta." - + "EvaluationDataset\"P\332A\004name\202\323\344\223\002C\022A/v1bet" - + "a/{name=projects/*/locations/*/apps/*/evaluationDatasets/*}\022\272\001\n" - + "\020GetEvaluationRun\0220.google.cloud.ces.v1beta.GetEvaluation" - + "RunRequest\032&.google.cloud.ces.v1beta.Eva" - + "luationRun\"L\332A\004name\202\323\344\223\002?\022=/v1beta/{name" - + "=projects/*/locations/*/apps/*/evaluationRuns/*}\022\301\001\n" - + "\017ListEvaluations\022/.google.cloud.ces.v1beta.ListEvaluationsRequest\0320." - + "google.cloud.ces.v1beta.ListEvaluationsR" - + "esponse\"K\332A\006parent\202\323\344\223\002<\022:/v1beta/{paren" - + "t=projects/*/locations/*/apps/*}/evaluations\022\335\001\n" - + "\025ListEvaluationResults\0225.google.cloud.ces.v1beta.ListEvaluationResultsRe" - + "quest\0326.google.cloud.ces.v1beta.ListEval" - + "uationResultsResponse\"U\332A\006parent\202\323\344\223\002F\022D" - + "/v1beta/{parent=projects/*/locations/*/apps/*/evaluations/*}/results\022\335\001\n" - + "\026ListEvaluationDatasets\0226.google.cloud.ces.v1bet" - + "a.ListEvaluationDatasetsRequest\0327.google.cloud.ces.v1beta.ListEvaluationDatasets" - + "Response\"R\332A\006parent\202\323\344\223\002C\022A/v1beta/{pare" - + "nt=projects/*/locations/*/apps/*}/evaluationDatasets\022\315\001\n" - + "\022ListEvaluationRuns\0222.google.cloud.ces.v1beta.ListEvaluationRuns" - + "Request\0323.google.cloud.ces.v1beta.ListEv" - + "aluationRunsResponse\"N\332A\006parent\202\323\344\223\002?\022=/" - + "v1beta/{parent=projects/*/locations/*/apps/*}/evaluationRuns\022\355\001\n" - + "\032ListEvaluationExpectations\022:.google.cloud.ces.v1beta.Li" - + "stEvaluationExpectationsRequest\032;.google.cloud.ces.v1beta.ListEvaluationExpectat" - + "ionsResponse\"V\332A\006parent\202\323\344\223\002G\022E/v1beta/{" - + "parent=projects/*/locations/*/apps/*}/evaluationExpectations\022\332\001\n" - + "\030GetEvaluationExpectation\0228.google.cloud.ces.v1beta.GetE" - + "valuationExpectationRequest\032..google.clo" - + "ud.ces.v1beta.EvaluationExpectation\"T\332A\004" - + "name\202\323\344\223\002G\022E/v1beta/{name=projects/*/loc" - + "ations/*/apps/*/evaluationExpectations/*}\022\314\002\n" - + "\033CreateEvaluationExpectation\022;.google.cloud.ces.v1beta.CreateEvaluationExpe" - + "ctationRequest\032..google.cloud.ces.v1beta" - + ".EvaluationExpectation\"\277\001\332A7parent,evalu" - + "ation_expectation,evaluation_expectation" - + "_id\332A\035parent,evaluation_expectation\202\323\344\223\002" - + "_\"E/v1beta/{parent=projects/*/locations/" - + "*/apps/*}/evaluationExpectations:\026evaluation_expectation\022\256\002\n" - + "\033UpdateEvaluationExpectation\022;.google.cloud.ces.v1beta.Updat" - + "eEvaluationExpectationRequest\032..google.c" - + "loud.ces.v1beta.EvaluationExpectation\"\241\001" - + "\332A\"evaluation_expectation,update_mask\202\323\344" - + "\223\002v2\\/v1beta/{evaluation_expectation.nam" - + "e=projects/*/locations/*/apps/*/evaluati" - + "onExpectations/*}:\026evaluation_expectation\022\310\001\n" - + "\033DeleteEvaluationExpectation\022;.google.cloud.ces.v1beta.DeleteEvaluationExpe" - + "ctationRequest\032\026.google.protobuf.Empty\"T" - + "\332A\004name\202\323\344\223\002G*E/v1beta/{name=projects/*/" - + "locations/*/apps/*/evaluationExpectations/*}\022\330\002\n" - + "\034CreateScheduledEvaluationRun\022<.google.cloud.ces.v1beta.CreateScheduledE" - + "valuationRunRequest\032/.google.cloud.ces.v" - + "1beta.ScheduledEvaluationRun\"\310\001\332A;parent" - + ",scheduled_evaluation_run,scheduled_evaluation_run_id\332A\037parent,scheduled_evaluat" - + "ion_run\202\323\344\223\002b\"F/v1beta/{parent=projects/" - + "*/locations/*/apps/*}/scheduledEvaluationRuns:\030scheduled_evaluation_run\022\336\001\n" - + "\031GetScheduledEvaluationRun\0229.google.cloud.ces" - + ".v1beta.GetScheduledEvaluationRunRequest\032/.google.cloud.ces.v1beta.ScheduledEval" - + "uationRun\"U\332A\004name\202\323\344\223\002H\022F/v1beta/{name=" - + "projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}\022\361\001\n" - + "\033ListScheduledEvaluationRuns\022;.google.cloud.ces.v1beta.ListS" - + "cheduledEvaluationRunsRequest\032<.google.cloud.ces.v1beta.ListScheduledEvaluationR" - + "unsResponse\"W\332A\006parent\202\323\344\223\002H\022F/v1beta/{p" - + "arent=projects/*/locations/*/apps/*}/scheduledEvaluationRuns\022\270\002\n" - + "\034UpdateScheduledEvaluationRun\022<.google.cloud.ces.v1beta." - + "UpdateScheduledEvaluationRunRequest\032/.google.cloud.ces.v1beta.ScheduledEvaluatio" - + "nRun\"\250\001\332A$scheduled_evaluation_run,updat" - + "e_mask\202\323\344\223\002{2_/v1beta/{scheduled_evaluat" - + "ion_run.name=projects/*/locations/*/apps" - + "/*/scheduledEvaluationRuns/*}:\030scheduled_evaluation_run\022\313\001\n" - + "\034DeleteScheduledEvaluationRun\022<.google.cloud.ces.v1beta.Delet" - + "eScheduledEvaluationRunRequest\032\026.google." - + "protobuf.Empty\"U\332A\004name\202\323\344\223\002H*F/v1beta/{" - + "name=projects/*/locations/*/apps/*/scheduledEvaluationRuns/*}\022\306\001\n" - + "\020TestPersonaVoice\0220.google.cloud.ces.v1beta.TestPersona" - + "VoiceRequest\0321.google.cloud.ces.v1beta.T" - + "estPersonaVoiceResponse\"M\332A\003app\202\323\344\223\002A\" + * Optional. Mock configuration for the tool execution. + * If this field is set, tools that call other tools will be + * mocked based on the provided patterns and responses. + * + * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockConfig field is set. + */ + @java.lang.Override + public boolean hasMockConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockConfig. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig getMockConfig() { + return mockConfig_ == null + ? com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance() + : mockConfig_; + } + + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfigOrBuilder getMockConfigOrBuilder() { + return mockConfig_ == null + ? com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance() + : mockConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -577,6 +642,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (toolExecutionContextCase_ == 6) { output.writeMessage(6, (com.google.protobuf.Struct) toolExecutionContext_); } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getMockConfig()); + } getUnknownFields().writeTo(output); } @@ -610,6 +678,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, (com.google.protobuf.Struct) toolExecutionContext_); } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getMockConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -631,6 +702,10 @@ public boolean equals(final java.lang.Object obj) { if (hasArgs()) { if (!getArgs().equals(other.getArgs())) return false; } + if (hasMockConfig() != other.hasMockConfig()) return false; + if (hasMockConfig()) { + if (!getMockConfig().equals(other.getMockConfig())) return false; + } if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; switch (toolIdentifierCase_) { case 1: @@ -670,6 +745,10 @@ public int hashCode() { hash = (37 * hash) + ARGS_FIELD_NUMBER; hash = (53 * hash) + getArgs().hashCode(); } + if (hasMockConfig()) { + hash = (37 * hash) + MOCK_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getMockConfig().hashCode(); + } switch (toolIdentifierCase_) { case 1: hash = (37 * hash) + TOOL_FIELD_NUMBER; @@ -837,6 +916,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetArgsFieldBuilder(); + internalGetMockConfigFieldBuilder(); } } @@ -859,6 +939,11 @@ public Builder clear() { argsBuilder_.dispose(); argsBuilder_ = null; } + mockConfig_ = null; + if (mockConfigBuilder_ != null) { + mockConfigBuilder_.dispose(); + mockConfigBuilder_ = null; + } toolIdentifierCase_ = 0; toolIdentifier_ = null; toolExecutionContextCase_ = 0; @@ -908,6 +993,10 @@ private void buildPartial0(com.google.cloud.ces.v1beta.ExecuteToolRequest result result.args_ = argsBuilder_ == null ? args_ : argsBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.mockConfig_ = mockConfigBuilder_ == null ? mockConfig_ : mockConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -947,6 +1036,9 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ExecuteToolRequest other) { if (other.hasArgs()) { mergeArgs(other.getArgs()); } + if (other.hasMockConfig()) { + mergeMockConfig(other.getMockConfig()); + } switch (other.getToolIdentifierCase()) { case TOOL: { @@ -1046,6 +1138,13 @@ public Builder mergeFrom( toolExecutionContextCase_ = 6; break; } // case 50 + case 58: + { + input.readMessage( + internalGetMockConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2276,6 +2375,236 @@ public com.google.protobuf.StructOrBuilder getArgsOrBuilder() { return argsBuilder_; } + private com.google.cloud.ces.v1beta.MockConfig mockConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.MockConfig, + com.google.cloud.ces.v1beta.MockConfig.Builder, + com.google.cloud.ces.v1beta.MockConfigOrBuilder> + mockConfigBuilder_; + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockConfig field is set. + */ + public boolean hasMockConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockConfig. + */ + public com.google.cloud.ces.v1beta.MockConfig getMockConfig() { + if (mockConfigBuilder_ == null) { + return mockConfig_ == null + ? com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance() + : mockConfig_; + } else { + return mockConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockConfig(com.google.cloud.ces.v1beta.MockConfig value) { + if (mockConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mockConfig_ = value; + } else { + mockConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockConfig(com.google.cloud.ces.v1beta.MockConfig.Builder builderForValue) { + if (mockConfigBuilder_ == null) { + mockConfig_ = builderForValue.build(); + } else { + mockConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMockConfig(com.google.cloud.ces.v1beta.MockConfig value) { + if (mockConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && mockConfig_ != null + && mockConfig_ != com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance()) { + getMockConfigBuilder().mergeFrom(value); + } else { + mockConfig_ = value; + } + } else { + mockConfigBuilder_.mergeFrom(value); + } + if (mockConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMockConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + mockConfig_ = null; + if (mockConfigBuilder_ != null) { + mockConfigBuilder_.dispose(); + mockConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockConfig.Builder getMockConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetMockConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockConfigOrBuilder getMockConfigOrBuilder() { + if (mockConfigBuilder_ != null) { + return mockConfigBuilder_.getMessageOrBuilder(); + } else { + return mockConfig_ == null + ? com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance() + : mockConfig_; + } + } + + /** + * + * + *
+     * Optional. Mock configuration for the tool execution.
+     * If this field is set, tools that call other tools will be
+     * mocked based on the provided patterns and responses.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.MockConfig, + com.google.cloud.ces.v1beta.MockConfig.Builder, + com.google.cloud.ces.v1beta.MockConfigOrBuilder> + internalGetMockConfigFieldBuilder() { + if (mockConfigBuilder_ == null) { + mockConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.MockConfig, + com.google.cloud.ces.v1beta.MockConfig.Builder, + com.google.cloud.ces.v1beta.MockConfigOrBuilder>( + getMockConfig(), getParentForChildren(), isClean()); + mockConfig_ = null; + } + return mockConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExecuteToolRequest) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExecuteToolRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExecuteToolRequestOrBuilder.java index 05853423d692..427cafb7c77a 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExecuteToolRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExecuteToolRequestOrBuilder.java @@ -275,6 +275,55 @@ public interface ExecuteToolRequestOrBuilder */ com.google.protobuf.StructOrBuilder getArgsOrBuilder(); + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockConfig field is set. + */ + boolean hasMockConfig(); + + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockConfig. + */ + com.google.cloud.ces.v1beta.MockConfig getMockConfig(); + + /** + * + * + *
+   * Optional. Mock configuration for the tool execution.
+   * If this field is set, tools that call other tools will be
+   * mocked based on the provided patterns and responses.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig mock_config = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.MockConfigOrBuilder getMockConfigOrBuilder(); + com.google.cloud.ces.v1beta.ExecuteToolRequest.ToolIdentifierCase getToolIdentifierCase(); com.google.cloud.ces.v1beta.ExecuteToolRequest.ToolExecutionContextCase diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponse.java new file mode 100644 index 000000000000..5cedf7592453 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponse.java @@ -0,0 +1,899 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [EvaluationService.ExportEvaluationResults][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationResults].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationResultsResponse} + */ +@com.google.protobuf.Generated +public final class ExportEvaluationResultsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + ExportEvaluationResultsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportEvaluationResultsResponse"); + } + + // Use ExportEvaluationResultsResponse.newBuilder() to construct. + private ExportEvaluationResultsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportEvaluationResultsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.Builder.class); + } + + private int evaluationResultsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object evaluationResults_; + + public enum EvaluationResultsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVALUATION_RESULTS_CONTENT(1), + EVALUATION_RESULTS_URI(2), + EVALUATIONRESULTS_NOT_SET(0); + private final int value; + + private EvaluationResultsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EvaluationResultsCase valueOf(int value) { + return forNumber(value); + } + + public static EvaluationResultsCase forNumber(int value) { + switch (value) { + case 1: + return EVALUATION_RESULTS_CONTENT; + case 2: + return EVALUATION_RESULTS_URI; + case 0: + return EVALUATIONRESULTS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EvaluationResultsCase getEvaluationResultsCase() { + return EvaluationResultsCase.forNumber(evaluationResultsCase_); + } + + public static final int EVALUATION_RESULTS_CONTENT_FIELD_NUMBER = 1; + + /** + * + * + *
+   * The content of the exported Evaluation Results. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_results_content = 1; + * + * @return Whether the evaluationResultsContent field is set. + */ + @java.lang.Override + public boolean hasEvaluationResultsContent() { + return evaluationResultsCase_ == 1; + } + + /** + * + * + *
+   * The content of the exported Evaluation Results. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_results_content = 1; + * + * @return The evaluationResultsContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationResultsContent() { + if (evaluationResultsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluationResults_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int EVALUATION_RESULTS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return Whether the evaluationResultsUri field is set. + */ + public boolean hasEvaluationResultsUri() { + return evaluationResultsCase_ == 2; + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return The evaluationResultsUri. + */ + public java.lang.String getEvaluationResultsUri() { + java.lang.Object ref = ""; + if (evaluationResultsCase_ == 2) { + ref = evaluationResults_; + } + 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(); + if (evaluationResultsCase_ == 2) { + evaluationResults_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return The bytes for evaluationResultsUri. + */ + public com.google.protobuf.ByteString getEvaluationResultsUriBytes() { + java.lang.Object ref = ""; + if (evaluationResultsCase_ == 2) { + ref = evaluationResults_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationResultsCase_ == 2) { + evaluationResults_ = 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 (evaluationResultsCase_ == 1) { + output.writeBytes(1, (com.google.protobuf.ByteString) evaluationResults_); + } + if (evaluationResultsCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, evaluationResults_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (evaluationResultsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) evaluationResults_); + } + if (evaluationResultsCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, 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.ces.v1beta.ExportEvaluationResultsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse other = + (com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse) obj; + + if (!getEvaluationResultsCase().equals(other.getEvaluationResultsCase())) return false; + switch (evaluationResultsCase_) { + case 1: + if (!getEvaluationResultsContent().equals(other.getEvaluationResultsContent())) + return false; + break; + case 2: + if (!getEvaluationResultsUri().equals(other.getEvaluationResultsUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (evaluationResultsCase_) { + case 1: + hash = (37 * hash) + EVALUATION_RESULTS_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsContent().hashCode(); + break; + case 2: + hash = (37 * hash) + EVALUATION_RESULTS_URI_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse 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.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse 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.ces.v1beta.ExportEvaluationResultsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [EvaluationService.ExportEvaluationResults][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationResults].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationResultsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluationResultsCase_ = 0; + evaluationResults_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationResultsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse build() { + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse buildPartial() { + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse result = + new com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse result) { + result.evaluationResultsCase_ = evaluationResultsCase_; + result.evaluationResults_ = this.evaluationResults_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse other) { + if (other == com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.getDefaultInstance()) + return this; + switch (other.getEvaluationResultsCase()) { + case EVALUATION_RESULTS_CONTENT: + { + setEvaluationResultsContent(other.getEvaluationResultsContent()); + break; + } + case EVALUATION_RESULTS_URI: + { + evaluationResultsCase_ = 2; + evaluationResults_ = other.evaluationResults_; + onChanged(); + break; + } + case EVALUATIONRESULTS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + evaluationResults_ = input.readBytes(); + evaluationResultsCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + evaluationResultsCase_ = 2; + evaluationResults_ = s; + 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 evaluationResultsCase_ = 0; + private java.lang.Object evaluationResults_; + + public EvaluationResultsCase getEvaluationResultsCase() { + return EvaluationResultsCase.forNumber(evaluationResultsCase_); + } + + public Builder clearEvaluationResults() { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * The content of the exported Evaluation Results. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_results_content = 1; + * + * @return Whether the evaluationResultsContent field is set. + */ + public boolean hasEvaluationResultsContent() { + return evaluationResultsCase_ == 1; + } + + /** + * + * + *
+     * The content of the exported Evaluation Results. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_results_content = 1; + * + * @return The evaluationResultsContent. + */ + public com.google.protobuf.ByteString getEvaluationResultsContent() { + if (evaluationResultsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluationResults_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
+     * The content of the exported Evaluation Results. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_results_content = 1; + * + * @param value The evaluationResultsContent to set. + * @return This builder for chaining. + */ + public Builder setEvaluationResultsContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResultsCase_ = 1; + evaluationResults_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The content of the exported Evaluation Results. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_results_content = 1; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationResultsContent() { + if (evaluationResultsCase_ == 1) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @return Whether the evaluationResultsUri field is set. + */ + @java.lang.Override + public boolean hasEvaluationResultsUri() { + return evaluationResultsCase_ == 2; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @return The evaluationResultsUri. + */ + @java.lang.Override + public java.lang.String getEvaluationResultsUri() { + java.lang.Object ref = ""; + if (evaluationResultsCase_ == 2) { + ref = evaluationResults_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (evaluationResultsCase_ == 2) { + evaluationResults_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @return The bytes for evaluationResultsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationResultsUriBytes() { + java.lang.Object ref = ""; + if (evaluationResultsCase_ == 2) { + ref = evaluationResults_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationResultsCase_ == 2) { + evaluationResults_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @param value The evaluationResultsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationResultsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationResultsCase_ = 2; + evaluationResults_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationResultsUri() { + if (evaluationResultsCase_ == 2) { + evaluationResultsCase_ = 0; + evaluationResults_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Results
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_results_uri = 2; + * + * @param value The bytes for evaluationResultsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationResultsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationResultsCase_ = 2; + evaluationResults_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + private static final com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse(); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluationResultsResponse 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.ces.v1beta.ExportEvaluationResultsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponseOrBuilder.java new file mode 100644 index 000000000000..6fa0ba49ff1d --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationResultsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportEvaluationResultsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportEvaluationResultsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The content of the exported Evaluation Results. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_results_content = 1; + * + * @return Whether the evaluationResultsContent field is set. + */ + boolean hasEvaluationResultsContent(); + + /** + * + * + *
+   * The content of the exported Evaluation Results. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_results_content = 1; + * + * @return The evaluationResultsContent. + */ + com.google.protobuf.ByteString getEvaluationResultsContent(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return Whether the evaluationResultsUri field is set. + */ + boolean hasEvaluationResultsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return The evaluationResultsUri. + */ + java.lang.String getEvaluationResultsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Results
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_results_uri = 2; + * + * @return The bytes for evaluationResultsUri. + */ + com.google.protobuf.ByteString getEvaluationResultsUriBytes(); + + com.google.cloud.ces.v1beta.ExportEvaluationResultsResponse.EvaluationResultsCase + getEvaluationResultsCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponse.java new file mode 100644 index 000000000000..393f4f66b8b1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponse.java @@ -0,0 +1,898 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [EvaluationService.ExportEvaluationRuns][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationRuns].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationRunsResponse} + */ +@com.google.protobuf.Generated +public final class ExportEvaluationRunsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + ExportEvaluationRunsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportEvaluationRunsResponse"); + } + + // Use ExportEvaluationRunsResponse.newBuilder() to construct. + private ExportEvaluationRunsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportEvaluationRunsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.Builder.class); + } + + private int evaluationRunsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object evaluationRuns_; + + public enum EvaluationRunsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVALUATION_RUNS_CONTENT(1), + EVALUATION_RUNS_URI(2), + EVALUATIONRUNS_NOT_SET(0); + private final int value; + + private EvaluationRunsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EvaluationRunsCase valueOf(int value) { + return forNumber(value); + } + + public static EvaluationRunsCase forNumber(int value) { + switch (value) { + case 1: + return EVALUATION_RUNS_CONTENT; + case 2: + return EVALUATION_RUNS_URI; + case 0: + return EVALUATIONRUNS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EvaluationRunsCase getEvaluationRunsCase() { + return EvaluationRunsCase.forNumber(evaluationRunsCase_); + } + + public static final int EVALUATION_RUNS_CONTENT_FIELD_NUMBER = 1; + + /** + * + * + *
+   * The content of the exported Evaluation Runs. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return Whether the evaluationRunsContent field is set. + */ + @java.lang.Override + public boolean hasEvaluationRunsContent() { + return evaluationRunsCase_ == 1; + } + + /** + * + * + *
+   * The content of the exported Evaluation Runs. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return The evaluationRunsContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationRunsContent() { + if (evaluationRunsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluationRuns_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int EVALUATION_RUNS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return Whether the evaluationRunsUri field is set. + */ + public boolean hasEvaluationRunsUri() { + return evaluationRunsCase_ == 2; + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The evaluationRunsUri. + */ + public java.lang.String getEvaluationRunsUri() { + java.lang.Object ref = ""; + if (evaluationRunsCase_ == 2) { + ref = evaluationRuns_; + } + 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(); + if (evaluationRunsCase_ == 2) { + evaluationRuns_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The bytes for evaluationRunsUri. + */ + public com.google.protobuf.ByteString getEvaluationRunsUriBytes() { + java.lang.Object ref = ""; + if (evaluationRunsCase_ == 2) { + ref = evaluationRuns_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationRunsCase_ == 2) { + evaluationRuns_ = 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 (evaluationRunsCase_ == 1) { + output.writeBytes(1, (com.google.protobuf.ByteString) evaluationRuns_); + } + if (evaluationRunsCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, evaluationRuns_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (evaluationRunsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) evaluationRuns_); + } + if (evaluationRunsCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, evaluationRuns_); + } + 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.ces.v1beta.ExportEvaluationRunsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse other = + (com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse) obj; + + if (!getEvaluationRunsCase().equals(other.getEvaluationRunsCase())) return false; + switch (evaluationRunsCase_) { + case 1: + if (!getEvaluationRunsContent().equals(other.getEvaluationRunsContent())) return false; + break; + case 2: + if (!getEvaluationRunsUri().equals(other.getEvaluationRunsUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (evaluationRunsCase_) { + case 1: + hash = (37 * hash) + EVALUATION_RUNS_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunsContent().hashCode(); + break; + case 2: + hash = (37 * hash) + EVALUATION_RUNS_URI_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunsUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse 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.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse 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.ces.v1beta.ExportEvaluationRunsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [EvaluationService.ExportEvaluationRuns][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationRuns].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationRunsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluationRunsCase_ = 0; + evaluationRuns_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationRunsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse build() { + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse buildPartial() { + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse result = + new com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse result) { + result.evaluationRunsCase_ = evaluationRunsCase_; + result.evaluationRuns_ = this.evaluationRuns_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse other) { + if (other == com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.getDefaultInstance()) + return this; + switch (other.getEvaluationRunsCase()) { + case EVALUATION_RUNS_CONTENT: + { + setEvaluationRunsContent(other.getEvaluationRunsContent()); + break; + } + case EVALUATION_RUNS_URI: + { + evaluationRunsCase_ = 2; + evaluationRuns_ = other.evaluationRuns_; + onChanged(); + break; + } + case EVALUATIONRUNS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + evaluationRuns_ = input.readBytes(); + evaluationRunsCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + evaluationRunsCase_ = 2; + evaluationRuns_ = s; + 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 evaluationRunsCase_ = 0; + private java.lang.Object evaluationRuns_; + + public EvaluationRunsCase getEvaluationRunsCase() { + return EvaluationRunsCase.forNumber(evaluationRunsCase_); + } + + public Builder clearEvaluationRuns() { + evaluationRunsCase_ = 0; + evaluationRuns_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * The content of the exported Evaluation Runs. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return Whether the evaluationRunsContent field is set. + */ + public boolean hasEvaluationRunsContent() { + return evaluationRunsCase_ == 1; + } + + /** + * + * + *
+     * The content of the exported Evaluation Runs. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return The evaluationRunsContent. + */ + public com.google.protobuf.ByteString getEvaluationRunsContent() { + if (evaluationRunsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluationRuns_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
+     * The content of the exported Evaluation Runs. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_runs_content = 1; + * + * @param value The evaluationRunsContent to set. + * @return This builder for chaining. + */ + public Builder setEvaluationRunsContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationRunsCase_ = 1; + evaluationRuns_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The content of the exported Evaluation Runs. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationRunsContent() { + if (evaluationRunsCase_ == 1) { + evaluationRunsCase_ = 0; + evaluationRuns_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @return Whether the evaluationRunsUri field is set. + */ + @java.lang.Override + public boolean hasEvaluationRunsUri() { + return evaluationRunsCase_ == 2; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The evaluationRunsUri. + */ + @java.lang.Override + public java.lang.String getEvaluationRunsUri() { + java.lang.Object ref = ""; + if (evaluationRunsCase_ == 2) { + ref = evaluationRuns_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (evaluationRunsCase_ == 2) { + evaluationRuns_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The bytes for evaluationRunsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationRunsUriBytes() { + java.lang.Object ref = ""; + if (evaluationRunsCase_ == 2) { + ref = evaluationRuns_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationRunsCase_ == 2) { + evaluationRuns_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @param value The evaluationRunsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationRunsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationRunsCase_ = 2; + evaluationRuns_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationRunsUri() { + if (evaluationRunsCase_ == 2) { + evaluationRunsCase_ = 0; + evaluationRuns_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported Evaluation Runs
+     * were written. This will be populated if gcs_uri was specified in the
+     * request.
+     * 
+ * + * string evaluation_runs_uri = 2; + * + * @param value The bytes for evaluationRunsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationRunsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationRunsCase_ = 2; + evaluationRuns_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + private static final com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse(); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluationRunsResponse 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.ces.v1beta.ExportEvaluationRunsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponseOrBuilder.java new file mode 100644 index 000000000000..cfc7a3587c6a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationRunsResponseOrBuilder.java @@ -0,0 +1,104 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportEvaluationRunsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportEvaluationRunsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The content of the exported Evaluation Runs. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return Whether the evaluationRunsContent field is set. + */ + boolean hasEvaluationRunsContent(); + + /** + * + * + *
+   * The content of the exported Evaluation Runs. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluation_runs_content = 1; + * + * @return The evaluationRunsContent. + */ + com.google.protobuf.ByteString getEvaluationRunsContent(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return Whether the evaluationRunsUri field is set. + */ + boolean hasEvaluationRunsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The evaluationRunsUri. + */ + java.lang.String getEvaluationRunsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported Evaluation Runs
+   * were written. This will be populated if gcs_uri was specified in the
+   * request.
+   * 
+ * + * string evaluation_runs_uri = 2; + * + * @return The bytes for evaluationRunsUri. + */ + com.google.protobuf.ByteString getEvaluationRunsUriBytes(); + + com.google.cloud.ces.v1beta.ExportEvaluationRunsResponse.EvaluationRunsCase + getEvaluationRunsCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequest.java new file mode 100644 index 000000000000..eeed75345caa --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequest.java @@ -0,0 +1,1455 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Request message for
+ * [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationsRequest} + */ +@com.google.protobuf.Generated +public final class ExportEvaluationsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportEvaluationsRequest) + ExportEvaluationsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportEvaluationsRequest"); + } + + // Use ExportEvaluationsRequest.newBuilder() to construct. + private ExportEvaluationsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportEvaluationsRequest() { + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest.class, + com.google.cloud.ces.v1beta.ExportEvaluationsRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
+   * Required. The resource name of the app to export evaluations from.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
+   * Required. The resource name of the app to export evaluations from.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int NAMES_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + return names_; + } + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + public static final int EXPORT_OPTIONS_FIELD_NUMBER = 3; + private com.google.cloud.ces.v1beta.ExportOptions exportOptions_; + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportOptions field is set. + */ + @java.lang.Override + public boolean hasExportOptions() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportOptions. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions getExportOptions() { + return exportOptions_ == null + ? com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance() + : exportOptions_; + } + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptionsOrBuilder getExportOptionsOrBuilder() { + return exportOptions_ == null + ? com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance() + : exportOptions_; + } + + public static final int INCLUDE_EVALUATION_RESULTS_FIELD_NUMBER = 4; + private boolean includeEvaluationResults_ = false; + + /** + * + * + *
+   * Optional. Includes evaluation results in the export. At least one of
+   * include_evaluation_results or include_evaluations must be set.
+   * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluationResults. + */ + @java.lang.Override + public boolean getIncludeEvaluationResults() { + return includeEvaluationResults_; + } + + public static final int INCLUDE_EVALUATIONS_FIELD_NUMBER = 5; + private boolean includeEvaluations_ = false; + + /** + * + * + *
+   * Optional. Includes evaluations in the export. At least one of
+   * include_evaluation_results or include_evaluations must be set.
+   * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluations. + */ + @java.lang.Override + public boolean getIncludeEvaluations() { + return includeEvaluations_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + for (int i = 0; i < names_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, names_.getRaw(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getExportOptions()); + } + if (includeEvaluationResults_ != false) { + output.writeBool(4, includeEvaluationResults_); + } + if (includeEvaluations_ != false) { + output.writeBool(5, includeEvaluations_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + { + int dataSize = 0; + for (int i = 0; i < names_.size(); i++) { + dataSize += computeStringSizeNoTag(names_.getRaw(i)); + } + size += dataSize; + size += 1 * getNamesList().size(); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getExportOptions()); + } + if (includeEvaluationResults_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, includeEvaluationResults_); + } + if (includeEvaluations_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(5, includeEvaluations_); + } + 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.ces.v1beta.ExportEvaluationsRequest)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportEvaluationsRequest other = + (com.google.cloud.ces.v1beta.ExportEvaluationsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getNamesList().equals(other.getNamesList())) return false; + if (hasExportOptions() != other.hasExportOptions()) return false; + if (hasExportOptions()) { + if (!getExportOptions().equals(other.getExportOptions())) return false; + } + if (getIncludeEvaluationResults() != other.getIncludeEvaluationResults()) return false; + if (getIncludeEvaluations() != other.getIncludeEvaluations()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (getNamesCount() > 0) { + hash = (37 * hash) + NAMES_FIELD_NUMBER; + hash = (53 * hash) + getNamesList().hashCode(); + } + if (hasExportOptions()) { + hash = (37 * hash) + EXPORT_OPTIONS_FIELD_NUMBER; + hash = (53 * hash) + getExportOptions().hashCode(); + } + hash = (37 * hash) + INCLUDE_EVALUATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeEvaluationResults()); + hash = (37 * hash) + INCLUDE_EVALUATIONS_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getIncludeEvaluations()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest 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.ces.v1beta.ExportEvaluationsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest 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.ces.v1beta.ExportEvaluationsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.ExportEvaluationsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Request message for
+   * [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportEvaluationsRequest) + com.google.cloud.ces.v1beta.ExportEvaluationsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationsRequest.class, + com.google.cloud.ces.v1beta.ExportEvaluationsRequest.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportEvaluationsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExportOptionsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + exportOptions_ = null; + if (exportOptionsBuilder_ != null) { + exportOptionsBuilder_.dispose(); + exportOptionsBuilder_ = null; + } + includeEvaluationResults_ = false; + includeEvaluations_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsRequest getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportEvaluationsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsRequest build() { + com.google.cloud.ces.v1beta.ExportEvaluationsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsRequest buildPartial() { + com.google.cloud.ces.v1beta.ExportEvaluationsRequest result = + new com.google.cloud.ces.v1beta.ExportEvaluationsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportEvaluationsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + names_.makeImmutable(); + result.names_ = names_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.exportOptions_ = + exportOptionsBuilder_ == null ? exportOptions_ : exportOptionsBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.includeEvaluationResults_ = includeEvaluationResults_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.includeEvaluations_ = includeEvaluations_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportEvaluationsRequest) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportEvaluationsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportEvaluationsRequest other) { + if (other == com.google.cloud.ces.v1beta.ExportEvaluationsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.names_.isEmpty()) { + if (names_.isEmpty()) { + names_ = other.names_; + bitField0_ |= 0x00000002; + } else { + ensureNamesIsMutable(); + names_.addAll(other.names_); + } + onChanged(); + } + if (other.hasExportOptions()) { + mergeExportOptions(other.getExportOptions()); + } + if (other.getIncludeEvaluationResults() != false) { + setIncludeEvaluationResults(other.getIncludeEvaluationResults()); + } + if (other.getIncludeEvaluations() != false) { + setIncludeEvaluations(other.getIncludeEvaluations()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureNamesIsMutable(); + names_.add(s); + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetExportOptionsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + includeEvaluationResults_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 40: + { + includeEvaluations_ = input.readBool(); + bitField0_ |= 0x00000010; + break; + } // case 40 + 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 parent_ = ""; + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource name of the app to export evaluations from.
+     * Format: `projects/{project}/locations/{location}/apps/{app}`
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList names_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureNamesIsMutable() { + if (!names_.isModifiable()) { + names_ = new com.google.protobuf.LazyStringArrayList(names_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + public com.google.protobuf.ProtocolStringList getNamesList() { + names_.makeImmutable(); + return names_; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + public int getNamesCount() { + return names_.size(); + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + public java.lang.String getNames(int index) { + return names_.get(index); + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + public com.google.protobuf.ByteString getNamesBytes(int index) { + return names_.getByteString(index); + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index to set the value at. + * @param value The names to set. + * @return This builder for chaining. + */ + public Builder setNames(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The names to add. + * @return This builder for chaining. + */ + public Builder addNames(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param values The names to add. + * @return This builder for chaining. + */ + public Builder addAllNames(java.lang.Iterable values) { + ensureNamesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, names_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearNames() { + names_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. The resource names of the evaluations to export.
+     * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes of the names to add. + * @return This builder for chaining. + */ + public Builder addNamesBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureNamesIsMutable(); + names_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.ces.v1beta.ExportOptions exportOptions_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ExportOptions, + com.google.cloud.ces.v1beta.ExportOptions.Builder, + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder> + exportOptionsBuilder_; + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportOptions field is set. + */ + public boolean hasExportOptions() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportOptions. + */ + public com.google.cloud.ces.v1beta.ExportOptions getExportOptions() { + if (exportOptionsBuilder_ == null) { + return exportOptions_ == null + ? com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance() + : exportOptions_; + } else { + return exportOptionsBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportOptions(com.google.cloud.ces.v1beta.ExportOptions value) { + if (exportOptionsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + exportOptions_ = value; + } else { + exportOptionsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setExportOptions( + com.google.cloud.ces.v1beta.ExportOptions.Builder builderForValue) { + if (exportOptionsBuilder_ == null) { + exportOptions_ = builderForValue.build(); + } else { + exportOptionsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeExportOptions(com.google.cloud.ces.v1beta.ExportOptions value) { + if (exportOptionsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && exportOptions_ != null + && exportOptions_ != com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance()) { + getExportOptionsBuilder().mergeFrom(value); + } else { + exportOptions_ = value; + } + } else { + exportOptionsBuilder_.mergeFrom(value); + } + if (exportOptions_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearExportOptions() { + bitField0_ = (bitField0_ & ~0x00000004); + exportOptions_ = null; + if (exportOptionsBuilder_ != null) { + exportOptionsBuilder_.dispose(); + exportOptionsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ExportOptions.Builder getExportOptionsBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetExportOptionsFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ExportOptionsOrBuilder getExportOptionsOrBuilder() { + if (exportOptionsBuilder_ != null) { + return exportOptionsBuilder_.getMessageOrBuilder(); + } else { + return exportOptions_ == null + ? com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance() + : exportOptions_; + } + } + + /** + * + * + *
+     * Optional. The export options for the evaluations.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ExportOptions, + com.google.cloud.ces.v1beta.ExportOptions.Builder, + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder> + internalGetExportOptionsFieldBuilder() { + if (exportOptionsBuilder_ == null) { + exportOptionsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ExportOptions, + com.google.cloud.ces.v1beta.ExportOptions.Builder, + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder>( + getExportOptions(), getParentForChildren(), isClean()); + exportOptions_ = null; + } + return exportOptionsBuilder_; + } + + private boolean includeEvaluationResults_; + + /** + * + * + *
+     * Optional. Includes evaluation results in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluationResults. + */ + @java.lang.Override + public boolean getIncludeEvaluationResults() { + return includeEvaluationResults_; + } + + /** + * + * + *
+     * Optional. Includes evaluation results in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includeEvaluationResults to set. + * @return This builder for chaining. + */ + public Builder setIncludeEvaluationResults(boolean value) { + + includeEvaluationResults_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Includes evaluation results in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludeEvaluationResults() { + bitField0_ = (bitField0_ & ~0x00000008); + includeEvaluationResults_ = false; + onChanged(); + return this; + } + + private boolean includeEvaluations_; + + /** + * + * + *
+     * Optional. Includes evaluations in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluations. + */ + @java.lang.Override + public boolean getIncludeEvaluations() { + return includeEvaluations_; + } + + /** + * + * + *
+     * Optional. Includes evaluations in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The includeEvaluations to set. + * @return This builder for chaining. + */ + public Builder setIncludeEvaluations(boolean value) { + + includeEvaluations_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Includes evaluations in the export. At least one of
+     * include_evaluation_results or include_evaluations must be set.
+     * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearIncludeEvaluations() { + bitField0_ = (bitField0_ & ~0x00000010); + includeEvaluations_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportEvaluationsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportEvaluationsRequest) + private static final com.google.cloud.ces.v1beta.ExportEvaluationsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportEvaluationsRequest(); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluationsRequest 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.ces.v1beta.ExportEvaluationsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequestOrBuilder.java new file mode 100644 index 000000000000..0ef0747e0b8a --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsRequestOrBuilder.java @@ -0,0 +1,193 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportEvaluationsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportEvaluationsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The resource name of the app to export evaluations from.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
+   * Required. The resource name of the app to export evaluations from.
+   * Format: `projects/{project}/locations/{location}/apps/{app}`
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return A list containing the names. + */ + java.util.List getNamesList(); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The count of names. + */ + int getNamesCount(); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the element to return. + * @return The names at the given index. + */ + java.lang.String getNames(int index); + + /** + * + * + *
+   * Required. The resource names of the evaluations to export.
+   * 
+ * + * + * repeated string names = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param index The index of the value to return. + * @return The bytes of the names at the given index. + */ + com.google.protobuf.ByteString getNamesBytes(int index); + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the exportOptions field is set. + */ + boolean hasExportOptions(); + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportOptions. + */ + com.google.cloud.ces.v1beta.ExportOptions getExportOptions(); + + /** + * + * + *
+   * Optional. The export options for the evaluations.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions export_options = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder getExportOptionsOrBuilder(); + + /** + * + * + *
+   * Optional. Includes evaluation results in the export. At least one of
+   * include_evaluation_results or include_evaluations must be set.
+   * 
+ * + * bool include_evaluation_results = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluationResults. + */ + boolean getIncludeEvaluationResults(); + + /** + * + * + *
+   * Optional. Includes evaluations in the export. At least one of
+   * include_evaluation_results or include_evaluations must be set.
+   * 
+ * + * bool include_evaluations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The includeEvaluations. + */ + boolean getIncludeEvaluations(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponse.java new file mode 100644 index 000000000000..b5cc56273c6f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponse.java @@ -0,0 +1,1283 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Response message for
+ * [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations].
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationsResponse} + */ +@com.google.protobuf.Generated +public final class ExportEvaluationsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportEvaluationsResponse) + ExportEvaluationsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportEvaluationsResponse"); + } + + // Use ExportEvaluationsResponse.newBuilder() to construct. + private ExportEvaluationsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportEvaluationsResponse() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetFailedEvaluations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.Builder.class); + } + + private int evaluationsCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object evaluations_; + + public enum EvaluationsCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVALUATIONS_CONTENT(1), + EVALUATIONS_URI(2), + EVALUATIONS_NOT_SET(0); + private final int value; + + private EvaluationsCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EvaluationsCase valueOf(int value) { + return forNumber(value); + } + + public static EvaluationsCase forNumber(int value) { + switch (value) { + case 1: + return EVALUATIONS_CONTENT; + case 2: + return EVALUATIONS_URI; + case 0: + return EVALUATIONS_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EvaluationsCase getEvaluationsCase() { + return EvaluationsCase.forNumber(evaluationsCase_); + } + + public static final int EVALUATIONS_CONTENT_FIELD_NUMBER = 1; + + /** + * + * + *
+   * The content of the exported Evaluations. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluations_content = 1; + * + * @return Whether the evaluationsContent field is set. + */ + @java.lang.Override + public boolean hasEvaluationsContent() { + return evaluationsCase_ == 1; + } + + /** + * + * + *
+   * The content of the exported Evaluations. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluations_content = 1; + * + * @return The evaluationsContent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationsContent() { + if (evaluationsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluations_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + public static final int EVALUATIONS_URI_FIELD_NUMBER = 2; + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return Whether the evaluationsUri field is set. + */ + public boolean hasEvaluationsUri() { + return evaluationsCase_ == 2; + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return The evaluationsUri. + */ + public java.lang.String getEvaluationsUri() { + java.lang.Object ref = ""; + if (evaluationsCase_ == 2) { + ref = evaluations_; + } + 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(); + if (evaluationsCase_ == 2) { + evaluations_ = s; + } + return s; + } + } + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return The bytes for evaluationsUri. + */ + public com.google.protobuf.ByteString getEvaluationsUriBytes() { + java.lang.Object ref = ""; + if (evaluationsCase_ == 2) { + ref = evaluations_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationsCase_ == 2) { + evaluations_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAILED_EVALUATIONS_FIELD_NUMBER = 3; + + private static final class FailedEvaluationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_FailedEvaluationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField failedEvaluations_; + + private com.google.protobuf.MapField + internalGetFailedEvaluations() { + if (failedEvaluations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FailedEvaluationsDefaultEntryHolder.defaultEntry); + } + return failedEvaluations_; + } + + public int getFailedEvaluationsCount() { + return internalGetFailedEvaluations().getMap().size(); + } + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsFailedEvaluations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFailedEvaluations().getMap().containsKey(key); + } + + /** Use {@link #getFailedEvaluationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFailedEvaluations() { + return getFailedEvaluationsMap(); + } + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getFailedEvaluationsMap() { + return internalGetFailedEvaluations().getMap(); + } + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFailedEvaluationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFailedEvaluations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getFailedEvaluationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetFailedEvaluations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 (evaluationsCase_ == 1) { + output.writeBytes(1, (com.google.protobuf.ByteString) evaluations_); + } + if (evaluationsCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, evaluations_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, + internalGetFailedEvaluations(), + FailedEvaluationsDefaultEntryHolder.defaultEntry, + 3); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (evaluationsCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBytesSize( + 1, (com.google.protobuf.ByteString) evaluations_); + } + if (evaluationsCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, evaluations_); + } + for (java.util.Map.Entry entry : + internalGetFailedEvaluations().getMap().entrySet()) { + com.google.protobuf.MapEntry failedEvaluations__ = + FailedEvaluationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, failedEvaluations__); + } + 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.ces.v1beta.ExportEvaluationsResponse)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportEvaluationsResponse other = + (com.google.cloud.ces.v1beta.ExportEvaluationsResponse) obj; + + if (!internalGetFailedEvaluations().equals(other.internalGetFailedEvaluations())) return false; + if (!getEvaluationsCase().equals(other.getEvaluationsCase())) return false; + switch (evaluationsCase_) { + case 1: + if (!getEvaluationsContent().equals(other.getEvaluationsContent())) return false; + break; + case 2: + if (!getEvaluationsUri().equals(other.getEvaluationsUri())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetFailedEvaluations().getMap().isEmpty()) { + hash = (37 * hash) + FAILED_EVALUATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetFailedEvaluations().hashCode(); + } + switch (evaluationsCase_) { + case 1: + hash = (37 * hash) + EVALUATIONS_CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationsContent().hashCode(); + break; + case 2: + hash = (37 * hash) + EVALUATIONS_URI_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationsUri().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse 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.ces.v1beta.ExportEvaluationsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse 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.ces.v1beta.ExportEvaluationsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.ces.v1beta.ExportEvaluationsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Response message for
+   * [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations].
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportEvaluationsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportEvaluationsResponse) + com.google.cloud.ces.v1beta.ExportEvaluationsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetFailedEvaluations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 3: + return internalGetMutableFailedEvaluations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.class, + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportEvaluationsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableFailedEvaluations().clear(); + evaluationsCase_ = 0; + evaluations_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportEvaluationsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsResponse getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportEvaluationsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsResponse build() { + com.google.cloud.ces.v1beta.ExportEvaluationsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportEvaluationsResponse buildPartial() { + com.google.cloud.ces.v1beta.ExportEvaluationsResponse result = + new com.google.cloud.ces.v1beta.ExportEvaluationsResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportEvaluationsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.failedEvaluations_ = internalGetFailedEvaluations(); + result.failedEvaluations_.makeImmutable(); + } + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.ExportEvaluationsResponse result) { + result.evaluationsCase_ = evaluationsCase_; + result.evaluations_ = this.evaluations_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportEvaluationsResponse) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportEvaluationsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportEvaluationsResponse other) { + if (other == com.google.cloud.ces.v1beta.ExportEvaluationsResponse.getDefaultInstance()) + return this; + internalGetMutableFailedEvaluations().mergeFrom(other.internalGetFailedEvaluations()); + bitField0_ |= 0x00000004; + switch (other.getEvaluationsCase()) { + case EVALUATIONS_CONTENT: + { + setEvaluationsContent(other.getEvaluationsContent()); + break; + } + case EVALUATIONS_URI: + { + evaluationsCase_ = 2; + evaluations_ = other.evaluations_; + onChanged(); + break; + } + case EVALUATIONS_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + evaluations_ = input.readBytes(); + evaluationsCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + evaluationsCase_ = 2; + evaluations_ = s; + break; + } // case 18 + case 26: + { + com.google.protobuf.MapEntry + failedEvaluations__ = + input.readMessage( + FailedEvaluationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableFailedEvaluations() + .getMutableMap() + .put(failedEvaluations__.getKey(), failedEvaluations__.getValue()); + 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 evaluationsCase_ = 0; + private java.lang.Object evaluations_; + + public EvaluationsCase getEvaluationsCase() { + return EvaluationsCase.forNumber(evaluationsCase_); + } + + public Builder clearEvaluations() { + evaluationsCase_ = 0; + evaluations_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * The content of the exported Evaluations. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluations_content = 1; + * + * @return Whether the evaluationsContent field is set. + */ + public boolean hasEvaluationsContent() { + return evaluationsCase_ == 1; + } + + /** + * + * + *
+     * The content of the exported Evaluations. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluations_content = 1; + * + * @return The evaluationsContent. + */ + public com.google.protobuf.ByteString getEvaluationsContent() { + if (evaluationsCase_ == 1) { + return (com.google.protobuf.ByteString) evaluations_; + } + return com.google.protobuf.ByteString.EMPTY; + } + + /** + * + * + *
+     * The content of the exported Evaluations. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluations_content = 1; + * + * @param value The evaluationsContent to set. + * @return This builder for chaining. + */ + public Builder setEvaluationsContent(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationsCase_ = 1; + evaluations_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The content of the exported Evaluations. This will be populated if
+     * gcs_uri was not specified in the request.
+     * 
+ * + * bytes evaluations_content = 1; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationsContent() { + if (evaluationsCase_ == 1) { + evaluationsCase_ = 0; + evaluations_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @return Whether the evaluationsUri field is set. + */ + @java.lang.Override + public boolean hasEvaluationsUri() { + return evaluationsCase_ == 2; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @return The evaluationsUri. + */ + @java.lang.Override + public java.lang.String getEvaluationsUri() { + java.lang.Object ref = ""; + if (evaluationsCase_ == 2) { + ref = evaluations_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (evaluationsCase_ == 2) { + evaluations_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @return The bytes for evaluationsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationsUriBytes() { + java.lang.Object ref = ""; + if (evaluationsCase_ == 2) { + ref = evaluations_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (evaluationsCase_ == 2) { + evaluations_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @param value The evaluationsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationsCase_ = 2; + evaluations_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationsUri() { + if (evaluationsCase_ == 2) { + evaluationsCase_ = 0; + evaluations_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * The Google Cloud Storage URI folder where the exported evaluations were
+     * written. This will be populated if gcs_uri was specified in the request.
+     * 
+ * + * string evaluations_uri = 2; + * + * @param value The bytes for evaluationsUri to set. + * @return This builder for chaining. + */ + public Builder setEvaluationsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationsCase_ = 2; + evaluations_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.MapField failedEvaluations_; + + private com.google.protobuf.MapField + internalGetFailedEvaluations() { + if (failedEvaluations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + FailedEvaluationsDefaultEntryHolder.defaultEntry); + } + return failedEvaluations_; + } + + private com.google.protobuf.MapField + internalGetMutableFailedEvaluations() { + if (failedEvaluations_ == null) { + failedEvaluations_ = + com.google.protobuf.MapField.newMapField( + FailedEvaluationsDefaultEntryHolder.defaultEntry); + } + if (!failedEvaluations_.isMutable()) { + failedEvaluations_ = failedEvaluations_.copy(); + } + bitField0_ |= 0x00000004; + onChanged(); + return failedEvaluations_; + } + + public int getFailedEvaluationsCount() { + return internalGetFailedEvaluations().getMap().size(); + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public boolean containsFailedEvaluations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetFailedEvaluations().getMap().containsKey(key); + } + + /** Use {@link #getFailedEvaluationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getFailedEvaluations() { + return getFailedEvaluationsMap(); + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.Map getFailedEvaluationsMap() { + return internalGetFailedEvaluations().getMap(); + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getFailedEvaluationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetFailedEvaluations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.lang.String getFailedEvaluationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetFailedEvaluations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearFailedEvaluations() { + bitField0_ = (bitField0_ & ~0x00000004); + internalGetMutableFailedEvaluations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeFailedEvaluations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableFailedEvaluations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableFailedEvaluations() { + bitField0_ |= 0x00000004; + return internalGetMutableFailedEvaluations().getMutableMap(); + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putFailedEvaluations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableFailedEvaluations().getMutableMap().put(key, value); + bitField0_ |= 0x00000004; + return this; + } + + /** + * + * + *
+     * Output only. A map of evaluation resource names that could not be exported,
+     * to the reason why they failed.
+     * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder putAllFailedEvaluations( + java.util.Map values) { + internalGetMutableFailedEvaluations().getMutableMap().putAll(values); + bitField0_ |= 0x00000004; + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportEvaluationsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportEvaluationsResponse) + private static final com.google.cloud.ces.v1beta.ExportEvaluationsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportEvaluationsResponse(); + } + + public static com.google.cloud.ces.v1beta.ExportEvaluationsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportEvaluationsResponse 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.ces.v1beta.ExportEvaluationsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponseOrBuilder.java new file mode 100644 index 000000000000..641edf33a872 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportEvaluationsResponseOrBuilder.java @@ -0,0 +1,178 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportEvaluationsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportEvaluationsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The content of the exported Evaluations. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluations_content = 1; + * + * @return Whether the evaluationsContent field is set. + */ + boolean hasEvaluationsContent(); + + /** + * + * + *
+   * The content of the exported Evaluations. This will be populated if
+   * gcs_uri was not specified in the request.
+   * 
+ * + * bytes evaluations_content = 1; + * + * @return The evaluationsContent. + */ + com.google.protobuf.ByteString getEvaluationsContent(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return Whether the evaluationsUri field is set. + */ + boolean hasEvaluationsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return The evaluationsUri. + */ + java.lang.String getEvaluationsUri(); + + /** + * + * + *
+   * The Google Cloud Storage URI folder where the exported evaluations were
+   * written. This will be populated if gcs_uri was specified in the request.
+   * 
+ * + * string evaluations_uri = 2; + * + * @return The bytes for evaluationsUri. + */ + com.google.protobuf.ByteString getEvaluationsUriBytes(); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getFailedEvaluationsCount(); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + boolean containsFailedEvaluations(java.lang.String key); + + /** Use {@link #getFailedEvaluationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getFailedEvaluations(); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.Map getFailedEvaluationsMap(); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + /* nullable */ + java.lang.String getFailedEvaluationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
+   * Output only. A map of evaluation resource names that could not be exported,
+   * to the reason why they failed.
+   * 
+ * + * + * map<string, string> failed_evaluations = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.lang.String getFailedEvaluationsOrThrow(java.lang.String key); + + com.google.cloud.ces.v1beta.ExportEvaluationsResponse.EvaluationsCase getEvaluationsCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptions.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptions.java new file mode 100644 index 000000000000..7d8d0c8423d1 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptions.java @@ -0,0 +1,956 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Options for exporting CES evaluation resources.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportOptions} + */ +@com.google.protobuf.Generated +public final class ExportOptions extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.ExportOptions) + ExportOptionsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportOptions"); + } + + // Use ExportOptions.newBuilder() to construct. + private ExportOptions(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ExportOptions() { + exportFormat_ = 0; + gcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportOptions.class, + com.google.cloud.ces.v1beta.ExportOptions.Builder.class); + } + + /** + * + * + *
+   * The format to export the items in. Defaults to JSON if not
+   * specified.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.ExportOptions.ExportFormat} + */ + public enum ExportFormat implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Unspecified format.
+     * 
+ * + * EXPORT_FORMAT_UNSPECIFIED = 0; + */ + EXPORT_FORMAT_UNSPECIFIED(0), + /** + * + * + *
+     * JSON format.
+     * 
+ * + * JSON = 1; + */ + JSON(1), + /** + * + * + *
+     * YAML format.
+     * 
+ * + * YAML = 2; + */ + YAML(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ExportFormat"); + } + + /** + * + * + *
+     * Unspecified format.
+     * 
+ * + * EXPORT_FORMAT_UNSPECIFIED = 0; + */ + public static final int EXPORT_FORMAT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * JSON format.
+     * 
+ * + * JSON = 1; + */ + public static final int JSON_VALUE = 1; + + /** + * + * + *
+     * YAML format.
+     * 
+ * + * YAML = 2; + */ + public static final int YAML_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ExportFormat valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ExportFormat forNumber(int value) { + switch (value) { + case 0: + return EXPORT_FORMAT_UNSPECIFIED; + case 1: + return JSON; + case 2: + return YAML; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ExportFormat findValueByNumber(int number) { + return ExportFormat.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.ExportOptions.getDescriptor().getEnumTypes().get(0); + } + + private static final ExportFormat[] VALUES = values(); + + public static ExportFormat valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ExportFormat(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.ExportOptions.ExportFormat) + } + + public static final int EXPORT_FORMAT_FIELD_NUMBER = 1; + private int exportFormat_ = 0; + + /** + * + * + *
+   * Optional. The format to export the evaluation results in. Defaults to JSON
+   * if not specified.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for exportFormat. + */ + @java.lang.Override + public int getExportFormatValue() { + return exportFormat_; + } + + /** + * + * + *
+   * Optional. The format to export the evaluation results in. Defaults to JSON
+   * if not specified.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportFormat. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions.ExportFormat getExportFormat() { + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat result = + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.forNumber(exportFormat_); + return result == null + ? com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.UNRECOGNIZED + : result; + } + + public static final int GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+   * Optional. The Google Cloud Storage URI to write the exported Evaluation
+   * Results to.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + @java.lang.Override + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + 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(); + gcsUri_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. The Google Cloud Storage URI to write the exported Evaluation
+   * Results to.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = 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 (exportFormat_ + != com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.EXPORT_FORMAT_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, exportFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, gcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (exportFormat_ + != com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.EXPORT_FORMAT_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, exportFormat_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(gcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, gcsUri_); + } + 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.ces.v1beta.ExportOptions)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.ExportOptions other = + (com.google.cloud.ces.v1beta.ExportOptions) obj; + + if (exportFormat_ != other.exportFormat_) return false; + if (!getGcsUri().equals(other.getGcsUri())) 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) + EXPORT_FORMAT_FIELD_NUMBER; + hash = (53 * hash) + exportFormat_; + hash = (37 * hash) + GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportOptions 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.ces.v1beta.ExportOptions parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportOptions 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.ces.v1beta.ExportOptions parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.ExportOptions parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.ExportOptions prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Options for exporting CES evaluation resources.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.ExportOptions} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.ExportOptions) + com.google.cloud.ces.v1beta.ExportOptionsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.ExportOptions.class, + com.google.cloud.ces.v1beta.ExportOptions.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.ExportOptions.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + exportFormat_ = 0; + gcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.EvaluationServiceProto + .internal_static_google_cloud_ces_v1beta_ExportOptions_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions build() { + com.google.cloud.ces.v1beta.ExportOptions result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions buildPartial() { + com.google.cloud.ces.v1beta.ExportOptions result = + new com.google.cloud.ces.v1beta.ExportOptions(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.ExportOptions result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.exportFormat_ = exportFormat_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.gcsUri_ = gcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.ExportOptions) { + return mergeFrom((com.google.cloud.ces.v1beta.ExportOptions) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.ExportOptions other) { + if (other == com.google.cloud.ces.v1beta.ExportOptions.getDefaultInstance()) return this; + if (other.exportFormat_ != 0) { + setExportFormatValue(other.getExportFormatValue()); + } + if (!other.getGcsUri().isEmpty()) { + gcsUri_ = other.gcsUri_; + 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 8: + { + exportFormat_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + gcsUri_ = 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 int exportFormat_ = 0; + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for exportFormat. + */ + @java.lang.Override + public int getExportFormatValue() { + return exportFormat_; + } + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for exportFormat to set. + * @return This builder for chaining. + */ + public Builder setExportFormatValue(int value) { + exportFormat_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportFormat. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ExportOptions.ExportFormat getExportFormat() { + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat result = + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.forNumber(exportFormat_); + return result == null + ? com.google.cloud.ces.v1beta.ExportOptions.ExportFormat.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The exportFormat to set. + * @return This builder for chaining. + */ + public Builder setExportFormat(com.google.cloud.ces.v1beta.ExportOptions.ExportFormat value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + exportFormat_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The format to export the evaluation results in. Defaults to JSON
+     * if not specified.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExportFormat() { + bitField0_ = (bitField0_ & ~0x00000001); + exportFormat_ = 0; + onChanged(); + return this; + } + + private java.lang.Object gcsUri_ = ""; + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + public java.lang.String getGcsUri() { + java.lang.Object ref = gcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + gcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + public com.google.protobuf.ByteString getGcsUriBytes() { + java.lang.Object ref = gcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + gcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + gcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearGcsUri() { + gcsUri_ = getDefaultInstance().getGcsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The Google Cloud Storage URI to write the exported Evaluation
+     * Results to.
+     * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for gcsUri to set. + * @return This builder for chaining. + */ + public Builder setGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + gcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ExportOptions) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.ExportOptions) + private static final com.google.cloud.ces.v1beta.ExportOptions DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.ExportOptions(); + } + + public static com.google.cloud.ces.v1beta.ExportOptions getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ExportOptions 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.ces.v1beta.ExportOptions getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptionsOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptionsOrBuilder.java new file mode 100644 index 000000000000..ca7e0aa568e3 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ExportOptionsOrBuilder.java @@ -0,0 +1,88 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface ExportOptionsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.ExportOptions) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The format to export the evaluation results in. Defaults to JSON
+   * if not specified.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for exportFormat. + */ + int getExportFormatValue(); + + /** + * + * + *
+   * Optional. The format to export the evaluation results in. Defaults to JSON
+   * if not specified.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ExportOptions.ExportFormat export_format = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The exportFormat. + */ + com.google.cloud.ces.v1beta.ExportOptions.ExportFormat getExportFormat(); + + /** + * + * + *
+   * Optional. The Google Cloud Storage URI to write the exported Evaluation
+   * Results to.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The gcsUri. + */ + java.lang.String getGcsUri(); + + /** + * + * + *
+   * Optional. The Google Cloud Storage URI to write the exported Evaluation
+   * Results to.
+   * 
+ * + * string gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for gcsUri. + */ + com.google.protobuf.ByteString getGcsUriBytes(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java index e6538dfc2aa8..3e186e6801c2 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequest.java @@ -149,7 +149,7 @@ public com.google.protobuf.ByteString getConversationBytes() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -171,7 +171,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The source. */ @java.lang.Override @@ -662,7 +662,7 @@ public Builder setConversationBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The enum numeric value on the wire for source. */ @java.lang.Override @@ -684,7 +684,7 @@ public int getSourceValue() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @param value The enum numeric value on the wire for source to set. * @return This builder for chaining. */ @@ -709,7 +709,7 @@ public Builder setSourceValue(int value) { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The source. */ @java.lang.Override @@ -733,7 +733,7 @@ public com.google.cloud.ces.v1beta.Conversation.Source getSource() { * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @param value The source to set. * @return This builder for chaining. */ @@ -761,7 +761,7 @@ public Builder setSource(com.google.cloud.ces.v1beta.Conversation.Source value) * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java index 57191e040822..b7d234826472 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/GenerateEvaluationRequestOrBuilder.java @@ -73,7 +73,7 @@ public interface GenerateEvaluationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The enum numeric value on the wire for source. */ @java.lang.Deprecated @@ -92,7 +92,7 @@ public interface GenerateEvaluationRequestOrBuilder * * * @deprecated google.cloud.ces.v1beta.GenerateEvaluationRequest.source is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=452 + * google/cloud/ces/v1beta/evaluation_service.proto;l=467 * @return The source. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponse.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponse.java index 68bdf9e69151..e412ec09011c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponse.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponse.java @@ -54,6 +54,8 @@ private ImportEvaluationsResponse(com.google.protobuf.GeneratedMessage.Builder evaluationResults_; + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public java.util.List getEvaluationResultsList() { + return evaluationResults_; + } + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public java.util.List + getEvaluationResultsOrBuilderList() { + return evaluationResults_; + } + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public int getEvaluationResultsCount() { + return evaluationResults_.size(); + } + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationResult getEvaluationResults(int index) { + return evaluationResults_.get(index); + } + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationResultOrBuilder getEvaluationResultsOrBuilder( + int index) { + return evaluationResults_.get(index); + } + + public static final int EVALUATION_RUNS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List evaluationRuns_; + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public java.util.List getEvaluationRunsList() { + return evaluationRuns_; + } + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public java.util.List + getEvaluationRunsOrBuilderList() { + return evaluationRuns_; + } + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public int getEvaluationRunsCount() { + return evaluationRuns_.size(); + } + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRun getEvaluationRuns(int index) { + return evaluationRuns_.get(index); + } + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.EvaluationRunOrBuilder getEvaluationRunsOrBuilder(int index) { + return evaluationRuns_.get(index); + } + public static final int ERROR_MESSAGES_FIELD_NUMBER = 2; @SuppressWarnings("serial") @@ -227,7 +382,8 @@ public com.google.protobuf.ByteString getErrorMessagesBytes(int index) { * * *
-   * The number of evaluations that were not imported due to errors.
+   * The number of evaluations that either failed to import entirely or
+   * completed import with one or more errors.
    * 
* * int32 import_failure_count = 3; @@ -239,6 +395,46 @@ public int getImportFailureCount() { return importFailureCount_; } + public static final int EVALUATION_RESULT_IMPORT_FAILURE_COUNT_FIELD_NUMBER = 6; + private int evaluationResultImportFailureCount_ = 0; + + /** + * + * + *
+   * The number of evaluation results that either failed to import entirely or
+   * completed import with one or more errors.
+   * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @return The evaluationResultImportFailureCount. + */ + @java.lang.Override + public int getEvaluationResultImportFailureCount() { + return evaluationResultImportFailureCount_; + } + + public static final int EVALUATION_RUN_IMPORT_FAILURE_COUNT_FIELD_NUMBER = 7; + private int evaluationRunImportFailureCount_ = 0; + + /** + * + * + *
+   * The number of evaluation runs that either failed to import entirely or
+   * completed import with one or more errors.
+   * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @return The evaluationRunImportFailureCount. + */ + @java.lang.Override + public int getEvaluationRunImportFailureCount() { + return evaluationRunImportFailureCount_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -262,6 +458,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (importFailureCount_ != 0) { output.writeInt32(3, importFailureCount_); } + for (int i = 0; i < evaluationResults_.size(); i++) { + output.writeMessage(4, evaluationResults_.get(i)); + } + for (int i = 0; i < evaluationRuns_.size(); i++) { + output.writeMessage(5, evaluationRuns_.get(i)); + } + if (evaluationResultImportFailureCount_ != 0) { + output.writeInt32(6, evaluationResultImportFailureCount_); + } + if (evaluationRunImportFailureCount_ != 0) { + output.writeInt32(7, evaluationRunImportFailureCount_); + } getUnknownFields().writeTo(output); } @@ -285,6 +493,23 @@ public int getSerializedSize() { if (importFailureCount_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(3, importFailureCount_); } + for (int i = 0; i < evaluationResults_.size(); i++) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(4, evaluationResults_.get(i)); + } + for (int i = 0; i < evaluationRuns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, evaluationRuns_.get(i)); + } + if (evaluationResultImportFailureCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 6, evaluationResultImportFailureCount_); + } + if (evaluationRunImportFailureCount_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size( + 7, evaluationRunImportFailureCount_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -302,8 +527,14 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.ces.v1beta.ImportEvaluationsResponse) obj; if (!getEvaluationsList().equals(other.getEvaluationsList())) return false; + if (!getEvaluationResultsList().equals(other.getEvaluationResultsList())) return false; + if (!getEvaluationRunsList().equals(other.getEvaluationRunsList())) return false; if (!getErrorMessagesList().equals(other.getErrorMessagesList())) return false; if (getImportFailureCount() != other.getImportFailureCount()) return false; + if (getEvaluationResultImportFailureCount() != other.getEvaluationResultImportFailureCount()) + return false; + if (getEvaluationRunImportFailureCount() != other.getEvaluationRunImportFailureCount()) + return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -319,12 +550,24 @@ public int hashCode() { hash = (37 * hash) + EVALUATIONS_FIELD_NUMBER; hash = (53 * hash) + getEvaluationsList().hashCode(); } + if (getEvaluationResultsCount() > 0) { + hash = (37 * hash) + EVALUATION_RESULTS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultsList().hashCode(); + } + if (getEvaluationRunsCount() > 0) { + hash = (37 * hash) + EVALUATION_RUNS_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunsList().hashCode(); + } if (getErrorMessagesCount() > 0) { hash = (37 * hash) + ERROR_MESSAGES_FIELD_NUMBER; hash = (53 * hash) + getErrorMessagesList().hashCode(); } hash = (37 * hash) + IMPORT_FAILURE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getImportFailureCount(); + hash = (37 * hash) + EVALUATION_RESULT_IMPORT_FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationResultImportFailureCount(); + hash = (37 * hash) + EVALUATION_RUN_IMPORT_FAILURE_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationRunImportFailureCount(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -474,8 +717,24 @@ public Builder clear() { evaluationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + } else { + evaluationResults_ = null; + evaluationResultsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + if (evaluationRunsBuilder_ == null) { + evaluationRuns_ = java.util.Collections.emptyList(); + } else { + evaluationRuns_ = null; + evaluationRunsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); errorMessages_ = com.google.protobuf.LazyStringArrayList.emptyList(); importFailureCount_ = 0; + evaluationResultImportFailureCount_ = 0; + evaluationRunImportFailureCount_ = 0; return this; } @@ -522,17 +781,41 @@ private void buildPartialRepeatedFields( } else { result.evaluations_ = evaluationsBuilder_.build(); } + if (evaluationResultsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + evaluationResults_ = java.util.Collections.unmodifiableList(evaluationResults_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.evaluationResults_ = evaluationResults_; + } else { + result.evaluationResults_ = evaluationResultsBuilder_.build(); + } + if (evaluationRunsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + evaluationRuns_ = java.util.Collections.unmodifiableList(evaluationRuns_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.evaluationRuns_ = evaluationRuns_; + } else { + result.evaluationRuns_ = evaluationRunsBuilder_.build(); + } } private void buildPartial0(com.google.cloud.ces.v1beta.ImportEvaluationsResponse result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { errorMessages_.makeImmutable(); result.errorMessages_ = errorMessages_; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.importFailureCount_ = importFailureCount_; } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.evaluationResultImportFailureCount_ = evaluationResultImportFailureCount_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.evaluationRunImportFailureCount_ = evaluationRunImportFailureCount_; + } } @java.lang.Override @@ -575,10 +858,64 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportEvaluationsResponse o } } } + if (evaluationResultsBuilder_ == null) { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResults_.isEmpty()) { + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureEvaluationResultsIsMutable(); + evaluationResults_.addAll(other.evaluationResults_); + } + onChanged(); + } + } else { + if (!other.evaluationResults_.isEmpty()) { + if (evaluationResultsBuilder_.isEmpty()) { + evaluationResultsBuilder_.dispose(); + evaluationResultsBuilder_ = null; + evaluationResults_ = other.evaluationResults_; + bitField0_ = (bitField0_ & ~0x00000002); + evaluationResultsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEvaluationResultsFieldBuilder() + : null; + } else { + evaluationResultsBuilder_.addAllMessages(other.evaluationResults_); + } + } + } + if (evaluationRunsBuilder_ == null) { + if (!other.evaluationRuns_.isEmpty()) { + if (evaluationRuns_.isEmpty()) { + evaluationRuns_ = other.evaluationRuns_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.addAll(other.evaluationRuns_); + } + onChanged(); + } + } else { + if (!other.evaluationRuns_.isEmpty()) { + if (evaluationRunsBuilder_.isEmpty()) { + evaluationRunsBuilder_.dispose(); + evaluationRunsBuilder_ = null; + evaluationRuns_ = other.evaluationRuns_; + bitField0_ = (bitField0_ & ~0x00000004); + evaluationRunsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEvaluationRunsFieldBuilder() + : null; + } else { + evaluationRunsBuilder_.addAllMessages(other.evaluationRuns_); + } + } + } if (!other.errorMessages_.isEmpty()) { if (errorMessages_.isEmpty()) { errorMessages_ = other.errorMessages_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; } else { ensureErrorMessagesIsMutable(); errorMessages_.addAll(other.errorMessages_); @@ -588,6 +925,12 @@ public Builder mergeFrom(com.google.cloud.ces.v1beta.ImportEvaluationsResponse o if (other.getImportFailureCount() != 0) { setImportFailureCount(other.getImportFailureCount()); } + if (other.getEvaluationResultImportFailureCount() != 0) { + setEvaluationResultImportFailureCount(other.getEvaluationResultImportFailureCount()); + } + if (other.getEvaluationRunImportFailureCount() != 0) { + setEvaluationRunImportFailureCount(other.getEvaluationRunImportFailureCount()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -637,9 +980,47 @@ public Builder mergeFrom( case 24: { importFailureCount_ = input.readInt32(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; break; } // case 24 + case 34: + { + com.google.cloud.ces.v1beta.EvaluationResult m = + input.readMessage( + com.google.cloud.ces.v1beta.EvaluationResult.parser(), extensionRegistry); + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(m); + } else { + evaluationResultsBuilder_.addMessage(m); + } + break; + } // case 34 + case 42: + { + com.google.cloud.ces.v1beta.EvaluationRun m = + input.readMessage( + com.google.cloud.ces.v1beta.EvaluationRun.parser(), extensionRegistry); + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(m); + } else { + evaluationRunsBuilder_.addMessage(m); + } + break; + } // case 42 + case 48: + { + evaluationResultImportFailureCount_ = input.readInt32(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 56: + { + evaluationRunImportFailureCount_ = input.readInt32(); + bitField0_ |= 0x00000040; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1026,104 +1407,853 @@ public com.google.cloud.ces.v1beta.Evaluation.Builder addEvaluationsBuilder(int return evaluationsBuilder_; } - private com.google.protobuf.LazyStringArrayList errorMessages_ = - com.google.protobuf.LazyStringArrayList.emptyList(); + private java.util.List evaluationResults_ = + java.util.Collections.emptyList(); - private void ensureErrorMessagesIsMutable() { - if (!errorMessages_.isModifiable()) { - errorMessages_ = new com.google.protobuf.LazyStringArrayList(errorMessages_); + private void ensureEvaluationResultsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + evaluationResults_ = + new java.util.ArrayList( + evaluationResults_); + bitField0_ |= 0x00000002; } - bitField0_ |= 0x00000002; } + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationResult, + com.google.cloud.ces.v1beta.EvaluationResult.Builder, + com.google.cloud.ces.v1beta.EvaluationResultOrBuilder> + evaluationResultsBuilder_; + /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return A list containing the errorMessages. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public com.google.protobuf.ProtocolStringList getErrorMessagesList() { - errorMessages_.makeImmutable(); - return errorMessages_; + public java.util.List getEvaluationResultsList() { + if (evaluationResultsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluationResults_); + } else { + return evaluationResultsBuilder_.getMessageList(); + } } /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @return The count of errorMessages. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public int getErrorMessagesCount() { - return errorMessages_.size(); + public int getEvaluationResultsCount() { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.size(); + } else { + return evaluationResultsBuilder_.getCount(); + } } /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the element to return. - * @return The errorMessages at the given index. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public java.lang.String getErrorMessages(int index) { - return errorMessages_.get(index); + public com.google.cloud.ces.v1beta.EvaluationResult getEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessage(index); + } } /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index of the value to return. - * @return The bytes of the errorMessages at the given index. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public com.google.protobuf.ByteString getErrorMessagesBytes(int index) { - return errorMessages_.getByteString(index); + public Builder setEvaluationResults( + int index, com.google.cloud.ces.v1beta.EvaluationResult value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, value); + } + return this; } /** * * *
-     * Optional. A list of error messages associated with evaluations that failed
-     * to be imported.
+     * The list of evaluation results that were imported into the app.
      * 
* - * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; - * - * @param index The index to set the value at. - * @param value The errorMessages to set. - * @return This builder for chaining. + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; */ - public Builder setErrorMessages(int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); + public Builder setEvaluationResults( + int index, com.google.cloud.ces.v1beta.EvaluationResult.Builder builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addEvaluationResults(com.google.cloud.ces.v1beta.EvaluationResult value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addEvaluationResults( + int index, com.google.cloud.ces.v1beta.EvaluationResult value) { + if (evaluationResultsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, value); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addEvaluationResults( + com.google.cloud.ces.v1beta.EvaluationResult.Builder builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addEvaluationResults( + int index, com.google.cloud.ces.v1beta.EvaluationResult.Builder builderForValue) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationResultsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder addAllEvaluationResults( + java.lang.Iterable values) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationResults_); + onChanged(); + } else { + evaluationResultsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder clearEvaluationResults() { + if (evaluationResultsBuilder_ == null) { + evaluationResults_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + evaluationResultsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public Builder removeEvaluationResults(int index) { + if (evaluationResultsBuilder_ == null) { + ensureEvaluationResultsIsMutable(); + evaluationResults_.remove(index); + onChanged(); + } else { + evaluationResultsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public com.google.cloud.ces.v1beta.EvaluationResult.Builder getEvaluationResultsBuilder( + int index) { + return internalGetEvaluationResultsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public com.google.cloud.ces.v1beta.EvaluationResultOrBuilder getEvaluationResultsOrBuilder( + int index) { + if (evaluationResultsBuilder_ == null) { + return evaluationResults_.get(index); + } else { + return evaluationResultsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public java.util.List + getEvaluationResultsOrBuilderList() { + if (evaluationResultsBuilder_ != null) { + return evaluationResultsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluationResults_); + } + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public com.google.cloud.ces.v1beta.EvaluationResult.Builder addEvaluationResultsBuilder() { + return internalGetEvaluationResultsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.EvaluationResult.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public com.google.cloud.ces.v1beta.EvaluationResult.Builder addEvaluationResultsBuilder( + int index) { + return internalGetEvaluationResultsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.EvaluationResult.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluation results that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + public java.util.List + getEvaluationResultsBuilderList() { + return internalGetEvaluationResultsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationResult, + com.google.cloud.ces.v1beta.EvaluationResult.Builder, + com.google.cloud.ces.v1beta.EvaluationResultOrBuilder> + internalGetEvaluationResultsFieldBuilder() { + if (evaluationResultsBuilder_ == null) { + evaluationResultsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationResult, + com.google.cloud.ces.v1beta.EvaluationResult.Builder, + com.google.cloud.ces.v1beta.EvaluationResultOrBuilder>( + evaluationResults_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + evaluationResults_ = null; + } + return evaluationResultsBuilder_; + } + + private java.util.List evaluationRuns_ = + java.util.Collections.emptyList(); + + private void ensureEvaluationRunsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + evaluationRuns_ = + new java.util.ArrayList(evaluationRuns_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRun, + com.google.cloud.ces.v1beta.EvaluationRun.Builder, + com.google.cloud.ces.v1beta.EvaluationRunOrBuilder> + evaluationRunsBuilder_; + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public java.util.List getEvaluationRunsList() { + if (evaluationRunsBuilder_ == null) { + return java.util.Collections.unmodifiableList(evaluationRuns_); + } else { + return evaluationRunsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public int getEvaluationRunsCount() { + if (evaluationRunsBuilder_ == null) { + return evaluationRuns_.size(); + } else { + return evaluationRunsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRun getEvaluationRuns(int index) { + if (evaluationRunsBuilder_ == null) { + return evaluationRuns_.get(index); + } else { + return evaluationRunsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder setEvaluationRuns(int index, com.google.cloud.ces.v1beta.EvaluationRun value) { + if (evaluationRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationRunsIsMutable(); + evaluationRuns_.set(index, value); + onChanged(); + } else { + evaluationRunsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder setEvaluationRuns( + int index, com.google.cloud.ces.v1beta.EvaluationRun.Builder builderForValue) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.set(index, builderForValue.build()); + onChanged(); + } else { + evaluationRunsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addEvaluationRuns(com.google.cloud.ces.v1beta.EvaluationRun value) { + if (evaluationRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(value); + onChanged(); + } else { + evaluationRunsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addEvaluationRuns(int index, com.google.cloud.ces.v1beta.EvaluationRun value) { + if (evaluationRunsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(index, value); + onChanged(); + } else { + evaluationRunsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addEvaluationRuns( + com.google.cloud.ces.v1beta.EvaluationRun.Builder builderForValue) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(builderForValue.build()); + onChanged(); + } else { + evaluationRunsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addEvaluationRuns( + int index, com.google.cloud.ces.v1beta.EvaluationRun.Builder builderForValue) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.add(index, builderForValue.build()); + onChanged(); + } else { + evaluationRunsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder addAllEvaluationRuns( + java.lang.Iterable values) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, evaluationRuns_); + onChanged(); + } else { + evaluationRunsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder clearEvaluationRuns() { + if (evaluationRunsBuilder_ == null) { + evaluationRuns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + evaluationRunsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public Builder removeEvaluationRuns(int index) { + if (evaluationRunsBuilder_ == null) { + ensureEvaluationRunsIsMutable(); + evaluationRuns_.remove(index); + onChanged(); + } else { + evaluationRunsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRun.Builder getEvaluationRunsBuilder(int index) { + return internalGetEvaluationRunsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRunOrBuilder getEvaluationRunsOrBuilder( + int index) { + if (evaluationRunsBuilder_ == null) { + return evaluationRuns_.get(index); + } else { + return evaluationRunsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public java.util.List + getEvaluationRunsOrBuilderList() { + if (evaluationRunsBuilder_ != null) { + return evaluationRunsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(evaluationRuns_); + } + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRun.Builder addEvaluationRunsBuilder() { + return internalGetEvaluationRunsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.EvaluationRun.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public com.google.cloud.ces.v1beta.EvaluationRun.Builder addEvaluationRunsBuilder(int index) { + return internalGetEvaluationRunsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.EvaluationRun.getDefaultInstance()); + } + + /** + * + * + *
+     * The list of evaluation runs that were imported into the app.
+     * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + public java.util.List + getEvaluationRunsBuilderList() { + return internalGetEvaluationRunsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRun, + com.google.cloud.ces.v1beta.EvaluationRun.Builder, + com.google.cloud.ces.v1beta.EvaluationRunOrBuilder> + internalGetEvaluationRunsFieldBuilder() { + if (evaluationRunsBuilder_ == null) { + evaluationRunsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.EvaluationRun, + com.google.cloud.ces.v1beta.EvaluationRun.Builder, + com.google.cloud.ces.v1beta.EvaluationRunOrBuilder>( + evaluationRuns_, + ((bitField0_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + evaluationRuns_ = null; + } + return evaluationRunsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList errorMessages_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureErrorMessagesIsMutable() { + if (!errorMessages_.isModifiable()) { + errorMessages_ = new com.google.protobuf.LazyStringArrayList(errorMessages_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the errorMessages. + */ + public com.google.protobuf.ProtocolStringList getErrorMessagesList() { + errorMessages_.makeImmutable(); + return errorMessages_; + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of errorMessages. + */ + public int getErrorMessagesCount() { + return errorMessages_.size(); + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The errorMessages at the given index. + */ + public java.lang.String getErrorMessages(int index) { + return errorMessages_.get(index); + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the errorMessages at the given index. + */ + public com.google.protobuf.ByteString getErrorMessagesBytes(int index) { + return errorMessages_.getByteString(index); + } + + /** + * + * + *
+     * Optional. A list of error messages associated with evaluations that failed
+     * to be imported.
+     * 
+ * + * repeated string error_messages = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The errorMessages to set. + * @return This builder for chaining. + */ + public Builder setErrorMessages(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } ensureErrorMessagesIsMutable(); errorMessages_.set(index, value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1147,7 +2277,7 @@ public Builder addErrorMessages(java.lang.String value) { } ensureErrorMessagesIsMutable(); errorMessages_.add(value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1168,7 +2298,7 @@ public Builder addErrorMessages(java.lang.String value) { public Builder addAllErrorMessages(java.lang.Iterable values) { ensureErrorMessagesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll(values, errorMessages_); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1187,7 +2317,7 @@ public Builder addAllErrorMessages(java.lang.Iterable values) */ public Builder clearErrorMessages() { errorMessages_ = com.google.protobuf.LazyStringArrayList.emptyList(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000008); ; onChanged(); return this; @@ -1213,7 +2343,7 @@ public Builder addErrorMessagesBytes(com.google.protobuf.ByteString value) { checkByteStringIsUtf8(value); ensureErrorMessagesIsMutable(); errorMessages_.add(value); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1224,7 +2354,8 @@ public Builder addErrorMessagesBytes(com.google.protobuf.ByteString value) { * * *
-     * The number of evaluations that were not imported due to errors.
+     * The number of evaluations that either failed to import entirely or
+     * completed import with one or more errors.
      * 
* * int32 import_failure_count = 3; @@ -1240,7 +2371,8 @@ public int getImportFailureCount() { * * *
-     * The number of evaluations that were not imported due to errors.
+     * The number of evaluations that either failed to import entirely or
+     * completed import with one or more errors.
      * 
* * int32 import_failure_count = 3; @@ -1251,7 +2383,7 @@ public int getImportFailureCount() { public Builder setImportFailureCount(int value) { importFailureCount_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1260,7 +2392,8 @@ public Builder setImportFailureCount(int value) { * * *
-     * The number of evaluations that were not imported due to errors.
+     * The number of evaluations that either failed to import entirely or
+     * completed import with one or more errors.
      * 
* * int32 import_failure_count = 3; @@ -1268,12 +2401,130 @@ public Builder setImportFailureCount(int value) { * @return This builder for chaining. */ public Builder clearImportFailureCount() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000010); importFailureCount_ = 0; onChanged(); return this; } + private int evaluationResultImportFailureCount_; + + /** + * + * + *
+     * The number of evaluation results that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @return The evaluationResultImportFailureCount. + */ + @java.lang.Override + public int getEvaluationResultImportFailureCount() { + return evaluationResultImportFailureCount_; + } + + /** + * + * + *
+     * The number of evaluation results that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @param value The evaluationResultImportFailureCount to set. + * @return This builder for chaining. + */ + public Builder setEvaluationResultImportFailureCount(int value) { + + evaluationResultImportFailureCount_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
+     * The number of evaluation results that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationResultImportFailureCount() { + bitField0_ = (bitField0_ & ~0x00000020); + evaluationResultImportFailureCount_ = 0; + onChanged(); + return this; + } + + private int evaluationRunImportFailureCount_; + + /** + * + * + *
+     * The number of evaluation runs that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @return The evaluationRunImportFailureCount. + */ + @java.lang.Override + public int getEvaluationRunImportFailureCount() { + return evaluationRunImportFailureCount_; + } + + /** + * + * + *
+     * The number of evaluation runs that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @param value The evaluationRunImportFailureCount to set. + * @return This builder for chaining. + */ + public Builder setEvaluationRunImportFailureCount(int value) { + + evaluationRunImportFailureCount_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
+     * The number of evaluation runs that either failed to import entirely or
+     * completed import with one or more errors.
+     * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @return This builder for chaining. + */ + public Builder clearEvaluationRunImportFailureCount() { + bitField0_ = (bitField0_ & ~0x00000040); + evaluationRunImportFailureCount_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.ImportEvaluationsResponse) } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponseOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponseOrBuilder.java index 319130cd72cb..79c247051abd 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponseOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ImportEvaluationsResponseOrBuilder.java @@ -82,6 +82,118 @@ public interface ImportEvaluationsResponseOrBuilder */ com.google.cloud.ces.v1beta.EvaluationOrBuilder getEvaluationsOrBuilder(int index); + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + java.util.List getEvaluationResultsList(); + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + com.google.cloud.ces.v1beta.EvaluationResult getEvaluationResults(int index); + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + int getEvaluationResultsCount(); + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + java.util.List + getEvaluationResultsOrBuilderList(); + + /** + * + * + *
+   * The list of evaluation results that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationResult evaluation_results = 4; + */ + com.google.cloud.ces.v1beta.EvaluationResultOrBuilder getEvaluationResultsOrBuilder(int index); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + java.util.List getEvaluationRunsList(); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + com.google.cloud.ces.v1beta.EvaluationRun getEvaluationRuns(int index); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + int getEvaluationRunsCount(); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + java.util.List + getEvaluationRunsOrBuilderList(); + + /** + * + * + *
+   * The list of evaluation runs that were imported into the app.
+   * 
+ * + * repeated .google.cloud.ces.v1beta.EvaluationRun evaluation_runs = 5; + */ + com.google.cloud.ces.v1beta.EvaluationRunOrBuilder getEvaluationRunsOrBuilder(int index); + /** * * @@ -144,7 +256,8 @@ public interface ImportEvaluationsResponseOrBuilder * * *
-   * The number of evaluations that were not imported due to errors.
+   * The number of evaluations that either failed to import entirely or
+   * completed import with one or more errors.
    * 
* * int32 import_failure_count = 3; @@ -152,4 +265,32 @@ public interface ImportEvaluationsResponseOrBuilder * @return The importFailureCount. */ int getImportFailureCount(); + + /** + * + * + *
+   * The number of evaluation results that either failed to import entirely or
+   * completed import with one or more errors.
+   * 
+ * + * int32 evaluation_result_import_failure_count = 6; + * + * @return The evaluationResultImportFailureCount. + */ + int getEvaluationResultImportFailureCount(); + + /** + * + * + *
+   * The number of evaluation runs that either failed to import entirely or
+   * completed import with one or more errors.
+   * 
+ * + * int32 evaluation_run_import_failure_count = 7; + * + * @return The evaluationRunImportFailureCount. + */ + int getEvaluationRunImportFailureCount(); } diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java index 305433e441b9..7d838c1d68e7 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequest.java @@ -230,7 +230,7 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The filter. */ @java.lang.Override @@ -258,7 +258,7 @@ public java.lang.String getFilter() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The bytes for filter. */ @java.lang.Override @@ -1269,7 +1269,7 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The filter. */ @java.lang.Deprecated @@ -1296,7 +1296,7 @@ public java.lang.String getFilter() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The bytes for filter. */ @java.lang.Deprecated @@ -1323,7 +1323,7 @@ public com.google.protobuf.ByteString getFilterBytes() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @param value The filter to set. * @return This builder for chaining. */ @@ -1349,7 +1349,7 @@ public Builder setFilter(java.lang.String value) { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return This builder for chaining. */ @java.lang.Deprecated @@ -1371,7 +1371,7 @@ public Builder clearFilter() { * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @param value The bytes for filter to set. * @return This builder for chaining. */ diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java index 8722b400a0b3..cd70b266cf56 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ListEvaluationsRequestOrBuilder.java @@ -115,7 +115,7 @@ public interface ListEvaluationsRequestOrBuilder * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The filter. */ @java.lang.Deprecated @@ -132,7 +132,7 @@ public interface ListEvaluationsRequestOrBuilder * string filter = 4 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; * * @deprecated google.cloud.ces.v1beta.ListEvaluationsRequest.filter is deprecated. See - * google/cloud/ces/v1beta/evaluation_service.proto;l=729 + * google/cloud/ces/v1beta/evaluation_service.proto;l=759 * @return The bytes for filter. */ @java.lang.Deprecated diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfig.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfig.java new file mode 100644 index 000000000000..8a805ee92d62 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfig.java @@ -0,0 +1,1337 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * Mock tool calls configuration for the session.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.MockConfig} + */ +@com.google.protobuf.Generated +public final class MockConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.MockConfig) + MockConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MockConfig"); + } + + // Use MockConfig.newBuilder() to construct. + private MockConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MockConfig() { + mockedToolCalls_ = java.util.Collections.emptyList(); + unmatchedToolCallBehavior_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.MockConfig.class, + com.google.cloud.ces.v1beta.MockConfig.Builder.class); + } + + /** + * + * + *
+   * What to do when a tool call doesn't match any mocked tool calls.
+   * 
+ * + * Protobuf enum {@code google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior} + */ + public enum UnmatchedToolCallBehavior implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + */ + UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED(0), + /** + * + * + *
+     * Throw an error for any tool calls that don't match a mock expected input
+     * pattern.
+     * 
+ * + * FAIL = 1; + */ + FAIL(1), + /** + * + * + *
+     * For unmatched tool calls, pass the tool call through to real tool.
+     * 
+ * + * PASS_THROUGH = 2; + */ + PASS_THROUGH(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UnmatchedToolCallBehavior"); + } + + /** + * + * + *
+     * Default value. This value is unused.
+     * 
+ * + * UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + */ + public static final int UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
+     * Throw an error for any tool calls that don't match a mock expected input
+     * pattern.
+     * 
+ * + * FAIL = 1; + */ + public static final int FAIL_VALUE = 1; + + /** + * + * + *
+     * For unmatched tool calls, pass the tool call through to real tool.
+     * 
+ * + * PASS_THROUGH = 2; + */ + public static final int PASS_THROUGH_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static UnmatchedToolCallBehavior valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static UnmatchedToolCallBehavior forNumber(int value) { + switch (value) { + case 0: + return UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED; + case 1: + return FAIL; + case 2: + return PASS_THROUGH; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public UnmatchedToolCallBehavior findValueByNumber(int number) { + return UnmatchedToolCallBehavior.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.ces.v1beta.MockConfig.getDescriptor().getEnumTypes().get(0); + } + + private static final UnmatchedToolCallBehavior[] VALUES = values(); + + public static UnmatchedToolCallBehavior valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private UnmatchedToolCallBehavior(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior) + } + + public static final int MOCKED_TOOL_CALLS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List mockedToolCalls_; + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMockedToolCallsList() { + return mockedToolCalls_; + } + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMockedToolCallsOrBuilderList() { + return mockedToolCalls_; + } + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMockedToolCallsCount() { + return mockedToolCalls_.size(); + } + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCall getMockedToolCalls(int index) { + return mockedToolCalls_.get(index); + } + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCallOrBuilder getMockedToolCallsOrBuilder( + int index) { + return mockedToolCalls_.get(index); + } + + public static final int UNMATCHED_TOOL_CALL_BEHAVIOR_FIELD_NUMBER = 2; + private int unmatchedToolCallBehavior_ = 0; + + /** + * + * + *
+   * Required. Beavhior for tool calls that don't match any args patterns in
+   * mocked_tool_calls.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for unmatchedToolCallBehavior. + */ + @java.lang.Override + public int getUnmatchedToolCallBehaviorValue() { + return unmatchedToolCallBehavior_; + } + + /** + * + * + *
+   * Required. Beavhior for tool calls that don't match any args patterns in
+   * mocked_tool_calls.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unmatchedToolCallBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior + getUnmatchedToolCallBehavior() { + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior result = + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior.forNumber( + unmatchedToolCallBehavior_); + return result == null + ? com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior.UNRECOGNIZED + : result; + } + + 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 < mockedToolCalls_.size(); i++) { + output.writeMessage(1, mockedToolCalls_.get(i)); + } + if (unmatchedToolCallBehavior_ + != com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior + .UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(2, unmatchedToolCallBehavior_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < mockedToolCalls_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mockedToolCalls_.get(i)); + } + if (unmatchedToolCallBehavior_ + != com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior + .UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, unmatchedToolCallBehavior_); + } + 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.ces.v1beta.MockConfig)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.MockConfig other = (com.google.cloud.ces.v1beta.MockConfig) obj; + + if (!getMockedToolCallsList().equals(other.getMockedToolCallsList())) return false; + if (unmatchedToolCallBehavior_ != other.unmatchedToolCallBehavior_) 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 (getMockedToolCallsCount() > 0) { + hash = (37 * hash) + MOCKED_TOOL_CALLS_FIELD_NUMBER; + hash = (53 * hash) + getMockedToolCallsList().hashCode(); + } + hash = (37 * hash) + UNMATCHED_TOOL_CALL_BEHAVIOR_FIELD_NUMBER; + hash = (53 * hash) + unmatchedToolCallBehavior_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockConfig 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.ces.v1beta.MockConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockConfig 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.ces.v1beta.MockConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.MockConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * Mock tool calls configuration for the session.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.MockConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.MockConfig) + com.google.cloud.ces.v1beta.MockConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.MockConfig.class, + com.google.cloud.ces.v1beta.MockConfig.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.MockConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (mockedToolCallsBuilder_ == null) { + mockedToolCalls_ = java.util.Collections.emptyList(); + } else { + mockedToolCalls_ = null; + mockedToolCallsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + unmatchedToolCallBehavior_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.SessionServiceProto + .internal_static_google_cloud_ces_v1beta_MockConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig build() { + com.google.cloud.ces.v1beta.MockConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig buildPartial() { + com.google.cloud.ces.v1beta.MockConfig result = + new com.google.cloud.ces.v1beta.MockConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.ces.v1beta.MockConfig result) { + if (mockedToolCallsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + mockedToolCalls_ = java.util.Collections.unmodifiableList(mockedToolCalls_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.mockedToolCalls_ = mockedToolCalls_; + } else { + result.mockedToolCalls_ = mockedToolCallsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.ces.v1beta.MockConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.unmatchedToolCallBehavior_ = unmatchedToolCallBehavior_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.MockConfig) { + return mergeFrom((com.google.cloud.ces.v1beta.MockConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.MockConfig other) { + if (other == com.google.cloud.ces.v1beta.MockConfig.getDefaultInstance()) return this; + if (mockedToolCallsBuilder_ == null) { + if (!other.mockedToolCalls_.isEmpty()) { + if (mockedToolCalls_.isEmpty()) { + mockedToolCalls_ = other.mockedToolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.addAll(other.mockedToolCalls_); + } + onChanged(); + } + } else { + if (!other.mockedToolCalls_.isEmpty()) { + if (mockedToolCallsBuilder_.isEmpty()) { + mockedToolCallsBuilder_.dispose(); + mockedToolCallsBuilder_ = null; + mockedToolCalls_ = other.mockedToolCalls_; + bitField0_ = (bitField0_ & ~0x00000001); + mockedToolCallsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMockedToolCallsFieldBuilder() + : null; + } else { + mockedToolCallsBuilder_.addAllMessages(other.mockedToolCalls_); + } + } + } + if (other.unmatchedToolCallBehavior_ != 0) { + setUnmatchedToolCallBehaviorValue(other.getUnmatchedToolCallBehaviorValue()); + } + 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.ces.v1beta.MockedToolCall m = + input.readMessage( + com.google.cloud.ces.v1beta.MockedToolCall.parser(), extensionRegistry); + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(m); + } else { + mockedToolCallsBuilder_.addMessage(m); + } + break; + } // case 10 + case 16: + { + unmatchedToolCallBehavior_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.util.List mockedToolCalls_ = + java.util.Collections.emptyList(); + + private void ensureMockedToolCallsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + mockedToolCalls_ = + new java.util.ArrayList(mockedToolCalls_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.MockedToolCall, + com.google.cloud.ces.v1beta.MockedToolCall.Builder, + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder> + mockedToolCallsBuilder_; + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMockedToolCallsList() { + if (mockedToolCallsBuilder_ == null) { + return java.util.Collections.unmodifiableList(mockedToolCalls_); + } else { + return mockedToolCallsBuilder_.getMessageList(); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMockedToolCallsCount() { + if (mockedToolCallsBuilder_ == null) { + return mockedToolCalls_.size(); + } else { + return mockedToolCallsBuilder_.getCount(); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCall getMockedToolCalls(int index) { + if (mockedToolCallsBuilder_ == null) { + return mockedToolCalls_.get(index); + } else { + return mockedToolCallsBuilder_.getMessage(index); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockedToolCalls(int index, com.google.cloud.ces.v1beta.MockedToolCall value) { + if (mockedToolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.set(index, value); + onChanged(); + } else { + mockedToolCallsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockedToolCalls( + int index, com.google.cloud.ces.v1beta.MockedToolCall.Builder builderForValue) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.set(index, builderForValue.build()); + onChanged(); + } else { + mockedToolCallsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls(com.google.cloud.ces.v1beta.MockedToolCall value) { + if (mockedToolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(value); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls(int index, com.google.cloud.ces.v1beta.MockedToolCall value) { + if (mockedToolCallsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(index, value); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls( + com.google.cloud.ces.v1beta.MockedToolCall.Builder builderForValue) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(builderForValue.build()); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMockedToolCalls( + int index, com.google.cloud.ces.v1beta.MockedToolCall.Builder builderForValue) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.add(index, builderForValue.build()); + onChanged(); + } else { + mockedToolCallsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMockedToolCalls( + java.lang.Iterable values) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, mockedToolCalls_); + onChanged(); + } else { + mockedToolCallsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMockedToolCalls() { + if (mockedToolCallsBuilder_ == null) { + mockedToolCalls_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + mockedToolCallsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMockedToolCalls(int index) { + if (mockedToolCallsBuilder_ == null) { + ensureMockedToolCallsIsMutable(); + mockedToolCalls_.remove(index); + onChanged(); + } else { + mockedToolCallsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCall.Builder getMockedToolCallsBuilder(int index) { + return internalGetMockedToolCallsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCallOrBuilder getMockedToolCallsOrBuilder( + int index) { + if (mockedToolCallsBuilder_ == null) { + return mockedToolCalls_.get(index); + } else { + return mockedToolCallsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMockedToolCallsOrBuilderList() { + if (mockedToolCallsBuilder_ != null) { + return mockedToolCallsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(mockedToolCalls_); + } + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCall.Builder addMockedToolCallsBuilder() { + return internalGetMockedToolCallsFieldBuilder() + .addBuilder(com.google.cloud.ces.v1beta.MockedToolCall.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.MockedToolCall.Builder addMockedToolCallsBuilder(int index) { + return internalGetMockedToolCallsFieldBuilder() + .addBuilder(index, com.google.cloud.ces.v1beta.MockedToolCall.getDefaultInstance()); + } + + /** + * + * + *
+     * Optional. All tool calls to mock for the duration of the session.
+     * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMockedToolCallsBuilderList() { + return internalGetMockedToolCallsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.MockedToolCall, + com.google.cloud.ces.v1beta.MockedToolCall.Builder, + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder> + internalGetMockedToolCallsFieldBuilder() { + if (mockedToolCallsBuilder_ == null) { + mockedToolCallsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.ces.v1beta.MockedToolCall, + com.google.cloud.ces.v1beta.MockedToolCall.Builder, + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder>( + mockedToolCalls_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + mockedToolCalls_ = null; + } + return mockedToolCallsBuilder_; + } + + private int unmatchedToolCallBehavior_ = 0; + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for unmatchedToolCallBehavior. + */ + @java.lang.Override + public int getUnmatchedToolCallBehaviorValue() { + return unmatchedToolCallBehavior_; + } + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for unmatchedToolCallBehavior to set. + * @return This builder for chaining. + */ + public Builder setUnmatchedToolCallBehaviorValue(int value) { + unmatchedToolCallBehavior_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unmatchedToolCallBehavior. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior + getUnmatchedToolCallBehavior() { + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior result = + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior.forNumber( + unmatchedToolCallBehavior_); + return result == null + ? com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior.UNRECOGNIZED + : result; + } + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The unmatchedToolCallBehavior to set. + * @return This builder for chaining. + */ + public Builder setUnmatchedToolCallBehavior( + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + unmatchedToolCallBehavior_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. Beavhior for tool calls that don't match any args patterns in
+     * mocked_tool_calls.
+     * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearUnmatchedToolCallBehavior() { + bitField0_ = (bitField0_ & ~0x00000002); + unmatchedToolCallBehavior_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.MockConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.MockConfig) + private static final com.google.cloud.ces.v1beta.MockConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.MockConfig(); + } + + public static com.google.cloud.ces.v1beta.MockConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MockConfig 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.ces.v1beta.MockConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfigOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfigOrBuilder.java new file mode 100644 index 000000000000..76ebee59d6b9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockConfigOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/session_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface MockConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.MockConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMockedToolCallsList(); + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.MockedToolCall getMockedToolCalls(int index); + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMockedToolCallsCount(); + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMockedToolCallsOrBuilderList(); + + /** + * + * + *
+   * Optional. All tool calls to mock for the duration of the session.
+   * 
+ * + * + * repeated .google.cloud.ces.v1beta.MockedToolCall mocked_tool_calls = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder getMockedToolCallsOrBuilder(int index); + + /** + * + * + *
+   * Required. Beavhior for tool calls that don't match any args patterns in
+   * mocked_tool_calls.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for unmatchedToolCallBehavior. + */ + int getUnmatchedToolCallBehaviorValue(); + + /** + * + * + *
+   * Required. Beavhior for tool calls that don't match any args patterns in
+   * mocked_tool_calls.
+   * 
+ * + * + * .google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The unmatchedToolCallBehavior. + */ + com.google.cloud.ces.v1beta.MockConfig.UnmatchedToolCallBehavior getUnmatchedToolCallBehavior(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCall.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCall.java new file mode 100644 index 000000000000..9c2e82d8fe9f --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCall.java @@ -0,0 +1,1963 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/mocks.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +/** + * + * + *
+ * A mocked tool call.
+ *
+ * Expresses the target tool + a pattern to match against that tool's
+ * args / inputs. If the pattern matches, then the mock response will be
+ * returned.
+ * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.MockedToolCall} + */ +@com.google.protobuf.Generated +public final class MockedToolCall extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.ces.v1beta.MockedToolCall) + MockedToolCallOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MockedToolCall"); + } + + // Use MockedToolCall.newBuilder() to construct. + private MockedToolCall(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MockedToolCall() { + tool_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.MockedToolCall.class, + com.google.cloud.ces.v1beta.MockedToolCall.Builder.class); + } + + private int bitField0_; + private int toolIdentifierCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolIdentifier_; + + public enum ToolIdentifierCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOL_ID(4), + TOOLSET(5), + TOOLIDENTIFIER_NOT_SET(0); + private final int value; + + private ToolIdentifierCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolIdentifierCase valueOf(int value) { + return forNumber(value); + } + + public static ToolIdentifierCase forNumber(int value) { + switch (value) { + case 4: + return TOOL_ID; + case 5: + return TOOLSET; + case 0: + return TOOLIDENTIFIER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public static final int TOOL_ID_FIELD_NUMBER = 4; + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the toolId field is set. + */ + public boolean hasToolId() { + return toolIdentifierCase_ == 4; + } + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The toolId. + */ + public java.lang.String getToolId() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + 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(); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = s; + } + return s; + } + } + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolId. + */ + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLSET_FIELD_NUMBER = 5; + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolset field is set. + */ + @java.lang.Override + public boolean hasToolset() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ToolsetTool getToolset() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ToolsetToolOrBuilder getToolsetOrBuilder() { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object tool_ = ""; + + /** + * + * + *
+   * Optional. Deprecated. Use tool_identifier instead.
+   * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The tool. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getTool() { + java.lang.Object ref = tool_; + 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(); + tool_ = s; + return s; + } + } + + /** + * + * + *
+   * Optional. Deprecated. Use tool_identifier instead.
+   * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The bytes for tool. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPECTED_ARGS_PATTERN_FIELD_NUMBER = 2; + private com.google.protobuf.Struct expectedArgsPattern_; + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expectedArgsPattern field is set. + */ + @java.lang.Override + public boolean hasExpectedArgsPattern() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expectedArgsPattern. + */ + @java.lang.Override + public com.google.protobuf.Struct getExpectedArgsPattern() { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getExpectedArgsPatternOrBuilder() { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } + + public static final int MOCK_RESPONSE_FIELD_NUMBER = 3; + private com.google.protobuf.Struct mockResponse_; + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockResponse field is set. + */ + @java.lang.Override + public boolean hasMockResponse() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockResponse. + */ + @java.lang.Override + public com.google.protobuf.Struct getMockResponse() { + return mockResponse_ == null ? com.google.protobuf.Struct.getDefaultInstance() : mockResponse_; + } + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getMockResponseOrBuilder() { + return mockResponse_ == null ? com.google.protobuf.Struct.getDefaultInstance() : mockResponse_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getExpectedArgsPattern()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getMockResponse()); + } + if (toolIdentifierCase_ == 4) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, toolIdentifier_); + } + if (toolIdentifierCase_ == 5) { + output.writeMessage(5, (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(tool_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, tool_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getExpectedArgsPattern()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getMockResponse()); + } + if (toolIdentifierCase_ == 4) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, toolIdentifier_); + } + if (toolIdentifierCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_); + } + 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.ces.v1beta.MockedToolCall)) { + return super.equals(obj); + } + com.google.cloud.ces.v1beta.MockedToolCall other = + (com.google.cloud.ces.v1beta.MockedToolCall) obj; + + if (!getTool().equals(other.getTool())) return false; + if (hasExpectedArgsPattern() != other.hasExpectedArgsPattern()) return false; + if (hasExpectedArgsPattern()) { + if (!getExpectedArgsPattern().equals(other.getExpectedArgsPattern())) return false; + } + if (hasMockResponse() != other.hasMockResponse()) return false; + if (hasMockResponse()) { + if (!getMockResponse().equals(other.getMockResponse())) return false; + } + if (!getToolIdentifierCase().equals(other.getToolIdentifierCase())) return false; + switch (toolIdentifierCase_) { + case 4: + if (!getToolId().equals(other.getToolId())) return false; + break; + case 5: + if (!getToolset().equals(other.getToolset())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getTool().hashCode(); + if (hasExpectedArgsPattern()) { + hash = (37 * hash) + EXPECTED_ARGS_PATTERN_FIELD_NUMBER; + hash = (53 * hash) + getExpectedArgsPattern().hashCode(); + } + if (hasMockResponse()) { + hash = (37 * hash) + MOCK_RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getMockResponse().hashCode(); + } + switch (toolIdentifierCase_) { + case 4: + hash = (37 * hash) + TOOL_ID_FIELD_NUMBER; + hash = (53 * hash) + getToolId().hashCode(); + break; + case 5: + hash = (37 * hash) + TOOLSET_FIELD_NUMBER; + hash = (53 * hash) + getToolset().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall 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.ces.v1beta.MockedToolCall parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall 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.ces.v1beta.MockedToolCall parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.ces.v1beta.MockedToolCall prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
+   * A mocked tool call.
+   *
+   * Expresses the target tool + a pattern to match against that tool's
+   * args / inputs. If the pattern matches, then the mock response will be
+   * returned.
+   * 
+ * + * Protobuf type {@code google.cloud.ces.v1beta.MockedToolCall} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.ces.v1beta.MockedToolCall) + com.google.cloud.ces.v1beta.MockedToolCallOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.ces.v1beta.MockedToolCall.class, + com.google.cloud.ces.v1beta.MockedToolCall.Builder.class); + } + + // Construct using com.google.cloud.ces.v1beta.MockedToolCall.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetExpectedArgsPatternFieldBuilder(); + internalGetMockResponseFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsetBuilder_ != null) { + toolsetBuilder_.clear(); + } + tool_ = ""; + expectedArgsPattern_ = null; + if (expectedArgsPatternBuilder_ != null) { + expectedArgsPatternBuilder_.dispose(); + expectedArgsPatternBuilder_ = null; + } + mockResponse_ = null; + if (mockResponseBuilder_ != null) { + mockResponseBuilder_.dispose(); + mockResponseBuilder_ = null; + } + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.ces.v1beta.MocksProto + .internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCall getDefaultInstanceForType() { + return com.google.cloud.ces.v1beta.MockedToolCall.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCall build() { + com.google.cloud.ces.v1beta.MockedToolCall result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.ces.v1beta.MockedToolCall buildPartial() { + com.google.cloud.ces.v1beta.MockedToolCall result = + new com.google.cloud.ces.v1beta.MockedToolCall(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.ces.v1beta.MockedToolCall result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.tool_ = tool_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.expectedArgsPattern_ = + expectedArgsPatternBuilder_ == null + ? expectedArgsPattern_ + : expectedArgsPatternBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.mockResponse_ = + mockResponseBuilder_ == null ? mockResponse_ : mockResponseBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.ces.v1beta.MockedToolCall result) { + result.toolIdentifierCase_ = toolIdentifierCase_; + result.toolIdentifier_ = this.toolIdentifier_; + if (toolIdentifierCase_ == 5 && toolsetBuilder_ != null) { + result.toolIdentifier_ = toolsetBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.ces.v1beta.MockedToolCall) { + return mergeFrom((com.google.cloud.ces.v1beta.MockedToolCall) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.ces.v1beta.MockedToolCall other) { + if (other == com.google.cloud.ces.v1beta.MockedToolCall.getDefaultInstance()) return this; + if (!other.getTool().isEmpty()) { + tool_ = other.tool_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasExpectedArgsPattern()) { + mergeExpectedArgsPattern(other.getExpectedArgsPattern()); + } + if (other.hasMockResponse()) { + mergeMockResponse(other.getMockResponse()); + } + switch (other.getToolIdentifierCase()) { + case TOOL_ID: + { + toolIdentifierCase_ = 4; + toolIdentifier_ = other.toolIdentifier_; + onChanged(); + break; + } + case TOOLSET: + { + mergeToolset(other.getToolset()); + break; + } + case TOOLIDENTIFIER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + tool_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetExpectedArgsPatternFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetMockResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + toolIdentifierCase_ = 4; + toolIdentifier_ = s; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetToolsetFieldBuilder().getBuilder(), extensionRegistry); + toolIdentifierCase_ = 5; + break; + } // case 42 + 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 toolIdentifierCase_ = 0; + private java.lang.Object toolIdentifier_; + + public ToolIdentifierCase getToolIdentifierCase() { + return ToolIdentifierCase.forNumber(toolIdentifierCase_); + } + + public Builder clearToolIdentifier() { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the toolId field is set. + */ + @java.lang.Override + public boolean hasToolId() { + return toolIdentifierCase_ == 4; + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The toolId. + */ + @java.lang.Override + public java.lang.String getToolId() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolIdBytes() { + java.lang.Object ref = ""; + if (toolIdentifierCase_ == 4) { + ref = toolIdentifier_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolIdentifierCase_ == 4) { + toolIdentifier_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The toolId to set. + * @return This builder for chaining. + */ + public Builder setToolId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifierCase_ = 4; + toolIdentifier_ = value; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearToolId() { + if (toolIdentifierCase_ == 4) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The name of the tool to mock.
+     * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+     * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for toolId to set. + * @return This builder for chaining. + */ + public Builder setToolIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolIdentifierCase_ = 4; + toolIdentifier_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ToolsetTool, + com.google.cloud.ces.v1beta.ToolsetTool.Builder, + com.google.cloud.ces.v1beta.ToolsetToolOrBuilder> + toolsetBuilder_; + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolset field is set. + */ + @java.lang.Override + public boolean hasToolset() { + return toolIdentifierCase_ == 5; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolset. + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ToolsetTool getToolset() { + if (toolsetBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } else { + if (toolIdentifierCase_ == 5) { + return toolsetBuilder_.getMessage(); + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1beta.ToolsetTool value) { + if (toolsetBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolIdentifier_ = value; + onChanged(); + } else { + toolsetBuilder_.setMessage(value); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setToolset(com.google.cloud.ces.v1beta.ToolsetTool.Builder builderForValue) { + if (toolsetBuilder_ == null) { + toolIdentifier_ = builderForValue.build(); + onChanged(); + } else { + toolsetBuilder_.setMessage(builderForValue.build()); + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeToolset(com.google.cloud.ces.v1beta.ToolsetTool value) { + if (toolsetBuilder_ == null) { + if (toolIdentifierCase_ == 5 + && toolIdentifier_ != com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance()) { + toolIdentifier_ = + com.google.cloud.ces.v1beta.ToolsetTool.newBuilder( + (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_) + .mergeFrom(value) + .buildPartial(); + } else { + toolIdentifier_ = value; + } + onChanged(); + } else { + if (toolIdentifierCase_ == 5) { + toolsetBuilder_.mergeFrom(value); + } else { + toolsetBuilder_.setMessage(value); + } + } + toolIdentifierCase_ = 5; + return this; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearToolset() { + if (toolsetBuilder_ == null) { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + onChanged(); + } + } else { + if (toolIdentifierCase_ == 5) { + toolIdentifierCase_ = 0; + toolIdentifier_ = null; + } + toolsetBuilder_.clear(); + } + return this; + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.ces.v1beta.ToolsetTool.Builder getToolsetBuilder() { + return internalGetToolsetFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.ces.v1beta.ToolsetToolOrBuilder getToolsetOrBuilder() { + if ((toolIdentifierCase_ == 5) && (toolsetBuilder_ != null)) { + return toolsetBuilder_.getMessageOrBuilder(); + } else { + if (toolIdentifierCase_ == 5) { + return (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_; + } + return com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + } + + /** + * + * + *
+     * Optional. The toolset to mock.
+     * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ToolsetTool, + com.google.cloud.ces.v1beta.ToolsetTool.Builder, + com.google.cloud.ces.v1beta.ToolsetToolOrBuilder> + internalGetToolsetFieldBuilder() { + if (toolsetBuilder_ == null) { + if (!(toolIdentifierCase_ == 5)) { + toolIdentifier_ = com.google.cloud.ces.v1beta.ToolsetTool.getDefaultInstance(); + } + toolsetBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.ces.v1beta.ToolsetTool, + com.google.cloud.ces.v1beta.ToolsetTool.Builder, + com.google.cloud.ces.v1beta.ToolsetToolOrBuilder>( + (com.google.cloud.ces.v1beta.ToolsetTool) toolIdentifier_, + getParentForChildren(), + isClean()); + toolIdentifier_ = null; + } + toolIdentifierCase_ = 5; + onChanged(); + return toolsetBuilder_; + } + + private java.lang.Object tool_ = ""; + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The tool. + */ + @java.lang.Deprecated + public java.lang.String getTool() { + java.lang.Object ref = tool_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + tool_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The bytes for tool. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolBytes() { + java.lang.Object ref = tool_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + tool_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @param value The tool to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setTool(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + tool_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearTool() { + tool_ = getDefaultInstance().getTool(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. Deprecated. Use tool_identifier instead.
+     * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @param value The bytes for tool to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setToolBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + tool_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Struct expectedArgsPattern_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + expectedArgsPatternBuilder_; + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expectedArgsPattern field is set. + */ + public boolean hasExpectedArgsPattern() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expectedArgsPattern. + */ + public com.google.protobuf.Struct getExpectedArgsPattern() { + if (expectedArgsPatternBuilder_ == null) { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } else { + return expectedArgsPatternBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpectedArgsPattern(com.google.protobuf.Struct value) { + if (expectedArgsPatternBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expectedArgsPattern_ = value; + } else { + expectedArgsPatternBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpectedArgsPattern(com.google.protobuf.Struct.Builder builderForValue) { + if (expectedArgsPatternBuilder_ == null) { + expectedArgsPattern_ = builderForValue.build(); + } else { + expectedArgsPatternBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpectedArgsPattern(com.google.protobuf.Struct value) { + if (expectedArgsPatternBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && expectedArgsPattern_ != null + && expectedArgsPattern_ != com.google.protobuf.Struct.getDefaultInstance()) { + getExpectedArgsPatternBuilder().mergeFrom(value); + } else { + expectedArgsPattern_ = value; + } + } else { + expectedArgsPatternBuilder_.mergeFrom(value); + } + if (expectedArgsPattern_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpectedArgsPattern() { + bitField0_ = (bitField0_ & ~0x00000008); + expectedArgsPattern_ = null; + if (expectedArgsPatternBuilder_ != null) { + expectedArgsPatternBuilder_.dispose(); + expectedArgsPatternBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Struct.Builder getExpectedArgsPatternBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetExpectedArgsPatternFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.StructOrBuilder getExpectedArgsPatternOrBuilder() { + if (expectedArgsPatternBuilder_ != null) { + return expectedArgsPatternBuilder_.getMessageOrBuilder(); + } else { + return expectedArgsPattern_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : expectedArgsPattern_; + } + } + + /** + * + * + *
+     * Required. A pattern to match against the args / inputs of all dispatched
+     * tool calls. If the tool call inputs match this pattern, then mock output
+     * will be returned.
+     * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetExpectedArgsPatternFieldBuilder() { + if (expectedArgsPatternBuilder_ == null) { + expectedArgsPatternBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getExpectedArgsPattern(), getParentForChildren(), isClean()); + expectedArgsPattern_ = null; + } + return expectedArgsPatternBuilder_; + } + + private com.google.protobuf.Struct mockResponse_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + mockResponseBuilder_; + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockResponse field is set. + */ + public boolean hasMockResponse() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockResponse. + */ + public com.google.protobuf.Struct getMockResponse() { + if (mockResponseBuilder_ == null) { + return mockResponse_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : mockResponse_; + } else { + return mockResponseBuilder_.getMessage(); + } + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockResponse(com.google.protobuf.Struct value) { + if (mockResponseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + mockResponse_ = value; + } else { + mockResponseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMockResponse(com.google.protobuf.Struct.Builder builderForValue) { + if (mockResponseBuilder_ == null) { + mockResponse_ = builderForValue.build(); + } else { + mockResponseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMockResponse(com.google.protobuf.Struct value) { + if (mockResponseBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && mockResponse_ != null + && mockResponse_ != com.google.protobuf.Struct.getDefaultInstance()) { + getMockResponseBuilder().mergeFrom(value); + } else { + mockResponse_ = value; + } + } else { + mockResponseBuilder_.mergeFrom(value); + } + if (mockResponse_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMockResponse() { + bitField0_ = (bitField0_ & ~0x00000010); + mockResponse_ = null; + if (mockResponseBuilder_ != null) { + mockResponseBuilder_.dispose(); + mockResponseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getMockResponseBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetMockResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getMockResponseOrBuilder() { + if (mockResponseBuilder_ != null) { + return mockResponseBuilder_.getMessageOrBuilder(); + } else { + return mockResponse_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : mockResponse_; + } + } + + /** + * + * + *
+     * Optional. The mock response / output to return if the tool call args /
+     * inputs match the pattern.
+     * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetMockResponseFieldBuilder() { + if (mockResponseBuilder_ == null) { + mockResponseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getMockResponse(), getParentForChildren(), isClean()); + mockResponse_ = null; + } + return mockResponseBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.ces.v1beta.MockedToolCall) + } + + // @@protoc_insertion_point(class_scope:google.cloud.ces.v1beta.MockedToolCall) + private static final com.google.cloud.ces.v1beta.MockedToolCall DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.ces.v1beta.MockedToolCall(); + } + + public static com.google.cloud.ces.v1beta.MockedToolCall getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MockedToolCall 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.ces.v1beta.MockedToolCall getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCallOrBuilder.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCallOrBuilder.java new file mode 100644 index 000000000000..800036863d70 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MockedToolCallOrBuilder.java @@ -0,0 +1,249 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/mocks.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public interface MockedToolCallOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.ces.v1beta.MockedToolCall) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return Whether the toolId field is set. + */ + boolean hasToolId(); + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The toolId. + */ + java.lang.String getToolId(); + + /** + * + * + *
+   * Optional. The name of the tool to mock.
+   * Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
+   * 
+ * + * + * string tool_id = 4 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for toolId. + */ + com.google.protobuf.ByteString getToolIdBytes(); + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the toolset field is set. + */ + boolean hasToolset(); + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The toolset. + */ + com.google.cloud.ces.v1beta.ToolsetTool getToolset(); + + /** + * + * + *
+   * Optional. The toolset to mock.
+   * 
+ * + * + * .google.cloud.ces.v1beta.ToolsetTool toolset = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.ces.v1beta.ToolsetToolOrBuilder getToolsetOrBuilder(); + + /** + * + * + *
+   * Optional. Deprecated. Use tool_identifier instead.
+   * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The tool. + */ + @java.lang.Deprecated + java.lang.String getTool(); + + /** + * + * + *
+   * Optional. Deprecated. Use tool_identifier instead.
+   * 
+ * + * + * string tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... } + * + * + * @deprecated google.cloud.ces.v1beta.MockedToolCall.tool is deprecated. See + * google/cloud/ces/v1beta/mocks.proto;l=48 + * @return The bytes for tool. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getToolBytes(); + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expectedArgsPattern field is set. + */ + boolean hasExpectedArgsPattern(); + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expectedArgsPattern. + */ + com.google.protobuf.Struct getExpectedArgsPattern(); + + /** + * + * + *
+   * Required. A pattern to match against the args / inputs of all dispatched
+   * tool calls. If the tool call inputs match this pattern, then mock output
+   * will be returned.
+   * 
+ * + * + * .google.protobuf.Struct expected_args_pattern = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.StructOrBuilder getExpectedArgsPatternOrBuilder(); + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the mockResponse field is set. + */ + boolean hasMockResponse(); + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The mockResponse. + */ + com.google.protobuf.Struct getMockResponse(); + + /** + * + * + *
+   * Optional. The mock response / output to return if the tool call args /
+   * inputs match the pattern.
+   * 
+ * + * .google.protobuf.Struct mock_response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getMockResponseOrBuilder(); + + com.google.cloud.ces.v1beta.MockedToolCall.ToolIdentifierCase getToolIdentifierCase(); +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MocksProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MocksProto.java new file mode 100644 index 000000000000..843bff268608 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/MocksProto.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/ces/v1beta/mocks.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.ces.v1beta; + +@com.google.protobuf.Generated +public final class MocksProto extends com.google.protobuf.GeneratedFile { + private MocksProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MocksProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_MockedToolCall_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "#google/cloud/ces/v1beta/mocks.proto\022\027g" + + "oogle.cloud.ces.v1beta\032\037google/api/field" + + "_behavior.proto\032\031google/api/resource.pro" + + "to\032*google/cloud/ces/v1beta/toolset_tool.proto\032\034google/protobuf/struct.proto\"\270\002\n" + + "\016MockedToolCall\0222\n" + + "\007tool_id\030\004 \001(\tB\037\340A\001\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\022<\n" + + "\007toolset\030\005" + + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\003\340A\001H\000\022/\n" + + "\004tool\030\001 \001(\tB!\030\001\340A\001\372A\031\n" + + "\027ces.googleapis.com/Tool\022;\n" + + "\025expected_args_pattern\030\002" + + " \001(\0132\027.google.protobuf.StructB\003\340A\002\0223\n\r" + + "mock_response\030\003 \001(\0132\027.google.protobuf.StructB\003\340A\001B\021\n" + + "\017tool_identifierBZ\n" + + "\033com.google.cloud.ces.v1betaB\n" + + "MocksProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.ces.v1beta.ToolsetToolProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + }); + internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1beta_MockedToolCall_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_MockedToolCall_descriptor, + new java.lang.String[] { + "ToolId", "Toolset", "Tool", "ExpectedArgsPattern", "MockResponse", "ToolIdentifier", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.ces.v1beta.ToolsetToolProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java index b1b74f36d304..efd40d05bca8 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/SessionServiceProto.java @@ -40,6 +40,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); } + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_ces_v1beta_MockConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_ces_v1beta_MockConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_ces_v1beta_InputAudioConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -139,24 +143,34 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/api/annotations.proto\032\027google/api/clien" + "t.proto\032\037google/api/field_behavior.proto" + "\032\031google/api/resource.proto\032$google/clou" - + "d/ces/v1beta/common.proto\032%google/cloud/ces/v1beta/example.proto\0320google/cloud/c" - + "es/v1beta/search_suggestions.proto\032\034google/protobuf/struct.proto\"\235\001\n" + + "d/ces/v1beta/common.proto\032%google/cloud/ces/v1beta/example.proto\032#google/cloud/c" + + "es/v1beta/mocks.proto\0320google/cloud/ces/" + + "v1beta/search_suggestions.proto\032\034google/protobuf/struct.proto\"\246\002\n\n" + + "MockConfig\022G\n" + + "\021mocked_tool_calls\030\001" + + " \003(\0132\'.google.cloud.ces.v1beta.MockedToolCallB\003\340A\001\022h\n" + + "\034unmatched_tool_call_behavior\030\002 \001(\0162=.google.clo" + + "ud.ces.v1beta.MockConfig.UnmatchedToolCallBehaviorB\003\340A\002\"e\n" + + "\031UnmatchedToolCallBehavior\022,\n" + + "(UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED\020\000\022\010\n" + + "\004FAIL\020\001\022\020\n" + + "\014PASS_THROUGH\020\002\"\235\001\n" + "\020InputAudioConfig\022C\n" - + "\016audio_encoding\030\001" - + " \001(\0162&.google.cloud.ces.v1beta.AudioEncodingB\003\340A\002\022\036\n" + + "\016audio_encoding\030\001 " + + "\001(\0162&.google.cloud.ces.v1beta.AudioEncodingB\003\340A\002\022\036\n" + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\022$\n" + "\027noise_suppression_level\030\006 \001(\tB\003\340A\001\"x\n" + "\021OutputAudioConfig\022C\n" - + "\016audio_encoding\030\001" - + " \001(\0162&.google.cloud.ces.v1beta.AudioEncodingB\003\340A\002\022\036\n" + + "\016audio_encoding\030\001 " + + "\001(\0162&.google.cloud.ces.v1beta.AudioEncodingB\003\340A\002\022\036\n" + "\021sample_rate_hertz\030\002 \001(\005B\003\340A\002\"\201\007\n\r" + "SessionConfig\0223\n" + "\007session\030\001 \001(\tB\"\340A\002\372A\034\n" + "\032ces.googleapis.com/Session\022J\n" + "\022input_audio_config\030\002" + " \001(\0132).google.cloud.ces.v1beta.InputAudioConfigB\003\340A\001\022L\n" - + "\023output_audio_config\030\003 \001" - + "(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\003\340A\001\022B\n" + + "\023output_audio_config\030\003" + + " \001(\0132*.google.cloud.ces.v1beta.OutputAudioConfigB\003\340A\001\022B\n" + "\023historical_contexts\030\005 \003(\0132" + " .google.cloud.ces.v1beta.MessageB\003\340A\001\0225\n" + "\013entry_agent\030\014 \001(\tB \340A\001\372A\032\n" @@ -164,13 +178,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "deployment\030\010 \001(\tB\003\340A\001\022\026\n" + "\ttime_zone\030\013 \001(\tB\003\340A\001\022\033\n" + "\016use_tool_fakes\030\016 \001(\010B\003\340A\001\022w\n" - + "\"remote_dialogflow_query_parameters\030\017 \001(\0132F.google.cloud.ces.v1be" - + "ta.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\022\"\n" + + "\"remote_dialogflow_query_parameters\030\017 \001(\0132F.google." + + "cloud.ces.v1beta.SessionConfig.RemoteDialogflowQueryParametersB\003\340A\001\022\"\n" + "\025enable_text_streaming\030\022 \001(\010B\003\340A\001\032\272\002\n" + "\037RemoteDialogflowQueryParameters\022x\n" - + "\017webhook_headers\030\001 \003(\0132Z.google." - + "cloud.ces.v1beta.SessionConfig.RemoteDia" - + "logflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + + "\017webhook_headers\030\001 \003(\0132Z.google.cloud.ces.v1beta.SessionCo" + + "nfig.RemoteDialogflowQueryParameters.WebhookHeadersEntryB\003\340A\001\022-\n" + "\007payload\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001\0227\n" + "\021end_user_metadata\030\003" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\0325\n" @@ -180,11 +193,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tToolCalls\022:\n\n" + "tool_calls\030\001 \003(\0132!.google.cloud.ces.v1beta.ToolCallB\003\340A\001\"S\n\r" + "ToolResponses\022B\n" - + "\016tool_responses\030\001 \003(\013" - + "2%.google.cloud.ces.v1beta.ToolResponseB\003\340A\001\"\210\001\n" + + "\016tool_responses\030\001" + + " \003(\0132%.google.cloud.ces.v1beta.ToolResponseB\003\340A\001\"\210\001\n" + "\tCitations\022C\n" - + "\014cited_chunks\030\001 \003(\013" - + "2-.google.cloud.ces.v1beta.Citations.CitedChunk\0326\n\n" + + "\014cited_chunks\030\001" + + " \003(\0132-.google.cloud.ces.v1beta.Citations.CitedChunk\0326\n\n" + "CitedChunk\022\013\n" + "\003uri\030\001 \001(\t\022\r\n" + "\005title\030\002 \001(\t\022\014\n" @@ -195,8 +208,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004text\030\001 \001(\tB\003\340A\001H\000\022\023\n" + "\004dtmf\030\006 \001(\tB\003\340A\001H\000\022\024\n" + "\005audio\030\002 \001(\014B\003\340A\001H\000\022E\n" - + "\016tool_responses\030\003 \001(\0132&." - + "google.cloud.ces.v1beta.ToolResponsesB\003\340A\001H\000\0224\n" + + "\016tool_responses\030\003" + + " \001(\0132&.google.cloud.ces.v1beta.ToolResponsesB\003\340A\001H\000\0224\n" + "\005image\030\004" + " \001(\0132\036.google.cloud.ces.v1beta.ImageB\003\340A\001H\000\0222\n" + "\004blob\030\007 \001(\0132\035.google.cloud.ces.v1beta.BlobB\003\340A\001H\000\0221\n" @@ -216,8 +229,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007payload\030\013 \001(\0132\027.google.protobuf.StructH\000\022\022\n\n" + "turn_index\030\006 \001(\005\022\026\n" + "\016turn_completed\030\004 \001(\010\022S\n" - + "\017diagnostic_info\030\007 " - + "\001(\01325.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfoB\003\340A\001\032v\n" + + "\017diagnostic_info\030\007" + + " \001(\01325.google.cloud.ces.v1beta.SessionOutput.DiagnosticInfoB\003\340A\001\032v\n" + "\016DiagnosticInfo\0222\n" + "\010messages\030\001 \003(\0132 .google.cloud.ces.v1beta.Message\0220\n" + "\troot_span\030\003 \001(\0132\035.google.cloud.ces.v1beta.SpanB\r\n" @@ -230,14 +243,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010metadata\030\001 \001(\0132\027.google.protobuf.StructB\003\340A\001\"\010\n" + "\006GoAway\"\214\001\n" + "\021RunSessionRequest\022;\n" - + "\006config\030\001 \001(\0132&.goo" - + "gle.cloud.ces.v1beta.SessionConfigB\003\340A\002\022:\n" + + "\006config\030\001" + + " \001(\0132&.google.cloud.ces.v1beta.SessionConfigB\003\340A\002\022:\n" + "\006inputs\030\003 \003(\0132%.google.cloud.ces.v1beta.SessionInputB\003\340A\002\"M\n" + "\022RunSessionResponse\0227\n" + "\007outputs\030\001 \003(\0132&.google.cloud.ces.v1beta.SessionOutput\"\257\001\n" + "\030BidiSessionClientMessage\022=\n" - + "\006config\030\001" - + " \001(\0132&.google.cloud.ces.v1beta.SessionConfigB\003\340A\001H\000\022D\n" + + "\006config\030\001 \001(\0132&." + + "google.cloud.ces.v1beta.SessionConfigB\003\340A\001H\000\022D\n" + "\016realtime_input\030\002" + " \001(\0132%.google.cloud.ces.v1beta.SessionInputB\003\340A\001H\000B\016\n" + "\014message_type\"\213\003\n" @@ -248,8 +261,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132*.google.cloud.ces.v1beta.RecognitionResultB\003\340A\001H\000\022O\n" + "\023interruption_signal\030\003" + " \001(\0132+.google.cloud.ces.v1beta.InterruptionSignalB\003\340A\001H\000\022?\n" - + "\013end_session\030\005 \001(\0132#." - + "google.cloud.ces.v1beta.EndSessionB\003\340A\001H\000\0227\n" + + "\013end_session\030\005" + + " \001(\0132#.google.cloud.ces.v1beta.EndSessionB\003\340A\001H\000\0227\n" + "\007go_away\030\006" + " \001(\0132\037.google.cloud.ces.v1beta.GoAwayB\003\340A\001H\000B\016\n" + "\014message_type*R\n\r" @@ -259,23 +272,23 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005MULAW\020\002\022\010\n" + "\004ALAW\020\0032\212\005\n" + "\016SessionService\022\276\001\n\n" - + "RunSession\022*.google.cloud.ces.v1beta.RunSessionRequest\032+.g" - + "oogle.cloud.ces.v1beta.RunSessionRespons" - + "e\"W\202\323\344\223\002Q\"L/v1beta/{config.session=proje" - + "cts/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\314\001\n" - + "\020StreamRunSession\022*.google.cloud.ces.v1beta.RunSessionRequest\032+.go" - + "ogle.cloud.ces.v1beta.RunSessionResponse" - + "\"]\202\323\344\223\002W\"R/v1beta/{config.session=projec" - + "ts/*/locations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022|\n" - + "\016BidiRunSession\0221.google.cloud.ces.v1beta.BidiSessionClientM" - + "essage\0321.google.cloud.ces.v1beta.BidiSes" - + "sionServerMessage\"\000(\0010\001\032j\312A\022ces.googleap" - + "is.com\322ARhttps://www.googleapis.com/auth" - + "/ces,https://www.googleapis.com/auth/cloud-platformB\311\001\n" - + "\033com.google.cloud.ces.v1b" - + "etaB\023SessionServiceProtoP\001Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" - + "\032ces.googleapis.com/Session\022Eprojects/{proj" - + "ect}/locations/{location}/apps/{app}/sessions/{session}b\006proto3" + + "RunSession\022*.google.cloud.ces.v1beta.RunSess" + + "ionRequest\032+.google.cloud.ces.v1beta.Run" + + "SessionResponse\"W\202\323\344\223\002Q\"L/v1beta/{config" + + ".session=projects/*/locations/*/apps/*/sessions/*}:runSession:\001*\022\314\001\n" + + "\020StreamRunSession\022*.google.cloud.ces.v1beta.RunSessi" + + "onRequest\032+.google.cloud.ces.v1beta.RunS" + + "essionResponse\"]\202\323\344\223\002W\"R/v1beta/{config." + + "session=projects/*/locations/*/apps/*/sessions/*}:streamRunSession:\001*0\001\022|\n" + + "\016BidiRunSession\0221.google.cloud.ces.v1beta.Bidi" + + "SessionClientMessage\0321.google.cloud.ces." + + "v1beta.BidiSessionServerMessage\"\000(\0010\001\032j\312" + + "A\022ces.googleapis.com\322ARhttps://www.googl" + + "eapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB\311\001\n" + + "\033com.google.cloud.ces.v1betaB\023SessionServiceProtoP\001" + + "Z-cloud.google.com/go/ces/apiv1beta/cespb;cespb\352Ac\n" + + "\032ces.googleapis.com/Session\022Eprojects/{project}/locations/{location}/" + + "apps/{app}/sessions/{session}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -287,11 +300,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(), com.google.cloud.ces.v1beta.CommonProto.getDescriptor(), com.google.cloud.ces.v1beta.ExampleProto.getDescriptor(), + com.google.cloud.ces.v1beta.MocksProto.getDescriptor(), com.google.cloud.ces.v1beta.SearchSuggestionsProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); - internal_static_google_cloud_ces_v1beta_InputAudioConfig_descriptor = + internal_static_google_cloud_ces_v1beta_MockConfig_descriptor = getDescriptor().getMessageType(0); + internal_static_google_cloud_ces_v1beta_MockConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_ces_v1beta_MockConfig_descriptor, + new java.lang.String[] { + "MockedToolCalls", "UnmatchedToolCallBehavior", + }); + internal_static_google_cloud_ces_v1beta_InputAudioConfig_descriptor = + getDescriptor().getMessageType(1); internal_static_google_cloud_ces_v1beta_InputAudioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_InputAudioConfig_descriptor, @@ -299,7 +321,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioEncoding", "SampleRateHertz", "NoiseSuppressionLevel", }); internal_static_google_cloud_ces_v1beta_OutputAudioConfig_descriptor = - getDescriptor().getMessageType(1); + getDescriptor().getMessageType(2); internal_static_google_cloud_ces_v1beta_OutputAudioConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_OutputAudioConfig_descriptor, @@ -307,7 +329,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AudioEncoding", "SampleRateHertz", }); internal_static_google_cloud_ces_v1beta_SessionConfig_descriptor = - getDescriptor().getMessageType(2); + getDescriptor().getMessageType(3); internal_static_google_cloud_ces_v1beta_SessionConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_SessionConfig_descriptor, @@ -341,7 +363,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_ces_v1beta_ToolCalls_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_ces_v1beta_ToolCalls_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ToolCalls_descriptor, @@ -349,7 +371,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ToolCalls", }); internal_static_google_cloud_ces_v1beta_ToolResponses_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(5); internal_static_google_cloud_ces_v1beta_ToolResponses_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_ToolResponses_descriptor, @@ -357,7 +379,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ToolResponses", }); internal_static_google_cloud_ces_v1beta_Citations_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(6); internal_static_google_cloud_ces_v1beta_Citations_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Citations_descriptor, @@ -372,7 +394,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Uri", "Title", "Text", }); - internal_static_google_cloud_ces_v1beta_Event_descriptor = getDescriptor().getMessageType(6); + internal_static_google_cloud_ces_v1beta_Event_descriptor = getDescriptor().getMessageType(7); internal_static_google_cloud_ces_v1beta_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_Event_descriptor, @@ -380,7 +402,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Event", }); internal_static_google_cloud_ces_v1beta_SessionInput_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(8); internal_static_google_cloud_ces_v1beta_SessionInput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_SessionInput_descriptor, @@ -397,7 +419,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InputType", }); internal_static_google_cloud_ces_v1beta_SessionOutput_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(9); internal_static_google_cloud_ces_v1beta_SessionOutput_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_SessionOutput_descriptor, @@ -423,7 +445,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Messages", "RootSpan", }); internal_static_google_cloud_ces_v1beta_RecognitionResult_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_ces_v1beta_RecognitionResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RecognitionResult_descriptor, @@ -431,7 +453,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Transcript", }); internal_static_google_cloud_ces_v1beta_InterruptionSignal_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_ces_v1beta_InterruptionSignal_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_InterruptionSignal_descriptor, @@ -439,19 +461,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BargeIn", }); internal_static_google_cloud_ces_v1beta_EndSession_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_ces_v1beta_EndSession_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_EndSession_descriptor, new java.lang.String[] { "Metadata", }); - internal_static_google_cloud_ces_v1beta_GoAway_descriptor = getDescriptor().getMessageType(12); + internal_static_google_cloud_ces_v1beta_GoAway_descriptor = getDescriptor().getMessageType(13); internal_static_google_cloud_ces_v1beta_GoAway_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_GoAway_descriptor, new java.lang.String[] {}); internal_static_google_cloud_ces_v1beta_RunSessionRequest_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_ces_v1beta_RunSessionRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RunSessionRequest_descriptor, @@ -459,7 +481,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "Inputs", }); internal_static_google_cloud_ces_v1beta_RunSessionResponse_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_ces_v1beta_RunSessionResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_RunSessionResponse_descriptor, @@ -467,7 +489,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Outputs", }); internal_static_google_cloud_ces_v1beta_BidiSessionClientMessage_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_ces_v1beta_BidiSessionClientMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_BidiSessionClientMessage_descriptor, @@ -475,7 +497,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Config", "RealtimeInput", "MessageType", }); internal_static_google_cloud_ces_v1beta_BidiSessionServerMessage_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_ces_v1beta_BidiSessionServerMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_ces_v1beta_BidiSessionServerMessage_descriptor, @@ -494,6 +516,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.ResourceProto.getDescriptor(); com.google.cloud.ces.v1beta.CommonProto.getDescriptor(); com.google.cloud.ces.v1beta.ExampleProto.getDescriptor(); + com.google.cloud.ces.v1beta.MocksProto.getDescriptor(); com.google.cloud.ces.v1beta.SearchSuggestionsProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolServiceProto.java b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolServiceProto.java index f891d5963d69..911a514f4c12 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolServiceProto.java +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/java/com/google/cloud/ces/v1beta/ToolServiceProto.java @@ -73,71 +73,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { static { java.lang.String[] descriptorData = { - "\n" - + "*google/cloud/ces/v1beta/tool_service.p" + "\n*google/cloud/ces/v1beta/tool_service.p" + "roto\022\027google.cloud.ces.v1beta\032\034google/ap" + "i/annotations.proto\032\027google/api/client.p" + "roto\032\037google/api/field_behavior.proto\032\031g" + "oogle/api/resource.proto\032$google/cloud/c" - + "es/v1beta/schema.proto\032\"google/cloud/ces" - + "/v1beta/tool.proto\032*google/cloud/ces/v1b" - + "eta/toolset_tool.proto\032\034google/protobuf/struct.proto\"\365\002\n" - + "\022ExecuteToolRequest\022/\n" - + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022A\n" - + "\014toolset_tool\030\003" - + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\003\340A\001H\000\0221\n" - + "\tvariables\030\005 \001(\0132\027.google.protobuf.StructB\003\340A\001H\001\022/\n" - + "\007context\030\006 \001(\0132\027.google.protobuf.StructB\003\340A\001H\001\022.\n" - + "\006parent\030\004 \001(\tB\036\340A\002\372A\030\n" - + "\026ces.googleapis.com/App\022*\n" - + "\004args\030\002 \001(\0132\027.google.protobuf.StructB\003\340A\001B\021\n" - + "\017tool_identifierB\030\n" - + "\026tool_execution_context\"\353\001\n" - + "\023ExecuteToolResponse\022,\n" - + "\004tool\030\001 \001(\tB\034\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022<\n" - + "\014toolset_tool\030\003 \001(\0132$.google.cloud.ces.v1beta.ToolsetToolH\000\022)\n" - + "\010response\030\002 \001(\0132\027.google.protobuf.Struct\022*\n" - + "\tvariables\030\004 \001(\0132\027.google.protobuf.StructB\021\n" - + "\017tool_identifier\"\322\001\n" - + "\031RetrieveToolSchemaRequest\022/\n" - + "\004tool\030\001 \001(\tB\037\340A\001\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022A\n" - + "\014toolset_tool\030\002" - + " \001(\0132$.google.cloud.ces.v1beta.ToolsetToolB\003\340A\001H\000\022.\n" - + "\006parent\030\003 \001(\tB\036\340A\002\372A\030\n" - + "\026ces.googleapis.com/AppB\021\n" - + "\017tool_identifier\"\212\002\n" - + "\032RetrieveToolSchemaResponse\022,\n" - + "\004tool\030\001 \001(\tB\034\372A\031\n" - + "\027ces.googleapis.com/ToolH\000\022<\n" - + "\014toolset_tool\030\002 \001(\0132$.google.cloud.ces.v1beta.ToolsetToolH\000\0225\n" - + "\014input_schema\030\003 \001(\0132\037.google.cloud.ces.v1beta.Schema\0226\n\r" - + "output_schema\030\004 \001(\0132\037.google.cloud.ces.v1beta.SchemaB\021\n" - + "\017tool_identifier\"b\n" - + "\024RetrieveToolsRequest\0223\n" - + "\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n" - + "\032ces.googleapis.com/Toolset\022\025\n" - + "\010tool_ids\030\003 \003(\tB\003\340A\001\"E\n" - + "\025RetrieveToolsResponse\022,\n" - + "\005tools\030\001 \003(\0132\035.google.cloud.ces.v1beta.Tool2\277\005\n" - + "\013ToolService\022\257\001\n" - + "\013ExecuteTool\022+.google.cloud.ces.v1beta.ExecuteToolRequest\032,.g" - + "oogle.cloud.ces.v1beta.ExecuteToolRespon" - + "se\"E\202\323\344\223\002?\":/v1beta/{parent=projects/*/locations/*/apps/*}:executeTool:\001*\022\313\001\n" - + "\022RetrieveToolSchema\0222.google.cloud.ces.v1be" - + "ta.RetrieveToolSchemaRequest\0323.google.cloud.ces.v1beta.RetrieveToolSchemaRespons" - + "e\"L\202\323\344\223\002F\"A/v1beta/{parent=projects/*/lo" - + "cations/*/apps/*}:retrieveToolSchema:\001*\022\303\001\n\r" - + "RetrieveTools\022-.google.cloud.ces.v1beta.RetrieveToolsRequest\032..google.cloud." - + "ces.v1beta.RetrieveToolsResponse\"S\202\323\344\223\002M" - + "\"H/v1beta/{toolset=projects/*/locations/" - + "*/apps/*/toolsets/*}:retrieveTools:\001*\032j\312" - + "A\022ces.googleapis.com\322ARhttps://www.googl" - + "eapis.com/auth/ces,https://www.googleapis.com/auth/cloud-platformB`\n" - + "\033com.google.cloud.ces.v1betaB\020ToolServiceProtoP\001Z-cl" - + "oud.google.com/go/ces/apiv1beta/cespb;cespbb\006proto3" + + "es/v1beta/schema.proto\032-google/cloud/ces" + + "/v1beta/session_service.proto\032\"google/cl" + + "oud/ces/v1beta/tool.proto\032*google/cloud/" + + "ces/v1beta/toolset_tool.proto\032\034google/pr" + + "otobuf/struct.proto\"\264\003\n\022ExecuteToolReque" + + "st\022/\n\004tool\030\001 \001(\tB\037\340A\001\372A\031\n\027ces.googleapis" + + ".com/ToolH\000\022A\n\014toolset_tool\030\003 \001(\0132$.goog" + + "le.cloud.ces.v1beta.ToolsetToolB\003\340A\001H\000\0221" + + "\n\tvariables\030\005 \001(\0132\027.google.protobuf.Stru" + + "ctB\003\340A\001H\001\022/\n\007context\030\006 \001(\0132\027.google.prot" + + "obuf.StructB\003\340A\001H\001\022.\n\006parent\030\004 \001(\tB\036\340A\002\372" + + "A\030\n\026ces.googleapis.com/App\022*\n\004args\030\002 \001(\013" + + "2\027.google.protobuf.StructB\003\340A\001\022=\n\013mock_c" + + "onfig\030\007 \001(\0132#.google.cloud.ces.v1beta.Mo" + + "ckConfigB\003\340A\001B\021\n\017tool_identifierB\030\n\026tool" + + "_execution_context\"\353\001\n\023ExecuteToolRespon" + + "se\022,\n\004tool\030\001 \001(\tB\034\372A\031\n\027ces.googleapis.co" + + "m/ToolH\000\022<\n\014toolset_tool\030\003 \001(\0132$.google." + + "cloud.ces.v1beta.ToolsetToolH\000\022)\n\010respon" + + "se\030\002 \001(\0132\027.google.protobuf.Struct\022*\n\tvar" + + "iables\030\004 \001(\0132\027.google.protobuf.StructB\021\n" + + "\017tool_identifier\"\322\001\n\031RetrieveToolSchemaR" + + "equest\022/\n\004tool\030\001 \001(\tB\037\340A\001\372A\031\n\027ces.google" + + "apis.com/ToolH\000\022A\n\014toolset_tool\030\002 \001(\0132$." + + "google.cloud.ces.v1beta.ToolsetToolB\003\340A\001" + + "H\000\022.\n\006parent\030\003 \001(\tB\036\340A\002\372A\030\n\026ces.googleap" + + "is.com/AppB\021\n\017tool_identifier\"\212\002\n\032Retrie" + + "veToolSchemaResponse\022,\n\004tool\030\001 \001(\tB\034\372A\031\n" + + "\027ces.googleapis.com/ToolH\000\022<\n\014toolset_to" + + "ol\030\002 \001(\0132$.google.cloud.ces.v1beta.Tools" + + "etToolH\000\0225\n\014input_schema\030\003 \001(\0132\037.google." + + "cloud.ces.v1beta.Schema\0226\n\routput_schema" + + "\030\004 \001(\0132\037.google.cloud.ces.v1beta.SchemaB" + + "\021\n\017tool_identifier\"b\n\024RetrieveToolsReque" + + "st\0223\n\007toolset\030\001 \001(\tB\"\340A\002\372A\034\n\032ces.googlea" + + "pis.com/Toolset\022\025\n\010tool_ids\030\003 \003(\tB\003\340A\001\"E" + + "\n\025RetrieveToolsResponse\022,\n\005tools\030\001 \003(\0132\035" + + ".google.cloud.ces.v1beta.Tool2\277\005\n\013ToolSe" + + "rvice\022\257\001\n\013ExecuteTool\022+.google.cloud.ces" + + ".v1beta.ExecuteToolRequest\032,.google.clou" + + "d.ces.v1beta.ExecuteToolResponse\"E\202\323\344\223\002?" + + "\":/v1beta/{parent=projects/*/locations/*" + + "/apps/*}:executeTool:\001*\022\313\001\n\022RetrieveTool" + + "Schema\0222.google.cloud.ces.v1beta.Retriev" + + "eToolSchemaRequest\0323.google.cloud.ces.v1" + + "beta.RetrieveToolSchemaResponse\"L\202\323\344\223\002F\"" + + "A/v1beta/{parent=projects/*/locations/*/" + + "apps/*}:retrieveToolSchema:\001*\022\303\001\n\rRetrie" + + "veTools\022-.google.cloud.ces.v1beta.Retrie" + + "veToolsRequest\032..google.cloud.ces.v1beta" + + ".RetrieveToolsResponse\"S\202\323\344\223\002M\"H/v1beta/" + + "{toolset=projects/*/locations/*/apps/*/t" + + "oolsets/*}:retrieveTools:\001*\032j\312A\022ces.goog" + + "leapis.com\322ARhttps://www.googleapis.com/" + + "auth/ces,https://www.googleapis.com/auth" + + "/cloud-platformB`\n\033com.google.cloud.ces." + + "v1betaB\020ToolServiceProtoP\001Z-cloud.google" + + ".com/go/ces/apiv1beta/cespb;cespbb\006proto" + + "3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -148,6 +147,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.ces.v1beta.SchemaProto.getDescriptor(), + com.google.cloud.ces.v1beta.SessionServiceProto.getDescriptor(), com.google.cloud.ces.v1beta.ToolProto.getDescriptor(), com.google.cloud.ces.v1beta.ToolsetToolProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), @@ -164,6 +164,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Context", "Parent", "Args", + "MockConfig", "ToolIdentifier", "ToolExecutionContext", }); @@ -213,6 +214,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.ces.v1beta.SchemaProto.getDescriptor(); + com.google.cloud.ces.v1beta.SessionServiceProto.getDescriptor(); com.google.cloud.ces.v1beta.ToolProto.getDescriptor(); com.google.cloud.ces.v1beta.ToolsetToolProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto index 7ac3059788d9..8d32f2f4d894 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/app.proto @@ -424,6 +424,32 @@ message LoggingSettings { // Settings to describe how errors should be handled in the app. message ErrorHandlingSettings { + // Configuration for handling fallback responses. + message FallbackResponseConfig { + // Optional. The fallback messages in case of system errors (e.g. LLM + // errors), mapped by [supported language + // code](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/reference/language). + map custom_fallback_messages = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of fallback attempts to make before the + // agent emitting [EndSession][google.cloud.ces.v1beta.EndSession] Signal. + int32 max_fallback_attempts = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for ending the session in case of system errors (e.g. LLM + // errors). + message EndSessionConfig { + // Optional. Whether to escalate the session in + // [EndSession][google.cloud.ces.v1beta.EndSession]. If session is + // escalated, [metadata in + // EndSession][google.cloud.ces.v1beta.EndSession.metadata] will contain + // `session_escalated = true`. See + // https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/deploy/google-telephony-platform#transfer_a_call_to_a_human_agent + // for details. + optional bool escalate_session = 1 [(google.api.field_behavior) = OPTIONAL]; + } + // Defines the strategy for handling errors. enum ErrorHandlingStrategy { // Unspecified error handling strategy. @@ -444,6 +470,15 @@ message ErrorHandlingSettings { // Optional. The strategy to use for error handling. ErrorHandlingStrategy error_handling_strategy = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for handling fallback responses. + FallbackResponseConfig fallback_response_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration for ending the session in case of system errors + // (e.g. LLM errors). + EndSessionConfig end_session_config = 3 + [(google.api.field_behavior) = OPTIONAL]; } // Threshold settings for metrics in an Evaluation. @@ -618,6 +653,11 @@ message ConversationLoggingSettings { // Optional. Whether to disable conversation logging for the sessions. bool disable_conversation_logging = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Controls the retention window for the conversation. + // If not set, the conversation will be retained for 365 days. + google.protobuf.Duration retention_window = 2 + [(google.api.field_behavior) = OPTIONAL]; } // Settings to describe the Cloud Logging behaviors for the app. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto index aacb4fd09310..1ec191d70e4c 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation.proto @@ -919,6 +919,9 @@ message EvaluationResult { // Evaluation/Expectation failed. In the case of an evaluation, this means // that at least one expectation was not met. FAIL = 2; + + // Evaluation/Expectation was skipped. + SKIPPED = 3; } // The state of the evaluation result execution. diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto index 9e61271d789b..fc676c7010a9 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/evaluation_service.proto @@ -20,6 +20,7 @@ import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; +import "google/cloud/ces/v1beta/agent_service.proto"; import "google/cloud/ces/v1beta/conversation.proto"; import "google/cloud/ces/v1beta/evaluation.proto"; import "google/longrunning/operations.proto"; @@ -354,6 +355,20 @@ service EvaluationService { }; option (google.api.method_signature) = "app"; } + + // Exports evaluations. + rpc ExportEvaluations(ExportEvaluationsRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta/{parent=projects/*/locations/*/apps/*}/evaluations:export" + body: "*" + }; + option (google.api.method_signature) = "parent"; + option (google.longrunning.operation_info) = { + response_type: "ExportEvaluationsResponse" + metadata_type: "OperationMetadata" + }; + } } // Response message for @@ -521,12 +536,27 @@ message ImportEvaluationsResponse { // The list of evaluations that were imported into the app. repeated Evaluation evaluations = 1; + // The list of evaluation results that were imported into the app. + repeated EvaluationResult evaluation_results = 4; + + // The list of evaluation runs that were imported into the app. + repeated EvaluationRun evaluation_runs = 5; + // Optional. A list of error messages associated with evaluations that failed // to be imported. repeated string error_messages = 2 [(google.api.field_behavior) = OPTIONAL]; - // The number of evaluations that were not imported due to errors. + // The number of evaluations that either failed to import entirely or + // completed import with one or more errors. int32 import_failure_count = 3; + + // The number of evaluation results that either failed to import entirely or + // completed import with one or more errors. + int32 evaluation_result_import_failure_count = 6; + + // The number of evaluation runs that either failed to import entirely or + // completed import with one or more errors. + int32 evaluation_run_import_failure_count = 7; } // Represents the metadata of the long-running operation for @@ -1195,3 +1225,107 @@ message ListEvaluationExpectationsResponse { // subsequent pages. string next_page_token = 2; } + +// Options for exporting CES evaluation resources. +message ExportOptions { + // The format to export the items in. Defaults to JSON if not + // specified. + enum ExportFormat { + // Unspecified format. + EXPORT_FORMAT_UNSPECIFIED = 0; + + // JSON format. + JSON = 1; + + // YAML format. + YAML = 2; + } + + // Optional. The format to export the evaluation results in. Defaults to JSON + // if not specified. + ExportFormat export_format = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The Google Cloud Storage URI to write the exported Evaluation + // Results to. + string gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for +// [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations]. +message ExportEvaluationsRequest { + // Required. The resource name of the app to export evaluations from. + // Format: `projects/{project}/locations/{location}/apps/{app}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/App" } + ]; + + // Required. The resource names of the evaluations to export. + repeated string names = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { type: "ces.googleapis.com/Evaluation" } + ]; + + // Optional. The export options for the evaluations. + ExportOptions export_options = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Includes evaluation results in the export. At least one of + // include_evaluation_results or include_evaluations must be set. + bool include_evaluation_results = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Includes evaluations in the export. At least one of + // include_evaluation_results or include_evaluations must be set. + bool include_evaluations = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for +// [EvaluationService.ExportEvaluations][google.cloud.ces.v1beta.EvaluationService.ExportEvaluations]. +message ExportEvaluationsResponse { + // The exported evaluations. + oneof evaluations { + // The content of the exported Evaluations. This will be populated if + // gcs_uri was not specified in the request. + bytes evaluations_content = 1; + + // The Google Cloud Storage URI folder where the exported evaluations were + // written. This will be populated if gcs_uri was specified in the request. + string evaluations_uri = 2; + } + + // Output only. A map of evaluation resource names that could not be exported, + // to the reason why they failed. + map failed_evaluations = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Response message for +// [EvaluationService.ExportEvaluationResults][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationResults]. +message ExportEvaluationResultsResponse { + // The exported evaluation results. + oneof evaluation_results { + // The content of the exported Evaluation Results. This will be populated if + // gcs_uri was not specified in the request. + bytes evaluation_results_content = 1; + + // The Google Cloud Storage URI folder where the exported Evaluation Results + // were written. This will be populated if gcs_uri was specified in the + // request. + string evaluation_results_uri = 2; + } +} + +// Response message for +// [EvaluationService.ExportEvaluationRuns][google.cloud.ces.v1beta.EvaluationService.ExportEvaluationRuns]. +message ExportEvaluationRunsResponse { + // The exported evaluation runs. + oneof evaluation_runs { + // The content of the exported Evaluation Runs. This will be populated if + // gcs_uri was not specified in the request. + bytes evaluation_runs_content = 1; + + // The Google Cloud Storage URI folder where the exported Evaluation Runs + // were written. This will be populated if gcs_uri was specified in the + // request. + string evaluation_runs_uri = 2; + } +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mocks.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mocks.proto new file mode 100644 index 000000000000..7dafb78e95a9 --- /dev/null +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/mocks.proto @@ -0,0 +1,65 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. + +syntax = "proto3"; + +package google.cloud.ces.v1beta; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/ces/v1beta/toolset_tool.proto"; +import "google/protobuf/struct.proto"; + +option go_package = "cloud.google.com/go/ces/apiv1beta/cespb;cespb"; +option java_multiple_files = true; +option java_outer_classname = "MocksProto"; +option java_package = "com.google.cloud.ces.v1beta"; + +// A mocked tool call. +// +// Expresses the target tool + a pattern to match against that tool's +// args / inputs. If the pattern matches, then the mock response will be +// returned. +message MockedToolCall { + // The identifier of the tool to mock. + oneof tool_identifier { + // Optional. The name of the tool to mock. + // Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` + string tool_id = 4 [ + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Optional. The toolset to mock. + ToolsetTool toolset = 5 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. Deprecated. Use tool_identifier instead. + string tool = 1 [ + deprecated = true, + (google.api.field_behavior) = OPTIONAL, + (google.api.resource_reference) = { type: "ces.googleapis.com/Tool" } + ]; + + // Required. A pattern to match against the args / inputs of all dispatched + // tool calls. If the tool call inputs match this pattern, then mock output + // will be returned. + google.protobuf.Struct expected_args_pattern = 2 + [(google.api.field_behavior) = REQUIRED]; + + // Optional. The mock response / output to return if the tool call args / + // inputs match the pattern. + google.protobuf.Struct mock_response = 3 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto index 59f00fc67d56..b8f893fdce82 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/session_service.proto @@ -22,6 +22,7 @@ import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/ces/v1beta/common.proto"; import "google/cloud/ces/v1beta/example.proto"; +import "google/cloud/ces/v1beta/mocks.proto"; import "google/cloud/ces/v1beta/search_suggestions.proto"; import "google/protobuf/struct.proto"; @@ -148,6 +149,31 @@ enum AudioEncoding { ALAW = 3; } +// Mock tool calls configuration for the session. +message MockConfig { + // What to do when a tool call doesn't match any mocked tool calls. + enum UnmatchedToolCallBehavior { + // Default value. This value is unused. + UNMATCHED_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 0; + + // Throw an error for any tool calls that don't match a mock expected input + // pattern. + FAIL = 1; + + // For unmatched tool calls, pass the tool call through to real tool. + PASS_THROUGH = 2; + } + + // Optional. All tool calls to mock for the duration of the session. + repeated MockedToolCall mocked_tool_calls = 1 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Beavhior for tool calls that don't match any args patterns in + // mocked_tool_calls. + UnmatchedToolCallBehavior unmatched_tool_call_behavior = 2 + [(google.api.field_behavior) = REQUIRED]; +} + // InputAudioConfig configures how the CES agent should interpret the incoming // audio data. message InputAudioConfig { diff --git a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/tool_service.proto b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/tool_service.proto index deb16b4bc4c0..6a6ba4758a91 100644 --- a/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/tool_service.proto +++ b/java-ces/proto-google-cloud-ces-v1beta/src/main/proto/google/cloud/ces/v1beta/tool_service.proto @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/ces/v1beta/schema.proto"; +import "google/cloud/ces/v1beta/session_service.proto"; import "google/cloud/ces/v1beta/tool.proto"; import "google/cloud/ces/v1beta/toolset_tool.proto"; import "google/protobuf/struct.proto"; @@ -105,6 +106,11 @@ message ExecuteToolRequest { // Optional. The input parameters and values for the tool in JSON object // format. google.protobuf.Struct args = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Mock configuration for the tool execution. + // If this field is set, tools that call other tools will be + // mocked based on the provided patterns and responses. + MockConfig mock_config = 7 [(google.api.field_behavior) = OPTIONAL]; } // Response message for diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluations.java new file mode 100644 index 000000000000..a27f787a7ebc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluations.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportOptions; +import com.google.longrunning.Operation; +import java.util.ArrayList; + +public class AsyncExportEvaluations { + + public static void main(String[] args) throws Exception { + asyncExportEvaluations(); + } + + public static void asyncExportEvaluations() 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllNames(new ArrayList()) + .setExportOptions(ExportOptions.newBuilder().build()) + .setIncludeEvaluationResults(true) + .setIncludeEvaluations(true) + .build(); + ApiFuture future = + evaluationServiceClient.exportEvaluationsCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluationsLRO.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluationsLRO.java new file mode 100644 index 000000000000..2cee87512dfc --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/AsyncExportEvaluationsLRO.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; +import com.google.cloud.ces.v1beta.ExportOptions; +import com.google.cloud.ces.v1beta.OperationMetadata; +import java.util.ArrayList; + +public class AsyncExportEvaluationsLRO { + + public static void main(String[] args) throws Exception { + asyncExportEvaluationsLRO(); + } + + public static void asyncExportEvaluationsLRO() 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllNames(new ArrayList()) + .setExportOptions(ExportOptions.newBuilder().build()) + .setIncludeEvaluationResults(true) + .setIncludeEvaluations(true) + .build(); + OperationFuture future = + evaluationServiceClient.exportEvaluationsOperationCallable().futureCall(request); + // Do something. + ExportEvaluationsResponse response = future.get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_LRO_async] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluations.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluations.java new file mode 100644 index 000000000000..280f512e566f --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluations.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_sync] +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsRequest; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; +import com.google.cloud.ces.v1beta.ExportOptions; +import java.util.ArrayList; + +public class SyncExportEvaluations { + + public static void main(String[] args) throws Exception { + syncExportEvaluations(); + } + + public static void syncExportEvaluations() 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + ExportEvaluationsRequest request = + ExportEvaluationsRequest.newBuilder() + .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) + .addAllNames(new ArrayList()) + .setExportOptions(ExportOptions.newBuilder().build()) + .setIncludeEvaluationResults(true) + .setIncludeEvaluations(true) + .build(); + ExportEvaluationsResponse response = + evaluationServiceClient.exportEvaluationsAsync(request).get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsAppname.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsAppname.java new file mode 100644 index 000000000000..aa0ae7537687 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsAppname.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_Appname_sync] +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; + +public class SyncExportEvaluationsAppname { + + public static void main(String[] args) throws Exception { + syncExportEvaluationsAppname(); + } + + public static void syncExportEvaluationsAppname() 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + AppName parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]"); + ExportEvaluationsResponse response = + evaluationServiceClient.exportEvaluationsAsync(parent).get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_Appname_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsString.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsString.java new file mode 100644 index 000000000000..cc01e7a50624 --- /dev/null +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/evaluationservice/exportevaluations/SyncExportEvaluationsString.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.ces.v1beta.samples; + +// [START ces_v1beta_generated_EvaluationService_ExportEvaluations_String_sync] +import com.google.cloud.ces.v1beta.AppName; +import com.google.cloud.ces.v1beta.EvaluationServiceClient; +import com.google.cloud.ces.v1beta.ExportEvaluationsResponse; + +public class SyncExportEvaluationsString { + + public static void main(String[] args) throws Exception { + syncExportEvaluationsString(); + } + + public static void syncExportEvaluationsString() 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + String parent = AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString(); + ExportEvaluationsResponse response = + evaluationServiceClient.exportEvaluationsAsync(parent).get(); + } + } +} +// [END ces_v1beta_generated_EvaluationService_ExportEvaluations_String_sync] diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/AsyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/AsyncExecuteTool.java index 03c83d6d3a56..8956968f1e36 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/AsyncExecuteTool.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/AsyncExecuteTool.java @@ -21,6 +21,7 @@ import com.google.cloud.ces.v1beta.AppName; import com.google.cloud.ces.v1beta.ExecuteToolRequest; import com.google.cloud.ces.v1beta.ExecuteToolResponse; +import com.google.cloud.ces.v1beta.MockConfig; import com.google.cloud.ces.v1beta.ToolServiceClient; import com.google.protobuf.Struct; @@ -41,6 +42,7 @@ public static void asyncExecuteTool() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ApiFuture future = toolServiceClient.executeToolCallable().futureCall(request); diff --git a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/SyncExecuteTool.java b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/SyncExecuteTool.java index a04abcc0a5f0..c92f063794f4 100644 --- a/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/SyncExecuteTool.java +++ b/java-ces/samples/snippets/generated/com/google/cloud/ces/v1beta/toolservice/executetool/SyncExecuteTool.java @@ -20,6 +20,7 @@ import com.google.cloud.ces.v1beta.AppName; import com.google.cloud.ces.v1beta.ExecuteToolRequest; import com.google.cloud.ces.v1beta.ExecuteToolResponse; +import com.google.cloud.ces.v1beta.MockConfig; import com.google.cloud.ces.v1beta.ToolServiceClient; import com.google.protobuf.Struct; @@ -40,6 +41,7 @@ public static void syncExecuteTool() throws Exception { ExecuteToolRequest.newBuilder() .setParent(AppName.of("[PROJECT]", "[LOCATION]", "[APP]").toString()) .setArgs(Struct.newBuilder().build()) + .setMockConfig(MockConfig.newBuilder().build()) .build(); ExecuteToolResponse response = toolServiceClient.executeTool(request); } diff --git a/java-channel/README.md b/java-channel/README.md index 913268f92071..cbb932557afb 100644 --- a/java-channel/README.md +++ b/java-channel/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-chat/README.md b/java-chat/README.md index bd8ddb7cf7c8..d93ab91a7ad0 100644 --- a/java-chat/README.md +++ b/java-chat/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-chronicle/README.md b/java-chronicle/README.md index f99becb50d75..127408863414 100644 --- a/java-chronicle/README.md +++ b/java-chronicle/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-cloudapiregistry/README.md b/java-cloudapiregistry/README.md index 6d6b2f6c3412..6a4430671f04 100644 --- a/java-cloudapiregistry/README.md +++ b/java-cloudapiregistry/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-cloudbuild/README.md b/java-cloudbuild/README.md index ea83eb23398f..4ea36052571d 100644 --- a/java-cloudbuild/README.md +++ b/java-cloudbuild/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-cloudcommerceconsumerprocurement/README.md b/java-cloudcommerceconsumerprocurement/README.md index 05f539000aec..36280f78bca6 100644 --- a/java-cloudcommerceconsumerprocurement/README.md +++ b/java-cloudcommerceconsumerprocurement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-cloudcontrolspartner/README.md b/java-cloudcontrolspartner/README.md index d7669b8a16aa..b4a7e15bc66d 100644 --- a/java-cloudcontrolspartner/README.md +++ b/java-cloudcontrolspartner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-cloudquotas/README.md b/java-cloudquotas/README.md index 5ec4a9d1c8a8..6d8ac5cf0045 100644 --- a/java-cloudquotas/README.md +++ b/java-cloudquotas/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-cloudsecuritycompliance/README.md b/java-cloudsecuritycompliance/README.md index 1f444108f2a0..b639ede70d11 100644 --- a/java-cloudsecuritycompliance/README.md +++ b/java-cloudsecuritycompliance/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-cloudsupport/README.md b/java-cloudsupport/README.md index 2bbf16a7c7a2..83218edb67e9 100644 --- a/java-cloudsupport/README.md +++ b/java-cloudsupport/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-compute/README.md b/java-compute/README.md index c49b515c1d6f..1eec3366c0bd 100644 --- a/java-compute/README.md +++ b/java-compute/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-confidentialcomputing/README.md b/java-confidentialcomputing/README.md index acfd55fb98a7..ae33afb9ede3 100644 --- a/java-confidentialcomputing/README.md +++ b/java-confidentialcomputing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-configdelivery/README.md b/java-configdelivery/README.md index a6ff0195dbc7..37b3477831e9 100644 --- a/java-configdelivery/README.md +++ b/java-configdelivery/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-connectgateway/README.md b/java-connectgateway/README.md index aa0116ad336f..453be0126648 100644 --- a/java-connectgateway/README.md +++ b/java-connectgateway/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-contact-center-insights/README.md b/java-contact-center-insights/README.md index 322c6e5f8813..e35370997c46 100644 --- a/java-contact-center-insights/README.md +++ b/java-contact-center-insights/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-container/README.md b/java-container/README.md index 9c44302180bb..4f9388d21d37 100644 --- a/java-container/README.md +++ b/java-container/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-containeranalysis/README.md b/java-containeranalysis/README.md index 249e933d555a..6da3c37fcb24 100644 --- a/java-containeranalysis/README.md +++ b/java-containeranalysis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-contentwarehouse/README.md b/java-contentwarehouse/README.md index d5b09818e109..1656d2049781 100644 --- a/java-contentwarehouse/README.md +++ b/java-contentwarehouse/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-data-fusion/README.md b/java-data-fusion/README.md index 9a0f41f3314b..8f1d6850df46 100644 --- a/java-data-fusion/README.md +++ b/java-data-fusion/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-databasecenter/README.md b/java-databasecenter/README.md index 175ceba4f45e..90a2a8c5c868 100644 --- a/java-databasecenter/README.md +++ b/java-databasecenter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-datacatalog/README.md b/java-datacatalog/README.md index e825a06212cb..98420871d359 100644 --- a/java-datacatalog/README.md +++ b/java-datacatalog/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-dataflow/README.md b/java-dataflow/README.md index a6a452b68ae3..825e6eda6868 100644 --- a/java-dataflow/README.md +++ b/java-dataflow/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-dataform/README.md b/java-dataform/README.md index 0ceec3754f71..62cf4efd8700 100644 --- a/java-dataform/README.md +++ b/java-dataform/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-datalabeling/README.md b/java-datalabeling/README.md index 039d696b7d94..8b233c77be22 100644 --- a/java-datalabeling/README.md +++ b/java-datalabeling/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-datalineage/README.md b/java-datalineage/README.md index 6d205b1728ff..b550d06800b6 100644 --- a/java-datalineage/README.md +++ b/java-datalineage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-dataplex/README.md b/java-dataplex/README.md index be66b9b371f2..1b07b62f7b3b 100644 --- a/java-dataplex/README.md +++ b/java-dataplex/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-dataproc-metastore/README.md b/java-dataproc-metastore/README.md index c4316ca507db..a3e85124324f 100644 --- a/java-dataproc-metastore/README.md +++ b/java-dataproc-metastore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-dataproc/README.md b/java-dataproc/README.md index 6b12094cdbf4..c47d0204d334 100644 --- a/java-dataproc/README.md +++ b/java-dataproc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-datastore/README.md b/java-datastore/README.md index 87c24967f9c9..227c2422ab81 100644 --- a/java-datastore/README.md +++ b/java-datastore/README.md @@ -49,7 +49,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.79.0') +implementation platform('com.google.cloud:libraries-bom:26.80.0') implementation 'com.google.cloud:google-cloud-datastore' ``` diff --git a/java-datastream/README.md b/java-datastream/README.md index 57ea057c1b8e..c87838711913 100644 --- a/java-datastream/README.md +++ b/java-datastream/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-deploy/README.md b/java-deploy/README.md index 43c1e24df8b1..e525ebbacbd7 100644 --- a/java-deploy/README.md +++ b/java-deploy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-developerconnect/README.md b/java-developerconnect/README.md index 0d009d22f3ea..22bd2909be3b 100644 --- a/java-developerconnect/README.md +++ b/java-developerconnect/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-devicestreaming/README.md b/java-devicestreaming/README.md index 30887993c75f..3e93facfa7bb 100644 --- a/java-devicestreaming/README.md +++ b/java-devicestreaming/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-dialogflow-cx/README.md b/java-dialogflow-cx/README.md index 8d9397cb2db2..51bcc7f33701 100644 --- a/java-dialogflow-cx/README.md +++ b/java-dialogflow-cx/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-dialogflow/README.md b/java-dialogflow/README.md index 5a20dcb1802a..b387c4ba9983 100644 --- a/java-dialogflow/README.md +++ b/java-dialogflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-discoveryengine/README.md b/java-discoveryengine/README.md index 0c069c5ff508..061ea787dd26 100644 --- a/java-discoveryengine/README.md +++ b/java-discoveryengine/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-distributedcloudedge/README.md b/java-distributedcloudedge/README.md index 4f31fb6840b7..480d014cde33 100644 --- a/java-distributedcloudedge/README.md +++ b/java-distributedcloudedge/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-dlp/README.md b/java-dlp/README.md index 764721ffb499..a20ed262820f 100644 --- a/java-dlp/README.md +++ b/java-dlp/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-dms/README.md b/java-dms/README.md index c2165a5124d4..ee6026d479cc 100644 --- a/java-dms/README.md +++ b/java-dms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-document-ai/README.md b/java-document-ai/README.md index 62020de1cb2f..e1d34d1dfa20 100644 --- a/java-document-ai/README.md +++ b/java-document-ai/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-domains/README.md b/java-domains/README.md index bf9931e1e3b7..decc52fa3452 100644 --- a/java-domains/README.md +++ b/java-domains/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-edgenetwork/README.md b/java-edgenetwork/README.md index cb81ea4f1429..5e49fb7cf038 100644 --- a/java-edgenetwork/README.md +++ b/java-edgenetwork/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-enterpriseknowledgegraph/README.md b/java-enterpriseknowledgegraph/README.md index 368d8b0e526f..34cb5e0715a7 100644 --- a/java-enterpriseknowledgegraph/README.md +++ b/java-enterpriseknowledgegraph/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-errorreporting/README.md b/java-errorreporting/README.md index 1512689e7156..0dd70fcab297 100644 --- a/java-errorreporting/README.md +++ b/java-errorreporting/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-essential-contacts/README.md b/java-essential-contacts/README.md index 303ac25ba619..2dd316aabd82 100644 --- a/java-essential-contacts/README.md +++ b/java-essential-contacts/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-eventarc-publishing/README.md b/java-eventarc-publishing/README.md index 001b422caddf..d27aa49b7ffb 100644 --- a/java-eventarc-publishing/README.md +++ b/java-eventarc-publishing/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-eventarc/README.md b/java-eventarc/README.md index 6d4f2da858a7..b107f6efc532 100644 --- a/java-eventarc/README.md +++ b/java-eventarc/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-filestore/README.md b/java-filestore/README.md index 2137f187bb20..77ab536b641b 100644 --- a/java-filestore/README.md +++ b/java-filestore/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-financialservices/README.md b/java-financialservices/README.md index 15dcf6d7d632..d991d00b3268 100644 --- a/java-financialservices/README.md +++ b/java-financialservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-functions/README.md b/java-functions/README.md index 64c893e4b509..7220a2902103 100644 --- a/java-functions/README.md +++ b/java-functions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-gdchardwaremanagement/README.md b/java-gdchardwaremanagement/README.md index 4ebf289ad12d..f327f54c57b7 100644 --- a/java-gdchardwaremanagement/README.md +++ b/java-gdchardwaremanagement/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-geminidataanalytics/README.md b/java-geminidataanalytics/README.md index a6ab8d10b0b3..1bf311cf2e57 100644 --- a/java-geminidataanalytics/README.md +++ b/java-geminidataanalytics/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-gke-backup/README.md b/java-gke-backup/README.md index d5fb5b21da75..9b5792c463ce 100644 --- a/java-gke-backup/README.md +++ b/java-gke-backup/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-gke-connect-gateway/README.md b/java-gke-connect-gateway/README.md index a9f794fa0d66..baf6cd79714b 100644 --- a/java-gke-connect-gateway/README.md +++ b/java-gke-connect-gateway/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-gke-multi-cloud/README.md b/java-gke-multi-cloud/README.md index 5c2182f5d0c6..ff067aa7ff72 100644 --- a/java-gke-multi-cloud/README.md +++ b/java-gke-multi-cloud/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-gkehub/README.md b/java-gkehub/README.md index 9fa72e953ab0..d5b99b784f6b 100644 --- a/java-gkehub/README.md +++ b/java-gkehub/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-gkerecommender/README.md b/java-gkerecommender/README.md index d0e6f92b8643..112e4af54862 100644 --- a/java-gkerecommender/README.md +++ b/java-gkerecommender/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-gsuite-addons/README.md b/java-gsuite-addons/README.md index ffd1ed2687d7..53ca99a10d81 100644 --- a/java-gsuite-addons/README.md +++ b/java-gsuite-addons/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-hypercomputecluster/README.md b/java-hypercomputecluster/README.md index 36ba2fb18f6b..6787416e4b27 100644 --- a/java-hypercomputecluster/README.md +++ b/java-hypercomputecluster/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index b94718266aa5..6600a41c6571 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-iam/README.md b/java-iam/README.md index a31d56fecfdc..05b669204eba 100644 --- a/java-iam/README.md +++ b/java-iam/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-iamcredentials/README.md b/java-iamcredentials/README.md index 957ac5d2c201..a0c3061d88ce 100644 --- a/java-iamcredentials/README.md +++ b/java-iamcredentials/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-iap/README.md b/java-iap/README.md index 94901f359406..269bfbde1aa3 100644 --- a/java-iap/README.md +++ b/java-iap/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-ids/README.md b/java-ids/README.md index eb8e042a62db..cff34b34688d 100644 --- a/java-ids/README.md +++ b/java-ids/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-infra-manager/README.md b/java-infra-manager/README.md index ffe5fb54fe43..ca46fce0088f 100644 --- a/java-infra-manager/README.md +++ b/java-infra-manager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-iot/README.md b/java-iot/README.md index d9ffe28ab42f..3867d69f60bd 100644 --- a/java-iot/README.md +++ b/java-iot/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-kms/README.md b/java-kms/README.md index d6a4a2b4d474..f178b8731b4e 100644 --- a/java-kms/README.md +++ b/java-kms/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-kmsinventory/README.md b/java-kmsinventory/README.md index e36de569ccd4..228eb47a11d3 100644 --- a/java-kmsinventory/README.md +++ b/java-kmsinventory/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-language/README.md b/java-language/README.md index 018d9fb509f3..50b6e9b88846 100644 --- a/java-language/README.md +++ b/java-language/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-licensemanager/README.md b/java-licensemanager/README.md index 7a15aecf68a3..1609a049665c 100644 --- a/java-licensemanager/README.md +++ b/java-licensemanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-life-sciences/README.md b/java-life-sciences/README.md index 2b5c5e1c24f3..2465b6c2d742 100644 --- a/java-life-sciences/README.md +++ b/java-life-sciences/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-locationfinder/README.md b/java-locationfinder/README.md index 75a8e1c30307..8d4d1c313301 100644 --- a/java-locationfinder/README.md +++ b/java-locationfinder/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-logging/README.md b/java-logging/README.md index cb0e813f5c8d..c9cca3391a07 100644 --- a/java-logging/README.md +++ b/java-logging/README.md @@ -51,7 +51,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.79.0') +implementation platform('com.google.cloud:libraries-bom:26.80.0') implementation 'com.google.cloud:google-cloud-logging' ``` diff --git a/java-lustre/README.md b/java-lustre/README.md index 7b70cfe24556..7551b79f133a 100644 --- a/java-lustre/README.md +++ b/java-lustre/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-maintenance/README.md b/java-maintenance/README.md index 36d0cf85861e..b5a13a365cd9 100644 --- a/java-maintenance/README.md +++ b/java-maintenance/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-managed-identities/README.md b/java-managed-identities/README.md index b18b2509605f..9c7c63ed3f70 100644 --- a/java-managed-identities/README.md +++ b/java-managed-identities/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-managedkafka/README.md b/java-managedkafka/README.md index f33f1083fd02..36e85f9e4472 100644 --- a/java-managedkafka/README.md +++ b/java-managedkafka/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-mediatranslation/README.md b/java-mediatranslation/README.md index 5294149830b3..3bbfad5159a9 100644 --- a/java-mediatranslation/README.md +++ b/java-mediatranslation/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-meet/README.md b/java-meet/README.md index f2cbc3ce4b5e..5df639e7ee32 100644 --- a/java-meet/README.md +++ b/java-meet/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-memcache/README.md b/java-memcache/README.md index 8e085a505c1a..9c982336f77a 100644 --- a/java-memcache/README.md +++ b/java-memcache/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-migrationcenter/README.md b/java-migrationcenter/README.md index 6429003e76d2..a34aa13ddbac 100644 --- a/java-migrationcenter/README.md +++ b/java-migrationcenter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-modelarmor/README.md b/java-modelarmor/README.md index e59ca775b971..7efc9b8bbcbe 100644 --- a/java-modelarmor/README.md +++ b/java-modelarmor/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-monitoring-dashboards/README.md b/java-monitoring-dashboards/README.md index 2f976bc3ccf0..f462e426aaf1 100644 --- a/java-monitoring-dashboards/README.md +++ b/java-monitoring-dashboards/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-monitoring-metricsscope/README.md b/java-monitoring-metricsscope/README.md index 2106cb332e32..9b7eb85d83e2 100644 --- a/java-monitoring-metricsscope/README.md +++ b/java-monitoring-metricsscope/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-monitoring/README.md b/java-monitoring/README.md index 99a786b03881..2ccffb82b760 100644 --- a/java-monitoring/README.md +++ b/java-monitoring/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-netapp/README.md b/java-netapp/README.md index 1d512427ec7f..4c2930f1608a 100644 --- a/java-netapp/README.md +++ b/java-netapp/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-network-management/README.md b/java-network-management/README.md index d3cc522355ab..b27227a7e983 100644 --- a/java-network-management/README.md +++ b/java-network-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-network-security/README.md b/java-network-security/README.md index d80584442e7c..55b04c3845d9 100644 --- a/java-network-security/README.md +++ b/java-network-security/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-networkconnectivity/README.md b/java-networkconnectivity/README.md index 734e99826d4d..b21a1e781f16 100644 --- a/java-networkconnectivity/README.md +++ b/java-networkconnectivity/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-networkservices/README.md b/java-networkservices/README.md index 8168bcb689b8..b8b63bb0cfe4 100644 --- a/java-networkservices/README.md +++ b/java-networkservices/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-notebooks/README.md b/java-notebooks/README.md index 5063392f0ea1..e90120ba1a2b 100644 --- a/java-notebooks/README.md +++ b/java-notebooks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-optimization/README.md b/java-optimization/README.md index 3efcccc36364..1c8d39ab4ec9 100644 --- a/java-optimization/README.md +++ b/java-optimization/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-oracledatabase/README.md b/java-oracledatabase/README.md index 4bf75b6e0430..27e4e4ea0004 100644 --- a/java-oracledatabase/README.md +++ b/java-oracledatabase/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-orchestration-airflow/README.md b/java-orchestration-airflow/README.md index d41fffe7202c..a0ca6489114e 100644 --- a/java-orchestration-airflow/README.md +++ b/java-orchestration-airflow/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-orgpolicy/README.md b/java-orgpolicy/README.md index 1cf17597ef09..72c2bd8825a0 100644 --- a/java-orgpolicy/README.md +++ b/java-orgpolicy/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-os-config/README.md b/java-os-config/README.md index 624ab171b342..50206e59aa40 100644 --- a/java-os-config/README.md +++ b/java-os-config/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-os-login/README.md b/java-os-login/README.md index d6ba7e25033d..de34bb0b0847 100644 --- a/java-os-login/README.md +++ b/java-os-login/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-parallelstore/README.md b/java-parallelstore/README.md index 91649b9b2348..3602d4eabb85 100644 --- a/java-parallelstore/README.md +++ b/java-parallelstore/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-parametermanager/README.md b/java-parametermanager/README.md index 57e12f888e21..3c5cb1b81eb2 100644 --- a/java-parametermanager/README.md +++ b/java-parametermanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-phishingprotection/README.md b/java-phishingprotection/README.md index 3f53867fab47..2b4175b2203a 100644 --- a/java-phishingprotection/README.md +++ b/java-phishingprotection/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-policy-troubleshooter/README.md b/java-policy-troubleshooter/README.md index 85cad9efd7fb..76fbd4b49d69 100644 --- a/java-policy-troubleshooter/README.md +++ b/java-policy-troubleshooter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-policysimulator/README.md b/java-policysimulator/README.md index c84b2a146567..7602e73505eb 100644 --- a/java-policysimulator/README.md +++ b/java-policysimulator/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-private-catalog/README.md b/java-private-catalog/README.md index 5298bce3926c..93a635e151a6 100644 --- a/java-private-catalog/README.md +++ b/java-private-catalog/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-privilegedaccessmanager/README.md b/java-privilegedaccessmanager/README.md index 5b353100428d..bc7c35a0610e 100644 --- a/java-privilegedaccessmanager/README.md +++ b/java-privilegedaccessmanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-profiler/README.md b/java-profiler/README.md index 7bd3a8d2cf36..2dd8c785e857 100644 --- a/java-profiler/README.md +++ b/java-profiler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-publicca/README.md b/java-publicca/README.md index a6ab2cd9e03b..3e79ab32da1d 100644 --- a/java-publicca/README.md +++ b/java-publicca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-rapidmigrationassessment/README.md b/java-rapidmigrationassessment/README.md index 876edd7ac7ed..3334c1c0a232 100644 --- a/java-rapidmigrationassessment/README.md +++ b/java-rapidmigrationassessment/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-recaptchaenterprise/README.md b/java-recaptchaenterprise/README.md index 4fa931357438..285355eacbc3 100644 --- a/java-recaptchaenterprise/README.md +++ b/java-recaptchaenterprise/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-recommendations-ai/README.md b/java-recommendations-ai/README.md index 024fb9a21ebb..39fadd094959 100644 --- a/java-recommendations-ai/README.md +++ b/java-recommendations-ai/README.md @@ -24,7 +24,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-recommender/README.md b/java-recommender/README.md index 80b56f499db5..2b3ab2b34f81 100644 --- a/java-recommender/README.md +++ b/java-recommender/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-redis-cluster/README.md b/java-redis-cluster/README.md index 74f81ce56273..90b7d3f36b2c 100644 --- a/java-redis-cluster/README.md +++ b/java-redis-cluster/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-redis/README.md b/java-redis/README.md index d9cfc2be1144..7c0b4f2c707d 100644 --- a/java-redis/README.md +++ b/java-redis/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-resourcemanager/README.md b/java-resourcemanager/README.md index 4401c899b6e3..006c2c9a65d0 100644 --- a/java-resourcemanager/README.md +++ b/java-resourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-retail/README.md b/java-retail/README.md index dda9e6ec0010..081d44456ce6 100644 --- a/java-retail/README.md +++ b/java-retail/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-run/README.md b/java-run/README.md index aa4acf0019f1..c08931993241 100644 --- a/java-run/README.md +++ b/java-run/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-saasservicemgmt/README.md b/java-saasservicemgmt/README.md index d97d017c9c70..e9a87e22c03a 100644 --- a/java-saasservicemgmt/README.md +++ b/java-saasservicemgmt/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java index 54e98b8f9a7a..8d1a1abfe48c 100644 --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasDeploymentsClient.java @@ -641,7 +641,10 @@ * * *

ListLocations - *

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

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

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

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

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

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

*
    @@ -4496,6 +4499,19 @@ public final UnaryCallable deleteReleaseCallable() /** * Lists information about the supported locations for this service. * + *

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

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

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

    Sample code: * *

    {@code
    @@ -4529,6 +4545,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
       /**
        * Lists information about the supported locations for this service.
        *
    +   * 

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

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

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

    Sample code: * *

    {@code
    @@ -4563,6 +4592,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
       /**
        * Lists information about the supported locations for this service.
        *
    +   * 

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

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

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

    Sample code: * *

    {@code
    diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java
    index 00be275bb6da..97ad5af7d29b 100644
    --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java
    +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/SaasRolloutsClient.java
    @@ -260,7 +260,10 @@
      *    
      *    
      *      

    ListLocations - *

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

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

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

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

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

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

    *
      @@ -1649,6 +1652,19 @@ public final UnaryCallable deleteRolloutKindCal /** * Lists information about the supported locations for this service. * + *

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

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

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

      Sample code: * *

      {@code
      @@ -1682,6 +1698,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
         /**
          * Lists information about the supported locations for this service.
          *
      +   * 

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

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

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

      Sample code: * *

      {@code
      @@ -1716,6 +1745,19 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
         /**
          * Lists information about the supported locations for this service.
          *
      +   * 

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

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

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

      Sample code: * *

      {@code
      diff --git a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/package-info.java b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/package-info.java
      index 628708c85f7f..054eae140354 100644
      --- a/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/package-info.java
      +++ b/java-saasservicemgmt/google-cloud-saasservicemgmt/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/package-info.java
      @@ -15,7 +15,7 @@
        */
       
       /**
      - * A client to SaaS Runtime API
      + * A client to App Lifecycle Manager API
        *
        * 

      The interfaces provided are listed below, along with usage samples. * diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Tenant.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Tenant.java index 3f7f5d6e505f..97ebd80f6e3a 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Tenant.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/Tenant.java @@ -169,9 +169,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. * - * The relationship with a consumer resource can be used by SaaS Runtime for - * retrieving consumer-defined settings and policies such as maintenance - * policies (using Unified Maintenance Policy API). + * The relationship with a consumer resource can be used by App Lifecycle + * Manager for retrieving consumer-defined settings and policies such as + * maintenance policies (using Unified Maintenance Policy API). *

      * * @@ -200,9 +200,9 @@ public java.lang.String getConsumerResource() { * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. * - * The relationship with a consumer resource can be used by SaaS Runtime for - * retrieving consumer-defined settings and policies such as maintenance - * policies (using Unified Maintenance Policy API). + * The relationship with a consumer resource can be used by App Lifecycle + * Manager for retrieving consumer-defined settings and policies such as + * maintenance policies (using Unified Maintenance Policy API). *
      * * @@ -234,8 +234,8 @@ public com.google.protobuf.ByteString getConsumerResourceBytes() { * *
          * Required. Immutable. A reference to the Saas that defines the product
      -   * (managed service) that the producer wants to manage with SaaS Runtime. Part
      -   * of the SaaS Runtime common data model.
      +   * (managed service) that the producer wants to manage with App Lifecycle
      +   * Manager. Part of the App Lifecycle Manager common data model.
          * 
      * * @@ -262,8 +262,8 @@ public java.lang.String getSaas() { * *
          * Required. Immutable. A reference to the Saas that defines the product
      -   * (managed service) that the producer wants to manage with SaaS Runtime. Part
      -   * of the SaaS Runtime common data model.
      +   * (managed service) that the producer wants to manage with App Lifecycle
      +   * Manager. Part of the App Lifecycle Manager common data model.
          * 
      * * @@ -1500,9 +1500,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. * - * The relationship with a consumer resource can be used by SaaS Runtime for - * retrieving consumer-defined settings and policies such as maintenance - * policies (using Unified Maintenance Policy API). + * The relationship with a consumer resource can be used by App Lifecycle + * Manager for retrieving consumer-defined settings and policies such as + * maintenance policies (using Unified Maintenance Policy API). *
      * * @@ -1530,9 +1530,9 @@ public java.lang.String getConsumerResource() { * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. * - * The relationship with a consumer resource can be used by SaaS Runtime for - * retrieving consumer-defined settings and policies such as maintenance - * policies (using Unified Maintenance Policy API). + * The relationship with a consumer resource can be used by App Lifecycle + * Manager for retrieving consumer-defined settings and policies such as + * maintenance policies (using Unified Maintenance Policy API). *
    * * @@ -1560,9 +1560,9 @@ public com.google.protobuf.ByteString getConsumerResourceBytes() { * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. * - * The relationship with a consumer resource can be used by SaaS Runtime for - * retrieving consumer-defined settings and policies such as maintenance - * policies (using Unified Maintenance Policy API). + * The relationship with a consumer resource can be used by App Lifecycle + * Manager for retrieving consumer-defined settings and policies such as + * maintenance policies (using Unified Maintenance Policy API). *
    * * @@ -1589,9 +1589,9 @@ public Builder setConsumerResource(java.lang.String value) { * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. * - * The relationship with a consumer resource can be used by SaaS Runtime for - * retrieving consumer-defined settings and policies such as maintenance - * policies (using Unified Maintenance Policy API). + * The relationship with a consumer resource can be used by App Lifecycle + * Manager for retrieving consumer-defined settings and policies such as + * maintenance policies (using Unified Maintenance Policy API). *
    * * @@ -1614,9 +1614,9 @@ public Builder clearConsumerResource() { * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. * - * The relationship with a consumer resource can be used by SaaS Runtime for - * retrieving consumer-defined settings and policies such as maintenance - * policies (using Unified Maintenance Policy API). + * The relationship with a consumer resource can be used by App Lifecycle + * Manager for retrieving consumer-defined settings and policies such as + * maintenance policies (using Unified Maintenance Policy API). * * * @@ -1644,8 +1644,8 @@ public Builder setConsumerResourceBytes(com.google.protobuf.ByteString value) { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model.
          * 
    * * @@ -1671,8 +1671,8 @@ public java.lang.String getSaas() { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model.
          * 
    * * @@ -1698,8 +1698,8 @@ public com.google.protobuf.ByteString getSaasBytes() { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model.
          * 
    * * @@ -1724,8 +1724,8 @@ public Builder setSaas(java.lang.String value) { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model.
          * 
    * * @@ -1746,8 +1746,8 @@ public Builder clearSaas() { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model.
          * 
    * * diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantOrBuilder.java index 69a03303bd8b..c80bdc27e1a1 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantOrBuilder.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/TenantOrBuilder.java @@ -65,9 +65,9 @@ public interface TenantOrBuilder * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. * - * The relationship with a consumer resource can be used by SaaS Runtime for - * retrieving consumer-defined settings and policies such as maintenance - * policies (using Unified Maintenance Policy API). + * The relationship with a consumer resource can be used by App Lifecycle + * Manager for retrieving consumer-defined settings and policies such as + * maintenance policies (using Unified Maintenance Policy API). * * * @@ -85,9 +85,9 @@ public interface TenantOrBuilder * Optional. Immutable. A reference to the consumer resource this SaaS Tenant * is representing. * - * The relationship with a consumer resource can be used by SaaS Runtime for - * retrieving consumer-defined settings and policies such as maintenance - * policies (using Unified Maintenance Policy API). + * The relationship with a consumer resource can be used by App Lifecycle + * Manager for retrieving consumer-defined settings and policies such as + * maintenance policies (using Unified Maintenance Policy API). * * * @@ -103,8 +103,8 @@ public interface TenantOrBuilder * *
        * Required. Immutable. A reference to the Saas that defines the product
    -   * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -   * of the SaaS Runtime common data model.
    +   * (managed service) that the producer wants to manage with App Lifecycle
    +   * Manager. Part of the App Lifecycle Manager common data model.
        * 
    * * @@ -120,8 +120,8 @@ public interface TenantOrBuilder * *
        * Required. Immutable. A reference to the Saas that defines the product
    -   * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -   * of the SaaS Runtime common data model.
    +   * (managed service) that the producer wants to manage with App Lifecycle
    +   * Manager. Part of the App Lifecycle Manager common data model.
        * 
    * * diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMapping.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMapping.java index 2d9666dbaaf6..cddb1d4d1c87 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMapping.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMapping.java @@ -186,8 +186,8 @@ public com.google.protobuf.ByteString getInputVariableBytes() { * * *
    -   * Optional. Tells SaaS Runtime if this mapping should be used during lookup
    -   * or not
    +   * Optional. Tells App Lifecycle Manager if this mapping should be used during
    +   * lookup or not
        * 
    * * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -793,8 +793,8 @@ public Builder setInputVariableBytes(com.google.protobuf.ByteString value) { * * *
    -     * Optional. Tells SaaS Runtime if this mapping should be used during lookup
    -     * or not
    +     * Optional. Tells App Lifecycle Manager if this mapping should be used during
    +     * lookup or not
          * 
    * * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -810,8 +810,8 @@ public boolean getIgnoreForLookup() { * * *
    -     * Optional. Tells SaaS Runtime if this mapping should be used during lookup
    -     * or not
    +     * Optional. Tells App Lifecycle Manager if this mapping should be used during
    +     * lookup or not
          * 
    * * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; @@ -831,8 +831,8 @@ public Builder setIgnoreForLookup(boolean value) { * * *
    -     * Optional. Tells SaaS Runtime if this mapping should be used during lookup
    -     * or not
    +     * Optional. Tells App Lifecycle Manager if this mapping should be used during
    +     * lookup or not
          * 
    * * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMappingOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMappingOrBuilder.java index 4979b2789814..910c33cbe5c0 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMappingOrBuilder.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/ToMappingOrBuilder.java @@ -84,8 +84,8 @@ public interface ToMappingOrBuilder * * *
    -   * Optional. Tells SaaS Runtime if this mapping should be used during lookup
    -   * or not
    +   * Optional. Tells App Lifecycle Manager if this mapping should be used during
    +   * lookup or not
        * 
    * * bool ignore_for_lookup = 3 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKind.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKind.java index 1e972ed3f1ba..8015f19d8bdb 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKind.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKind.java @@ -526,8 +526,9 @@ public int getOutputVariableMappingsCount() { * *
        * Required. Immutable. A reference to the Saas that defines the product
    -   * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -   * of the SaaS Runtime common data model. Immutable once set.
    +   * (managed service) that the producer wants to manage with App Lifecycle
    +   * Manager. Part of the App Lifecycle Manager common data model. Immutable
    +   * once set.
        * 
    * * @@ -554,8 +555,9 @@ public java.lang.String getSaas() { * *
        * Required. Immutable. A reference to the Saas that defines the product
    -   * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -   * of the SaaS Runtime common data model. Immutable once set.
    +   * (managed service) that the producer wants to manage with App Lifecycle
    +   * Manager. Part of the App Lifecycle Manager common data model. Immutable
    +   * once set.
        * 
    * * @@ -3523,8 +3525,9 @@ public Builder removeOutputVariableMappings(int index) { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model. Immutable once set.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model. Immutable
    +     * once set.
          * 
    * * @@ -3550,8 +3553,9 @@ public java.lang.String getSaas() { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model. Immutable once set.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model. Immutable
    +     * once set.
          * 
    * * @@ -3577,8 +3581,9 @@ public com.google.protobuf.ByteString getSaasBytes() { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model. Immutable once set.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model. Immutable
    +     * once set.
          * 
    * * @@ -3603,8 +3608,9 @@ public Builder setSaas(java.lang.String value) { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model. Immutable once set.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model. Immutable
    +     * once set.
          * 
    * * @@ -3625,8 +3631,9 @@ public Builder clearSaas() { * *
          * Required. Immutable. A reference to the Saas that defines the product
    -     * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -     * of the SaaS Runtime common data model. Immutable once set.
    +     * (managed service) that the producer wants to manage with App Lifecycle
    +     * Manager. Part of the App Lifecycle Manager common data model. Immutable
    +     * once set.
          * 
    * * diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindOrBuilder.java b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindOrBuilder.java index da56ebdc77ac..28178d584a1a 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindOrBuilder.java +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/java/com/google/cloud/saasplatform/saasservicemgmt/v1beta1/UnitKindOrBuilder.java @@ -335,8 +335,9 @@ com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping getOutputV * *
        * Required. Immutable. A reference to the Saas that defines the product
    -   * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -   * of the SaaS Runtime common data model. Immutable once set.
    +   * (managed service) that the producer wants to manage with App Lifecycle
    +   * Manager. Part of the App Lifecycle Manager common data model. Immutable
    +   * once set.
        * 
    * * @@ -352,8 +353,9 @@ com.google.cloud.saasplatform.saasservicemgmt.v1beta1.VariableMapping getOutputV * *
        * Required. Immutable. A reference to the Saas that defines the product
    -   * (managed service) that the producer wants to manage with SaaS Runtime. Part
    -   * of the SaaS Runtime common data model. Immutable once set.
    +   * (managed service) that the producer wants to manage with App Lifecycle
    +   * Manager. Part of the App Lifecycle Manager common data model. Immutable
    +   * once set.
        * 
    * * diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto index 43747d901764..61faa3dcd279 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto index be75899128d0..797d9464394c 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -121,17 +121,17 @@ message Tenant { // Optional. Immutable. A reference to the consumer resource this SaaS Tenant // is representing. // - // The relationship with a consumer resource can be used by SaaS Runtime for - // retrieving consumer-defined settings and policies such as maintenance - // policies (using Unified Maintenance Policy API). + // The relationship with a consumer resource can be used by App Lifecycle + // Manager for retrieving consumer-defined settings and policies such as + // maintenance policies (using Unified Maintenance Policy API). string consumer_resource = 2 [ (google.api.field_behavior) = OPTIONAL, (google.api.field_behavior) = IMMUTABLE ]; // Required. Immutable. A reference to the Saas that defines the product - // (managed service) that the producer wants to manage with SaaS Runtime. Part - // of the SaaS Runtime common data model. + // (managed service) that the producer wants to manage with App Lifecycle + // Manager. Part of the App Lifecycle Manager common data model. string saas = 3 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE, @@ -228,8 +228,9 @@ message UnitKind { [(google.api.field_behavior) = OPTIONAL]; // Required. Immutable. A reference to the Saas that defines the product - // (managed service) that the producer wants to manage with SaaS Runtime. Part - // of the SaaS Runtime common data model. Immutable once set. + // (managed service) that the producer wants to manage with App Lifecycle + // Manager. Part of the App Lifecycle Manager common data model. Immutable + // once set. string saas = 8 [ (google.api.field_behavior) = REQUIRED, (google.api.field_behavior) = IMMUTABLE, @@ -890,8 +891,8 @@ message ToMapping { // Required. Name of the inputVariable on the dependency string input_variable = 2 [(google.api.field_behavior) = REQUIRED]; - // Optional. Tells SaaS Runtime if this mapping should be used during lookup - // or not + // Optional. Tells App Lifecycle Manager if this mapping should be used during + // lookup or not bool ignore_for_lookup = 3 [(google.api.field_behavior) = OPTIONAL]; } diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto index e3240bda648d..473dcd30c397 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/deployments_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto index adfb27b3a3a7..40502985c0bd 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto index dc1e00bb5a9b..6465e579b393 100644 --- a/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto +++ b/java-saasservicemgmt/proto-google-cloud-saasservicemgmt-v1beta1/src/main/proto/google/cloud/saasplatform/saasservicemgmt/v1beta1/rollouts_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-scheduler/README.md b/java-scheduler/README.md index decf2bb8a49c..648d292be345 100644 --- a/java-scheduler/README.md +++ b/java-scheduler/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-secretmanager/README.md b/java-secretmanager/README.md index 9fe9c48ae345..9ce9d9bcd256 100644 --- a/java-secretmanager/README.md +++ b/java-secretmanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-securesourcemanager/README.md b/java-securesourcemanager/README.md index 33fe3d0f9c6d..cbfaefadd859 100644 --- a/java-securesourcemanager/README.md +++ b/java-securesourcemanager/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-security-private-ca/README.md b/java-security-private-ca/README.md index bd085758edcc..c900ef811a45 100644 --- a/java-security-private-ca/README.md +++ b/java-security-private-ca/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-securitycenter-settings/README.md b/java-securitycenter-settings/README.md index 91a8619af908..ba0ac71727fd 100644 --- a/java-securitycenter-settings/README.md +++ b/java-securitycenter-settings/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-securitycenter/README.md b/java-securitycenter/README.md index 8cb9fe06426c..44220ae22432 100644 --- a/java-securitycenter/README.md +++ b/java-securitycenter/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-securitycentermanagement/README.md b/java-securitycentermanagement/README.md index ce67a35e860c..7103d2e13628 100644 --- a/java-securitycentermanagement/README.md +++ b/java-securitycentermanagement/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-securityposture/README.md b/java-securityposture/README.md index 6e09b2e1ac6a..6b69d7fd9a4c 100644 --- a/java-securityposture/README.md +++ b/java-securityposture/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-service-control/README.md b/java-service-control/README.md index ff5db4c65c8b..924e709ea8e3 100644 --- a/java-service-control/README.md +++ b/java-service-control/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-service-management/README.md b/java-service-management/README.md index 17116efd2a80..bb3a06e98c1b 100644 --- a/java-service-management/README.md +++ b/java-service-management/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-service-usage/README.md b/java-service-usage/README.md index 7b5c01e490e9..f766126c9039 100644 --- a/java-service-usage/README.md +++ b/java-service-usage/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-servicedirectory/README.md b/java-servicedirectory/README.md index 6addef77b76c..c3eb9320e5cf 100644 --- a/java-servicedirectory/README.md +++ b/java-servicedirectory/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-servicehealth/README.md b/java-servicehealth/README.md index 2a19a9ad00ec..ece2acea5e73 100644 --- a/java-servicehealth/README.md +++ b/java-servicehealth/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-shell/README.md b/java-shell/README.md index 59450b4d82a9..bf8e05f29152 100644 --- a/java-shell/README.md +++ b/java-shell/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-spanner/README.md b/java-spanner/README.md index 9c203beeae1f..b469d404c2e6 100644 --- a/java-spanner/README.md +++ b/java-spanner/README.md @@ -49,7 +49,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.79.0') +implementation platform('com.google.cloud:libraries-bom:26.80.0') implementation 'com.google.cloud:google-cloud-spanner' ``` diff --git a/java-spanneradapter/README.md b/java-spanneradapter/README.md index 41332cf586c6..44f9a8633ed7 100644 --- a/java-spanneradapter/README.md +++ b/java-spanneradapter/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-speech/README.md b/java-speech/README.md index 4e297a5a9bb5..cbf68171a9b0 100644 --- a/java-speech/README.md +++ b/java-speech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-storage-transfer/README.md b/java-storage-transfer/README.md index 3c5276dcb65a..648633a076d2 100644 --- a/java-storage-transfer/README.md +++ b/java-storage-transfer/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-storage/README.md b/java-storage/README.md index 00d44d6eceb6..55974418eb8a 100644 --- a/java-storage/README.md +++ b/java-storage/README.md @@ -59,7 +59,7 @@ If you are using Maven without the BOM, add this to your dependencies: If you are using Gradle 5.x or later, add this to your dependencies: ```Groovy -implementation platform('com.google.cloud:libraries-bom:26.79.0') +implementation platform('com.google.cloud:libraries-bom:26.80.0') implementation 'com.google.cloud:google-cloud-storage' ``` diff --git a/java-storagebatchoperations/README.md b/java-storagebatchoperations/README.md index 513d6b37b54c..8586d32616fa 100644 --- a/java-storagebatchoperations/README.md +++ b/java-storagebatchoperations/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-storageinsights/README.md b/java-storageinsights/README.md index e8223b520aac..efafd0b1d1e6 100644 --- a/java-storageinsights/README.md +++ b/java-storageinsights/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-talent/README.md b/java-talent/README.md index c3e229e82590..9798be2827e7 100644 --- a/java-talent/README.md +++ b/java-talent/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-tasks/README.md b/java-tasks/README.md index 807a87cffd22..fec0b03d4c3e 100644 --- a/java-tasks/README.md +++ b/java-tasks/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-telcoautomation/README.md b/java-telcoautomation/README.md index 9e10a5d46564..6281051b3e5c 100644 --- a/java-telcoautomation/README.md +++ b/java-telcoautomation/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-texttospeech/README.md b/java-texttospeech/README.md index 5e47f5f61d5e..6d7a8681ba5c 100644 --- a/java-texttospeech/README.md +++ b/java-texttospeech/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-tpu/README.md b/java-tpu/README.md index 1fc0bfed5dcb..7069fb15c9ae 100644 --- a/java-tpu/README.md +++ b/java-tpu/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-trace/README.md b/java-trace/README.md index f93be4119fd2..7ba8e11d1a08 100644 --- a/java-trace/README.md +++ b/java-trace/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-translate/README.md b/java-translate/README.md index 9a52885af143..88b0d3b0e83e 100644 --- a/java-translate/README.md +++ b/java-translate/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-valkey/README.md b/java-valkey/README.md index 0224bfa0f272..44e8d77404fd 100644 --- a/java-valkey/README.md +++ b/java-valkey/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-vectorsearch/README.md b/java-vectorsearch/README.md index 79c8a3179fb2..a0e3585eff21 100644 --- a/java-vectorsearch/README.md +++ b/java-vectorsearch/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import @@ -45,20 +45,20 @@ If you are using Maven without the BOM, add this to your dependencies: com.google.cloud google-cloud-vectorsearch - 0.12.0 + 0.13.0 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-vectorsearch:0.12.0' +implementation 'com.google.cloud:google-cloud-vectorsearch:0.13.0' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.12.0" +libraryDependencies += "com.google.cloud" % "google-cloud-vectorsearch" % "0.13.0" ``` ## Authentication @@ -181,7 +181,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-vectorsearch/latest/overview [stability-image]: https://img.shields.io/badge/stability-preview-yellow [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-vectorsearch.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.12.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-vectorsearch/0.13.0 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles diff --git a/java-video-intelligence/README.md b/java-video-intelligence/README.md index 94b609148454..63d3b7520572 100644 --- a/java-video-intelligence/README.md +++ b/java-video-intelligence/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-video-live-stream/README.md b/java-video-live-stream/README.md index d5510644cf6b..a4cc61090bc1 100644 --- a/java-video-live-stream/README.md +++ b/java-video-live-stream/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-video-stitcher/README.md b/java-video-stitcher/README.md index e0f63feaf385..1f53e27f23b5 100644 --- a/java-video-stitcher/README.md +++ b/java-video-stitcher/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-video-transcoder/README.md b/java-video-transcoder/README.md index 8338509353ff..3d74899fbc02 100644 --- a/java-video-transcoder/README.md +++ b/java-video-transcoder/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-vision/README.md b/java-vision/README.md index 30641d6a7cd8..d9c420a66f8f 100644 --- a/java-vision/README.md +++ b/java-vision/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-visionai/README.md b/java-visionai/README.md index 9e8ce993d38d..9179274ae919 100644 --- a/java-visionai/README.md +++ b/java-visionai/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-vmmigration/README.md b/java-vmmigration/README.md index f0b9671b01f0..4b9e5e347149 100644 --- a/java-vmmigration/README.md +++ b/java-vmmigration/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-vmwareengine/README.md b/java-vmwareengine/README.md index ef21ecdd3ca4..570c0c956e7a 100644 --- a/java-vmwareengine/README.md +++ b/java-vmwareengine/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-vpcaccess/README.md b/java-vpcaccess/README.md index c235fa9c914e..725b1cec417d 100644 --- a/java-vpcaccess/README.md +++ b/java-vpcaccess/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-webrisk/README.md b/java-webrisk/README.md index 19201b5b96e8..3201b41770af 100644 --- a/java-webrisk/README.md +++ b/java-webrisk/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-websecurityscanner/README.md b/java-websecurityscanner/README.md index 9bca9e6990b3..0bd816cbb55a 100644 --- a/java-websecurityscanner/README.md +++ b/java-websecurityscanner/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-workflow-executions/README.md b/java-workflow-executions/README.md index 37115b9476be..d7a856be2a87 100644 --- a/java-workflow-executions/README.md +++ b/java-workflow-executions/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-workflows/README.md b/java-workflows/README.md index 5bc87ae7fd8d..82a488082ba9 100644 --- a/java-workflows/README.md +++ b/java-workflows/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-workloadmanager/README.md b/java-workloadmanager/README.md index 9b1f537d4de3..fcbfcf57a192 100644 --- a/java-workloadmanager/README.md +++ b/java-workloadmanager/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-workspaceevents/README.md b/java-workspaceevents/README.md index a47f4e31c11e..557be3285274 100644 --- a/java-workspaceevents/README.md +++ b/java-workspaceevents/README.md @@ -23,7 +23,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import diff --git a/java-workstations/README.md b/java-workstations/README.md index e2ee31189fc3..c01a4d0f5394 100644 --- a/java-workstations/README.md +++ b/java-workstations/README.md @@ -20,7 +20,7 @@ If you are using Maven with [BOM][libraries-bom], add this to your pom.xml file: com.google.cloud libraries-bom - 26.79.0 + 26.80.0 pom import From 7c9c1a13f9d24bd11c8a74acdeb884153e72fd6e Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 16 Apr 2026 03:01:12 +0000 Subject: [PATCH 03/19] chore: Update generation configuration at Thu Apr 16 03:01:04 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index a7a98a939325..5a4df79daa53 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.71.0 -googleapis_commitish: bf85cad8abc13cd38d42b0cf8545d323243ff7e2 +googleapis_commitish: 13ca8dbc797515144104ee799e429f8e29b45c08 libraries_bom_version: 26.80.0 libraries: - api_shortname: accessapproval From ecda6e65f877b6c62b4ee9579e5f5e0ed6eb6f54 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 16 Apr 2026 04:37:37 +0000 Subject: [PATCH 04/19] chore: generate libraries at Thu Apr 16 03:03:50 UTC 2026 --- .../com/google/chat/v1/ChatServiceClient.java | 255 +++ .../google/chat/v1/ChatServiceSettings.java | 15 + .../com/google/chat/v1/gapic_metadata.json | 3 + .../google/chat/v1/stub/ChatServiceStub.java | 12 + .../chat/v1/stub/ChatServiceStubSettings.java | 85 + .../chat/v1/stub/GrpcChatServiceStub.java | 40 + .../chat/v1/stub/HttpJsonChatServiceStub.java | 68 + .../com.google.chat.v1/reflect-config.json | 45 + .../v1/ChatServiceClientHttpJsonTest.java | 63 + .../google/chat/v1/ChatServiceClientTest.java | 60 + .../google/chat/v1/MockChatServiceImpl.java | 21 + .../com/google/chat/v1/ChatServiceGrpc.java | 249 ++- .../com/google/chat/v1/ChatServiceProto.java | 298 ++-- .../google/chat/v1/FindGroupChatsRequest.java | 1431 +++++++++++++++++ .../v1/FindGroupChatsRequestOrBuilder.java | 235 +++ .../chat/v1/FindGroupChatsResponse.java | 1110 +++++++++++++ .../v1/FindGroupChatsResponseOrBuilder.java | 111 ++ .../java/com/google/chat/v1/SpaceProto.java | 59 +- .../java/com/google/chat/v1/SpaceView.java | 205 +++ .../proto/google/chat/v1/chat_service.proto | 26 + .../src/main/proto/google/chat/v1/space.proto | 82 +- .../findgroupchats/AsyncFindGroupChats.java | 55 + .../AsyncFindGroupChatsPaged.java | 63 + .../findgroupchats/SyncFindGroupChats.java | 52 + .../cloud/kms/v1/SingleTenantHsmInstance.java | 24 +- .../v1/SingleTenantHsmInstanceOrBuilder.java | 6 +- .../google/cloud/kms/v1/hsm_management.proto | 2 +- 27 files changed, 4476 insertions(+), 199 deletions(-) create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequest.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequestOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponse.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponseOrBuilder.java create mode 100644 java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceView.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChats.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChatsPaged.java create mode 100644 java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/SyncFindGroupChats.java diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java index b36fe40cb319..e7ab105d23c3 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceClient.java @@ -471,6 +471,25 @@ * * * + *

    FindGroupChats + *

    Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have joined the conversation are supported. For an example, see [Find group chats](https://developers.google.com/workspace/chat/find-group-chats). + *

    If the calling user blocks, or is blocked by, some users, and no spaces with the entire specified set of users are found, this method returns spaces that don't include the blocked or blocking users. + *

    The specified set of users must contain only human (non-app) memberships. A request that contains non-human users doesn't return any spaces. + *

    Requires [user authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) with one of the following [authorization scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + *

    - `https://www.googleapis.com/auth/chat.memberships.readonly` - `https://www.googleapis.com/auth/chat.memberships` + * + *

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

    + *
      + *
    • findGroupChats(FindGroupChatsRequest request) + *

    + *

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

    + *
      + *
    • findGroupChatsPagedCallable() + *

    • findGroupChatsCallable() + *

    + * + * + * *

    CreateMembership *

    Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships for other Chat apps isn't supported. When creating a membership, if the specified member has their auto-accept policy turned off, then they're invited, and must accept the space invitation before joining. Otherwise, creating a membership adds the member directly to the specified space. *

    Supports the following types of [authentication](https://developers.google.com/workspace/chat/authenticate-authorize): @@ -4500,6 +4519,166 @@ public final UnaryCallable findDirectMessageCal return stub.findDirectMessageCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the + * calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have + * joined the conversation are supported. For an example, see [Find group + * chats](https://developers.google.com/workspace/chat/find-group-chats). + * + *

    If the calling user blocks, or is blocked by, some users, and no spaces with the entire + * specified set of users are found, this method returns spaces that don't include the blocked or + * blocking users. + * + *

    The specified set of users must contain only human (non-app) memberships. A request that + * contains non-human users doesn't return any spaces. + * + *

    Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

    - `https://www.googleapis.com/auth/chat.memberships.readonly` - + * `https://www.googleapis.com/auth/chat.memberships` + * + *

    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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
    +   *   FindGroupChatsRequest request =
    +   *       FindGroupChatsRequest.newBuilder()
    +   *           .addAllUsers(new ArrayList())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setSpaceView(SpaceView.forNumber(0))
    +   *           .build();
    +   *   for (Space element : chatServiceClient.findGroupChats(request).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @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 FindGroupChatsPagedResponse findGroupChats(FindGroupChatsRequest request) { + return findGroupChatsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the + * calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have + * joined the conversation are supported. For an example, see [Find group + * chats](https://developers.google.com/workspace/chat/find-group-chats). + * + *

    If the calling user blocks, or is blocked by, some users, and no spaces with the entire + * specified set of users are found, this method returns spaces that don't include the blocked or + * blocking users. + * + *

    The specified set of users must contain only human (non-app) memberships. A request that + * contains non-human users doesn't return any spaces. + * + *

    Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

    - `https://www.googleapis.com/auth/chat.memberships.readonly` - + * `https://www.googleapis.com/auth/chat.memberships` + * + *

    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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
    +   *   FindGroupChatsRequest request =
    +   *       FindGroupChatsRequest.newBuilder()
    +   *           .addAllUsers(new ArrayList())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setSpaceView(SpaceView.forNumber(0))
    +   *           .build();
    +   *   ApiFuture future = chatServiceClient.findGroupChatsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (Space element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + findGroupChatsPagedCallable() { + return stub.findGroupChatsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all spaces with `spaceType == GROUP_CHAT`, whose human memberships contain exactly the + * calling user, and the users specified in `FindGroupChatsRequest.users`. Only members that have + * joined the conversation are supported. For an example, see [Find group + * chats](https://developers.google.com/workspace/chat/find-group-chats). + * + *

    If the calling user blocks, or is blocked by, some users, and no spaces with the entire + * specified set of users are found, this method returns spaces that don't include the blocked or + * blocking users. + * + *

    The specified set of users must contain only human (non-app) memberships. A request that + * contains non-human users doesn't return any spaces. + * + *

    Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * + *

    - `https://www.googleapis.com/auth/chat.memberships.readonly` - + * `https://www.googleapis.com/auth/chat.memberships` + * + *

    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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) {
    +   *   FindGroupChatsRequest request =
    +   *       FindGroupChatsRequest.newBuilder()
    +   *           .addAllUsers(new ArrayList())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .setSpaceView(SpaceView.forNumber(0))
    +   *           .build();
    +   *   while (true) {
    +   *     FindGroupChatsResponse response = chatServiceClient.findGroupChatsCallable().call(request);
    +   *     for (Space element : response.getSpacesList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + findGroupChatsCallable() { + return stub.findGroupChatsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a membership for the calling Chat app, a user, or a Google Group. Creating memberships @@ -9374,6 +9553,82 @@ protected SearchSpacesFixedSizeCollection createCollection( } } + public static class FindGroupChatsPagedResponse + extends AbstractPagedListResponse< + FindGroupChatsRequest, + FindGroupChatsResponse, + Space, + FindGroupChatsPage, + FindGroupChatsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + FindGroupChatsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new FindGroupChatsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private FindGroupChatsPagedResponse(FindGroupChatsPage page) { + super(page, FindGroupChatsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class FindGroupChatsPage + extends AbstractPage< + FindGroupChatsRequest, FindGroupChatsResponse, Space, FindGroupChatsPage> { + + private FindGroupChatsPage( + PageContext context, + FindGroupChatsResponse response) { + super(context, response); + } + + private static FindGroupChatsPage createEmptyPage() { + return new FindGroupChatsPage(null, null); + } + + @Override + protected FindGroupChatsPage createPage( + PageContext context, + FindGroupChatsResponse response) { + return new FindGroupChatsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class FindGroupChatsFixedSizeCollection + extends AbstractFixedSizeCollection< + FindGroupChatsRequest, + FindGroupChatsResponse, + Space, + FindGroupChatsPage, + FindGroupChatsFixedSizeCollection> { + + private FindGroupChatsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static FindGroupChatsFixedSizeCollection createEmptyCollection() { + return new FindGroupChatsFixedSizeCollection(null, 0); + } + + @Override + protected FindGroupChatsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new FindGroupChatsFixedSizeCollection(pages, collectionSize); + } + } + public static class ListReactionsPagedResponse extends AbstractPagedListResponse< ListReactionsRequest, diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java index d0f288e2fc7e..414c7437df2f 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/ChatServiceSettings.java @@ -16,6 +16,7 @@ package com.google.chat.v1; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -193,6 +194,13 @@ public UnaryCallSettings findDirectMessageSetti return ((ChatServiceStubSettings) getStubSettings()).findDirectMessageSettings(); } + /** Returns the object with the settings used for calls to findGroupChats. */ + public PagedCallSettings< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings() { + return ((ChatServiceStubSettings) getStubSettings()).findGroupChatsSettings(); + } + /** Returns the object with the settings used for calls to createMembership. */ public UnaryCallSettings createMembershipSettings() { return ((ChatServiceStubSettings) getStubSettings()).createMembershipSettings(); @@ -537,6 +545,13 @@ public UnaryCallSettings.Builder findDirectMess return getStubSettingsBuilder().findDirectMessageSettings(); } + /** Returns the builder for the settings used for calls to findGroupChats. */ + public PagedCallSettings.Builder< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings() { + return getStubSettingsBuilder().findGroupChatsSettings(); + } + /** Returns the builder for the settings used for calls to createMembership. */ public UnaryCallSettings.Builder createMembershipSettings() { diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json index ccdd152e2645..3c17aa5e5b7f 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/gapic_metadata.json @@ -52,6 +52,9 @@ "FindDirectMessage": { "methods": ["findDirectMessage", "findDirectMessageCallable"] }, + "FindGroupChats": { + "methods": ["findGroupChats", "findGroupChatsPagedCallable", "findGroupChatsCallable"] + }, "GetAttachment": { "methods": ["getAttachment", "getAttachment", "getAttachment", "getAttachmentCallable"] }, diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java index bf882802d428..8f023fcf7c43 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStub.java @@ -16,6 +16,7 @@ package com.google.chat.v1.stub; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -45,6 +46,8 @@ import com.google.chat.v1.DeleteSectionRequest; import com.google.chat.v1.DeleteSpaceRequest; import com.google.chat.v1.FindDirectMessageRequest; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; @@ -197,6 +200,15 @@ public UnaryCallable findDirectMessageCallable( throw new UnsupportedOperationException("Not implemented: findDirectMessageCallable()"); } + public UnaryCallable + findGroupChatsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: findGroupChatsPagedCallable()"); + } + + public UnaryCallable findGroupChatsCallable() { + throw new UnsupportedOperationException("Not implemented: findGroupChatsCallable()"); + } + public UnaryCallable createMembershipCallable() { throw new UnsupportedOperationException("Not implemented: createMembershipCallable()"); } diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java index e230dff29482..b3ff9092fe8f 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/ChatServiceStubSettings.java @@ -16,6 +16,7 @@ package com.google.chat.v1.stub; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -70,6 +71,8 @@ import com.google.chat.v1.DeleteSectionRequest; import com.google.chat.v1.DeleteSpaceRequest; import com.google.chat.v1.FindDirectMessageRequest; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; @@ -249,6 +252,9 @@ public class ChatServiceStubSettings extends StubSettings completeImportSpaceSettings; private final UnaryCallSettings findDirectMessageSettings; + private final PagedCallSettings< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings; private final UnaryCallSettings createMembershipSettings; private final UnaryCallSettings updateMembershipSettings; private final UnaryCallSettings deleteMembershipSettings; @@ -430,6 +436,41 @@ public Iterable extractResources(SearchSpacesResponse payload) { } }; + private static final PagedListDescriptor + FIND_GROUP_CHATS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public FindGroupChatsRequest injectToken(FindGroupChatsRequest payload, String token) { + return FindGroupChatsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public FindGroupChatsRequest injectPageSize( + FindGroupChatsRequest payload, int pageSize) { + return FindGroupChatsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(FindGroupChatsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(FindGroupChatsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(FindGroupChatsResponse payload) { + return payload.getSpacesList(); + } + }; + private static final PagedListDescriptor LIST_REACTIONS_PAGE_STR_DESC = new PagedListDescriptor() { @@ -679,6 +720,23 @@ public ApiFuture getFuturePagedResponse( } }; + private static final PagedListResponseFactory< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + FIND_GROUP_CHATS_PAGE_STR_FACT = + new PagedListResponseFactory< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + FindGroupChatsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, FIND_GROUP_CHATS_PAGE_STR_DESC, request, context); + return FindGroupChatsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + private static final PagedListResponseFactory< ListReactionsRequest, ListReactionsResponse, ListReactionsPagedResponse> LIST_REACTIONS_PAGE_STR_FACT = @@ -865,6 +923,13 @@ public UnaryCallSettings findDirectMessageSetti return findDirectMessageSettings; } + /** Returns the object with the settings used for calls to findGroupChats. */ + public PagedCallSettings< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings() { + return findGroupChatsSettings; + } + /** Returns the object with the settings used for calls to createMembership. */ public UnaryCallSettings createMembershipSettings() { return createMembershipSettings; @@ -1128,6 +1193,7 @@ protected ChatServiceStubSettings(Builder settingsBuilder) throws IOException { deleteSpaceSettings = settingsBuilder.deleteSpaceSettings().build(); completeImportSpaceSettings = settingsBuilder.completeImportSpaceSettings().build(); findDirectMessageSettings = settingsBuilder.findDirectMessageSettings().build(); + findGroupChatsSettings = settingsBuilder.findGroupChatsSettings().build(); createMembershipSettings = settingsBuilder.createMembershipSettings().build(); updateMembershipSettings = settingsBuilder.updateMembershipSettings().build(); deleteMembershipSettings = settingsBuilder.deleteMembershipSettings().build(); @@ -1197,6 +1263,9 @@ public static class Builder extends StubSettings.Builder findDirectMessageSettings; + private final PagedCallSettings.Builder< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings; private final UnaryCallSettings.Builder createMembershipSettings; private final UnaryCallSettings.Builder @@ -1302,6 +1371,7 @@ protected Builder(ClientContext clientContext) { deleteSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); completeImportSpaceSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); findDirectMessageSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + findGroupChatsSettings = PagedCallSettings.newBuilder(FIND_GROUP_CHATS_PAGE_STR_FACT); createMembershipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); updateMembershipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteMembershipSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -1347,6 +1417,7 @@ protected Builder(ClientContext clientContext) { deleteSpaceSettings, completeImportSpaceSettings, findDirectMessageSettings, + findGroupChatsSettings, createMembershipSettings, updateMembershipSettings, deleteMembershipSettings, @@ -1395,6 +1466,7 @@ protected Builder(ChatServiceStubSettings settings) { deleteSpaceSettings = settings.deleteSpaceSettings.toBuilder(); completeImportSpaceSettings = settings.completeImportSpaceSettings.toBuilder(); findDirectMessageSettings = settings.findDirectMessageSettings.toBuilder(); + findGroupChatsSettings = settings.findGroupChatsSettings.toBuilder(); createMembershipSettings = settings.createMembershipSettings.toBuilder(); updateMembershipSettings = settings.updateMembershipSettings.toBuilder(); deleteMembershipSettings = settings.deleteMembershipSettings.toBuilder(); @@ -1442,6 +1514,7 @@ protected Builder(ChatServiceStubSettings settings) { deleteSpaceSettings, completeImportSpaceSettings, findDirectMessageSettings, + findGroupChatsSettings, createMembershipSettings, updateMembershipSettings, deleteMembershipSettings, @@ -1583,6 +1656,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder + .findGroupChatsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + builder .createMembershipSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) @@ -1820,6 +1898,13 @@ public UnaryCallSettings.Builder findDirectMess return findDirectMessageSettings; } + /** Returns the builder for the settings used for calls to findGroupChats. */ + public PagedCallSettings.Builder< + FindGroupChatsRequest, FindGroupChatsResponse, FindGroupChatsPagedResponse> + findGroupChatsSettings() { + return findGroupChatsSettings; + } + /** Returns the builder for the settings used for calls to createMembership. */ public UnaryCallSettings.Builder createMembershipSettings() { diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java index 79293686d5c3..54f7371c6f4b 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/GrpcChatServiceStub.java @@ -16,6 +16,7 @@ package com.google.chat.v1.stub; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -50,6 +51,8 @@ import com.google.chat.v1.DeleteSectionRequest; import com.google.chat.v1.DeleteSpaceRequest; import com.google.chat.v1.FindDirectMessageRequest; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; @@ -301,6 +304,18 @@ public class GrpcChatServiceStub extends ChatServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + findGroupChatsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.chat.v1.ChatService/FindGroupChats") + .setRequestMarshaller( + ProtoUtils.marshaller(FindGroupChatsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(FindGroupChatsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor createMembershipMethodDescriptor = MethodDescriptor.newBuilder() @@ -603,6 +618,9 @@ public class GrpcChatServiceStub extends ChatServiceStub { private final UnaryCallable completeImportSpaceCallable; private final UnaryCallable findDirectMessageCallable; + private final UnaryCallable findGroupChatsCallable; + private final UnaryCallable + findGroupChatsPagedCallable; private final UnaryCallable createMembershipCallable; private final UnaryCallable updateMembershipCallable; private final UnaryCallable deleteMembershipCallable; @@ -853,6 +871,11 @@ protected GrpcChatServiceStub( GrpcCallSettings.newBuilder() .setMethodDescriptor(findDirectMessageMethodDescriptor) .build(); + GrpcCallSettings + findGroupChatsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(findGroupChatsMethodDescriptor) + .build(); GrpcCallSettings createMembershipTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(createMembershipMethodDescriptor) @@ -1185,6 +1208,12 @@ protected GrpcChatServiceStub( findDirectMessageTransportSettings, settings.findDirectMessageSettings(), clientContext); + this.findGroupChatsCallable = + callableFactory.createUnaryCallable( + findGroupChatsTransportSettings, settings.findGroupChatsSettings(), clientContext); + this.findGroupChatsPagedCallable = + callableFactory.createPagedCallable( + findGroupChatsTransportSettings, settings.findGroupChatsSettings(), clientContext); this.createMembershipCallable = callableFactory.createUnaryCallable( createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); @@ -1408,6 +1437,17 @@ public UnaryCallable findDirectMessageCallable( return findDirectMessageCallable; } + @Override + public UnaryCallable findGroupChatsCallable() { + return findGroupChatsCallable; + } + + @Override + public UnaryCallable + findGroupChatsPagedCallable() { + return findGroupChatsPagedCallable; + } + @Override public UnaryCallable createMembershipCallable() { return createMembershipCallable; diff --git a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java index 860c48a928df..e218f956a5db 100644 --- a/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java +++ b/java-chat/google-cloud-chat/src/main/java/com/google/chat/v1/stub/HttpJsonChatServiceStub.java @@ -16,6 +16,7 @@ package com.google.chat.v1.stub; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -55,6 +56,8 @@ import com.google.chat.v1.DeleteSectionRequest; import com.google.chat.v1.DeleteSpaceRequest; import com.google.chat.v1.FindDirectMessageRequest; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; import com.google.chat.v1.GetAttachmentRequest; import com.google.chat.v1.GetCustomEmojiRequest; import com.google.chat.v1.GetMembershipRequest; @@ -789,6 +792,44 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { .build()) .build(); + private static final ApiMethodDescriptor + findGroupChatsMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.chat.v1.ChatService/FindGroupChats") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v1/spaces:findGroupChats", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + return fields; + }) + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam( + fields, "spaceView", request.getSpaceViewValue()); + serializer.putQueryParam(fields, "users", request.getUsersList()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(FindGroupChatsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + private static final ApiMethodDescriptor createMembershipMethodDescriptor = ApiMethodDescriptor.newBuilder() @@ -1700,6 +1741,9 @@ public class HttpJsonChatServiceStub extends ChatServiceStub { private final UnaryCallable completeImportSpaceCallable; private final UnaryCallable findDirectMessageCallable; + private final UnaryCallable findGroupChatsCallable; + private final UnaryCallable + findGroupChatsPagedCallable; private final UnaryCallable createMembershipCallable; private final UnaryCallable updateMembershipCallable; private final UnaryCallable deleteMembershipCallable; @@ -1969,6 +2013,12 @@ protected HttpJsonChatServiceStub( .setMethodDescriptor(findDirectMessageMethodDescriptor) .setTypeRegistry(typeRegistry) .build(); + HttpJsonCallSettings + findGroupChatsTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(findGroupChatsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .build(); HttpJsonCallSettings createMembershipTransportSettings = HttpJsonCallSettings.newBuilder() .setMethodDescriptor(createMembershipMethodDescriptor) @@ -2327,6 +2377,12 @@ protected HttpJsonChatServiceStub( findDirectMessageTransportSettings, settings.findDirectMessageSettings(), clientContext); + this.findGroupChatsCallable = + callableFactory.createUnaryCallable( + findGroupChatsTransportSettings, settings.findGroupChatsSettings(), clientContext); + this.findGroupChatsPagedCallable = + callableFactory.createPagedCallable( + findGroupChatsTransportSettings, settings.findGroupChatsSettings(), clientContext); this.createMembershipCallable = callableFactory.createUnaryCallable( createMembershipTransportSettings, settings.createMembershipSettings(), clientContext); @@ -2454,6 +2510,7 @@ public static List getMethodDescriptors() { methodDescriptors.add(deleteSpaceMethodDescriptor); methodDescriptors.add(completeImportSpaceMethodDescriptor); methodDescriptors.add(findDirectMessageMethodDescriptor); + methodDescriptors.add(findGroupChatsMethodDescriptor); methodDescriptors.add(createMembershipMethodDescriptor); methodDescriptors.add(updateMembershipMethodDescriptor); methodDescriptors.add(deleteMembershipMethodDescriptor); @@ -2594,6 +2651,17 @@ public UnaryCallable findDirectMessageCallable( return findDirectMessageCallable; } + @Override + public UnaryCallable findGroupChatsCallable() { + return findGroupChatsCallable; + } + + @Override + public UnaryCallable + findGroupChatsPagedCallable() { + return findGroupChatsPagedCallable; + } + @Override public UnaryCallable createMembershipCallable() { return createMembershipCallable; diff --git a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json index e15da918c968..380734d403e7 100644 --- a/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json +++ b/java-chat/google-cloud-chat/src/main/resources/META-INF/native-image/com.google.chat.v1/reflect-config.json @@ -2312,6 +2312,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.FindGroupChatsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.FindGroupChatsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.FindGroupChatsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.chat.v1.FindGroupChatsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.ForwardedMetadata", "queryAllDeclaredConstructors": true, @@ -3779,6 +3815,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.chat.v1.SpaceView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.chat.v1.Thread", "queryAllDeclaredConstructors": true, diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java index 9a326688ccc6..102c5df63892 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientHttpJsonTest.java @@ -16,6 +16,7 @@ package com.google.chat.v1; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -1656,6 +1657,68 @@ public void findDirectMessageExceptionTest() throws Exception { } } + @Test + public void findGroupChatsTest() throws Exception { + Space responsesElement = Space.newBuilder().build(); + FindGroupChatsResponse expectedResponse = + FindGroupChatsResponse.newBuilder() + .setNextPageToken("") + .addAllSpaces(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + + FindGroupChatsPagedResponse pagedListResponse = client.findGroupChats(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpacesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void findGroupChatsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + client.findGroupChats(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createMembershipTest() throws Exception { Membership expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java index b6817f027887..e0a31917330a 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/ChatServiceClientTest.java @@ -16,6 +16,7 @@ package com.google.chat.v1; +import static com.google.chat.v1.ChatServiceClient.FindGroupChatsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListCustomEmojisPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMembershipsPagedResponse; import static com.google.chat.v1.ChatServiceClient.ListMessagesPagedResponse; @@ -1412,6 +1413,65 @@ public void findDirectMessageExceptionTest() throws Exception { } } + @Test + public void findGroupChatsTest() throws Exception { + Space responsesElement = Space.newBuilder().build(); + FindGroupChatsResponse expectedResponse = + FindGroupChatsResponse.newBuilder() + .setNextPageToken("") + .addAllSpaces(Arrays.asList(responsesElement)) + .build(); + mockChatService.addResponse(expectedResponse); + + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + + FindGroupChatsPagedResponse pagedListResponse = client.findGroupChats(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getSpacesList().get(0), resources.get(0)); + + List actualRequests = mockChatService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + FindGroupChatsRequest actualRequest = ((FindGroupChatsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getUsersList(), actualRequest.getUsersList()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertEquals(request.getSpaceView(), actualRequest.getSpaceView()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void findGroupChatsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockChatService.addException(exception); + + try { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + client.findGroupChats(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void createMembershipTest() throws Exception { Membership expectedResponse = diff --git a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java index 33c98f3ce115..276c57293fa2 100644 --- a/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java +++ b/java-chat/google-cloud-chat/src/test/java/com/google/chat/v1/MockChatServiceImpl.java @@ -431,6 +431,27 @@ public void findDirectMessage( } } + @Override + public void findGroupChats( + FindGroupChatsRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof FindGroupChatsResponse) { + requests.add(request); + responseObserver.onNext(((FindGroupChatsResponse) 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 FindGroupChats, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + FindGroupChatsResponse.class.getName(), + Exception.class.getName()))); + } + } + @Override public void createMembership( CreateMembershipRequest request, StreamObserver responseObserver) { diff --git a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java index ff694f9e63de..9b1af68b3d96 100644 --- a/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java +++ b/java-chat/grpc-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceGrpc.java @@ -750,6 +750,48 @@ private ChatServiceGrpc() {} return getFindDirectMessageMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.chat.v1.FindGroupChatsRequest, com.google.chat.v1.FindGroupChatsResponse> + getFindGroupChatsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "FindGroupChats", + requestType = com.google.chat.v1.FindGroupChatsRequest.class, + responseType = com.google.chat.v1.FindGroupChatsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.chat.v1.FindGroupChatsRequest, com.google.chat.v1.FindGroupChatsResponse> + getFindGroupChatsMethod() { + io.grpc.MethodDescriptor< + com.google.chat.v1.FindGroupChatsRequest, com.google.chat.v1.FindGroupChatsResponse> + getFindGroupChatsMethod; + if ((getFindGroupChatsMethod = ChatServiceGrpc.getFindGroupChatsMethod) == null) { + synchronized (ChatServiceGrpc.class) { + if ((getFindGroupChatsMethod = ChatServiceGrpc.getFindGroupChatsMethod) == null) { + ChatServiceGrpc.getFindGroupChatsMethod = + getFindGroupChatsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FindGroupChats")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.FindGroupChatsRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.chat.v1.FindGroupChatsResponse.getDefaultInstance())) + .setSchemaDescriptor( + new ChatServiceMethodDescriptorSupplier("FindGroupChats")) + .build(); + } + } + } + return getFindGroupChatsMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.chat.v1.CreateMembershipRequest, com.google.chat.v1.Membership> getCreateMembershipMethod; @@ -2468,6 +2510,35 @@ default void findDirectMessage( getFindDirectMessageMethod(), responseObserver); } + /** + * + * + *
    +     * Returns all spaces with `spaceType == GROUP_CHAT`, whose
    +     * human memberships contain exactly the calling user, and the users specified
    +     * in `FindGroupChatsRequest.users`. Only members that have joined the
    +     * conversation are supported. For an example, see [Find group
    +     * chats](https://developers.google.com/workspace/chat/find-group-chats).
    +     * If the calling user blocks, or is blocked by, some users, and no spaces
    +     * with the entire specified set of users are found, this method returns
    +     * spaces that don't include the blocked or blocking users.
    +     * The specified set of users must contain only human (non-app) memberships.
    +     * A request that contains non-human users doesn't return any spaces.
    +     * Requires [user
    +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
    +     * with one of the following [authorization
    +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
    +     *   - `https://www.googleapis.com/auth/chat.memberships.readonly`
    +     *   - `https://www.googleapis.com/auth/chat.memberships`
    +     * 
    + */ + default void findGroupChats( + com.google.chat.v1.FindGroupChatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getFindGroupChatsMethod(), responseObserver); + } + /** * * @@ -3857,6 +3928,37 @@ public void findDirectMessage( responseObserver); } + /** + * + * + *
    +     * Returns all spaces with `spaceType == GROUP_CHAT`, whose
    +     * human memberships contain exactly the calling user, and the users specified
    +     * in `FindGroupChatsRequest.users`. Only members that have joined the
    +     * conversation are supported. For an example, see [Find group
    +     * chats](https://developers.google.com/workspace/chat/find-group-chats).
    +     * If the calling user blocks, or is blocked by, some users, and no spaces
    +     * with the entire specified set of users are found, this method returns
    +     * spaces that don't include the blocked or blocking users.
    +     * The specified set of users must contain only human (non-app) memberships.
    +     * A request that contains non-human users doesn't return any spaces.
    +     * Requires [user
    +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
    +     * with one of the following [authorization
    +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
    +     *   - `https://www.googleapis.com/auth/chat.memberships.readonly`
    +     *   - `https://www.googleapis.com/auth/chat.memberships`
    +     * 
    + */ + public void findGroupChats( + com.google.chat.v1.FindGroupChatsRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getFindGroupChatsMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -5231,6 +5333,34 @@ public com.google.chat.v1.Space findDirectMessage( getChannel(), getFindDirectMessageMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Returns all spaces with `spaceType == GROUP_CHAT`, whose
    +     * human memberships contain exactly the calling user, and the users specified
    +     * in `FindGroupChatsRequest.users`. Only members that have joined the
    +     * conversation are supported. For an example, see [Find group
    +     * chats](https://developers.google.com/workspace/chat/find-group-chats).
    +     * If the calling user blocks, or is blocked by, some users, and no spaces
    +     * with the entire specified set of users are found, this method returns
    +     * spaces that don't include the blocked or blocking users.
    +     * The specified set of users must contain only human (non-app) memberships.
    +     * A request that contains non-human users doesn't return any spaces.
    +     * Requires [user
    +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
    +     * with one of the following [authorization
    +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
    +     *   - `https://www.googleapis.com/auth/chat.memberships.readonly`
    +     *   - `https://www.googleapis.com/auth/chat.memberships`
    +     * 
    + */ + public com.google.chat.v1.FindGroupChatsResponse findGroupChats( + com.google.chat.v1.FindGroupChatsRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getFindGroupChatsMethod(), getCallOptions(), request); + } + /** * * @@ -6529,6 +6659,34 @@ public com.google.chat.v1.Space findDirectMessage( getChannel(), getFindDirectMessageMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Returns all spaces with `spaceType == GROUP_CHAT`, whose
    +     * human memberships contain exactly the calling user, and the users specified
    +     * in `FindGroupChatsRequest.users`. Only members that have joined the
    +     * conversation are supported. For an example, see [Find group
    +     * chats](https://developers.google.com/workspace/chat/find-group-chats).
    +     * If the calling user blocks, or is blocked by, some users, and no spaces
    +     * with the entire specified set of users are found, this method returns
    +     * spaces that don't include the blocked or blocking users.
    +     * The specified set of users must contain only human (non-app) memberships.
    +     * A request that contains non-human users doesn't return any spaces.
    +     * Requires [user
    +     * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user)
    +     * with one of the following [authorization
    +     * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes):
    +     *   - `https://www.googleapis.com/auth/chat.memberships.readonly`
    +     *   - `https://www.googleapis.com/auth/chat.memberships`
    +     * 
    + */ + public com.google.chat.v1.FindGroupChatsResponse findGroupChats( + com.google.chat.v1.FindGroupChatsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getFindGroupChatsMethod(), getCallOptions(), request); + } + /** * * @@ -7836,6 +7994,35 @@ public com.google.common.util.concurrent.ListenableFuture + * Returns all spaces with `spaceType == GROUP_CHAT`, whose + * human memberships contain exactly the calling user, and the users specified + * in `FindGroupChatsRequest.users`. Only members that have joined the + * conversation are supported. For an example, see [Find group + * chats](https://developers.google.com/workspace/chat/find-group-chats). + * If the calling user blocks, or is blocked by, some users, and no spaces + * with the entire specified set of users are found, this method returns + * spaces that don't include the blocked or blocking users. + * The specified set of users must contain only human (non-app) memberships. + * A request that contains non-human users doesn't return any spaces. + * Requires [user + * authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + * with one of the following [authorization + * scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + * - `https://www.googleapis.com/auth/chat.memberships.readonly` + * - `https://www.googleapis.com/auth/chat.memberships` + * + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.chat.v1.FindGroupChatsResponse> + findGroupChats(com.google.chat.v1.FindGroupChatsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getFindGroupChatsMethod(), getCallOptions()), request); + } + /** * * @@ -8510,30 +8697,31 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -8648,6 +8836,12 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.chat.v1.FindDirectMessageRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_FIND_GROUP_CHATS: + serviceImpl.findGroupChats( + (com.google.chat.v1.FindGroupChatsRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; case METHODID_CREATE_MEMBERSHIP: serviceImpl.createMembership( (com.google.chat.v1.CreateMembershipRequest) request, @@ -8902,6 +9096,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.chat.v1.FindDirectMessageRequest, com.google.chat.v1.Space>( service, METHODID_FIND_DIRECT_MESSAGE))) + .addMethod( + getFindGroupChatsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.chat.v1.FindGroupChatsRequest, + com.google.chat.v1.FindGroupChatsResponse>(service, METHODID_FIND_GROUP_CHATS))) .addMethod( getCreateMembershipMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -9122,6 +9322,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteSpaceMethod()) .addMethod(getCompleteImportSpaceMethod()) .addMethod(getFindDirectMessageMethod()) + .addMethod(getFindGroupChatsMethod()) .addMethod(getCreateMembershipMethod()) .addMethod(getUpdateMembershipMethod()) .addMethod(getDeleteMembershipMethod()) diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java index 2af0aa39dbc3..5139ea4ce4fc 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/ChatServiceProto.java @@ -60,7 +60,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_setting.proto\032%google/chat/v1/space_rea" + "d_state.proto\032 google/chat/v1/space_setu" + "p.proto\032&google/chat/v1/thread_read_stat" - + "e.proto\032\033google/protobuf/empty.proto2\314?\n" + + "e.proto\032\033google/protobuf/empty.proto2\321@\n" + "\013ChatService\022\233\001\n\rCreateMessage\022$.google." + "chat.v1.CreateMessageRequest\032\027.google.ch" + "at.v1.Message\"K\332A\031parent,message,message" @@ -121,154 +121,158 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "/*}:completeImport:\001*\022z\n\021FindDirectMessa" + "ge\022(.google.chat.v1.FindDirectMessageReq" + "uest\032\025.google.chat.v1.Space\"$\202\323\344\223\002\036\022\034/v1" - + "/spaces:findDirectMessage\022\236\001\n\020CreateMemb" - + "ership\022\'.google.chat.v1.CreateMembership" - + "Request\032\032.google.chat.v1.Membership\"E\332A\021" - + "parent,membership\202\323\344\223\002+\"\035/v1/{parent=spa" - + "ces/*}/members:\nmembership\022\256\001\n\020UpdateMem" - + "bership\022\'.google.chat.v1.UpdateMembershi" - + "pRequest\032\032.google.chat.v1.Membership\"U\332A" - + "\026membership,update_mask\202\323\344\223\00262(/v1/{memb" - + "ership.name=spaces/*/members/*}:\nmembers" - + "hip\022\205\001\n\020DeleteMembership\022\'.google.chat.v" - + "1.DeleteMembershipRequest\032\032.google.chat." - + "v1.Membership\",\332A\004name\202\323\344\223\002\037*\035/v1/{name=" - + "spaces/*/members/*}\022\241\001\n\016CreateReaction\022%" - + ".google.chat.v1.CreateReactionRequest\032\030." - + "google.chat.v1.Reaction\"N\332A\017parent,react" - + "ion\202\323\344\223\0026\"*/v1/{parent=spaces/*/messages" - + "/*}/reactions:\010reaction\022\231\001\n\rListReaction" - + "s\022$.google.chat.v1.ListReactionsRequest\032" - + "%.google.chat.v1.ListReactionsResponse\";" - + "\332A\006parent\202\323\344\223\002,\022*/v1/{parent=spaces/*/me" - + "ssages/*}/reactions\022\212\001\n\016DeleteReaction\022%" - + ".google.chat.v1.DeleteReactionRequest\032\026." - + "google.protobuf.Empty\"9\332A\004name\202\323\344\223\002,**/v" - + "1/{name=spaces/*/messages/*/reactions/*}" - + "\022\221\001\n\021CreateCustomEmoji\022(.google.chat.v1." - + "CreateCustomEmojiRequest\032\033.google.chat.v" - + "1.CustomEmoji\"5\332A\014custom_emoji\202\323\344\223\002 \"\020/v" - + "1/customEmojis:\014custom_emoji\022~\n\016GetCusto" - + "mEmoji\022%.google.chat.v1.GetCustomEmojiRe" - + "quest\032\033.google.chat.v1.CustomEmoji\"(\332A\004n" - + "ame\202\323\344\223\002\033\022\031/v1/{name=customEmojis/*}\022\202\001\n" - + "\020ListCustomEmojis\022\'.google.chat.v1.ListC" - + "ustomEmojisRequest\032(.google.chat.v1.List" - + "CustomEmojisResponse\"\033\332A\000\202\323\344\223\002\022\022\020/v1/cus" - + "tomEmojis\022\177\n\021DeleteCustomEmoji\022(.google." - + "chat.v1.DeleteCustomEmojiRequest\032\026.googl" - + "e.protobuf.Empty\"(\332A\004name\202\323\344\223\002\033*\031/v1/{na" - + "me=customEmojis/*}\022\230\001\n\021GetSpaceReadState" - + "\022(.google.chat.v1.GetSpaceReadStateReque" - + "st\032\036.google.chat.v1.SpaceReadState\"9\332A\004n" - + "ame\202\323\344\223\002,\022*/v1/{name=users/*/spaces/*/sp" - + "aceReadState}\022\331\001\n\024UpdateSpaceReadState\022+" - + ".google.chat.v1.UpdateSpaceReadStateRequ" - + "est\032\036.google.chat.v1.SpaceReadState\"t\332A\034" - + "space_read_state,update_mask\202\323\344\223\002O2;/v1/" - + "{space_read_state.name=users/*/spaces/*/" - + "spaceReadState}:\020space_read_state\022\246\001\n\022Ge" - + "tThreadReadState\022).google.chat.v1.GetThr" - + "eadReadStateRequest\032\037.google.chat.v1.Thr" - + "eadReadState\"D\332A\004name\202\323\344\223\0027\0225/v1/{name=u" - + "sers/*/spaces/*/threads/*/threadReadStat" - + "e}\022\203\001\n\rGetSpaceEvent\022$.google.chat.v1.Ge" - + "tSpaceEventRequest\032\032.google.chat.v1.Spac" - + "eEvent\"0\332A\004name\202\323\344\223\002#\022!/v1/{name=spaces/" - + "*/spaceEvents/*}\022\235\001\n\017ListSpaceEvents\022&.g" - + "oogle.chat.v1.ListSpaceEventsRequest\032\'.g" - + "oogle.chat.v1.ListSpaceEventsResponse\"9\332" - + "A\rparent,filter\202\323\344\223\002#\022!/v1/{parent=space" - + "s/*}/spaceEvents\022\300\001\n\033GetSpaceNotificatio" - + "nSetting\0222.google.chat.v1.GetSpaceNotifi" - + "cationSettingRequest\032(.google.chat.v1.Sp" - + "aceNotificationSetting\"C\332A\004name\202\323\344\223\0026\0224/" - + "v1/{name=users/*/spaces/*/spaceNotificat" - + "ionSetting}\022\240\002\n\036UpdateSpaceNotificationS" - + "etting\0225.google.chat.v1.UpdateSpaceNotif" - + "icationSettingRequest\032(.google.chat.v1.S" - + "paceNotificationSetting\"\234\001\332A&space_notif" - + "ication_setting,update_mask\202\323\344\223\002m2O/v1/{" - + "space_notification_setting.name=users/*/" - + "spaces/*/spaceNotificationSetting}:\032spac" - + "e_notification_setting\022\217\001\n\rCreateSection" - + "\022$.google.chat.v1.CreateSectionRequest\032\027" - + ".google.chat.v1.Section\"?\332A\016parent,secti" - + "on\202\323\344\223\002(\"\035/v1/{parent=users/*}/sections:" - + "\007section\022{\n\rDeleteSection\022$.google.chat." - + "v1.DeleteSectionRequest\032\026.google.protobu" - + "f.Empty\",\332A\004name\202\323\344\223\002\037*\035/v1/{name=users/" - + "*/sections/*}\022\234\001\n\rUpdateSection\022$.google" - + ".chat.v1.UpdateSectionRequest\032\027.google.c" - + "hat.v1.Section\"L\332A\023section,update_mask\202\323" - + "\344\223\00202%/v1/{section.name=users/*/sections" - + "/*}:\007section\022\211\001\n\014ListSections\022#.google.c" - + "hat.v1.ListSectionsRequest\032$.google.chat" - + ".v1.ListSectionsResponse\".\332A\006parent\202\323\344\223\002" - + "\037\022\035/v1/{parent=users/*}/sections\022\225\001\n\017Pos" - + "itionSection\022&.google.chat.v1.PositionSe" - + "ctionRequest\032\'.google.chat.v1.PositionSe" - + "ctionResponse\"1\202\323\344\223\002+\"&/v1/{name=users/*" - + "/sections/*}:position:\001*\022\235\001\n\020ListSection" - + "Items\022\'.google.chat.v1.ListSectionItemsR" - + "equest\032(.google.chat.v1.ListSectionItems" - + "Response\"6\332A\006parent\202\323\344\223\002\'\022%/v1/{parent=u" - + "sers/*/sections/*}/items\022\257\001\n\017MoveSection" - + "Item\022&.google.chat.v1.MoveSectionItemReq" - + "uest\032\'.google.chat.v1.MoveSectionItemRes" - + "ponse\"K\332A\023name,target_section\202\323\344\223\002/\"*/v1" - + "/{name=users/*/sections/*/items/*}:move:" - + "\001*\032\276\016\312A\023chat.googleapis.com\322A\244\016https://w" - + "ww.googleapis.com/auth/chat.admin.delete" - + ",https://www.googleapis.com/auth/chat.ad" - + "min.memberships,https://www.googleapis.c" - + "om/auth/chat.admin.memberships.readonly," - + "https://www.googleapis.com/auth/chat.adm" - + "in.spaces,https://www.googleapis.com/aut" - + "h/chat.admin.spaces.readonly,https://www" - + ".googleapis.com/auth/chat.app.delete,htt" - + "ps://www.googleapis.com/auth/chat.app.me" - + "mberships,https://www.googleapis.com/aut" - + "h/chat.app.memberships.readonly,https://" - + "www.googleapis.com/auth/chat.app.message" - + "s.readonly,https://www.googleapis.com/au" - + "th/chat.app.spaces,https://www.googleapi" - + "s.com/auth/chat.app.spaces.create,https:" - + "//www.googleapis.com/auth/chat.app.space" - + "s.readonly,https://www.googleapis.com/au" - + "th/chat.bot,https://www.googleapis.com/a" - + "uth/chat.customemojis,https://www.google" - + "apis.com/auth/chat.customemojis.readonly" - + ",https://www.googleapis.com/auth/chat.de" - + "lete,https://www.googleapis.com/auth/cha" - + "t.import,https://www.googleapis.com/auth" - + "/chat.memberships,https://www.googleapis" - + ".com/auth/chat.memberships.app,https://w" + + "/spaces:findDirectMessage\022\202\001\n\016FindGroupC" + + "hats\022%.google.chat.v1.FindGroupChatsRequ" + + "est\032&.google.chat.v1.FindGroupChatsRespo" + + "nse\"!\202\323\344\223\002\033\022\031/v1/spaces:findGroupChats\022\236" + + "\001\n\020CreateMembership\022\'.google.chat.v1.Cre" + + "ateMembershipRequest\032\032.google.chat.v1.Me" + + "mbership\"E\332A\021parent,membership\202\323\344\223\002+\"\035/v" + + "1/{parent=spaces/*}/members:\nmembership\022" + + "\256\001\n\020UpdateMembership\022\'.google.chat.v1.Up" + + "dateMembershipRequest\032\032.google.chat.v1.M" + + "embership\"U\332A\026membership,update_mask\202\323\344\223" + + "\00262(/v1/{membership.name=spaces/*/member" + + "s/*}:\nmembership\022\205\001\n\020DeleteMembership\022\'." + + "google.chat.v1.DeleteMembershipRequest\032\032" + + ".google.chat.v1.Membership\",\332A\004name\202\323\344\223\002" + + "\037*\035/v1/{name=spaces/*/members/*}\022\241\001\n\016Cre" + + "ateReaction\022%.google.chat.v1.CreateReact" + + "ionRequest\032\030.google.chat.v1.Reaction\"N\332A" + + "\017parent,reaction\202\323\344\223\0026\"*/v1/{parent=spac" + + "es/*/messages/*}/reactions:\010reaction\022\231\001\n" + + "\rListReactions\022$.google.chat.v1.ListReac" + + "tionsRequest\032%.google.chat.v1.ListReacti" + + "onsResponse\";\332A\006parent\202\323\344\223\002,\022*/v1/{paren" + + "t=spaces/*/messages/*}/reactions\022\212\001\n\016Del" + + "eteReaction\022%.google.chat.v1.DeleteReact" + + "ionRequest\032\026.google.protobuf.Empty\"9\332A\004n" + + "ame\202\323\344\223\002,**/v1/{name=spaces/*/messages/*" + + "/reactions/*}\022\221\001\n\021CreateCustomEmoji\022(.go" + + "ogle.chat.v1.CreateCustomEmojiRequest\032\033." + + "google.chat.v1.CustomEmoji\"5\332A\014custom_em" + + "oji\202\323\344\223\002 \"\020/v1/customEmojis:\014custom_emoj" + + "i\022~\n\016GetCustomEmoji\022%.google.chat.v1.Get" + + "CustomEmojiRequest\032\033.google.chat.v1.Cust" + + "omEmoji\"(\332A\004name\202\323\344\223\002\033\022\031/v1/{name=custom" + + "Emojis/*}\022\202\001\n\020ListCustomEmojis\022\'.google." + + "chat.v1.ListCustomEmojisRequest\032(.google" + + ".chat.v1.ListCustomEmojisResponse\"\033\332A\000\202\323" + + "\344\223\002\022\022\020/v1/customEmojis\022\177\n\021DeleteCustomEm" + + "oji\022(.google.chat.v1.DeleteCustomEmojiRe" + + "quest\032\026.google.protobuf.Empty\"(\332A\004name\202\323" + + "\344\223\002\033*\031/v1/{name=customEmojis/*}\022\230\001\n\021GetS" + + "paceReadState\022(.google.chat.v1.GetSpaceR" + + "eadStateRequest\032\036.google.chat.v1.SpaceRe" + + "adState\"9\332A\004name\202\323\344\223\002,\022*/v1/{name=users/" + + "*/spaces/*/spaceReadState}\022\331\001\n\024UpdateSpa" + + "ceReadState\022+.google.chat.v1.UpdateSpace" + + "ReadStateRequest\032\036.google.chat.v1.SpaceR" + + "eadState\"t\332A\034space_read_state,update_mas" + + "k\202\323\344\223\002O2;/v1/{space_read_state.name=user" + + "s/*/spaces/*/spaceReadState}:\020space_read" + + "_state\022\246\001\n\022GetThreadReadState\022).google.c" + + "hat.v1.GetThreadReadStateRequest\032\037.googl" + + "e.chat.v1.ThreadReadState\"D\332A\004name\202\323\344\223\0027" + + "\0225/v1/{name=users/*/spaces/*/threads/*/t" + + "hreadReadState}\022\203\001\n\rGetSpaceEvent\022$.goog" + + "le.chat.v1.GetSpaceEventRequest\032\032.google" + + ".chat.v1.SpaceEvent\"0\332A\004name\202\323\344\223\002#\022!/v1/" + + "{name=spaces/*/spaceEvents/*}\022\235\001\n\017ListSp" + + "aceEvents\022&.google.chat.v1.ListSpaceEven" + + "tsRequest\032\'.google.chat.v1.ListSpaceEven" + + "tsResponse\"9\332A\rparent,filter\202\323\344\223\002#\022!/v1/" + + "{parent=spaces/*}/spaceEvents\022\300\001\n\033GetSpa" + + "ceNotificationSetting\0222.google.chat.v1.G" + + "etSpaceNotificationSettingRequest\032(.goog" + + "le.chat.v1.SpaceNotificationSetting\"C\332A\004" + + "name\202\323\344\223\0026\0224/v1/{name=users/*/spaces/*/s" + + "paceNotificationSetting}\022\240\002\n\036UpdateSpace" + + "NotificationSetting\0225.google.chat.v1.Upd" + + "ateSpaceNotificationSettingRequest\032(.goo" + + "gle.chat.v1.SpaceNotificationSetting\"\234\001\332" + + "A&space_notification_setting,update_mask" + + "\202\323\344\223\002m2O/v1/{space_notification_setting." + + "name=users/*/spaces/*/spaceNotificationS" + + "etting}:\032space_notification_setting\022\217\001\n\r" + + "CreateSection\022$.google.chat.v1.CreateSec" + + "tionRequest\032\027.google.chat.v1.Section\"?\332A" + + "\016parent,section\202\323\344\223\002(\"\035/v1/{parent=users" + + "/*}/sections:\007section\022{\n\rDeleteSection\022$" + + ".google.chat.v1.DeleteSectionRequest\032\026.g" + + "oogle.protobuf.Empty\",\332A\004name\202\323\344\223\002\037*\035/v1" + + "/{name=users/*/sections/*}\022\234\001\n\rUpdateSec" + + "tion\022$.google.chat.v1.UpdateSectionReque" + + "st\032\027.google.chat.v1.Section\"L\332A\023section," + + "update_mask\202\323\344\223\00202%/v1/{section.name=use" + + "rs/*/sections/*}:\007section\022\211\001\n\014ListSectio" + + "ns\022#.google.chat.v1.ListSectionsRequest\032" + + "$.google.chat.v1.ListSectionsResponse\".\332" + + "A\006parent\202\323\344\223\002\037\022\035/v1/{parent=users/*}/sec" + + "tions\022\225\001\n\017PositionSection\022&.google.chat." + + "v1.PositionSectionRequest\032\'.google.chat." + + "v1.PositionSectionResponse\"1\202\323\344\223\002+\"&/v1/" + + "{name=users/*/sections/*}:position:\001*\022\235\001" + + "\n\020ListSectionItems\022\'.google.chat.v1.List" + + "SectionItemsRequest\032(.google.chat.v1.Lis" + + "tSectionItemsResponse\"6\332A\006parent\202\323\344\223\002\'\022%" + + "/v1/{parent=users/*/sections/*}/items\022\257\001" + + "\n\017MoveSectionItem\022&.google.chat.v1.MoveS" + + "ectionItemRequest\032\'.google.chat.v1.MoveS" + + "ectionItemResponse\"K\332A\023name,target_secti" + + "on\202\323\344\223\002/\"*/v1/{name=users/*/sections/*/i" + + "tems/*}:move:\001*\032\276\016\312A\023chat.googleapis.com" + + "\322A\244\016https://www.googleapis.com/auth/chat" + + ".admin.delete,https://www.googleapis.com" + + "/auth/chat.admin.memberships,https://www" + + ".googleapis.com/auth/chat.admin.membersh" + + "ips.readonly,https://www.googleapis.com/" + + "auth/chat.admin.spaces,https://www.googl" + + "eapis.com/auth/chat.admin.spaces.readonl" + + "y,https://www.googleapis.com/auth/chat.a" + + "pp.delete,https://www.googleapis.com/aut" + + "h/chat.app.memberships,https://www.googl" + + "eapis.com/auth/chat.app.memberships.read" + + "only,https://www.googleapis.com/auth/cha" + + "t.app.messages.readonly,https://www.goog" + + "leapis.com/auth/chat.app.spaces,https://" + + "www.googleapis.com/auth/chat.app.spaces." + + "create,https://www.googleapis.com/auth/c" + + "hat.app.spaces.readonly,https://www.goog" + + "leapis.com/auth/chat.bot,https://www.goo" + + "gleapis.com/auth/chat.customemojis,https" + + "://www.googleapis.com/auth/chat.customem" + + "ojis.readonly,https://www.googleapis.com" + + "/auth/chat.delete,https://www.googleapis" + + ".com/auth/chat.import,https://www.google" + + "apis.com/auth/chat.memberships,https://w" + "ww.googleapis.com/auth/chat.memberships." - + "readonly,https://www.googleapis.com/auth" - + "/chat.messages,https://www.googleapis.co" - + "m/auth/chat.messages.create,https://www." - + "googleapis.com/auth/chat.messages.reacti" - + "ons,https://www.googleapis.com/auth/chat" - + ".messages.reactions.create,https://www.g" - + "oogleapis.com/auth/chat.messages.reactio" - + "ns.readonly,https://www.googleapis.com/a" - + "uth/chat.messages.readonly,https://www.g" - + "oogleapis.com/auth/chat.spaces,https://w" - + "ww.googleapis.com/auth/chat.spaces.creat" - + "e,https://www.googleapis.com/auth/chat.s" - + "paces.readonly,https://www.googleapis.co" - + "m/auth/chat.users.readstate,https://www." + + "app,https://www.googleapis.com/auth/chat" + + ".memberships.readonly,https://www.google" + + "apis.com/auth/chat.messages,https://www." + + "googleapis.com/auth/chat.messages.create" + + ",https://www.googleapis.com/auth/chat.me" + + "ssages.reactions,https://www.googleapis." + + "com/auth/chat.messages.reactions.create," + + "https://www.googleapis.com/auth/chat.mes" + + "sages.reactions.readonly,https://www.goo" + + "gleapis.com/auth/chat.messages.readonly," + + "https://www.googleapis.com/auth/chat.spa" + + "ces,https://www.googleapis.com/auth/chat" + + ".spaces.create,https://www.googleapis.co" + + "m/auth/chat.spaces.readonly,https://www." + "googleapis.com/auth/chat.users.readstate" - + ".readonly,https://www.googleapis.com/aut" - + "h/chat.users.sections,https://www.google" - + "apis.com/auth/chat.users.sections.readon" - + "ly,https://www.googleapis.com/auth/chat." - + "users.spacesettingsB\251\001\n\022com.google.chat." - + "v1B\020ChatServiceProtoP\001Z,cloud.google.com" - + "/go/chat/apiv1/chatpb;chatpb\242\002\013DYNAPIPro" - + "to\252\002\023Google.Apps.Chat.V1\312\002\023Google\\Apps\\C" - + "hat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + ",https://www.googleapis.com/auth/chat.us" + + "ers.readstate.readonly,https://www.googl" + + "eapis.com/auth/chat.users.sections,https" + + "://www.googleapis.com/auth/chat.users.se" + + "ctions.readonly,https://www.googleapis.c" + + "om/auth/chat.users.spacesettingsB\251\001\n\022com" + + ".google.chat.v1B\020ChatServiceProtoP\001Z,clo" + + "ud.google.com/go/chat/apiv1/chatpb;chatp" + + "b\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023" + + "Google\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat" + + "::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequest.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequest.java new file mode 100644 index 000000000000..b973415cb584 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequest.java @@ -0,0 +1,1431 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
    + * A request to get group chat spaces based on user resources.
    + * 
    + * + * Protobuf type {@code google.chat.v1.FindGroupChatsRequest} + */ +@com.google.protobuf.Generated +public final class FindGroupChatsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.FindGroupChatsRequest) + FindGroupChatsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FindGroupChatsRequest"); + } + + // Use FindGroupChatsRequest.newBuilder() to construct. + private FindGroupChatsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FindGroupChatsRequest() { + users_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pageToken_ = ""; + spaceView_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.FindGroupChatsRequest.class, + com.google.chat.v1.FindGroupChatsRequest.Builder.class); + } + + public static final int USERS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList users_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
    +   * Optional. Resource names of all human users in group chat with the calling
    +   * user. Chat apps can't be included in the request.
    +   *
    +   * The maximum number of users that can be specified in a single request is
    +   * `49`.
    +   *
    +   * Format: `users/{user}`, where `{user}` is either the `id` for the
    +   * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +   * People API, or the `id` for the
    +   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +   * in the Directory API. For example, to find all group chats with the calling
    +   * user and two other users, with People API profile IDs `123456789` and
    +   * `987654321`, you can use `users/123456789` and `users/987654321`.
    +   * You can also use the email as an alias for `{user}`. For example,
    +   * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +   * Google Chat user.
    +   * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the users. + */ + public com.google.protobuf.ProtocolStringList getUsersList() { + return users_; + } + + /** + * + * + *
    +   * Optional. Resource names of all human users in group chat with the calling
    +   * user. Chat apps can't be included in the request.
    +   *
    +   * The maximum number of users that can be specified in a single request is
    +   * `49`.
    +   *
    +   * Format: `users/{user}`, where `{user}` is either the `id` for the
    +   * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +   * People API, or the `id` for the
    +   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +   * in the Directory API. For example, to find all group chats with the calling
    +   * user and two other users, with People API profile IDs `123456789` and
    +   * `987654321`, you can use `users/123456789` and `users/987654321`.
    +   * You can also use the email as an alias for `{user}`. For example,
    +   * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +   * Google Chat user.
    +   * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of users. + */ + public int getUsersCount() { + return users_.size(); + } + + /** + * + * + *
    +   * Optional. Resource names of all human users in group chat with the calling
    +   * user. Chat apps can't be included in the request.
    +   *
    +   * The maximum number of users that can be specified in a single request is
    +   * `49`.
    +   *
    +   * Format: `users/{user}`, where `{user}` is either the `id` for the
    +   * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +   * People API, or the `id` for the
    +   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +   * in the Directory API. For example, to find all group chats with the calling
    +   * user and two other users, with People API profile IDs `123456789` and
    +   * `987654321`, you can use `users/123456789` and `users/987654321`.
    +   * You can also use the email as an alias for `{user}`. For example,
    +   * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +   * Google Chat user.
    +   * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The users at the given index. + */ + public java.lang.String getUsers(int index) { + return users_.get(index); + } + + /** + * + * + *
    +   * Optional. Resource names of all human users in group chat with the calling
    +   * user. Chat apps can't be included in the request.
    +   *
    +   * The maximum number of users that can be specified in a single request is
    +   * `49`.
    +   *
    +   * Format: `users/{user}`, where `{user}` is either the `id` for the
    +   * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +   * People API, or the `id` for the
    +   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +   * in the Directory API. For example, to find all group chats with the calling
    +   * user and two other users, with People API profile IDs `123456789` and
    +   * `987654321`, you can use `users/123456789` and `users/987654321`.
    +   * You can also use the email as an alias for `{user}`. For example,
    +   * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +   * Google Chat user.
    +   * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the users at the given index. + */ + public com.google.protobuf.ByteString getUsersBytes(int index) { + return users_.getByteString(index); + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
    +   * Optional. The maximum number of spaces to return. The service might return
    +   * fewer than this value.
    +   *
    +   * If unspecified, at most 10 spaces are returned.
    +   *
    +   * The maximum value is 30. If you use a value more than 30, it's
    +   * automatically changed to 30.
    +   *
    +   * Negative values return an `INVALID_ARGUMENT` error.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +   * Optional. A page token, received from a previous call to find group chats.
    +   * Provide this parameter to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided should match the call that
    +   * provided the token. Passing different values may lead to unexpected
    +   * results.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. A page token, received from a previous call to find group chats.
    +   * Provide this parameter to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided should match the call that
    +   * provided the token. Passing different values may lead to unexpected
    +   * results.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SPACE_VIEW_FIELD_NUMBER = 4; + private int spaceView_ = 0; + + /** + * + * + *
    +   * Requested space view type. If unset, defaults to
    +   * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
    +   * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
    +   * for example,
    +   * https://www.googleapis.com/auth/chat.spaces or
    +   * https://www.googleapis.com/auth/chat.spaces.readonly.
    +   * 
    + * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The enum numeric value on the wire for spaceView. + */ + @java.lang.Override + public int getSpaceViewValue() { + return spaceView_; + } + + /** + * + * + *
    +   * Requested space view type. If unset, defaults to
    +   * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
    +   * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
    +   * for example,
    +   * https://www.googleapis.com/auth/chat.spaces or
    +   * https://www.googleapis.com/auth/chat.spaces.readonly.
    +   * 
    + * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The spaceView. + */ + @java.lang.Override + public com.google.chat.v1.SpaceView getSpaceView() { + com.google.chat.v1.SpaceView result = com.google.chat.v1.SpaceView.forNumber(spaceView_); + return result == null ? com.google.chat.v1.SpaceView.UNRECOGNIZED : result; + } + + 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 (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (spaceView_ != com.google.chat.v1.SpaceView.SPACE_VIEW_UNSPECIFIED.getNumber()) { + output.writeEnum(4, spaceView_); + } + for (int i = 0; i < users_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, users_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (spaceView_ != com.google.chat.v1.SpaceView.SPACE_VIEW_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, spaceView_); + } + { + int dataSize = 0; + for (int i = 0; i < users_.size(); i++) { + dataSize += computeStringSizeNoTag(users_.getRaw(i)); + } + size += dataSize; + size += 1 * getUsersList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.chat.v1.FindGroupChatsRequest)) { + return super.equals(obj); + } + com.google.chat.v1.FindGroupChatsRequest other = (com.google.chat.v1.FindGroupChatsRequest) obj; + + if (!getUsersList().equals(other.getUsersList())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (spaceView_ != other.spaceView_) 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 (getUsersCount() > 0) { + hash = (37 * hash) + USERS_FIELD_NUMBER; + hash = (53 * hash) + getUsersList().hashCode(); + } + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + SPACE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + spaceView_; + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsRequest 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.chat.v1.FindGroupChatsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.FindGroupChatsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A request to get group chat spaces based on user resources.
    +   * 
    + * + * Protobuf type {@code google.chat.v1.FindGroupChatsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.FindGroupChatsRequest) + com.google.chat.v1.FindGroupChatsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.FindGroupChatsRequest.class, + com.google.chat.v1.FindGroupChatsRequest.Builder.class); + } + + // Construct using com.google.chat.v1.FindGroupChatsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + users_ = com.google.protobuf.LazyStringArrayList.emptyList(); + pageSize_ = 0; + pageToken_ = ""; + spaceView_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsRequest_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsRequest getDefaultInstanceForType() { + return com.google.chat.v1.FindGroupChatsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsRequest build() { + com.google.chat.v1.FindGroupChatsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsRequest buildPartial() { + com.google.chat.v1.FindGroupChatsRequest result = + new com.google.chat.v1.FindGroupChatsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.chat.v1.FindGroupChatsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + users_.makeImmutable(); + result.users_ = users_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.spaceView_ = spaceView_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.FindGroupChatsRequest) { + return mergeFrom((com.google.chat.v1.FindGroupChatsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.FindGroupChatsRequest other) { + if (other == com.google.chat.v1.FindGroupChatsRequest.getDefaultInstance()) return this; + if (!other.users_.isEmpty()) { + if (users_.isEmpty()) { + users_ = other.users_; + bitField0_ |= 0x00000001; + } else { + ensureUsersIsMutable(); + users_.addAll(other.users_); + } + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.spaceView_ != 0) { + setSpaceViewValue(other.getSpaceViewValue()); + } + 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 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + spaceView_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + case 42: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureUsersIsMutable(); + users_.add(s); + break; + } // case 42 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.protobuf.LazyStringArrayList users_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureUsersIsMutable() { + if (!users_.isModifiable()) { + users_ = new com.google.protobuf.LazyStringArrayList(users_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
    +     * Optional. Resource names of all human users in group chat with the calling
    +     * user. Chat apps can't be included in the request.
    +     *
    +     * The maximum number of users that can be specified in a single request is
    +     * `49`.
    +     *
    +     * Format: `users/{user}`, where `{user}` is either the `id` for the
    +     * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +     * People API, or the `id` for the
    +     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +     * in the Directory API. For example, to find all group chats with the calling
    +     * user and two other users, with People API profile IDs `123456789` and
    +     * `987654321`, you can use `users/123456789` and `users/987654321`.
    +     * You can also use the email as an alias for `{user}`. For example,
    +     * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +     * Google Chat user.
    +     * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the users. + */ + public com.google.protobuf.ProtocolStringList getUsersList() { + users_.makeImmutable(); + return users_; + } + + /** + * + * + *
    +     * Optional. Resource names of all human users in group chat with the calling
    +     * user. Chat apps can't be included in the request.
    +     *
    +     * The maximum number of users that can be specified in a single request is
    +     * `49`.
    +     *
    +     * Format: `users/{user}`, where `{user}` is either the `id` for the
    +     * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +     * People API, or the `id` for the
    +     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +     * in the Directory API. For example, to find all group chats with the calling
    +     * user and two other users, with People API profile IDs `123456789` and
    +     * `987654321`, you can use `users/123456789` and `users/987654321`.
    +     * You can also use the email as an alias for `{user}`. For example,
    +     * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +     * Google Chat user.
    +     * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of users. + */ + public int getUsersCount() { + return users_.size(); + } + + /** + * + * + *
    +     * Optional. Resource names of all human users in group chat with the calling
    +     * user. Chat apps can't be included in the request.
    +     *
    +     * The maximum number of users that can be specified in a single request is
    +     * `49`.
    +     *
    +     * Format: `users/{user}`, where `{user}` is either the `id` for the
    +     * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +     * People API, or the `id` for the
    +     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +     * in the Directory API. For example, to find all group chats with the calling
    +     * user and two other users, with People API profile IDs `123456789` and
    +     * `987654321`, you can use `users/123456789` and `users/987654321`.
    +     * You can also use the email as an alias for `{user}`. For example,
    +     * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +     * Google Chat user.
    +     * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The users at the given index. + */ + public java.lang.String getUsers(int index) { + return users_.get(index); + } + + /** + * + * + *
    +     * Optional. Resource names of all human users in group chat with the calling
    +     * user. Chat apps can't be included in the request.
    +     *
    +     * The maximum number of users that can be specified in a single request is
    +     * `49`.
    +     *
    +     * Format: `users/{user}`, where `{user}` is either the `id` for the
    +     * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +     * People API, or the `id` for the
    +     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +     * in the Directory API. For example, to find all group chats with the calling
    +     * user and two other users, with People API profile IDs `123456789` and
    +     * `987654321`, you can use `users/123456789` and `users/987654321`.
    +     * You can also use the email as an alias for `{user}`. For example,
    +     * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +     * Google Chat user.
    +     * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the users at the given index. + */ + public com.google.protobuf.ByteString getUsersBytes(int index) { + return users_.getByteString(index); + } + + /** + * + * + *
    +     * Optional. Resource names of all human users in group chat with the calling
    +     * user. Chat apps can't be included in the request.
    +     *
    +     * The maximum number of users that can be specified in a single request is
    +     * `49`.
    +     *
    +     * Format: `users/{user}`, where `{user}` is either the `id` for the
    +     * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +     * People API, or the `id` for the
    +     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +     * in the Directory API. For example, to find all group chats with the calling
    +     * user and two other users, with People API profile IDs `123456789` and
    +     * `987654321`, you can use `users/123456789` and `users/987654321`.
    +     * You can also use the email as an alias for `{user}`. For example,
    +     * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +     * Google Chat user.
    +     * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The users to set. + * @return This builder for chaining. + */ + public Builder setUsers(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Resource names of all human users in group chat with the calling
    +     * user. Chat apps can't be included in the request.
    +     *
    +     * The maximum number of users that can be specified in a single request is
    +     * `49`.
    +     *
    +     * Format: `users/{user}`, where `{user}` is either the `id` for the
    +     * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +     * People API, or the `id` for the
    +     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +     * in the Directory API. For example, to find all group chats with the calling
    +     * user and two other users, with People API profile IDs `123456789` and
    +     * `987654321`, you can use `users/123456789` and `users/987654321`.
    +     * You can also use the email as an alias for `{user}`. For example,
    +     * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +     * Google Chat user.
    +     * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The users to add. + * @return This builder for chaining. + */ + public Builder addUsers(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureUsersIsMutable(); + users_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Resource names of all human users in group chat with the calling
    +     * user. Chat apps can't be included in the request.
    +     *
    +     * The maximum number of users that can be specified in a single request is
    +     * `49`.
    +     *
    +     * Format: `users/{user}`, where `{user}` is either the `id` for the
    +     * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +     * People API, or the `id` for the
    +     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +     * in the Directory API. For example, to find all group chats with the calling
    +     * user and two other users, with People API profile IDs `123456789` and
    +     * `987654321`, you can use `users/123456789` and `users/987654321`.
    +     * You can also use the email as an alias for `{user}`. For example,
    +     * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +     * Google Chat user.
    +     * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The users to add. + * @return This builder for chaining. + */ + public Builder addAllUsers(java.lang.Iterable values) { + ensureUsersIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, users_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Resource names of all human users in group chat with the calling
    +     * user. Chat apps can't be included in the request.
    +     *
    +     * The maximum number of users that can be specified in a single request is
    +     * `49`.
    +     *
    +     * Format: `users/{user}`, where `{user}` is either the `id` for the
    +     * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +     * People API, or the `id` for the
    +     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +     * in the Directory API. For example, to find all group chats with the calling
    +     * user and two other users, with People API profile IDs `123456789` and
    +     * `987654321`, you can use `users/123456789` and `users/987654321`.
    +     * You can also use the email as an alias for `{user}`. For example,
    +     * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +     * Google Chat user.
    +     * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearUsers() { + users_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Resource names of all human users in group chat with the calling
    +     * user. Chat apps can't be included in the request.
    +     *
    +     * The maximum number of users that can be specified in a single request is
    +     * `49`.
    +     *
    +     * Format: `users/{user}`, where `{user}` is either the `id` for the
    +     * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +     * People API, or the `id` for the
    +     * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +     * in the Directory API. For example, to find all group chats with the calling
    +     * user and two other users, with People API profile IDs `123456789` and
    +     * `987654321`, you can use `users/123456789` and `users/987654321`.
    +     * You can also use the email as an alias for `{user}`. For example,
    +     * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +     * Google Chat user.
    +     * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the users to add. + * @return This builder for chaining. + */ + public Builder addUsersBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureUsersIsMutable(); + users_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
    +     * Optional. The maximum number of spaces to return. The service might return
    +     * fewer than this value.
    +     *
    +     * If unspecified, at most 10 spaces are returned.
    +     *
    +     * The maximum value is 30. If you use a value more than 30, it's
    +     * automatically changed to 30.
    +     *
    +     * Negative values return an `INVALID_ARGUMENT` error.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
    +     * Optional. The maximum number of spaces to return. The service might return
    +     * fewer than this value.
    +     *
    +     * If unspecified, at most 10 spaces are returned.
    +     *
    +     * The maximum value is 30. If you use a value more than 30, it's
    +     * automatically changed to 30.
    +     *
    +     * Negative values return an `INVALID_ARGUMENT` error.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. The maximum number of spaces to return. The service might return
    +     * fewer than this value.
    +     *
    +     * If unspecified, at most 10 spaces are returned.
    +     *
    +     * The maximum value is 30. If you use a value more than 30, it's
    +     * automatically changed to 30.
    +     *
    +     * Negative values return an `INVALID_ARGUMENT` error.
    +     * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
    +     * Optional. A page token, received from a previous call to find group chats.
    +     * Provide this parameter to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided should match the call that
    +     * provided the token. Passing different values may lead to unexpected
    +     * results.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. A page token, received from a previous call to find group chats.
    +     * Provide this parameter to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided should match the call that
    +     * provided the token. Passing different values may lead to unexpected
    +     * results.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. A page token, received from a previous call to find group chats.
    +     * Provide this parameter to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided should match the call that
    +     * provided the token. Passing different values may lead to unexpected
    +     * results.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A page token, received from a previous call to find group chats.
    +     * Provide this parameter to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided should match the call that
    +     * provided the token. Passing different values may lead to unexpected
    +     * results.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. A page token, received from a previous call to find group chats.
    +     * Provide this parameter to retrieve the subsequent page.
    +     *
    +     * When paginating, all other parameters provided should match the call that
    +     * provided the token. Passing different values may lead to unexpected
    +     * results.
    +     * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int spaceView_ = 0; + + /** + * + * + *
    +     * Requested space view type. If unset, defaults to
    +     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
    +     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
    +     * for example,
    +     * https://www.googleapis.com/auth/chat.spaces or
    +     * https://www.googleapis.com/auth/chat.spaces.readonly.
    +     * 
    + * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The enum numeric value on the wire for spaceView. + */ + @java.lang.Override + public int getSpaceViewValue() { + return spaceView_; + } + + /** + * + * + *
    +     * Requested space view type. If unset, defaults to
    +     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
    +     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
    +     * for example,
    +     * https://www.googleapis.com/auth/chat.spaces or
    +     * https://www.googleapis.com/auth/chat.spaces.readonly.
    +     * 
    + * + * .google.chat.v1.SpaceView space_view = 4; + * + * @param value The enum numeric value on the wire for spaceView to set. + * @return This builder for chaining. + */ + public Builder setSpaceViewValue(int value) { + spaceView_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Requested space view type. If unset, defaults to
    +     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
    +     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
    +     * for example,
    +     * https://www.googleapis.com/auth/chat.spaces or
    +     * https://www.googleapis.com/auth/chat.spaces.readonly.
    +     * 
    + * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The spaceView. + */ + @java.lang.Override + public com.google.chat.v1.SpaceView getSpaceView() { + com.google.chat.v1.SpaceView result = com.google.chat.v1.SpaceView.forNumber(spaceView_); + return result == null ? com.google.chat.v1.SpaceView.UNRECOGNIZED : result; + } + + /** + * + * + *
    +     * Requested space view type. If unset, defaults to
    +     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
    +     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
    +     * for example,
    +     * https://www.googleapis.com/auth/chat.spaces or
    +     * https://www.googleapis.com/auth/chat.spaces.readonly.
    +     * 
    + * + * .google.chat.v1.SpaceView space_view = 4; + * + * @param value The spaceView to set. + * @return This builder for chaining. + */ + public Builder setSpaceView(com.google.chat.v1.SpaceView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + spaceView_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Requested space view type. If unset, defaults to
    +     * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
    +     * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
    +     * for example,
    +     * https://www.googleapis.com/auth/chat.spaces or
    +     * https://www.googleapis.com/auth/chat.spaces.readonly.
    +     * 
    + * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return This builder for chaining. + */ + public Builder clearSpaceView() { + bitField0_ = (bitField0_ & ~0x00000008); + spaceView_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.FindGroupChatsRequest) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.FindGroupChatsRequest) + private static final com.google.chat.v1.FindGroupChatsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.FindGroupChatsRequest(); + } + + public static com.google.chat.v1.FindGroupChatsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindGroupChatsRequest 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.chat.v1.FindGroupChatsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequestOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequestOrBuilder.java new file mode 100644 index 000000000000..066d1e4582cf --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsRequestOrBuilder.java @@ -0,0 +1,235 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface FindGroupChatsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.FindGroupChatsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Optional. Resource names of all human users in group chat with the calling
    +   * user. Chat apps can't be included in the request.
    +   *
    +   * The maximum number of users that can be specified in a single request is
    +   * `49`.
    +   *
    +   * Format: `users/{user}`, where `{user}` is either the `id` for the
    +   * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +   * People API, or the `id` for the
    +   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +   * in the Directory API. For example, to find all group chats with the calling
    +   * user and two other users, with People API profile IDs `123456789` and
    +   * `987654321`, you can use `users/123456789` and `users/987654321`.
    +   * You can also use the email as an alias for `{user}`. For example,
    +   * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +   * Google Chat user.
    +   * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the users. + */ + java.util.List getUsersList(); + + /** + * + * + *
    +   * Optional. Resource names of all human users in group chat with the calling
    +   * user. Chat apps can't be included in the request.
    +   *
    +   * The maximum number of users that can be specified in a single request is
    +   * `49`.
    +   *
    +   * Format: `users/{user}`, where `{user}` is either the `id` for the
    +   * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +   * People API, or the `id` for the
    +   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +   * in the Directory API. For example, to find all group chats with the calling
    +   * user and two other users, with People API profile IDs `123456789` and
    +   * `987654321`, you can use `users/123456789` and `users/987654321`.
    +   * You can also use the email as an alias for `{user}`. For example,
    +   * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +   * Google Chat user.
    +   * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of users. + */ + int getUsersCount(); + + /** + * + * + *
    +   * Optional. Resource names of all human users in group chat with the calling
    +   * user. Chat apps can't be included in the request.
    +   *
    +   * The maximum number of users that can be specified in a single request is
    +   * `49`.
    +   *
    +   * Format: `users/{user}`, where `{user}` is either the `id` for the
    +   * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +   * People API, or the `id` for the
    +   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +   * in the Directory API. For example, to find all group chats with the calling
    +   * user and two other users, with People API profile IDs `123456789` and
    +   * `987654321`, you can use `users/123456789` and `users/987654321`.
    +   * You can also use the email as an alias for `{user}`. For example,
    +   * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +   * Google Chat user.
    +   * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The users at the given index. + */ + java.lang.String getUsers(int index); + + /** + * + * + *
    +   * Optional. Resource names of all human users in group chat with the calling
    +   * user. Chat apps can't be included in the request.
    +   *
    +   * The maximum number of users that can be specified in a single request is
    +   * `49`.
    +   *
    +   * Format: `users/{user}`, where `{user}` is either the `id` for the
    +   * [person](https://developers.google.com/people/api/rest/v1/people) from the
    +   * People API, or the `id` for the
    +   * [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users)
    +   * in the Directory API. For example, to find all group chats with the calling
    +   * user and two other users, with People API profile IDs `123456789` and
    +   * `987654321`, you can use `users/123456789` and `users/987654321`.
    +   * You can also use the email as an alias for `{user}`. For example,
    +   * `users/example@gmail.com` where `example@gmail.com` is the email of the
    +   * Google Chat user.
    +   * 
    + * + * repeated string users = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the users at the given index. + */ + com.google.protobuf.ByteString getUsersBytes(int index); + + /** + * + * + *
    +   * Optional. The maximum number of spaces to return. The service might return
    +   * fewer than this value.
    +   *
    +   * If unspecified, at most 10 spaces are returned.
    +   *
    +   * The maximum value is 30. If you use a value more than 30, it's
    +   * automatically changed to 30.
    +   *
    +   * Negative values return an `INVALID_ARGUMENT` error.
    +   * 
    + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous call to find group chats.
    +   * Provide this parameter to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided should match the call that
    +   * provided the token. Passing different values may lead to unexpected
    +   * results.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
    +   * Optional. A page token, received from a previous call to find group chats.
    +   * Provide this parameter to retrieve the subsequent page.
    +   *
    +   * When paginating, all other parameters provided should match the call that
    +   * provided the token. Passing different values may lead to unexpected
    +   * results.
    +   * 
    + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
    +   * Requested space view type. If unset, defaults to
    +   * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
    +   * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
    +   * for example,
    +   * https://www.googleapis.com/auth/chat.spaces or
    +   * https://www.googleapis.com/auth/chat.spaces.readonly.
    +   * 
    + * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The enum numeric value on the wire for spaceView. + */ + int getSpaceViewValue(); + + /** + * + * + *
    +   * Requested space view type. If unset, defaults to
    +   * `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify
    +   * `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data,
    +   * for example,
    +   * https://www.googleapis.com/auth/chat.spaces or
    +   * https://www.googleapis.com/auth/chat.spaces.readonly.
    +   * 
    + * + * .google.chat.v1.SpaceView space_view = 4; + * + * @return The spaceView. + */ + com.google.chat.v1.SpaceView getSpaceView(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponse.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponse.java new file mode 100644 index 000000000000..f78b9da04db6 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponse.java @@ -0,0 +1,1110 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
    + * A response containing group chat spaces with exactly the calling user and the
    + * requested users.
    + * 
    + * + * Protobuf type {@code google.chat.v1.FindGroupChatsResponse} + */ +@com.google.protobuf.Generated +public final class FindGroupChatsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.chat.v1.FindGroupChatsResponse) + FindGroupChatsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FindGroupChatsResponse"); + } + + // Use FindGroupChatsResponse.newBuilder() to construct. + private FindGroupChatsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private FindGroupChatsResponse() { + spaces_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.FindGroupChatsResponse.class, + com.google.chat.v1.FindGroupChatsResponse.Builder.class); + } + + public static final int SPACES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List spaces_; + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public java.util.List getSpacesList() { + return spaces_; + } + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public java.util.List getSpacesOrBuilderList() { + return spaces_; + } + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public int getSpacesCount() { + return spaces_.size(); + } + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public com.google.chat.v1.Space getSpaces(int index) { + return spaces_.get(index); + } + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + @java.lang.Override + public com.google.chat.v1.SpaceOrBuilder getSpacesOrBuilder(int index) { + return spaces_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +   * A token that you can send as `pageToken` to retrieve the next page of
    +   * results. If empty, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
    +   * A token that you can send as `pageToken` to retrieve the next page of
    +   * results. If empty, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < spaces_.size(); i++) { + output.writeMessage(1, spaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < spaces_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, spaces_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.chat.v1.FindGroupChatsResponse)) { + return super.equals(obj); + } + com.google.chat.v1.FindGroupChatsResponse other = + (com.google.chat.v1.FindGroupChatsResponse) obj; + + if (!getSpacesList().equals(other.getSpacesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getSpacesCount() > 0) { + hash = (37 * hash) + SPACES_FIELD_NUMBER; + hash = (53 * hash) + getSpacesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsResponse 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.chat.v1.FindGroupChatsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.chat.v1.FindGroupChatsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.chat.v1.FindGroupChatsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * A response containing group chat spaces with exactly the calling user and the
    +   * requested users.
    +   * 
    + * + * Protobuf type {@code google.chat.v1.FindGroupChatsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.chat.v1.FindGroupChatsResponse) + com.google.chat.v1.FindGroupChatsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.chat.v1.FindGroupChatsResponse.class, + com.google.chat.v1.FindGroupChatsResponse.Builder.class); + } + + // Construct using com.google.chat.v1.FindGroupChatsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (spacesBuilder_ == null) { + spaces_ = java.util.Collections.emptyList(); + } else { + spaces_ = null; + spacesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.chat.v1.SpaceProto + .internal_static_google_chat_v1_FindGroupChatsResponse_descriptor; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsResponse getDefaultInstanceForType() { + return com.google.chat.v1.FindGroupChatsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsResponse build() { + com.google.chat.v1.FindGroupChatsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.chat.v1.FindGroupChatsResponse buildPartial() { + com.google.chat.v1.FindGroupChatsResponse result = + new com.google.chat.v1.FindGroupChatsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.chat.v1.FindGroupChatsResponse result) { + if (spacesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + spaces_ = java.util.Collections.unmodifiableList(spaces_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.spaces_ = spaces_; + } else { + result.spaces_ = spacesBuilder_.build(); + } + } + + private void buildPartial0(com.google.chat.v1.FindGroupChatsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.chat.v1.FindGroupChatsResponse) { + return mergeFrom((com.google.chat.v1.FindGroupChatsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.chat.v1.FindGroupChatsResponse other) { + if (other == com.google.chat.v1.FindGroupChatsResponse.getDefaultInstance()) return this; + if (spacesBuilder_ == null) { + if (!other.spaces_.isEmpty()) { + if (spaces_.isEmpty()) { + spaces_ = other.spaces_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureSpacesIsMutable(); + spaces_.addAll(other.spaces_); + } + onChanged(); + } + } else { + if (!other.spaces_.isEmpty()) { + if (spacesBuilder_.isEmpty()) { + spacesBuilder_.dispose(); + spacesBuilder_ = null; + spaces_ = other.spaces_; + bitField0_ = (bitField0_ & ~0x00000001); + spacesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetSpacesFieldBuilder() + : null; + } else { + spacesBuilder_.addAllMessages(other.spaces_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.chat.v1.Space m = + input.readMessage(com.google.chat.v1.Space.parser(), extensionRegistry); + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(m); + } else { + spacesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List spaces_ = java.util.Collections.emptyList(); + + private void ensureSpacesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + spaces_ = new java.util.ArrayList(spaces_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Space, + com.google.chat.v1.Space.Builder, + com.google.chat.v1.SpaceOrBuilder> + spacesBuilder_; + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public java.util.List getSpacesList() { + if (spacesBuilder_ == null) { + return java.util.Collections.unmodifiableList(spaces_); + } else { + return spacesBuilder_.getMessageList(); + } + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public int getSpacesCount() { + if (spacesBuilder_ == null) { + return spaces_.size(); + } else { + return spacesBuilder_.getCount(); + } + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.Space getSpaces(int index) { + if (spacesBuilder_ == null) { + return spaces_.get(index); + } else { + return spacesBuilder_.getMessage(index); + } + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder setSpaces(int index, com.google.chat.v1.Space value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.set(index, value); + onChanged(); + } else { + spacesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder setSpaces(int index, com.google.chat.v1.Space.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.set(index, builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addSpaces(com.google.chat.v1.Space value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.add(value); + onChanged(); + } else { + spacesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addSpaces(int index, com.google.chat.v1.Space value) { + if (spacesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureSpacesIsMutable(); + spaces_.add(index, value); + onChanged(); + } else { + spacesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addSpaces(com.google.chat.v1.Space.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addSpaces(int index, com.google.chat.v1.Space.Builder builderForValue) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.add(index, builderForValue.build()); + onChanged(); + } else { + spacesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder addAllSpaces(java.lang.Iterable values) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, spaces_); + onChanged(); + } else { + spacesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder clearSpaces() { + if (spacesBuilder_ == null) { + spaces_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + spacesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public Builder removeSpaces(int index) { + if (spacesBuilder_ == null) { + ensureSpacesIsMutable(); + spaces_.remove(index); + onChanged(); + } else { + spacesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.Space.Builder getSpacesBuilder(int index) { + return internalGetSpacesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.SpaceOrBuilder getSpacesOrBuilder(int index) { + if (spacesBuilder_ == null) { + return spaces_.get(index); + } else { + return spacesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public java.util.List getSpacesOrBuilderList() { + if (spacesBuilder_ != null) { + return spacesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(spaces_); + } + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.Space.Builder addSpacesBuilder() { + return internalGetSpacesFieldBuilder() + .addBuilder(com.google.chat.v1.Space.getDefaultInstance()); + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public com.google.chat.v1.Space.Builder addSpacesBuilder(int index) { + return internalGetSpacesFieldBuilder() + .addBuilder(index, com.google.chat.v1.Space.getDefaultInstance()); + } + + /** + * + * + *
    +     * List of spaces in the requested (or first) page.
    +     * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + public java.util.List getSpacesBuilderList() { + return internalGetSpacesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Space, + com.google.chat.v1.Space.Builder, + com.google.chat.v1.SpaceOrBuilder> + internalGetSpacesFieldBuilder() { + if (spacesBuilder_ == null) { + spacesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.chat.v1.Space, + com.google.chat.v1.Space.Builder, + com.google.chat.v1.SpaceOrBuilder>( + spaces_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + spaces_ = null; + } + return spacesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
    +     * A token that you can send as `pageToken` to retrieve the next page of
    +     * results. If empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * A token that you can send as `pageToken` to retrieve the next page of
    +     * results. If empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * A token that you can send as `pageToken` to retrieve the next page of
    +     * results. If empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token that you can send as `pageToken` to retrieve the next page of
    +     * results. If empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * A token that you can send as `pageToken` to retrieve the next page of
    +     * results. If empty, there are no subsequent pages.
    +     * 
    + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.chat.v1.FindGroupChatsResponse) + } + + // @@protoc_insertion_point(class_scope:google.chat.v1.FindGroupChatsResponse) + private static final com.google.chat.v1.FindGroupChatsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.chat.v1.FindGroupChatsResponse(); + } + + public static com.google.chat.v1.FindGroupChatsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public FindGroupChatsResponse 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.chat.v1.FindGroupChatsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponseOrBuilder.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponseOrBuilder.java new file mode 100644 index 000000000000..9af3d9c60e41 --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/FindGroupChatsResponseOrBuilder.java @@ -0,0 +1,111 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +@com.google.protobuf.Generated +public interface FindGroupChatsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.chat.v1.FindGroupChatsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + java.util.List getSpacesList(); + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + com.google.chat.v1.Space getSpaces(int index); + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + int getSpacesCount(); + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + java.util.List getSpacesOrBuilderList(); + + /** + * + * + *
    +   * List of spaces in the requested (or first) page.
    +   * 
    + * + * repeated .google.chat.v1.Space spaces = 1; + */ + com.google.chat.v1.SpaceOrBuilder getSpacesOrBuilder(int index); + + /** + * + * + *
    +   * A token that you can send as `pageToken` to retrieve the next page of
    +   * results. If empty, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
    +   * A token that you can send as `pageToken` to retrieve the next page of
    +   * results. If empty, there are no subsequent pages.
    +   * 
    + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java index 4dad1cbd9002..744e18f815e8 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceProto.java @@ -84,6 +84,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_chat_v1_FindDirectMessageRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_chat_v1_FindDirectMessageRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_FindGroupChatsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_FindGroupChatsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_chat_v1_FindGroupChatsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_chat_v1_FindGroupChatsResponse_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_chat_v1_UpdateSpaceRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -237,7 +245,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031chat.googleapis.com/Space\022\035\n" + "\020use_admin_access\030\002 \001(\010B\003\340A\001\"-\n" + "\030FindDirectMessageRequest\022\021\n" - + "\004name\030\001 \001(\tB\003\340A\002\"\224\001\n" + + "\004name\030\001 \001(\tB\003\340A\002\"\213\001\n" + + "\025FindGroupChatsRequest\022\022\n" + + "\005users\030\005 \003(\tB\003\340A\001\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022-\n\n" + + "space_view\030\004 \001(\0162\031.google.chat.v1.SpaceView\"X\n" + + "\026FindGroupChatsResponse\022%\n" + + "\006spaces\030\001 \003(\0132\025.google.chat.v1.Space\022\027\n" + + "\017next_page_token\030\002 \001(\t\"\224\001\n" + "\022UpdateSpaceRequest\022)\n" + "\005space\030\001 \001(\0132\025.google.chat.v1.SpaceB\003\340A\002\0224\n" + "\013update_mask\030\002" @@ -261,11 +277,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tB!\340A\002\372A\033\n" + "\031chat.googleapis.com/Space\"C\n" + "\033CompleteImportSpaceResponse\022$\n" - + "\005space\030\001 \001(\0132\025.google.chat.v1.SpaceB\243\001\n" + + "\005space\030\001 \001(\0132\025.google.chat.v1.Space*c\n" + + "\tSpaceView\022\032\n" + + "\026SPACE_VIEW_UNSPECIFIED\020\000\022!\n" + + "\035SPACE_VIEW_RESOURCE_NAME_ONLY\020\003\022\027\n" + + "\023SPACE_VIEW_EXPANDED\020\004B\243\001\n" + "\022com.google.chat.v1B\n" - + "SpaceProtoP\001Z,cloud.google.com/go/chat/apiv1/chatpb;chatpb" - + "\242\002\013DYNAPIProto\252\002\023Google.Apps.Chat.V1\312\002\023G" - + "oogle\\Apps\\Chat\\V1\352\002\026Google::Apps::Chat::V1b\006proto3" + + "SpaceProtoP\001Z,cloud.google.com/go/chat/apiv1/" + + "chatpb;chatpb\242\002\013DYNAPIProto\252\002\023Google.App" + + "s.Chat.V1\312\002\023Google\\Apps\\Chat\\V1\352\002\026Google" + + "::Apps::Chat::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -390,8 +411,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_chat_v1_UpdateSpaceRequest_descriptor = + internal_static_google_chat_v1_FindGroupChatsRequest_descriptor = getDescriptor().getMessageType(6); + internal_static_google_chat_v1_FindGroupChatsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_FindGroupChatsRequest_descriptor, + new java.lang.String[] { + "Users", "PageSize", "PageToken", "SpaceView", + }); + internal_static_google_chat_v1_FindGroupChatsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_chat_v1_FindGroupChatsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_chat_v1_FindGroupChatsResponse_descriptor, + new java.lang.String[] { + "Spaces", "NextPageToken", + }); + internal_static_google_chat_v1_UpdateSpaceRequest_descriptor = + getDescriptor().getMessageType(8); internal_static_google_chat_v1_UpdateSpaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_UpdateSpaceRequest_descriptor, @@ -399,7 +436,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Space", "UpdateMask", "UseAdminAccess", }); internal_static_google_chat_v1_SearchSpacesRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(9); internal_static_google_chat_v1_SearchSpacesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_SearchSpacesRequest_descriptor, @@ -407,7 +444,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UseAdminAccess", "PageSize", "PageToken", "Query", "OrderBy", }); internal_static_google_chat_v1_SearchSpacesResponse_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(10); internal_static_google_chat_v1_SearchSpacesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_SearchSpacesResponse_descriptor, @@ -415,7 +452,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Spaces", "NextPageToken", "TotalSize", }); internal_static_google_chat_v1_DeleteSpaceRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(11); internal_static_google_chat_v1_DeleteSpaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_DeleteSpaceRequest_descriptor, @@ -423,7 +460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "UseAdminAccess", }); internal_static_google_chat_v1_CompleteImportSpaceRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(12); internal_static_google_chat_v1_CompleteImportSpaceRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_CompleteImportSpaceRequest_descriptor, @@ -431,7 +468,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_chat_v1_CompleteImportSpaceResponse_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(13); internal_static_google_chat_v1_CompleteImportSpaceResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_chat_v1_CompleteImportSpaceResponse_descriptor, diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceView.java b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceView.java new file mode 100644 index 000000000000..d8bb8973661c --- /dev/null +++ b/java-chat/proto-google-cloud-chat-v1/src/main/java/com/google/chat/v1/SpaceView.java @@ -0,0 +1,205 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/chat/v1/space.proto +// Protobuf Java Version: 4.33.2 + +package com.google.chat.v1; + +/** + * + * + *
    + * A view that specifies which fields should be populated on the
    + * [`Space`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces)
    + * resource.
    + * To ensure compatibility with future releases, we recommend that your code
    + * account for additional values.
    + * 
    + * + * Protobuf enum {@code google.chat.v1.SpaceView} + */ +@com.google.protobuf.Generated +public enum SpaceView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
    +   * The default / unset value.
    +   * 
    + * + * SPACE_VIEW_UNSPECIFIED = 0; + */ + SPACE_VIEW_UNSPECIFIED(0), + /** + * + * + *
    +   * Populates only the Space resource name.
    +   * 
    + * + * SPACE_VIEW_RESOURCE_NAME_ONLY = 3; + */ + SPACE_VIEW_RESOURCE_NAME_ONLY(3), + /** + * + * + *
    +   * Populates Space resource fields.  Note: the `permissionSettings` field
    +   * will not be populated.
    +   * Requests that specify SPACE_VIEW_EXPANDED must include scopes that allow
    +   * reading space data, for example,
    +   * https://www.googleapis.com/auth/chat.spaces or
    +   * https://www.googleapis.com/auth/chat.spaces.readonly.
    +   * 
    + * + * SPACE_VIEW_EXPANDED = 4; + */ + SPACE_VIEW_EXPANDED(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SpaceView"); + } + + /** + * + * + *
    +   * The default / unset value.
    +   * 
    + * + * SPACE_VIEW_UNSPECIFIED = 0; + */ + public static final int SPACE_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
    +   * Populates only the Space resource name.
    +   * 
    + * + * SPACE_VIEW_RESOURCE_NAME_ONLY = 3; + */ + public static final int SPACE_VIEW_RESOURCE_NAME_ONLY_VALUE = 3; + + /** + * + * + *
    +   * Populates Space resource fields.  Note: the `permissionSettings` field
    +   * will not be populated.
    +   * Requests that specify SPACE_VIEW_EXPANDED must include scopes that allow
    +   * reading space data, for example,
    +   * https://www.googleapis.com/auth/chat.spaces or
    +   * https://www.googleapis.com/auth/chat.spaces.readonly.
    +   * 
    + * + * SPACE_VIEW_EXPANDED = 4; + */ + public static final int SPACE_VIEW_EXPANDED_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SpaceView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static SpaceView forNumber(int value) { + switch (value) { + case 0: + return SPACE_VIEW_UNSPECIFIED; + case 3: + return SPACE_VIEW_RESOURCE_NAME_ONLY; + case 4: + return SPACE_VIEW_EXPANDED; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public SpaceView findValueByNumber(int number) { + return SpaceView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.chat.v1.SpaceProto.getDescriptor().getEnumTypes().get(0); + } + + private static final SpaceView[] VALUES = values(); + + public static SpaceView valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private SpaceView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.chat.v1.SpaceView) +} diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto index afc37c0bbced..8aea14861df7 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/chat_service.proto @@ -717,6 +717,32 @@ service ChatService { }; } + // Returns all spaces with `spaceType == GROUP_CHAT`, whose + // human memberships contain exactly the calling user, and the users specified + // in `FindGroupChatsRequest.users`. Only members that have joined the + // conversation are supported. For an example, see [Find group + // chats](https://developers.google.com/workspace/chat/find-group-chats). + // + // If the calling user blocks, or is blocked by, some users, and no spaces + // with the entire specified set of users are found, this method returns + // spaces that don't include the blocked or blocking users. + // + // The specified set of users must contain only human (non-app) memberships. + // A request that contains non-human users doesn't return any spaces. + // + // Requires [user + // authentication](https://developers.google.com/workspace/chat/authenticate-authorize-chat-user) + // with one of the following [authorization + // scopes](https://developers.google.com/workspace/chat/authenticate-authorize#chat-api-scopes): + // + // - `https://www.googleapis.com/auth/chat.memberships.readonly` + // - `https://www.googleapis.com/auth/chat.memberships` + rpc FindGroupChats(FindGroupChatsRequest) returns (FindGroupChatsResponse) { + option (google.api.http) = { + get: "/v1/spaces:findGroupChats" + }; + } + // Creates a membership for the calling Chat app, a user, or a Google Group. // Creating memberships for other Chat apps isn't supported. // When creating a membership, if the specified member has their auto-accept diff --git a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto index 01873a3f99c8..3bd587bdbeb3 100644 --- a/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto +++ b/java-chat/proto-google-cloud-chat-v1/src/main/proto/google/chat/v1/space.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -552,6 +552,65 @@ message FindDirectMessageRequest { string name = 1 [(google.api.field_behavior) = REQUIRED]; } +// A request to get group chat spaces based on user resources. +message FindGroupChatsRequest { + // Optional. Resource names of all human users in group chat with the calling + // user. Chat apps can't be included in the request. + // + // The maximum number of users that can be specified in a single request is + // `49`. + // + // Format: `users/{user}`, where `{user}` is either the `id` for the + // [person](https://developers.google.com/people/api/rest/v1/people) from the + // People API, or the `id` for the + // [user](https://developers.google.com/admin-sdk/directory/reference/rest/v1/users) + // in the Directory API. For example, to find all group chats with the calling + // user and two other users, with People API profile IDs `123456789` and + // `987654321`, you can use `users/123456789` and `users/987654321`. + // You can also use the email as an alias for `{user}`. For example, + // `users/example@gmail.com` where `example@gmail.com` is the email of the + // Google Chat user. + repeated string users = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The maximum number of spaces to return. The service might return + // fewer than this value. + // + // If unspecified, at most 10 spaces are returned. + // + // The maximum value is 30. If you use a value more than 30, it's + // automatically changed to 30. + // + // Negative values return an `INVALID_ARGUMENT` error. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous call to find group chats. + // Provide this parameter to retrieve the subsequent page. + // + // When paginating, all other parameters provided should match the call that + // provided the token. Passing different values may lead to unexpected + // results. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Requested space view type. If unset, defaults to + // `SPACE_VIEW_RESOURCE_NAME_ONLY`. Requests that specify + // `SPACE_VIEW_EXPANDED` must include scopes that allow reading space data, + // for example, + // https://www.googleapis.com/auth/chat.spaces or + // https://www.googleapis.com/auth/chat.spaces.readonly. + SpaceView space_view = 4; +} + +// A response containing group chat spaces with exactly the calling user and the +// requested users. +message FindGroupChatsResponse { + // List of spaces in the requested (or first) page. + repeated Space spaces = 1; + + // A token that you can send as `pageToken` to retrieve the next page of + // results. If empty, there are no subsequent pages. + string next_page_token = 2; +} + // A request to update a single space. message UpdateSpaceRequest { // Required. Space with fields to be updated. `Space.name` must be @@ -822,3 +881,24 @@ message CompleteImportSpaceResponse { // The import mode space. Space space = 1; } + +// A view that specifies which fields should be populated on the +// [`Space`](https://developers.google.com/workspace/chat/api/reference/rest/v1/spaces) +// resource. +// To ensure compatibility with future releases, we recommend that your code +// account for additional values. +enum SpaceView { + // The default / unset value. + SPACE_VIEW_UNSPECIFIED = 0; + + // Populates only the Space resource name. + SPACE_VIEW_RESOURCE_NAME_ONLY = 3; + + // Populates Space resource fields. Note: the `permissionSettings` field + // will not be populated. + // Requests that specify SPACE_VIEW_EXPANDED must include scopes that allow + // reading space data, for example, + // https://www.googleapis.com/auth/chat.spaces or + // https://www.googleapis.com/auth/chat.spaces.readonly. + SPACE_VIEW_EXPANDED = 4; +} diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChats.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChats.java new file mode 100644 index 000000000000..17d3911c93a4 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChats.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_FindGroupChats_async] +import com.google.api.core.ApiFuture; +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceView; +import java.util.ArrayList; + +public class AsyncFindGroupChats { + + public static void main(String[] args) throws Exception { + asyncFindGroupChats(); + } + + public static void asyncFindGroupChats() 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + ApiFuture future = chatServiceClient.findGroupChatsPagedCallable().futureCall(request); + // Do something. + for (Space element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_FindGroupChats_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChatsPaged.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChatsPaged.java new file mode 100644 index 000000000000..0f0b06cea032 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/AsyncFindGroupChatsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_FindGroupChats_Paged_async] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.FindGroupChatsResponse; +import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceView; +import com.google.common.base.Strings; +import java.util.ArrayList; + +public class AsyncFindGroupChatsPaged { + + public static void main(String[] args) throws Exception { + asyncFindGroupChatsPaged(); + } + + public static void asyncFindGroupChatsPaged() 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + while (true) { + FindGroupChatsResponse response = chatServiceClient.findGroupChatsCallable().call(request); + for (Space element : response.getSpacesList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END chat_v1_generated_ChatService_FindGroupChats_Paged_async] diff --git a/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/SyncFindGroupChats.java b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/SyncFindGroupChats.java new file mode 100644 index 000000000000..d90768dc2da2 --- /dev/null +++ b/java-chat/samples/snippets/generated/com/google/chat/v1/chatservice/findgroupchats/SyncFindGroupChats.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.chat.v1.samples; + +// [START chat_v1_generated_ChatService_FindGroupChats_sync] +import com.google.chat.v1.ChatServiceClient; +import com.google.chat.v1.FindGroupChatsRequest; +import com.google.chat.v1.Space; +import com.google.chat.v1.SpaceView; +import java.util.ArrayList; + +public class SyncFindGroupChats { + + public static void main(String[] args) throws Exception { + syncFindGroupChats(); + } + + public static void syncFindGroupChats() 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 (ChatServiceClient chatServiceClient = ChatServiceClient.create()) { + FindGroupChatsRequest request = + FindGroupChatsRequest.newBuilder() + .addAllUsers(new ArrayList()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setSpaceView(SpaceView.forNumber(0)) + .build(); + for (Space element : chatServiceClient.findGroupChats(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END chat_v1_generated_ChatService_FindGroupChats_sync] diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstance.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstance.java index 7bee71dbc708..1146d456ceb8 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstance.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstance.java @@ -1772,7 +1772,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { *
        * Output only. The system-defined duration that an instance can remain
        * unrefreshed until it is automatically disabled. This will have a value of
    -   * 120 days.
    +   * 730 days.
        * 
    * * @@ -1792,7 +1792,7 @@ public boolean hasUnrefreshedDurationUntilDisable() { *
        * Output only. The system-defined duration that an instance can remain
        * unrefreshed until it is automatically disabled. This will have a value of
    -   * 120 days.
    +   * 730 days.
        * 
    * * @@ -1814,7 +1814,7 @@ public com.google.protobuf.Duration getUnrefreshedDurationUntilDisable() { *
        * Output only. The system-defined duration that an instance can remain
        * unrefreshed until it is automatically disabled. This will have a value of
    -   * 120 days.
    +   * 730 days.
        * 
    * * @@ -3409,7 +3409,7 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { *
          * Output only. The system-defined duration that an instance can remain
          * unrefreshed until it is automatically disabled. This will have a value of
    -     * 120 days.
    +     * 730 days.
          * 
    * * @@ -3428,7 +3428,7 @@ public boolean hasUnrefreshedDurationUntilDisable() { *
          * Output only. The system-defined duration that an instance can remain
          * unrefreshed until it is automatically disabled. This will have a value of
    -     * 120 days.
    +     * 730 days.
          * 
    * * @@ -3453,7 +3453,7 @@ public com.google.protobuf.Duration getUnrefreshedDurationUntilDisable() { *
          * Output only. The system-defined duration that an instance can remain
          * unrefreshed until it is automatically disabled. This will have a value of
    -     * 120 days.
    +     * 730 days.
          * 
    * * @@ -3480,7 +3480,7 @@ public Builder setUnrefreshedDurationUntilDisable(com.google.protobuf.Duration v *
          * Output only. The system-defined duration that an instance can remain
          * unrefreshed until it is automatically disabled. This will have a value of
    -     * 120 days.
    +     * 730 days.
          * 
    * * @@ -3505,7 +3505,7 @@ public Builder setUnrefreshedDurationUntilDisable( *
          * Output only. The system-defined duration that an instance can remain
          * unrefreshed until it is automatically disabled. This will have a value of
    -     * 120 days.
    +     * 730 days.
          * 
    * * @@ -3538,7 +3538,7 @@ public Builder mergeUnrefreshedDurationUntilDisable(com.google.protobuf.Duration *
          * Output only. The system-defined duration that an instance can remain
          * unrefreshed until it is automatically disabled. This will have a value of
    -     * 120 days.
    +     * 730 days.
          * 
    * * @@ -3562,7 +3562,7 @@ public Builder clearUnrefreshedDurationUntilDisable() { *
          * Output only. The system-defined duration that an instance can remain
          * unrefreshed until it is automatically disabled. This will have a value of
    -     * 120 days.
    +     * 730 days.
          * 
    * * @@ -3581,7 +3581,7 @@ public com.google.protobuf.Duration.Builder getUnrefreshedDurationUntilDisableBu *
          * Output only. The system-defined duration that an instance can remain
          * unrefreshed until it is automatically disabled. This will have a value of
    -     * 120 days.
    +     * 730 days.
          * 
    * * @@ -3604,7 +3604,7 @@ public com.google.protobuf.DurationOrBuilder getUnrefreshedDurationUntilDisableO *
          * Output only. The system-defined duration that an instance can remain
          * unrefreshed until it is automatically disabled. This will have a value of
    -     * 120 days.
    +     * 730 days.
          * 
    * * diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceOrBuilder.java b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceOrBuilder.java index 1d2d91238b49..829ac3dc453e 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceOrBuilder.java +++ b/java-kms/proto-google-cloud-kms-v1/src/main/java/com/google/cloud/kms/v1/SingleTenantHsmInstanceOrBuilder.java @@ -232,7 +232,7 @@ public interface SingleTenantHsmInstanceOrBuilder *
        * Output only. The system-defined duration that an instance can remain
        * unrefreshed until it is automatically disabled. This will have a value of
    -   * 120 days.
    +   * 730 days.
        * 
    * * @@ -249,7 +249,7 @@ public interface SingleTenantHsmInstanceOrBuilder *
        * Output only. The system-defined duration that an instance can remain
        * unrefreshed until it is automatically disabled. This will have a value of
    -   * 120 days.
    +   * 730 days.
        * 
    * * @@ -266,7 +266,7 @@ public interface SingleTenantHsmInstanceOrBuilder *
        * Output only. The system-defined duration that an instance can remain
        * unrefreshed until it is automatically disabled. This will have a value of
    -   * 120 days.
    +   * 730 days.
        * 
    * * diff --git a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/hsm_management.proto b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/hsm_management.proto index fb87ef9e6e83..219bab5b4b75 100644 --- a/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/hsm_management.proto +++ b/java-kms/proto-google-cloud-kms-v1/src/main/proto/google/cloud/kms/v1/hsm_management.proto @@ -293,7 +293,7 @@ message SingleTenantHsmInstance { // Output only. The system-defined duration that an instance can remain // unrefreshed until it is automatically disabled. This will have a value of - // 120 days. + // 730 days. google.protobuf.Duration unrefreshed_duration_until_disable = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; From 93f511a3d56771d6282dac1cbd7ee6a76acc1f47 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 17 Apr 2026 03:01:14 +0000 Subject: [PATCH 05/19] chore: Update generation configuration at Fri Apr 17 03:01:06 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 8fb8ca47ddbf..c4c6695ffa0b 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.71.0 -googleapis_commitish: 13ca8dbc797515144104ee799e429f8e29b45c08 +googleapis_commitish: 1a00cecd9a90ac056247d5b522e94af5347adc1d libraries_bom_version: 26.80.0 libraries: - api_shortname: accessapproval From f800808f9e5f6203296c99d9b9be291a2d43603f Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Fri, 17 Apr 2026 04:37:57 +0000 Subject: [PATCH 06/19] chore: generate libraries at Fri Apr 17 03:03:52 UTC 2026 --- ...ReasoningEngineExecutionServiceClient.java | 142 +++ ...asoningEngineExecutionServiceSettings.java | 60 + .../cloud/aiplatform/v1/gapic_metadata.json | 3 + ...pcReasoningEngineExecutionServiceStub.java | 62 + .../ReasoningEngineExecutionServiceStub.java | 24 + ...ingEngineExecutionServiceStubSettings.java | 122 ++ .../reflect-config.json | 54 + ...ckReasoningEngineExecutionServiceImpl.java | 23 + ...oningEngineExecutionServiceClientTest.java | 64 ++ .../ReasoningEngineExecutionServiceGrpc.java | 137 +++ ...QueryReasoningEngineOperationMetadata.java | 731 ++++++++++++ ...oningEngineOperationMetadataOrBuilder.java | 65 ++ .../v1/AsyncQueryReasoningEngineRequest.java | 1013 +++++++++++++++++ ...cQueryReasoningEngineRequestOrBuilder.java | 114 ++ .../v1/AsyncQueryReasoningEngineResponse.java | 607 ++++++++++ ...QueryReasoningEngineResponseOrBuilder.java | 54 + .../ReasoningEngineExecutionServiceProto.java | 121 +- .../reasoning_engine_execution_service.proto | 55 +- .../AsyncAsyncQueryReasoningEngine.java | 57 + .../AsyncAsyncQueryReasoningEngineLRO.java | 59 + .../SyncAsyncQueryReasoningEngine.java | 52 + .../SyncAsyncQueryReasoningEngine.java | 54 + .../SyncAsyncQueryReasoningEngine.java | 55 + 23 files changed, 3696 insertions(+), 32 deletions(-) create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponse.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponseOrBuilder.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java index 7c8c70a563cc..4aa3182446f1 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClient.java @@ -20,9 +20,11 @@ import com.google.api.core.ApiFuture; import com.google.api.core.ApiFutures; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -38,6 +40,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -107,6 +111,21 @@ * * * + *

    AsyncQueryReasoningEngine + *

    Async query using a reasoning engine. + * + *

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

    + *
      + *
    • asyncQueryReasoningEngineAsync(AsyncQueryReasoningEngineRequest request) + *

    + *

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

    + *
      + *
    • asyncQueryReasoningEngineOperationCallable() + *

    • asyncQueryReasoningEngineCallable() + *

    + * + * + * *

    ListLocations *

    Lists information about the supported locations for this service. * @@ -226,6 +245,7 @@ public class ReasoningEngineExecutionServiceClient implements BackgroundResource { private final ReasoningEngineExecutionServiceSettings settings; private final ReasoningEngineExecutionServiceStub stub; + private final OperationsClient operationsClient; /** Constructs an instance of ReasoningEngineExecutionServiceClient with default settings. */ public static final ReasoningEngineExecutionServiceClient create() throws IOException { @@ -262,11 +282,13 @@ protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceS this.settings = settings; this.stub = ((ReasoningEngineExecutionServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } public final ReasoningEngineExecutionServiceSettings getSettings() { @@ -277,6 +299,14 @@ public ReasoningEngineExecutionServiceStub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Queries using a reasoning engine. @@ -381,6 +411,118 @@ public final QueryReasoningEngineResponse queryReasoningEngine( return stub.streamQueryReasoningEngineCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

    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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
    +   *     ReasoningEngineExecutionServiceClient.create()) {
    +   *   AsyncQueryReasoningEngineRequest request =
    +   *       AsyncQueryReasoningEngineRequest.newBuilder()
    +   *           .setName(
    +   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
    +   *                   .toString())
    +   *           .setInputGcsUri("inputGcsUri-665217217")
    +   *           .setOutputGcsUri("outputGcsUri-489598154")
    +   *           .build();
    +   *   AsyncQueryReasoningEngineResponse response =
    +   *       reasoningEngineExecutionServiceClient.asyncQueryReasoningEngineAsync(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< + AsyncQueryReasoningEngineResponse, AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineAsync(AsyncQueryReasoningEngineRequest request) { + return asyncQueryReasoningEngineOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

    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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
    +   *     ReasoningEngineExecutionServiceClient.create()) {
    +   *   AsyncQueryReasoningEngineRequest request =
    +   *       AsyncQueryReasoningEngineRequest.newBuilder()
    +   *           .setName(
    +   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
    +   *                   .toString())
    +   *           .setInputGcsUri("inputGcsUri-665217217")
    +   *           .setOutputGcsUri("outputGcsUri-489598154")
    +   *           .build();
    +   *   OperationFuture
    +   *       future =
    +   *           reasoningEngineExecutionServiceClient
    +   *               .asyncQueryReasoningEngineOperationCallable()
    +   *               .futureCall(request);
    +   *   // Do something.
    +   *   AsyncQueryReasoningEngineResponse response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + return stub.asyncQueryReasoningEngineOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

    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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
    +   *     ReasoningEngineExecutionServiceClient.create()) {
    +   *   AsyncQueryReasoningEngineRequest request =
    +   *       AsyncQueryReasoningEngineRequest.newBuilder()
    +   *           .setName(
    +   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
    +   *                   .toString())
    +   *           .setInputGcsUri("inputGcsUri-665217217")
    +   *           .setOutputGcsUri("outputGcsUri-489598154")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       reasoningEngineExecutionServiceClient
    +   *           .asyncQueryReasoningEngineCallable()
    +   *           .futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + asyncQueryReasoningEngineCallable() { + return stub.asyncQueryReasoningEngineCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java index f1fc42afedca..507dfcc4fa90 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceSettings.java @@ -26,6 +26,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; @@ -40,6 +41,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -94,6 +96,32 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

    To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncQueryReasoningEngine: + * + *

    {@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
    + * ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder =
    + *     ReasoningEngineExecutionServiceSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * reasoningEngineExecutionServiceSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    */ @Generated("by gapic-generator-java") public class ReasoningEngineExecutionServiceSettings @@ -113,6 +141,23 @@ public class ReasoningEngineExecutionServiceSettings .streamQueryReasoningEngineSettings(); } + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings + asyncQueryReasoningEngineSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .asyncQueryReasoningEngineSettings(); + } + + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .asyncQueryReasoningEngineOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -251,6 +296,21 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().streamQueryReasoningEngineSettings(); } + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings() { + return getStubSettingsBuilder().asyncQueryReasoningEngineSettings(); + } + + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return getStubSettingsBuilder().asyncQueryReasoningEngineOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> 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 65c8fd3eaa08..9156f309b31e 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 @@ -1375,6 +1375,9 @@ "grpc": { "libraryClient": "ReasoningEngineExecutionServiceClient", "rpcs": { + "AsyncQueryReasoningEngine": { + "methods": ["asyncQueryReasoningEngineAsync", "asyncQueryReasoningEngineOperationCallable", "asyncQueryReasoningEngineCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java index a4bc3e65714c..5ee590310075 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/GrpcReasoningEngineExecutionServiceStub.java @@ -24,9 +24,13 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest; @@ -39,6 +43,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; @@ -79,6 +84,18 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + asyncQueryReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1.ReasoningEngineExecutionService/AsyncQueryReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(AsyncQueryReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -134,6 +151,13 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec queryReasoningEngineCallable; private final ServerStreamingCallable streamQueryReasoningEngineCallable; + private final UnaryCallable + asyncQueryReasoningEngineCallable; + private final OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -214,6 +238,18 @@ protected GrpcReasoningEngineExecutionServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + asyncQueryReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(asyncQueryReasoningEngineMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -279,6 +315,17 @@ protected GrpcReasoningEngineExecutionServiceStub( streamQueryReasoningEngineTransportSettings, settings.streamQueryReasoningEngineSettings(), clientContext); + this.asyncQueryReasoningEngineCallable = + callableFactory.createUnaryCallable( + asyncQueryReasoningEngineTransportSettings, + settings.asyncQueryReasoningEngineSettings(), + clientContext); + this.asyncQueryReasoningEngineOperationCallable = + callableFactory.createOperationCallable( + asyncQueryReasoningEngineTransportSettings, + settings.asyncQueryReasoningEngineOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -320,6 +367,21 @@ public GrpcOperationsStub getOperationsStub() { return streamQueryReasoningEngineCallable; } + @Override + public UnaryCallable + asyncQueryReasoningEngineCallable() { + return asyncQueryReasoningEngineCallable; + } + + @Override + public OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + return asyncQueryReasoningEngineOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java index 9f3a7ebc8a4f..e759d16df608 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStub.java @@ -20,8 +20,12 @@ import com.google.api.HttpBody; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest; @@ -34,6 +38,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -45,6 +51,10 @@ @Generated("by gapic-generator-java") public abstract class ReasoningEngineExecutionServiceStub implements BackgroundResource { + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + public UnaryCallable queryReasoningEngineCallable() { throw new UnsupportedOperationException("Not implemented: queryReasoningEngineCallable()"); @@ -56,6 +66,20 @@ public abstract class ReasoningEngineExecutionServiceStub implements BackgroundR "Not implemented: streamQueryReasoningEngineCallable()"); } + public OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: asyncQueryReasoningEngineOperationCallable()"); + } + + public UnaryCallable + asyncQueryReasoningEngineCallable() { + throw new UnsupportedOperationException("Not implemented: asyncQueryReasoningEngineCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java index 9a063451cc97..ac23e94666e0 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1/stub/ReasoningEngineExecutionServiceStubSettings.java @@ -28,11 +28,15 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -43,6 +47,9 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest; @@ -59,7 +66,9 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import java.io.IOException; +import java.time.Duration; import java.util.List; import javax.annotation.Generated; @@ -114,6 +123,33 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

    To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncQueryReasoningEngine: + * + *

    {@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
    + * ReasoningEngineExecutionServiceStubSettings.Builder
    + *     reasoningEngineExecutionServiceSettingsBuilder =
    + *         ReasoningEngineExecutionServiceStubSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * reasoningEngineExecutionServiceSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    */ @Generated("by gapic-generator-java") @SuppressWarnings("CanonicalDuration") @@ -127,6 +163,13 @@ public class ReasoningEngineExecutionServiceStubSettings queryReasoningEngineSettings; private final ServerStreamingCallSettings streamQueryReasoningEngineSettings; + private final UnaryCallSettings + asyncQueryReasoningEngineSettings; + private final OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -199,6 +242,21 @@ public ApiFuture getFuturePagedResponse( return streamQueryReasoningEngineSettings; } + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings + asyncQueryReasoningEngineSettings() { + return asyncQueryReasoningEngineSettings; + } + + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return asyncQueryReasoningEngineOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -312,6 +370,9 @@ protected ReasoningEngineExecutionServiceStubSettings(Builder settingsBuilder) queryReasoningEngineSettings = settingsBuilder.queryReasoningEngineSettings().build(); streamQueryReasoningEngineSettings = settingsBuilder.streamQueryReasoningEngineSettings().build(); + asyncQueryReasoningEngineSettings = settingsBuilder.asyncQueryReasoningEngineSettings().build(); + asyncQueryReasoningEngineOperationSettings = + settingsBuilder.asyncQueryReasoningEngineOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -337,6 +398,13 @@ public static class Builder queryReasoningEngineSettings; private final ServerStreamingCallSettings.Builder streamQueryReasoningEngineSettings; + private final UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings; + private final OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -374,6 +442,8 @@ protected Builder(ClientContext clientContext) { queryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamQueryReasoningEngineSettings = ServerStreamingCallSettings.newBuilder(); + asyncQueryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + asyncQueryReasoningEngineOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -383,6 +453,7 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( queryReasoningEngineSettings, + asyncQueryReasoningEngineSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -396,6 +467,9 @@ protected Builder(ReasoningEngineExecutionServiceStubSettings settings) { queryReasoningEngineSettings = settings.queryReasoningEngineSettings.toBuilder(); streamQueryReasoningEngineSettings = settings.streamQueryReasoningEngineSettings.toBuilder(); + asyncQueryReasoningEngineSettings = settings.asyncQueryReasoningEngineSettings.toBuilder(); + asyncQueryReasoningEngineOperationSettings = + settings.asyncQueryReasoningEngineOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -405,6 +479,7 @@ protected Builder(ReasoningEngineExecutionServiceStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( queryReasoningEngineSettings, + asyncQueryReasoningEngineSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -435,6 +510,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .asyncQueryReasoningEngineSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -460,6 +540,33 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .asyncQueryReasoningEngineOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + AsyncQueryReasoningEngineResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + AsyncQueryReasoningEngineOperationMetadata.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())); + return builder; } @@ -490,6 +597,21 @@ public Builder applyToAllUnaryMethods( return streamQueryReasoningEngineSettings; } + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings() { + return asyncQueryReasoningEngineSettings; + } + + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return asyncQueryReasoningEngineOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> 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 4d12e1024b65..e19cd695a95e 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 @@ -890,6 +890,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1.AsyncRetrieveContextsOperationMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java index 033d887dab3a..e4bd5c680d56 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/MockReasoningEngineExecutionServiceImpl.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.BetaApi; import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceGrpc.ReasoningEngineExecutionServiceImplBase; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; import java.util.ArrayList; @@ -104,4 +105,26 @@ public void streamQueryReasoningEngine( Exception.class.getName()))); } } + + @Override + public void asyncQueryReasoningEngine( + AsyncQueryReasoningEngineRequest 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 AsyncQueryReasoningEngine, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java index 23602ccc5922..5b5dbc03f58c 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceClientTest.java @@ -42,6 +42,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.ByteString; @@ -218,6 +219,69 @@ public void streamQueryReasoningEngineExceptionTest() throws Exception { } } + @Test + public void asyncQueryReasoningEngineTest() throws Exception { + AsyncQueryReasoningEngineResponse expectedResponse = + AsyncQueryReasoningEngineResponse.newBuilder() + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("asyncQueryReasoningEngineTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReasoningEngineExecutionService.addResponse(resultOperation); + + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + + AsyncQueryReasoningEngineResponse actualResponse = + client.asyncQueryReasoningEngineAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineExecutionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AsyncQueryReasoningEngineRequest actualRequest = + ((AsyncQueryReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getInputGcsUri(), actualRequest.getInputGcsUri()); + Assert.assertEquals(request.getOutputGcsUri(), actualRequest.getOutputGcsUri()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void asyncQueryReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineExecutionService.addException(exception); + + try { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + client.asyncQueryReasoningEngineAsync(request).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 listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java index 6438a7cec712..9f839d31db65 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceGrpc.java @@ -136,6 +136,58 @@ private ReasoningEngineExecutionServiceGrpc() {} return getStreamQueryReasoningEngineMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AsyncQueryReasoningEngine", + requestType = com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod; + if ((getAsyncQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineExecutionServiceGrpc.class) { + if ((getAsyncQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod) + == null) { + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod = + getAsyncQueryReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AsyncQueryReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineExecutionServiceMethodDescriptorSupplier( + "AsyncQueryReasoningEngine")) + .build(); + } + } + } + return getAsyncQueryReasoningEngineMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ReasoningEngineExecutionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -229,6 +281,20 @@ default void streamQueryReasoningEngine( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getStreamQueryReasoningEngineMethod(), responseObserver); } + + /** + * + * + *
    +     * Async query using a reasoning engine.
    +     * 
    + */ + default void asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncQueryReasoningEngineMethod(), responseObserver); + } } /** @@ -300,6 +366,22 @@ public void streamQueryReasoningEngine( request, responseObserver); } + + /** + * + * + *
    +     * Async query using a reasoning engine.
    +     * 
    + */ + public void asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAsyncQueryReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -349,6 +431,20 @@ public io.grpc.stub.BlockingClientCall streamQueryRe return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Async query using a reasoning engine.
    +     * 
    + */ + public com.google.longrunning.Operation asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAsyncQueryReasoningEngineMethod(), getCallOptions(), request); + } } /** @@ -397,6 +493,19 @@ public java.util.Iterator streamQueryReasoningEngine( return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
    +     * Async query using a reasoning engine.
    +     * 
    + */ + public com.google.longrunning.Operation asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAsyncQueryReasoningEngineMethod(), getCallOptions(), request); + } } /** @@ -433,10 +542,25 @@ protected ReasoningEngineExecutionServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryReasoningEngineMethod(), getCallOptions()), request); } + + /** + * + * + *
    +     * Async query using a reasoning engine.
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAsyncQueryReasoningEngineMethod(), getCallOptions()), request); + } } private static final int METHODID_QUERY_REASONING_ENGINE = 0; private static final int METHODID_STREAM_QUERY_REASONING_ENGINE = 1; + private static final int METHODID_ASYNC_QUERY_REASONING_ENGINE = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -467,6 +591,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ASYNC_QUERY_REASONING_ENGINE: + serviceImpl.asyncQueryReasoningEngine( + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -498,6 +627,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1.StreamQueryReasoningEngineRequest, com.google.api.HttpBody>(service, METHODID_STREAM_QUERY_REASONING_ENGINE))) + .addMethod( + getAsyncQueryReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation>( + service, METHODID_ASYNC_QUERY_REASONING_ENGINE))) .build(); } @@ -552,6 +688,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { new ReasoningEngineExecutionServiceFileDescriptorSupplier()) .addMethod(getQueryReasoningEngineMethod()) .addMethod(getStreamQueryReasoningEngineMethod()) + .addMethod(getAsyncQueryReasoningEngineMethod()) .build(); } } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadata.java new file mode 100644 index 000000000000..844f7f6bc44a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadata.java @@ -0,0 +1,731 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
    + * Operation metadata message for
    + * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + AsyncQueryReasoningEngineOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineOperationMetadata"); + } + + // Use AsyncQueryReasoningEngineOperationMetadata.newBuilder() to construct. + private AsyncQueryReasoningEngineOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
    +   * The common part of the operation metadata.
    +   * 
    + * + * .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 common part of the operation metadata.
    +   * 
    + * + * .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 common part of the operation metadata.
    +   * 
    + * + * .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.AsyncQueryReasoningEngineOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata other = + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) 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.AsyncQueryReasoningEngineOperationMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata 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.AsyncQueryReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata 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.AsyncQueryReasoningEngineOperationMetadata parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata 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.AsyncQueryReasoningEngineOperationMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Operation metadata message for
    +   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @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.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata build() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata result = + new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + .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( + internalGetGenericMetadataFieldBuilder().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.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
    +     * The common part of the operation metadata.
    +     * 
    + * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
    +     * The common part of the operation metadata.
    +     * 
    + * + * .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 common part of the operation metadata.
    +     * 
    + * + * .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 common part of the operation metadata.
    +     * 
    + * + * .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 common part of the operation metadata.
    +     * 
    + * + * .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 common part of the operation metadata.
    +     * 
    + * + * .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 common part of the operation metadata.
    +     * 
    + * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
    +     * The common part of the operation metadata.
    +     * 
    + * + * .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 common part of the operation metadata.
    +     * 
    + * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + private static final com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineOperationMetadata 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.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..45ab287607ce --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * The common part of the operation metadata.
    +   * 
    + * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
    +   * The common part of the operation metadata.
    +   * 
    + * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
    +   * The common part of the operation metadata.
    +   * 
    + * + * .google.cloud.aiplatform.v1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1.GenericOperationMetadataOrBuilder getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequest.java new file mode 100644 index 000000000000..64c74a5bf643 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequest.java @@ -0,0 +1,1013 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
    + * Request message for
    + * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + AsyncQueryReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineRequest"); + } + + // Use AsyncQueryReasoningEngineRequest.newBuilder() to construct. + private AsyncQueryReasoningEngineRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineRequest() { + name_ = ""; + inputGcsUri_ = ""; + outputGcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
    +   * Required. The name of the ReasoningEngine resource to use.
    +   * Format:
    +   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
    +   * Required. The name of the ReasoningEngine resource to use.
    +   * Format:
    +   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputGcsUri_ = ""; + + /** + * + * + *
    +   * Optional. Input Cloud Storage URI for the Async query.
    +   * 
    + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + @java.lang.Override + public java.lang.String getInputGcsUri() { + java.lang.Object ref = inputGcsUri_; + 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(); + inputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Input Cloud Storage URI for the Async query.
    +   * 
    + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputGcsUriBytes() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
    +   * Optional. Output Cloud Storage URI for the Async query.
    +   * 
    + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + @java.lang.Override + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + 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(); + outputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
    +   * Optional. Output Cloud Storage URI for the Async query.
    +   * 
    + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, inputGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, outputGcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, inputGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, outputGcsUri_); + } + 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.AsyncQueryReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getInputGcsUri().equals(other.getInputGcsUri())) return false; + if (!getOutputGcsUri().equals(other.getOutputGcsUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + INPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputGcsUri().hashCode(); + hash = (37 * hash) + OUTPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest 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.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest 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.AsyncQueryReasoningEngineRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest 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.AsyncQueryReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Request message for
    +   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + inputGcsUri_ = ""; + outputGcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputGcsUri_ = inputGcsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputGcsUri_ = outputGcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest other) { + if (other + == com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInputGcsUri().isEmpty()) { + inputGcsUri_ = other.inputGcsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOutputGcsUri().isEmpty()) { + outputGcsUri_ = other.outputGcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + inputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + outputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
    +     * Required. The name of the ReasoningEngine resource to use.
    +     * Format:
    +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the ReasoningEngine resource to use.
    +     * Format:
    +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Required. The name of the ReasoningEngine resource to use.
    +     * Format:
    +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the ReasoningEngine resource to use.
    +     * Format:
    +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Required. The name of the ReasoningEngine resource to use.
    +     * Format:
    +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
    +     * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object inputGcsUri_ = ""; + + /** + * + * + *
    +     * Optional. Input Cloud Storage URI for the Async query.
    +     * 
    + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + public java.lang.String getInputGcsUri() { + java.lang.Object ref = inputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Input Cloud Storage URI for the Async query.
    +     * 
    + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + public com.google.protobuf.ByteString getInputGcsUriBytes() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Input Cloud Storage URI for the Async query.
    +     * 
    + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setInputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Input Cloud Storage URI for the Async query.
    +     * 
    + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInputGcsUri() { + inputGcsUri_ = getDefaultInstance().getInputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Input Cloud Storage URI for the Async query.
    +     * 
    + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for inputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setInputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
    +     * Optional. Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Optional. Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Optional. Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputGcsUri() { + outputGcsUri_ = getDefaultInstance().getOutputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Optional. Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineRequest 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.AsyncQueryReasoningEngineRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..a231f484e3eb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Required. The name of the ReasoningEngine resource to use.
    +   * Format:
    +   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
    +   * Required. The name of the ReasoningEngine resource to use.
    +   * Format:
    +   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
    +   * 
    + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
    +   * Optional. Input Cloud Storage URI for the Async query.
    +   * 
    + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + java.lang.String getInputGcsUri(); + + /** + * + * + *
    +   * Optional. Input Cloud Storage URI for the Async query.
    +   * 
    + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + com.google.protobuf.ByteString getInputGcsUriBytes(); + + /** + * + * + *
    +   * Optional. Output Cloud Storage URI for the Async query.
    +   * 
    + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + java.lang.String getOutputGcsUri(); + + /** + * + * + *
    +   * Optional. Output Cloud Storage URI for the Async query.
    +   * 
    + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + com.google.protobuf.ByteString getOutputGcsUriBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponse.java new file mode 100644 index 000000000000..d869d9904458 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponse.java @@ -0,0 +1,607 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +/** + * + * + *
    + * Response message for
    + * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
    + * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + AsyncQueryReasoningEngineResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineResponse"); + } + + // Use AsyncQueryReasoningEngineResponse.newBuilder() to construct. + private AsyncQueryReasoningEngineResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineResponse() { + outputGcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.Builder.class); + } + + public static final int OUTPUT_GCS_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
    +   * Output Cloud Storage URI for the Async query.
    +   * 
    + * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + @java.lang.Override + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + 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(); + outputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
    +   * Output Cloud Storage URI for the Async query.
    +   * 
    + * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, outputGcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, outputGcsUri_); + } + 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.AsyncQueryReasoningEngineResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse other = + (com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) obj; + + if (!getOutputGcsUri().equals(other.getOutputGcsUri())) 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) + OUTPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse 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.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse 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.AsyncQueryReasoningEngineResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse 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.AsyncQueryReasoningEngineResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
    +   * Response message for
    +   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
    +   * 
    + * + * Protobuf type {@code google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outputGcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse build() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse buildPartial() { + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse result = + new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputGcsUri_ = outputGcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse other) { + if (other + == com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse.getDefaultInstance()) + return this; + if (!other.getOutputGcsUri().isEmpty()) { + outputGcsUri_ = other.outputGcsUri_; + 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: + { + outputGcsUri_ = 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 outputGcsUri_ = ""; + + /** + * + * + *
    +     * Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
    +     * Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
    +     * Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 1; + * + * @param value The outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearOutputGcsUri() { + outputGcsUri_ = getDefaultInstance().getOutputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
    +     * Output Cloud Storage URI for the Async query.
    +     * 
    + * + * string output_gcs_uri = 1; + * + * @param value The bytes for outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + private static final com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse(); + } + + public static com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineResponse 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.AsyncQueryReasoningEngineResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponseOrBuilder.java new file mode 100644 index 000000000000..8cfffc4c0e20 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/AsyncQueryReasoningEngineResponseOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
    +   * Output Cloud Storage URI for the Async query.
    +   * 
    + * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + java.lang.String getOutputGcsUri(); + + /** + * + * + *
    +   * Output Cloud Storage URI for the Async query.
    +   * 
    + * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + com.google.protobuf.ByteString getOutputGcsUriBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java index 00ee2c233911..5cd06338c03b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/java/com/google/cloud/aiplatform/v1/ReasoningEngineExecutionServiceProto.java @@ -52,6 +52,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1_StreamQueryReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -67,37 +79,55 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "s.proto\032\027google/api/client.proto\032\037google" + "/api/field_behavior.proto\032\031google/api/ht" + "tpbody.proto\032\031google/api/resource.proto\032" - + "\034google/protobuf/struct.proto\"\246\001\n\033QueryR" - + "easoningEngineRequest\022?\n\004name\030\001 \001(\tB1\340A\002" - + "\372A+\n)aiplatform.googleapis.com/Reasoning" - + "Engine\022+\n\005input\030\002 \001(\0132\027.google.protobuf." - + "StructB\003\340A\001\022\031\n\014class_method\030\003 \001(\tB\003\340A\001\"F" - + "\n\034QueryReasoningEngineResponse\022&\n\006output" - + "\030\001 \001(\0132\026.google.protobuf.Value\"\254\001\n!Strea" - + "mQueryReasoningEngineRequest\022?\n\004name\030\001 \001" - + "(\tB1\340A\002\372A+\n)aiplatform.googleapis.com/Re" - + "asoningEngine\022+\n\005input\030\002 \001(\0132\027.google.pr" - + "otobuf.StructB\003\340A\001\022\031\n\014class_method\030\003 \001(\t" - + "B\003\340A\0012\206\004\n\037ReasoningEngineExecutionServic" - + "e\022\320\001\n\024QueryReasoningEngine\0227.google.clou" - + "d.aiplatform.v1.QueryReasoningEngineRequ" - + "est\0328.google.cloud.aiplatform.v1.QueryRe" - + "asoningEngineResponse\"E\202\323\344\223\002?\":/v1/{name" - + "=projects/*/locations/*/reasoningEngines" - + "/*}:query:\001*\022\300\001\n\032StreamQueryReasoningEng" - + "ine\022=.google.cloud.aiplatform.v1.StreamQ" - + "ueryReasoningEngineRequest\032\024.google.api." - + "HttpBody\"K\202\323\344\223\002E\"@/v1/{name=projects/*/l" - + "ocations/*/reasoningEngines/*}:streamQue" - + "ry:\001*0\001\032M\312A\031aiplatform.googleapis.com\322A." - + "https://www.googleapis.com/auth/cloud-pl" - + "atformB\342\001\n\036com.google.cloud.aiplatform.v" - + "1B$ReasoningEngineExecutionServiceProtoP" - + "\001Z>cloud.google.com/go/aiplatform/apiv1/" - + "aiplatformpb;aiplatformpb\252\002\032Google.Cloud" - + ".AIPlatform.V1\312\002\032Google\\Cloud\\AIPlatform" - + "\\V1\352\002\035Google::Cloud::AIPlatform::V1b\006pro" - + "to3" + + "*google/cloud/aiplatform/v1/operation.pr" + + "oto\032#google/longrunning/operations.proto" + + "\032\034google/protobuf/struct.proto\"\246\001\n\033Query" + + "ReasoningEngineRequest\022?\n\004name\030\001 \001(\tB1\340A" + + "\002\372A+\n)aiplatform.googleapis.com/Reasonin" + + "gEngine\022+\n\005input\030\002 \001(\0132\027.google.protobuf" + + ".StructB\003\340A\001\022\031\n\014class_method\030\003 \001(\tB\003\340A\001\"" + + "F\n\034QueryReasoningEngineResponse\022&\n\006outpu" + + "t\030\001 \001(\0132\026.google.protobuf.Value\"\254\001\n!Stre" + + "amQueryReasoningEngineRequest\022?\n\004name\030\001 " + + "\001(\tB1\340A\002\372A+\n)aiplatform.googleapis.com/R" + + "easoningEngine\022+\n\005input\030\002 \001(\0132\027.google.p" + + "rotobuf.StructB\003\340A\001\022\031\n\014class_method\030\003 \001(" + + "\tB\003\340A\001\"\234\001\n AsyncQueryReasoningEngineRequ" + + "est\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.go" + + "ogleapis.com/ReasoningEngine\022\032\n\rinput_gc" + + "s_uri\030\002 \001(\tB\003\340A\001\022\033\n\016output_gcs_uri\030\003 \001(\t" + + "B\003\340A\001\"|\n*AsyncQueryReasoningEngineOperat" + + "ionMetadata\022N\n\020generic_metadata\030\001 \001(\01324." + + "google.cloud.aiplatform.v1.GenericOperat" + + "ionMetadata\";\n!AsyncQueryReasoningEngine" + + "Response\022\026\n\016output_gcs_uri\030\001 \001(\t2\317\006\n\037Rea" + + "soningEngineExecutionService\022\320\001\n\024QueryRe" + + "asoningEngine\0227.google.cloud.aiplatform." + + "v1.QueryReasoningEngineRequest\0328.google." + + "cloud.aiplatform.v1.QueryReasoningEngine" + + "Response\"E\202\323\344\223\002?\":/v1/{name=projects/*/l" + + "ocations/*/reasoningEngines/*}:query:\001*\022" + + "\300\001\n\032StreamQueryReasoningEngine\022=.google." + + "cloud.aiplatform.v1.StreamQueryReasoning" + + "EngineRequest\032\024.google.api.HttpBody\"K\202\323\344" + + "\223\002E\"@/v1/{name=projects/*/locations/*/re" + + "asoningEngines/*}:streamQuery:\001*0\001\022\306\002\n\031A" + + "syncQueryReasoningEngine\022<.google.cloud." + + "aiplatform.v1.AsyncQueryReasoningEngineR" + + "equest\032\035.google.longrunning.Operation\"\313\001" + + "\312AO\n!AsyncQueryReasoningEngineResponse\022*" + + "AsyncQueryReasoningEngineOperationMetada" + + "ta\202\323\344\223\002s\"?/v1/{name=projects/*/locations" + + "/*/reasoningEngines/*}:asyncQuery:\001*Z-\"(" + + "/v1/{name=reasoningEngines/*}:asyncQuery" + + ":\001*\032M\312A\031aiplatform.googleapis.com\322A.http" + + "s://www.googleapis.com/auth/cloud-platfo" + + "rmB\342\001\n\036com.google.cloud.aiplatform.v1B$R" + + "easoningEngineExecutionServiceProtoP\001Z>c" + + "loud.google.com/go/aiplatform/apiv1/aipl" + + "atformpb;aiplatformpb\252\002\032Google.Cloud.AIP" + + "latform.V1\312\002\032Google\\Cloud\\AIPlatform\\V1\352" + + "\002\035Google::Cloud::AIPlatform::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -108,6 +138,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.HttpBodyProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1_QueryReasoningEngineRequest_descriptor = @@ -134,12 +166,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Input", "ClassMethod", }); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineRequest_descriptor, + new java.lang.String[] { + "Name", "InputGcsUri", "OutputGcsUri", + }); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1_AsyncQueryReasoningEngineResponse_descriptor, + new java.lang.String[] { + "OutputGcsUri", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.HttpBodyProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -148,6 +206,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto index 84fd35f1438b..e4e8b99e3b01 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1/src/main/proto/google/cloud/aiplatform/v1/reasoning_engine_execution_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,8 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/httpbody.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1/operation.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1"; @@ -54,6 +56,23 @@ service ReasoningEngineExecutionService { body: "*" }; } + + // Async query using a reasoning engine. + rpc AsyncQueryReasoningEngine(AsyncQueryReasoningEngineRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1/{name=projects/*/locations/*/reasoningEngines/*}:asyncQuery" + body: "*" + additional_bindings { + post: "/v1/{name=reasoningEngines/*}:asyncQuery" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "AsyncQueryReasoningEngineResponse" + metadata_type: "AsyncQueryReasoningEngineOperationMetadata" + }; + } } // Request message for [ReasoningEngineExecutionService.Query][]. @@ -103,3 +122,37 @@ message StreamQueryReasoningEngineRequest { // It is optional and defaults to "stream_query" if unspecified. string class_method = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Request message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineRequest { + // Required. The name of the ReasoningEngine resource to use. + // Format: + // `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ReasoningEngine" + } + ]; + + // Optional. Input Cloud Storage URI for the Async query. + string input_gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output Cloud Storage URI for the Async query. + string output_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Operation metadata message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineResponse { + // Output Cloud Storage URI for the Async query. + string output_gcs_uri = 1; +} diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..45fcae834c87 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; +import com.google.longrunning.Operation; + +public class AsyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncAsyncQueryReasoningEngine(); + } + + public static void asyncAsyncQueryReasoningEngine() 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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + ApiFuture future = + reasoningEngineExecutionServiceClient + .asyncQueryReasoningEngineCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java new file mode 100644 index 000000000000..0e2968812c54 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; + +public class AsyncAsyncQueryReasoningEngineLRO { + + public static void main(String[] args) throws Exception { + asyncAsyncQueryReasoningEngineLRO(); + } + + public static void asyncAsyncQueryReasoningEngineLRO() 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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + OperationFuture + future = + reasoningEngineExecutionServiceClient + .asyncQueryReasoningEngineOperationCallable() + .futureCall(request); + // Do something. + AsyncQueryReasoningEngineResponse response = future.get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..aabca1ed030d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_sync] +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1.AsyncQueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1.ReasoningEngineName; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() 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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + AsyncQueryReasoningEngineResponse response = + reasoningEngineExecutionServiceClient.asyncQueryReasoningEngineAsync(request).get(); + } + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..5b5ece6a85ea --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionServiceSettings_AsyncQueryReasoningEngine_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1.ReasoningEngineExecutionServiceSettings; +import java.time.Duration; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() 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 + ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineExecutionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionServiceSettings_AsyncQueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..41a54f2b3432 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1.stub.samples; + +// [START aiplatform_v1_generated_ReasoningEngineExecutionServiceStubSettings_AsyncQueryReasoningEngine_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1.stub.ReasoningEngineExecutionServiceStubSettings; +import java.time.Duration; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() 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 + ReasoningEngineExecutionServiceStubSettings.Builder + reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineExecutionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1_generated_ReasoningEngineExecutionServiceStubSettings_AsyncQueryReasoningEngine_sync] From 84c0bbdab1d662daa9ee7667143e66a0d3949c36 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sat, 18 Apr 2026 03:00:32 +0000 Subject: [PATCH 07/19] chore: Update generation configuration at Sat Apr 18 03:00:22 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 9e1c910ba222..2b7e42ccd812 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.71.0 -googleapis_commitish: 1a00cecd9a90ac056247d5b522e94af5347adc1d +googleapis_commitish: 16b4737e7b870914e0c384b87f0e50ed388aa225 libraries_bom_version: 26.80.0 libraries: - api_shortname: accessapproval From 695a6368e7efcb2af30228bb8c837422d314880c Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Sat, 18 Apr 2026 04:32:17 +0000 Subject: [PATCH 08/19] chore: generate libraries at Sat Apr 18 03:03:19 UTC 2026 --- .../iam/v3beta/AccessPoliciesClient.java | 1630 +++++++++++++++++ .../iam/v3beta/AccessPoliciesSettings.java | 351 ++++ .../iam/v3beta/PolicyBindingsClient.java | 53 +- .../com/google/iam/v3beta/gapic_metadata.json | 27 + .../com/google/iam/v3beta/package-info.java | 20 + .../iam/v3beta/stub/AccessPoliciesStub.java | 117 ++ .../stub/AccessPoliciesStubSettings.java | 830 +++++++++ .../GrpcAccessPoliciesCallableFactory.java | 115 ++ .../v3beta/stub/GrpcAccessPoliciesStub.java | 425 +++++ ...HttpJsonAccessPoliciesCallableFactory.java | 103 ++ .../stub/HttpJsonAccessPoliciesStub.java | 664 +++++++ .../stub/HttpJsonPolicyBindingsStub.java | 1 + .../com.google.iam.v3beta/reflect-config.json | 225 +++ .../AccessPoliciesClientHttpJsonTest.java | 949 ++++++++++ .../iam/v3beta/AccessPoliciesClientTest.java | 868 +++++++++ .../google/iam/v3beta/MockAccessPolicies.java | 59 + .../iam/v3beta/MockAccessPoliciesImpl.java | 190 ++ .../modelarmor/v1beta/ModelArmorClient.java | 136 +- .../modelarmor/v1beta/ModelArmorSettings.java | 26 + .../modelarmor/v1beta/gapic_metadata.json | 6 + .../v1beta/stub/GrpcModelArmorStub.java | 66 + .../v1beta/stub/HttpJsonModelArmorStub.java | 17 + .../v1beta/stub/ModelArmorStub.java | 12 + .../v1beta/stub/ModelArmorStubSettings.java | 44 + .../reflect-config.json | 27 + .../modelarmor/v1beta/MockModelArmorImpl.java | 76 + .../v1beta/ModelArmorClientHttpJsonTest.java | 21 + .../v1beta/ModelArmorClientTest.java | 138 ++ .../modelarmor/v1beta/ModelArmorGrpc.java | 232 +++ .../cloud/modelarmor/v1beta/ByteDataItem.java | 219 +++ .../v1beta/ByteDataItemOrBuilder.java | 28 + .../cloud/modelarmor/v1beta/FloorSetting.java | 343 ++++ .../v1beta/FloorSettingOrBuilder.java | 44 + .../v1beta/McpServerFloorSetting.java | 1206 ++++++++++++ .../McpServerFloorSettingOrBuilder.java | 166 ++ .../MultiLanguageDetectionMetadata.java | 98 +- ...ltiLanguageDetectionMetadataOrBuilder.java | 28 +- .../v1beta/PiAndJailbreakFilterSettings.java | 4 +- .../modelarmor/v1beta/RaiFilterResult.java | 36 +- .../v1beta/RaiFilterResultOrBuilder.java | 15 +- .../v1beta/SanitizeModelResponseRequest.java | 213 +++ ...SanitizeModelResponseRequestOrBuilder.java | 45 + .../v1beta/SanitizeUserPromptRequest.java | 213 +++ .../SanitizeUserPromptRequestOrBuilder.java | 45 + .../cloud/modelarmor/v1beta/SdpFinding.java | 30 + .../modelarmor/v1beta/StreamingMode.java | 191 ++ .../cloud/modelarmor/v1beta/V1mainProto.java | 480 ++--- .../cloud/modelarmor/v1beta/service.proto | 88 +- .../AsyncSanitizeModelResponse.java | 2 + .../SyncSanitizeModelResponse.java | 2 + .../AsyncSanitizeUserPrompt.java | 2 + .../SyncSanitizeUserPrompt.java | 2 + .../AsyncStreamSanitizeModelResponse.java | 60 + .../AsyncStreamSanitizeUserPrompt.java | 59 + 54 files changed, 10763 insertions(+), 284 deletions(-) create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesClient.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesSettings.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStub.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStubSettings.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/GrpcAccessPoliciesCallableFactory.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/GrpcAccessPoliciesStub.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonAccessPoliciesCallableFactory.java create mode 100644 java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonAccessPoliciesStub.java create mode 100644 java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/AccessPoliciesClientHttpJsonTest.java create mode 100644 java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/AccessPoliciesClientTest.java create mode 100644 java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/MockAccessPolicies.java create mode 100644 java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/MockAccessPoliciesImpl.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/McpServerFloorSetting.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/McpServerFloorSettingOrBuilder.java create mode 100644 java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/StreamingMode.java create mode 100644 java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/streamsanitizemodelresponse/AsyncStreamSanitizeModelResponse.java create mode 100644 java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/streamsanitizeuserprompt/AsyncStreamSanitizeUserPrompt.java diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesClient.java new file mode 100644 index 000000000000..1282ba1ee63e --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesClient.java @@ -0,0 +1,1630 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.httpjson.longrunning.OperationsClient; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v3beta.stub.AccessPoliciesStub; +import com.google.iam.v3beta.stub.AccessPoliciesStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: Manages Identity and Access Management (IAM) access policies. + * + *

    This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

    {@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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    + *   AccessPolicyName name =
    + *       AccessPolicyName.ofProjectLocationAccessPolicyName(
    + *           "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]");
    + *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(name);
    + * }
    + * }
    + * + *

    Note: close() needs to be called on the AccessPoliciesClient object to clean up resources such + * as threads. In the example above, try-with-resources is used, which automatically calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
    Methods
    MethodDescriptionMethod Variants

    CreateAccessPolicy

    Creates an access policy, and returns a long running operation.

    + *

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

    + *
      + *
    • createAccessPolicyAsync(CreateAccessPolicyRequest request) + *

    + *

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

    + *
      + *
    • createAccessPolicyAsync(FolderLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) + *

    • createAccessPolicyAsync(LocationName parent, AccessPolicy accessPolicy, String accessPolicyId) + *

    • createAccessPolicyAsync(OrganizationLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) + *

    • createAccessPolicyAsync(String parent, AccessPolicy accessPolicy, String accessPolicyId) + *

    + *

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

    + *
      + *
    • createAccessPolicyOperationCallable() + *

    • createAccessPolicyCallable() + *

    + *

    GetAccessPolicy

    Gets an access policy.

    + *

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

    + *
      + *
    • getAccessPolicy(GetAccessPolicyRequest request) + *

    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • getAccessPolicy(AccessPolicyName name) + *

    • getAccessPolicy(String name) + *

    + *

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

    + *
      + *
    • getAccessPolicyCallable() + *

    + *

    UpdateAccessPolicy

    Updates an access policy.

    + *

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

    + *
      + *
    • updateAccessPolicyAsync(UpdateAccessPolicyRequest request) + *

    + *

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

    + *
      + *
    • updateAccessPolicyOperationCallable() + *

    • updateAccessPolicyCallable() + *

    + *

    DeleteAccessPolicy

    Deletes an access policy.

    + *

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

    + *
      + *
    • deleteAccessPolicyAsync(DeleteAccessPolicyRequest request) + *

    + *

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

    + *
      + *
    • deleteAccessPolicyAsync(AccessPolicyName name) + *

    • deleteAccessPolicyAsync(String name) + *

    + *

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

    + *
      + *
    • deleteAccessPolicyOperationCallable() + *

    • deleteAccessPolicyCallable() + *

    + *

    ListAccessPolicies

    Lists access policies.

    + *

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

    + *
      + *
    • listAccessPolicies(ListAccessPoliciesRequest request) + *

    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • listAccessPolicies(FolderLocationName parent) + *

    • listAccessPolicies(LocationName parent) + *

    • listAccessPolicies(OrganizationLocationName parent) + *

    • listAccessPolicies(String parent) + *

    + *

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

    + *
      + *
    • listAccessPoliciesPagedCallable() + *

    • listAccessPoliciesCallable() + *

    + *

    SearchAccessPolicyBindings

    Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings permission on that policy.

    + *

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

    + *
      + *
    • searchAccessPolicyBindings(SearchAccessPolicyBindingsRequest request) + *

    + *

    "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

    + *
      + *
    • searchAccessPolicyBindings(AccessPolicyName name) + *

    • searchAccessPolicyBindings(String name) + *

    + *

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

    + *
      + *
    • searchAccessPolicyBindingsPagedCallable() + *

    • searchAccessPolicyBindingsCallable() + *

    + *
    + * + *

    See the individual methods for example code. + * + *

    Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

    This class can be customized by passing in a custom instance of AccessPoliciesSettings to + * create(). For example: + * + *

    To customize credentials: + * + *

    {@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
    + * AccessPoliciesSettings accessPoliciesSettings =
    + *     AccessPoliciesSettings.newBuilder()
    + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    + *         .build();
    + * AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create(accessPoliciesSettings);
    + * }
    + * + *

    To customize the endpoint: + * + *

    {@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
    + * AccessPoliciesSettings accessPoliciesSettings =
    + *     AccessPoliciesSettings.newBuilder().setEndpoint(myEndpoint).build();
    + * AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create(accessPoliciesSettings);
    + * }
    + * + *

    To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over + * the wire: + * + *

    {@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
    + * AccessPoliciesSettings accessPoliciesSettings =
    + *     AccessPoliciesSettings.newHttpJsonBuilder().build();
    + * AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create(accessPoliciesSettings);
    + * }
    + * + *

    Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AccessPoliciesClient implements BackgroundResource { + private final AccessPoliciesSettings settings; + private final AccessPoliciesStub stub; + private final OperationsClient httpJsonOperationsClient; + private final com.google.longrunning.OperationsClient operationsClient; + + /** Constructs an instance of AccessPoliciesClient with default settings. */ + public static final AccessPoliciesClient create() throws IOException { + return create(AccessPoliciesSettings.newBuilder().build()); + } + + /** + * Constructs an instance of AccessPoliciesClient, using the given settings. The channels are + * created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final AccessPoliciesClient create(AccessPoliciesSettings settings) + throws IOException { + return new AccessPoliciesClient(settings); + } + + /** + * Constructs an instance of AccessPoliciesClient, using the given stub for making calls. This is + * for advanced usage - prefer using create(AccessPoliciesSettings). + */ + public static final AccessPoliciesClient create(AccessPoliciesStub stub) { + return new AccessPoliciesClient(stub); + } + + /** + * Constructs an instance of AccessPoliciesClient, using the given settings. This is protected so + * that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected AccessPoliciesClient(AccessPoliciesSettings settings) throws IOException { + this.settings = settings; + this.stub = ((AccessPoliciesStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + protected AccessPoliciesClient(AccessPoliciesStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = + com.google.longrunning.OperationsClient.create(this.stub.getOperationsStub()); + this.httpJsonOperationsClient = OperationsClient.create(this.stub.getHttpJsonOperationsStub()); + } + + public final AccessPoliciesSettings getSettings() { + return settings; + } + + public AccessPoliciesStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final com.google.longrunning.OperationsClient getOperationsClient() { + return operationsClient; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + @BetaApi + public final OperationsClient getHttpJsonOperationsClient() { + return httpJsonOperationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns 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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
    +   *   AccessPolicy accessPolicy = AccessPolicy.newBuilder().build();
    +   *   String accessPolicyId = "accessPolicyId97623921";
    +   *   AccessPolicy response =
    +   *       accessPoliciesClient.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this access policy will be created. + *

    Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @param accessPolicy Required. The access policy to create. + * @param accessPolicyId Required. The ID to use for the access policy, which will become the + * final component of the access policy's resource name. + *

    This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-\\.]{2,62}/. + *

    This value must be unique among all access policies with the same parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAccessPolicyAsync( + FolderLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { + CreateAccessPolicyRequest request = + CreateAccessPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAccessPolicy(accessPolicy) + .setAccessPolicyId(accessPolicyId) + .build(); + return createAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns 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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   AccessPolicy accessPolicy = AccessPolicy.newBuilder().build();
    +   *   String accessPolicyId = "accessPolicyId97623921";
    +   *   AccessPolicy response =
    +   *       accessPoliciesClient.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this access policy will be created. + *

    Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @param accessPolicy Required. The access policy to create. + * @param accessPolicyId Required. The ID to use for the access policy, which will become the + * final component of the access policy's resource name. + *

    This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-\\.]{2,62}/. + *

    This value must be unique among all access policies with the same parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAccessPolicyAsync( + LocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { + CreateAccessPolicyRequest request = + CreateAccessPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAccessPolicy(accessPolicy) + .setAccessPolicyId(accessPolicyId) + .build(); + return createAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns 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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
    +   *   AccessPolicy accessPolicy = AccessPolicy.newBuilder().build();
    +   *   String accessPolicyId = "accessPolicyId97623921";
    +   *   AccessPolicy response =
    +   *       accessPoliciesClient.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this access policy will be created. + *

    Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @param accessPolicy Required. The access policy to create. + * @param accessPolicyId Required. The ID to use for the access policy, which will become the + * final component of the access policy's resource name. + *

    This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-\\.]{2,62}/. + *

    This value must be unique among all access policies with the same parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAccessPolicyAsync( + OrganizationLocationName parent, AccessPolicy accessPolicy, String accessPolicyId) { + CreateAccessPolicyRequest request = + CreateAccessPolicyRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setAccessPolicy(accessPolicy) + .setAccessPolicyId(accessPolicyId) + .build(); + return createAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns 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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
    +   *   AccessPolicy accessPolicy = AccessPolicy.newBuilder().build();
    +   *   String accessPolicyId = "accessPolicyId97623921";
    +   *   AccessPolicy response =
    +   *       accessPoliciesClient.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get();
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource where this access policy will be created. + *

    Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @param accessPolicy Required. The access policy to create. + * @param accessPolicyId Required. The ID to use for the access policy, which will become the + * final component of the access policy's resource name. + *

    This value must start with a lowercase letter followed by up to 62 lowercase letters, + * numbers, hyphens, or dots. Pattern, /[a-z][a-z0-9-\\.]{2,62}/. + *

    This value must be unique among all access policies with the same parent. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture createAccessPolicyAsync( + String parent, AccessPolicy accessPolicy, String accessPolicyId) { + CreateAccessPolicyRequest request = + CreateAccessPolicyRequest.newBuilder() + .setParent(parent) + .setAccessPolicy(accessPolicy) + .setAccessPolicyId(accessPolicyId) + .build(); + return createAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns 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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   CreateAccessPolicyRequest request =
    +   *       CreateAccessPolicyRequest.newBuilder()
    +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
    +   *           .setAccessPolicyId("accessPolicyId97623921")
    +   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
    +   *           .setValidateOnly(true)
    +   *           .build();
    +   *   AccessPolicy response = accessPoliciesClient.createAccessPolicyAsync(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 createAccessPolicyAsync( + CreateAccessPolicyRequest request) { + return createAccessPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns 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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   CreateAccessPolicyRequest request =
    +   *       CreateAccessPolicyRequest.newBuilder()
    +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
    +   *           .setAccessPolicyId("accessPolicyId97623921")
    +   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
    +   *           .setValidateOnly(true)
    +   *           .build();
    +   *   OperationFuture future =
    +   *       accessPoliciesClient.createAccessPolicyOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   AccessPolicy response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + createAccessPolicyOperationCallable() { + return stub.createAccessPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an access policy, and returns 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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   CreateAccessPolicyRequest request =
    +   *       CreateAccessPolicyRequest.newBuilder()
    +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
    +   *           .setAccessPolicyId("accessPolicyId97623921")
    +   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
    +   *           .setValidateOnly(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       accessPoliciesClient.createAccessPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable createAccessPolicyCallable() { + return stub.createAccessPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   AccessPolicyName name =
    +   *       AccessPolicyName.ofProjectLocationAccessPolicyName(
    +   *           "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]");
    +   *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the access policy to retrieve. + *

    Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessPolicy getAccessPolicy(AccessPolicyName name) { + GetAccessPolicyRequest request = + GetAccessPolicyRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return getAccessPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   String name =
    +   *       AccessPolicyName.ofOrganizationLocationAccessPolicyName(
    +   *               "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *           .toString();
    +   *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(name);
    +   * }
    +   * }
    + * + * @param name Required. The name of the access policy to retrieve. + *

    Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessPolicy getAccessPolicy(String name) { + GetAccessPolicyRequest request = GetAccessPolicyRequest.newBuilder().setName(name).build(); + return getAccessPolicy(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   GetAccessPolicyRequest request =
    +   *       GetAccessPolicyRequest.newBuilder()
    +   *           .setName(
    +   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *                   .toString())
    +   *           .build();
    +   *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final AccessPolicy getAccessPolicy(GetAccessPolicyRequest request) { + return getAccessPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   GetAccessPolicyRequest request =
    +   *       GetAccessPolicyRequest.newBuilder()
    +   *           .setName(
    +   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *                   .toString())
    +   *           .build();
    +   *   ApiFuture future =
    +   *       accessPoliciesClient.getAccessPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   AccessPolicy response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable getAccessPolicyCallable() { + return stub.getAccessPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   UpdateAccessPolicyRequest request =
    +   *       UpdateAccessPolicyRequest.newBuilder()
    +   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
    +   *           .setValidateOnly(true)
    +   *           .build();
    +   *   AccessPolicy response = accessPoliciesClient.updateAccessPolicyAsync(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 updateAccessPolicyAsync( + UpdateAccessPolicyRequest request) { + return updateAccessPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   UpdateAccessPolicyRequest request =
    +   *       UpdateAccessPolicyRequest.newBuilder()
    +   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
    +   *           .setValidateOnly(true)
    +   *           .build();
    +   *   OperationFuture future =
    +   *       accessPoliciesClient.updateAccessPolicyOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   AccessPolicy response = future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + updateAccessPolicyOperationCallable() { + return stub.updateAccessPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   UpdateAccessPolicyRequest request =
    +   *       UpdateAccessPolicyRequest.newBuilder()
    +   *           .setAccessPolicy(AccessPolicy.newBuilder().build())
    +   *           .setValidateOnly(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       accessPoliciesClient.updateAccessPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   Operation response = future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable updateAccessPolicyCallable() { + return stub.updateAccessPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   AccessPolicyName name =
    +   *       AccessPolicyName.ofProjectLocationAccessPolicyName(
    +   *           "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]");
    +   *   accessPoliciesClient.deleteAccessPolicyAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the access policy to delete. + *

    Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAccessPolicyAsync( + AccessPolicyName name) { + DeleteAccessPolicyRequest request = + DeleteAccessPolicyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   String name =
    +   *       AccessPolicyName.ofOrganizationLocationAccessPolicyName(
    +   *               "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *           .toString();
    +   *   accessPoliciesClient.deleteAccessPolicyAsync(name).get();
    +   * }
    +   * }
    + * + * @param name Required. The name of the access policy to delete. + *

    Format: `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture deleteAccessPolicyAsync(String name) { + DeleteAccessPolicyRequest request = + DeleteAccessPolicyRequest.newBuilder().setName(name).build(); + return deleteAccessPolicyAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   DeleteAccessPolicyRequest request =
    +   *       DeleteAccessPolicyRequest.newBuilder()
    +   *           .setName(
    +   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *                   .toString())
    +   *           .setEtag("etag3123477")
    +   *           .setValidateOnly(true)
    +   *           .setForce(true)
    +   *           .build();
    +   *   accessPoliciesClient.deleteAccessPolicyAsync(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 deleteAccessPolicyAsync( + DeleteAccessPolicyRequest request) { + return deleteAccessPolicyOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   DeleteAccessPolicyRequest request =
    +   *       DeleteAccessPolicyRequest.newBuilder()
    +   *           .setName(
    +   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *                   .toString())
    +   *           .setEtag("etag3123477")
    +   *           .setValidateOnly(true)
    +   *           .setForce(true)
    +   *           .build();
    +   *   OperationFuture future =
    +   *       accessPoliciesClient.deleteAccessPolicyOperationCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final OperationCallable + deleteAccessPolicyOperationCallable() { + return stub.deleteAccessPolicyOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an access policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   DeleteAccessPolicyRequest request =
    +   *       DeleteAccessPolicyRequest.newBuilder()
    +   *           .setName(
    +   *               AccessPolicyName.ofProjectLocationAccessPolicyName(
    +   *                       "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *                   .toString())
    +   *           .setEtag("etag3123477")
    +   *           .setValidateOnly(true)
    +   *           .setForce(true)
    +   *           .build();
    +   *   ApiFuture future =
    +   *       accessPoliciesClient.deleteAccessPolicyCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable deleteAccessPolicyCallable() { + return stub.deleteAccessPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]");
    +   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource, which owns the collection of access policy + * resources. + *

    Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessPoliciesPagedResponse listAccessPolicies(FolderLocationName parent) { + ListAccessPoliciesRequest request = + ListAccessPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
    +   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource, which owns the collection of access policy + * resources. + *

    Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessPoliciesPagedResponse listAccessPolicies(LocationName parent) { + ListAccessPoliciesRequest request = + ListAccessPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]");
    +   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource, which owns the collection of access policy + * resources. + *

    Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessPoliciesPagedResponse listAccessPolicies(OrganizationLocationName parent) { + ListAccessPoliciesRequest request = + ListAccessPoliciesRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listAccessPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   String parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString();
    +   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(parent).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param parent Required. The parent resource, which owns the collection of access policy + * resources. + *

    Format: `projects/{project_id}/locations/{location}` + * `projects/{project_number}/locations/{location}` `folders/{folder_id}/locations/{location}` + * `organizations/{organization_id}/locations/{location}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListAccessPoliciesPagedResponse listAccessPolicies(String parent) { + ListAccessPoliciesRequest request = + ListAccessPoliciesRequest.newBuilder().setParent(parent).build(); + return listAccessPolicies(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   ListAccessPoliciesRequest request =
    +   *       ListAccessPoliciesRequest.newBuilder()
    +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (AccessPolicy element : accessPoliciesClient.listAccessPolicies(request).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @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 ListAccessPoliciesPagedResponse listAccessPolicies( + ListAccessPoliciesRequest request) { + return listAccessPoliciesPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   ListAccessPoliciesRequest request =
    +   *       ListAccessPoliciesRequest.newBuilder()
    +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       accessPoliciesClient.listAccessPoliciesPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (AccessPolicy element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAccessPoliciesPagedCallable() { + return stub.listAccessPoliciesPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists access policies. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   ListAccessPoliciesRequest request =
    +   *       ListAccessPoliciesRequest.newBuilder()
    +   *           .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     ListAccessPoliciesResponse response =
    +   *         accessPoliciesClient.listAccessPoliciesCallable().call(request);
    +   *     for (AccessPolicy element : response.getAccessPoliciesList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + listAccessPoliciesCallable() { + return stub.listAccessPoliciesCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   AccessPolicyName name =
    +   *       AccessPolicyName.ofOrganizationLocationAccessPolicyName(
    +   *           "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]");
    +   *   for (PolicyBinding element :
    +   *       accessPoliciesClient.searchAccessPolicyBindings(name).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param name Required. The name of the access policy. Format: + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAccessPolicyBindingsPagedResponse searchAccessPolicyBindings( + AccessPolicyName name) { + SearchAccessPolicyBindingsRequest request = + SearchAccessPolicyBindingsRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return searchAccessPolicyBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   String name =
    +   *       AccessPolicyName.ofOrganizationLocationAccessPolicyName(
    +   *               "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *           .toString();
    +   *   for (PolicyBinding element :
    +   *       accessPoliciesClient.searchAccessPolicyBindings(name).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @param name Required. The name of the access policy. Format: + * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final SearchAccessPolicyBindingsPagedResponse searchAccessPolicyBindings(String name) { + SearchAccessPolicyBindingsRequest request = + SearchAccessPolicyBindingsRequest.newBuilder().setName(name).build(); + return searchAccessPolicyBindings(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   SearchAccessPolicyBindingsRequest request =
    +   *       SearchAccessPolicyBindingsRequest.newBuilder()
    +   *           .setName(
    +   *               AccessPolicyName.ofOrganizationLocationAccessPolicyName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   for (PolicyBinding element :
    +   *       accessPoliciesClient.searchAccessPolicyBindings(request).iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + * + * @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 SearchAccessPolicyBindingsPagedResponse searchAccessPolicyBindings( + SearchAccessPolicyBindingsRequest request) { + return searchAccessPolicyBindingsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   SearchAccessPolicyBindingsRequest request =
    +   *       SearchAccessPolicyBindingsRequest.newBuilder()
    +   *           .setName(
    +   *               AccessPolicyName.ofOrganizationLocationAccessPolicyName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   ApiFuture future =
    +   *       accessPoliciesClient.searchAccessPolicyBindingsPagedCallable().futureCall(request);
    +   *   // Do something.
    +   *   for (PolicyBinding element : future.get().iterateAll()) {
    +   *     // doThingsWith(element);
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsPagedCallable() { + return stub.searchAccessPolicyBindingsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns all policy bindings that bind a specific policy if a user has searchPolicyBindings + * permission on that policy. + * + *

    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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
    +   *   SearchAccessPolicyBindingsRequest request =
    +   *       SearchAccessPolicyBindingsRequest.newBuilder()
    +   *           .setName(
    +   *               AccessPolicyName.ofOrganizationLocationAccessPolicyName(
    +   *                       "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]")
    +   *                   .toString())
    +   *           .setPageSize(883849137)
    +   *           .setPageToken("pageToken873572522")
    +   *           .build();
    +   *   while (true) {
    +   *     SearchAccessPolicyBindingsResponse response =
    +   *         accessPoliciesClient.searchAccessPolicyBindingsCallable().call(request);
    +   *     for (PolicyBinding element : response.getPolicyBindingsList()) {
    +   *       // doThingsWith(element);
    +   *     }
    +   *     String nextPageToken = response.getNextPageToken();
    +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    +   *     } else {
    +   *       break;
    +   *     }
    +   *   }
    +   * }
    +   * }
    + */ + public final UnaryCallable + searchAccessPolicyBindingsCallable() { + return stub.searchAccessPolicyBindingsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListAccessPoliciesPagedResponse + extends AbstractPagedListResponse< + ListAccessPoliciesRequest, + ListAccessPoliciesResponse, + AccessPolicy, + ListAccessPoliciesPage, + ListAccessPoliciesFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListAccessPoliciesPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListAccessPoliciesPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListAccessPoliciesPagedResponse(ListAccessPoliciesPage page) { + super(page, ListAccessPoliciesFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListAccessPoliciesPage + extends AbstractPage< + ListAccessPoliciesRequest, + ListAccessPoliciesResponse, + AccessPolicy, + ListAccessPoliciesPage> { + + private ListAccessPoliciesPage( + PageContext context, + ListAccessPoliciesResponse response) { + super(context, response); + } + + private static ListAccessPoliciesPage createEmptyPage() { + return new ListAccessPoliciesPage(null, null); + } + + @Override + protected ListAccessPoliciesPage createPage( + PageContext context, + ListAccessPoliciesResponse response) { + return new ListAccessPoliciesPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListAccessPoliciesFixedSizeCollection + extends AbstractFixedSizeCollection< + ListAccessPoliciesRequest, + ListAccessPoliciesResponse, + AccessPolicy, + ListAccessPoliciesPage, + ListAccessPoliciesFixedSizeCollection> { + + private ListAccessPoliciesFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListAccessPoliciesFixedSizeCollection createEmptyCollection() { + return new ListAccessPoliciesFixedSizeCollection(null, 0); + } + + @Override + protected ListAccessPoliciesFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListAccessPoliciesFixedSizeCollection(pages, collectionSize); + } + } + + public static class SearchAccessPolicyBindingsPagedResponse + extends AbstractPagedListResponse< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding, + SearchAccessPolicyBindingsPage, + SearchAccessPolicyBindingsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + SearchAccessPolicyBindingsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new SearchAccessPolicyBindingsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private SearchAccessPolicyBindingsPagedResponse(SearchAccessPolicyBindingsPage page) { + super(page, SearchAccessPolicyBindingsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class SearchAccessPolicyBindingsPage + extends AbstractPage< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding, + SearchAccessPolicyBindingsPage> { + + private SearchAccessPolicyBindingsPage( + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + context, + SearchAccessPolicyBindingsResponse response) { + super(context, response); + } + + private static SearchAccessPolicyBindingsPage createEmptyPage() { + return new SearchAccessPolicyBindingsPage(null, null); + } + + @Override + protected SearchAccessPolicyBindingsPage createPage( + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + context, + SearchAccessPolicyBindingsResponse response) { + return new SearchAccessPolicyBindingsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class SearchAccessPolicyBindingsFixedSizeCollection + extends AbstractFixedSizeCollection< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding, + SearchAccessPolicyBindingsPage, + SearchAccessPolicyBindingsFixedSizeCollection> { + + private SearchAccessPolicyBindingsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static SearchAccessPolicyBindingsFixedSizeCollection createEmptyCollection() { + return new SearchAccessPolicyBindingsFixedSizeCollection(null, 0); + } + + @Override + protected SearchAccessPolicyBindingsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new SearchAccessPolicyBindingsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesSettings.java new file mode 100644 index 000000000000..9c507387ae43 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/AccessPoliciesSettings.java @@ -0,0 +1,351 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta; + +import static com.google.iam.v3beta.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3beta.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.iam.v3beta.stub.AccessPoliciesStubSettings; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AccessPoliciesClient}. + * + *

    The default instance has everything set to sensible defaults: + * + *

      + *
    • The default service address (iam.googleapis.com) and default port (443) are used. + *
    • Credentials are acquired automatically through Application Default Credentials. + *
    • Retries are configured for idempotent methods but not for non-idempotent methods. + *
    + * + *

    The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

    For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAccessPolicy: + * + *

    {@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
    + * AccessPoliciesSettings.Builder accessPoliciesSettingsBuilder =
    + *     AccessPoliciesSettings.newBuilder();
    + * accessPoliciesSettingsBuilder
    + *     .getAccessPolicySettings()
    + *     .setRetrySettings(
    + *         accessPoliciesSettingsBuilder
    + *             .getAccessPolicySettings()
    + *             .getRetrySettings()
    + *             .toBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
    + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
    + *             .setMaxAttempts(5)
    + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
    + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
    + *             .setRetryDelayMultiplier(1.3)
    + *             .setRpcTimeoutMultiplier(1.5)
    + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
    + *             .build());
    + * AccessPoliciesSettings accessPoliciesSettings = accessPoliciesSettingsBuilder.build();
    + * }
    + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

    To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createAccessPolicy: + * + *

    {@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
    + * AccessPoliciesSettings.Builder accessPoliciesSettingsBuilder =
    + *     AccessPoliciesSettings.newBuilder();
    + * TimedRetryAlgorithm timedRetryAlgorithm =
    + *     OperationalTimedPollAlgorithm.create(
    + *         RetrySettings.newBuilder()
    + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
    + *             .setRetryDelayMultiplier(1.5)
    + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
    + *             .setTotalTimeoutDuration(Duration.ofHours(24))
    + *             .build());
    + * accessPoliciesSettingsBuilder
    + *     .createClusterOperationSettings()
    + *     .setPollingAlgorithm(timedRetryAlgorithm)
    + *     .build();
    + * }
    + */ +@BetaApi +@Generated("by gapic-generator-java") +public class AccessPoliciesSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createAccessPolicy. */ + public UnaryCallSettings createAccessPolicySettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).createAccessPolicySettings(); + } + + /** Returns the object with the settings used for calls to createAccessPolicy. */ + public OperationCallSettings + createAccessPolicyOperationSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).createAccessPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to getAccessPolicy. */ + public UnaryCallSettings getAccessPolicySettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).getAccessPolicySettings(); + } + + /** Returns the object with the settings used for calls to updateAccessPolicy. */ + public UnaryCallSettings updateAccessPolicySettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).updateAccessPolicySettings(); + } + + /** Returns the object with the settings used for calls to updateAccessPolicy. */ + public OperationCallSettings + updateAccessPolicyOperationSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).updateAccessPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteAccessPolicy. */ + public UnaryCallSettings deleteAccessPolicySettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).deleteAccessPolicySettings(); + } + + /** Returns the object with the settings used for calls to deleteAccessPolicy. */ + public OperationCallSettings + deleteAccessPolicyOperationSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).deleteAccessPolicyOperationSettings(); + } + + /** Returns the object with the settings used for calls to listAccessPolicies. */ + public PagedCallSettings< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).listAccessPoliciesSettings(); + } + + /** Returns the object with the settings used for calls to searchAccessPolicyBindings. */ + public PagedCallSettings< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings() { + return ((AccessPoliciesStubSettings) getStubSettings()).searchAccessPolicyBindingsSettings(); + } + + public static final AccessPoliciesSettings create(AccessPoliciesStubSettings stub) + throws IOException { + return new AccessPoliciesSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return AccessPoliciesStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return AccessPoliciesStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return AccessPoliciesStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return AccessPoliciesStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return AccessPoliciesStubSettings.defaultGrpcTransportProviderBuilder(); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return AccessPoliciesStubSettings.defaultHttpJsonTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return AccessPoliciesStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AccessPoliciesStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AccessPoliciesSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for AccessPoliciesSettings. */ + public static class Builder extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(AccessPoliciesStubSettings.newBuilder(clientContext)); + } + + protected Builder(AccessPoliciesSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(AccessPoliciesStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(AccessPoliciesStubSettings.newBuilder()); + } + + private static Builder createHttpJsonDefault() { + return new Builder(AccessPoliciesStubSettings.newHttpJsonBuilder()); + } + + public AccessPoliciesStubSettings.Builder getStubSettingsBuilder() { + return ((AccessPoliciesStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

    Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createAccessPolicy. */ + public UnaryCallSettings.Builder + createAccessPolicySettings() { + return getStubSettingsBuilder().createAccessPolicySettings(); + } + + /** Returns the builder for the settings used for calls to createAccessPolicy. */ + public OperationCallSettings.Builder + createAccessPolicyOperationSettings() { + return getStubSettingsBuilder().createAccessPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getAccessPolicy. */ + public UnaryCallSettings.Builder + getAccessPolicySettings() { + return getStubSettingsBuilder().getAccessPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updateAccessPolicy. */ + public UnaryCallSettings.Builder + updateAccessPolicySettings() { + return getStubSettingsBuilder().updateAccessPolicySettings(); + } + + /** Returns the builder for the settings used for calls to updateAccessPolicy. */ + public OperationCallSettings.Builder + updateAccessPolicyOperationSettings() { + return getStubSettingsBuilder().updateAccessPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteAccessPolicy. */ + public UnaryCallSettings.Builder + deleteAccessPolicySettings() { + return getStubSettingsBuilder().deleteAccessPolicySettings(); + } + + /** Returns the builder for the settings used for calls to deleteAccessPolicy. */ + public OperationCallSettings.Builder + deleteAccessPolicyOperationSettings() { + return getStubSettingsBuilder().deleteAccessPolicyOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listAccessPolicies. */ + public PagedCallSettings.Builder< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings() { + return getStubSettingsBuilder().listAccessPoliciesSettings(); + } + + /** Returns the builder for the settings used for calls to searchAccessPolicyBindings. */ + public PagedCallSettings.Builder< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings() { + return getStubSettingsBuilder().searchAccessPolicyBindingsSettings(); + } + + @Override + public AccessPoliciesSettings build() throws IOException { + return new AccessPoliciesSettings(this); + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsClient.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsClient.java index 85e4bc27e975..bdbb193f30ed 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsClient.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/PolicyBindingsClient.java @@ -73,7 +73,7 @@ * * *

    CreatePolicyBinding - *

    Creates a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. Once the binding is created, the policy is applied to the target. + *

    Creates a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. After the binding is created, the policy is applied to the target. * *

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

    *
      @@ -114,7 +114,7 @@ * * *

      UpdatePolicyBinding - *

      Updates a policy binding and returns a long-running operation. Callers will need the IAM permissions on the policy and target in the binding to update, and the IAM permission to remove the existing policy from the binding. Target is immutable and cannot be updated. Once the binding is updated, the new policy is applied to the target. + *

      Updates a policy binding and returns a long-running operation. Callers will need the IAM permissions on the policy and target in the binding to update. Target and policy are immutable and cannot be updated. * *

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

      *
        @@ -133,7 +133,7 @@ * * *

        DeletePolicyBinding - *

        Deletes a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. Once the binding is deleted, the policy no longer applies to the target. + *

        Deletes a policy binding and returns a long-running operation. Callers will need the IAM permissions on both the policy and target. After the binding is deleted, the policy no longer applies to the target. * *

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

        *
          @@ -329,7 +329,7 @@ public final OperationsClient getHttpJsonOperationsClient() { // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

          Sample code: @@ -383,7 +383,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

          Sample code: @@ -437,7 +437,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

          Sample code: @@ -491,7 +491,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

          Sample code: @@ -545,7 +545,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

          Sample code: @@ -579,7 +579,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

          Sample code: @@ -613,7 +613,7 @@ public final OperationFuture createPolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is created, the policy is applied + * permissions on both the policy and target. After the binding is created, the policy is applied * to the target. * *

          Sample code: @@ -782,9 +782,8 @@ public final UnaryCallable getPolicyBind // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on the policy and target in the binding to update, and the IAM permission to remove - * the existing policy from the binding. Target is immutable and cannot be updated. Once the - * binding is updated, the new policy is applied to the target. + * permissions on the policy and target in the binding to update. Target and policy are immutable + * and cannot be updated. * *

          Sample code: * @@ -820,9 +819,8 @@ public final OperationFuture updatePolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on the policy and target in the binding to update, and the IAM permission to remove - * the existing policy from the binding. Target is immutable and cannot be updated. Once the - * binding is updated, the new policy is applied to the target. + * permissions on the policy and target in the binding to update. Target and policy are immutable + * and cannot be updated. * *

          Sample code: * @@ -854,9 +852,8 @@ public final OperationFuture updatePolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on the policy and target in the binding to update, and the IAM permission to remove - * the existing policy from the binding. Target is immutable and cannot be updated. Once the - * binding is updated, the new policy is applied to the target. + * permissions on the policy and target in the binding to update. Target and policy are immutable + * and cannot be updated. * *

          Sample code: * @@ -888,9 +885,8 @@ public final OperationFuture updatePolicyBindi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Updates a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on the policy and target in the binding to update, and the IAM permission to remove - * the existing policy from the binding. Target is immutable and cannot be updated. Once the - * binding is updated, the new policy is applied to the target. + * permissions on the policy and target in the binding to update. Target and policy are immutable + * and cannot be updated. * *

          Sample code: * @@ -921,7 +917,7 @@ public final UnaryCallable updatePolicyBi // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

          Sample code: @@ -963,7 +959,7 @@ public final OperationFuture deletePolicyBindingAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

          Sample code: @@ -1003,7 +999,7 @@ public final OperationFuture deletePolicyBindingAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

          Sample code: @@ -1039,7 +1035,7 @@ public final OperationFuture deletePolicyBindingAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

          Sample code: @@ -1075,7 +1071,7 @@ public final OperationFuture deletePolicyBindingAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Deletes a policy binding and returns a long-running operation. Callers will need the IAM - * permissions on both the policy and target. Once the binding is deleted, the policy no longer + * permissions on both the policy and target. After the binding is deleted, the policy no longer * applies to the target. * *

          Sample code: @@ -1606,6 +1602,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") * .build(); * for (PolicyBinding element : * policyBindingsClient.searchTargetPolicyBindings(request).iterateAll()) { @@ -1641,6 +1638,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") * .build(); * ApiFuture future = * policyBindingsClient.searchTargetPolicyBindingsPagedCallable().futureCall(request); @@ -1676,6 +1674,7 @@ public final SearchTargetPolicyBindingsPagedResponse searchTargetPolicyBindings( * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setParent(OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]").toString()) + * .setFilter("filter-1274492040") * .build(); * while (true) { * SearchTargetPolicyBindingsResponse response = diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/gapic_metadata.json b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/gapic_metadata.json index bd439bde035d..228bee6dd013 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/gapic_metadata.json +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/gapic_metadata.json @@ -5,6 +5,33 @@ "protoPackage": "google.iam.v3beta", "libraryPackage": "com.google.iam.v3beta", "services": { + "AccessPolicies": { + "clients": { + "grpc": { + "libraryClient": "AccessPoliciesClient", + "rpcs": { + "CreateAccessPolicy": { + "methods": ["createAccessPolicyAsync", "createAccessPolicyAsync", "createAccessPolicyAsync", "createAccessPolicyAsync", "createAccessPolicyAsync", "createAccessPolicyOperationCallable", "createAccessPolicyCallable"] + }, + "DeleteAccessPolicy": { + "methods": ["deleteAccessPolicyAsync", "deleteAccessPolicyAsync", "deleteAccessPolicyAsync", "deleteAccessPolicyOperationCallable", "deleteAccessPolicyCallable"] + }, + "GetAccessPolicy": { + "methods": ["getAccessPolicy", "getAccessPolicy", "getAccessPolicy", "getAccessPolicyCallable"] + }, + "ListAccessPolicies": { + "methods": ["listAccessPolicies", "listAccessPolicies", "listAccessPolicies", "listAccessPolicies", "listAccessPolicies", "listAccessPoliciesPagedCallable", "listAccessPoliciesCallable"] + }, + "SearchAccessPolicyBindings": { + "methods": ["searchAccessPolicyBindings", "searchAccessPolicyBindings", "searchAccessPolicyBindings", "searchAccessPolicyBindingsPagedCallable", "searchAccessPolicyBindingsCallable"] + }, + "UpdateAccessPolicy": { + "methods": ["updateAccessPolicyAsync", "updateAccessPolicyOperationCallable", "updateAccessPolicyCallable"] + } + } + } + } + }, "PolicyBindings": { "clients": { "grpc": { diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/package-info.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/package-info.java index 330c1b20a6b4..19954dbcbf57 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/package-info.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/package-info.java @@ -19,6 +19,26 @@ * *

          The interfaces provided are listed below, along with usage samples. * + *

          ======================= AccessPoliciesClient ======================= + * + *

          Service Description: Manages Identity and Access Management (IAM) access policies. + * + *

          Sample for AccessPoliciesClient: + * + *

          {@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 (AccessPoliciesClient accessPoliciesClient = AccessPoliciesClient.create()) {
          + *   AccessPolicyName name =
          + *       AccessPolicyName.ofProjectLocationAccessPolicyName(
          + *           "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]");
          + *   AccessPolicy response = accessPoliciesClient.getAccessPolicy(name);
          + * }
          + * }
          + * *

          ======================= PolicyBindingsClient ======================= * *

          Service Description: An interface for managing Identity and Access Management (IAM) policy diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStub.java new file mode 100644 index 000000000000..d35b59bf7ec0 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStub.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta.stub; + +import static com.google.iam.v3beta.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3beta.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v3beta.AccessPolicy; +import com.google.iam.v3beta.CreateAccessPolicyRequest; +import com.google.iam.v3beta.DeleteAccessPolicyRequest; +import com.google.iam.v3beta.GetAccessPolicyRequest; +import com.google.iam.v3beta.ListAccessPoliciesRequest; +import com.google.iam.v3beta.ListAccessPoliciesResponse; +import com.google.iam.v3beta.OperationMetadata; +import com.google.iam.v3beta.SearchAccessPolicyBindingsRequest; +import com.google.iam.v3beta.SearchAccessPolicyBindingsResponse; +import com.google.iam.v3beta.UpdateAccessPolicyRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the AccessPolicies service API. + * + *

          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class AccessPoliciesStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + return null; + } + + public com.google.api.gax.httpjson.longrunning.stub.OperationsStub getHttpJsonOperationsStub() { + return null; + } + + public OperationCallable + createAccessPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createAccessPolicyOperationCallable()"); + } + + public UnaryCallable createAccessPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: createAccessPolicyCallable()"); + } + + public UnaryCallable getAccessPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getAccessPolicyCallable()"); + } + + public OperationCallable + updateAccessPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateAccessPolicyOperationCallable()"); + } + + public UnaryCallable updateAccessPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: updateAccessPolicyCallable()"); + } + + public OperationCallable + deleteAccessPolicyOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteAccessPolicyOperationCallable()"); + } + + public UnaryCallable deleteAccessPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: deleteAccessPolicyCallable()"); + } + + public UnaryCallable + listAccessPoliciesPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessPoliciesPagedCallable()"); + } + + public UnaryCallable + listAccessPoliciesCallable() { + throw new UnsupportedOperationException("Not implemented: listAccessPoliciesCallable()"); + } + + public UnaryCallable + searchAccessPolicyBindingsPagedCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchAccessPolicyBindingsPagedCallable()"); + } + + public UnaryCallable + searchAccessPolicyBindingsCallable() { + throw new UnsupportedOperationException( + "Not implemented: searchAccessPolicyBindingsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStubSettings.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStubSettings.java new file mode 100644 index 000000000000..97fb29f36578 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/AccessPoliciesStubSettings.java @@ -0,0 +1,830 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta.stub; + +import static com.google.iam.v3beta.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3beta.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.HttpJsonTransportChannel; +import com.google.api.gax.httpjson.InstantiatingHttpJsonChannelProvider; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v3beta.AccessPolicy; +import com.google.iam.v3beta.CreateAccessPolicyRequest; +import com.google.iam.v3beta.DeleteAccessPolicyRequest; +import com.google.iam.v3beta.GetAccessPolicyRequest; +import com.google.iam.v3beta.ListAccessPoliciesRequest; +import com.google.iam.v3beta.ListAccessPoliciesResponse; +import com.google.iam.v3beta.OperationMetadata; +import com.google.iam.v3beta.PolicyBinding; +import com.google.iam.v3beta.SearchAccessPolicyBindingsRequest; +import com.google.iam.v3beta.SearchAccessPolicyBindingsResponse; +import com.google.iam.v3beta.UpdateAccessPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link AccessPoliciesStub}. + * + *

          The default instance has everything set to sensible defaults: + * + *

            + *
          • The default service address (iam.googleapis.com) and default port (443) are used. + *
          • Credentials are acquired automatically through Application Default Credentials. + *
          • Retries are configured for idempotent methods but not for non-idempotent methods. + *
          + * + *

          The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

          For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getAccessPolicy: + * + *

          {@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
          + * AccessPoliciesStubSettings.Builder accessPoliciesSettingsBuilder =
          + *     AccessPoliciesStubSettings.newBuilder();
          + * accessPoliciesSettingsBuilder
          + *     .getAccessPolicySettings()
          + *     .setRetrySettings(
          + *         accessPoliciesSettingsBuilder
          + *             .getAccessPolicySettings()
          + *             .getRetrySettings()
          + *             .toBuilder()
          + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
          + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
          + *             .setMaxAttempts(5)
          + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
          + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
          + *             .setRetryDelayMultiplier(1.3)
          + *             .setRpcTimeoutMultiplier(1.5)
          + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
          + *             .build());
          + * AccessPoliciesStubSettings accessPoliciesSettings = accessPoliciesSettingsBuilder.build();
          + * }
          + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

          To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createAccessPolicy: + * + *

          {@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
          + * AccessPoliciesStubSettings.Builder accessPoliciesSettingsBuilder =
          + *     AccessPoliciesStubSettings.newBuilder();
          + * TimedRetryAlgorithm timedRetryAlgorithm =
          + *     OperationalTimedPollAlgorithm.create(
          + *         RetrySettings.newBuilder()
          + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
          + *             .setRetryDelayMultiplier(1.5)
          + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
          + *             .setTotalTimeoutDuration(Duration.ofHours(24))
          + *             .build());
          + * accessPoliciesSettingsBuilder
          + *     .createClusterOperationSettings()
          + *     .setPollingAlgorithm(timedRetryAlgorithm)
          + *     .build();
          + * }
          + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class AccessPoliciesStubSettings extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings createAccessPolicySettings; + private final OperationCallSettings + createAccessPolicyOperationSettings; + private final UnaryCallSettings getAccessPolicySettings; + private final UnaryCallSettings updateAccessPolicySettings; + private final OperationCallSettings + updateAccessPolicyOperationSettings; + private final UnaryCallSettings deleteAccessPolicySettings; + private final OperationCallSettings + deleteAccessPolicyOperationSettings; + private final PagedCallSettings< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings; + private final PagedCallSettings< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings; + + private static final PagedListDescriptor< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, AccessPolicy> + LIST_ACCESS_POLICIES_PAGE_STR_DESC = + new PagedListDescriptor< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, AccessPolicy>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListAccessPoliciesRequest injectToken( + ListAccessPoliciesRequest payload, String token) { + return ListAccessPoliciesRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListAccessPoliciesRequest injectPageSize( + ListAccessPoliciesRequest payload, int pageSize) { + return ListAccessPoliciesRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListAccessPoliciesRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListAccessPoliciesResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListAccessPoliciesResponse payload) { + return payload.getAccessPoliciesList(); + } + }; + + private static final PagedListDescriptor< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsResponse, PolicyBinding> + SEARCH_ACCESS_POLICY_BINDINGS_PAGE_STR_DESC = + new PagedListDescriptor< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public SearchAccessPolicyBindingsRequest injectToken( + SearchAccessPolicyBindingsRequest payload, String token) { + return SearchAccessPolicyBindingsRequest.newBuilder(payload) + .setPageToken(token) + .build(); + } + + @Override + public SearchAccessPolicyBindingsRequest injectPageSize( + SearchAccessPolicyBindingsRequest payload, int pageSize) { + return SearchAccessPolicyBindingsRequest.newBuilder(payload) + .setPageSize(pageSize) + .build(); + } + + @Override + public Integer extractPageSize(SearchAccessPolicyBindingsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(SearchAccessPolicyBindingsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + SearchAccessPolicyBindingsResponse payload) { + return payload.getPolicyBindingsList(); + } + }; + + private static final PagedListResponseFactory< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + LIST_ACCESS_POLICIES_PAGE_STR_FACT = + new PagedListResponseFactory< + ListAccessPoliciesRequest, + ListAccessPoliciesResponse, + ListAccessPoliciesPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListAccessPoliciesRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext + pageContext = + PageContext.create( + callable, LIST_ACCESS_POLICIES_PAGE_STR_DESC, request, context); + return ListAccessPoliciesPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + SEARCH_ACCESS_POLICY_BINDINGS_PAGE_STR_FACT = + new PagedListResponseFactory< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable + callable, + SearchAccessPolicyBindingsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + PolicyBinding> + pageContext = + PageContext.create( + callable, SEARCH_ACCESS_POLICY_BINDINGS_PAGE_STR_DESC, request, context); + return SearchAccessPolicyBindingsPagedResponse.createAsync( + pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createAccessPolicy. */ + public UnaryCallSettings createAccessPolicySettings() { + return createAccessPolicySettings; + } + + /** Returns the object with the settings used for calls to createAccessPolicy. */ + public OperationCallSettings + createAccessPolicyOperationSettings() { + return createAccessPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to getAccessPolicy. */ + public UnaryCallSettings getAccessPolicySettings() { + return getAccessPolicySettings; + } + + /** Returns the object with the settings used for calls to updateAccessPolicy. */ + public UnaryCallSettings updateAccessPolicySettings() { + return updateAccessPolicySettings; + } + + /** Returns the object with the settings used for calls to updateAccessPolicy. */ + public OperationCallSettings + updateAccessPolicyOperationSettings() { + return updateAccessPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteAccessPolicy. */ + public UnaryCallSettings deleteAccessPolicySettings() { + return deleteAccessPolicySettings; + } + + /** Returns the object with the settings used for calls to deleteAccessPolicy. */ + public OperationCallSettings + deleteAccessPolicyOperationSettings() { + return deleteAccessPolicyOperationSettings; + } + + /** Returns the object with the settings used for calls to listAccessPolicies. */ + public PagedCallSettings< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings() { + return listAccessPoliciesSettings; + } + + /** Returns the object with the settings used for calls to searchAccessPolicyBindings. */ + public PagedCallSettings< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings() { + return searchAccessPolicyBindingsSettings; + } + + public AccessPoliciesStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcAccessPoliciesStub.create(this); + } + if (getTransportChannelProvider() + .getTransportName() + .equals(HttpJsonTransportChannel.getHttpJsonTransportName())) { + return HttpJsonAccessPoliciesStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "iam"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "iam.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "iam.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default gRPC ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + /** Returns a builder for the default REST ChannelProvider for this service. */ + @BetaApi + public static InstantiatingHttpJsonChannelProvider.Builder + defaultHttpJsonTransportProviderBuilder() { + return InstantiatingHttpJsonChannelProvider.newBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultGrpcApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AccessPoliciesStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultHttpJsonApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(AccessPoliciesStubSettings.class)) + .setTransportToken( + GaxHttpJsonProperties.getHttpJsonTokenName(), + GaxHttpJsonProperties.getHttpJsonVersion()); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return AccessPoliciesStubSettings.defaultGrpcApiClientHeaderProviderBuilder(); + } + + /** Returns a new gRPC builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new REST builder for this class. */ + public static Builder newHttpJsonBuilder() { + return Builder.createHttpJsonDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected AccessPoliciesStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createAccessPolicySettings = settingsBuilder.createAccessPolicySettings().build(); + createAccessPolicyOperationSettings = + settingsBuilder.createAccessPolicyOperationSettings().build(); + getAccessPolicySettings = settingsBuilder.getAccessPolicySettings().build(); + updateAccessPolicySettings = settingsBuilder.updateAccessPolicySettings().build(); + updateAccessPolicyOperationSettings = + settingsBuilder.updateAccessPolicyOperationSettings().build(); + deleteAccessPolicySettings = settingsBuilder.deleteAccessPolicySettings().build(); + deleteAccessPolicyOperationSettings = + settingsBuilder.deleteAccessPolicyOperationSettings().build(); + listAccessPoliciesSettings = settingsBuilder.listAccessPoliciesSettings().build(); + searchAccessPolicyBindingsSettings = + settingsBuilder.searchAccessPolicyBindingsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-iam-policy") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for AccessPoliciesStubSettings. */ + public static class Builder extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createAccessPolicySettings; + private final OperationCallSettings.Builder< + CreateAccessPolicyRequest, AccessPolicy, OperationMetadata> + createAccessPolicyOperationSettings; + private final UnaryCallSettings.Builder + getAccessPolicySettings; + private final UnaryCallSettings.Builder + updateAccessPolicySettings; + private final OperationCallSettings.Builder< + UpdateAccessPolicyRequest, AccessPolicy, OperationMetadata> + updateAccessPolicyOperationSettings; + private final UnaryCallSettings.Builder + deleteAccessPolicySettings; + private final OperationCallSettings.Builder + deleteAccessPolicyOperationSettings; + private final PagedCallSettings.Builder< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings; + private final PagedCallSettings.Builder< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put( + "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); + definitions.put( + "retry_policy_0_codes", + ImmutableSet.copyOf(Lists.newArrayList(StatusCode.Code.UNAVAILABLE))); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = + RetrySettings.newBuilder() + .setInitialRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(30000L)) + .setTotalTimeoutDuration(Duration.ofMillis(30000L)) + .build(); + definitions.put("no_retry_1_params", settings); + settings = + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(1000L)) + .setRetryDelayMultiplier(1.3) + .setMaxRetryDelayDuration(Duration.ofMillis(10000L)) + .setInitialRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ofMillis(60000L)) + .setTotalTimeoutDuration(Duration.ofMillis(60000L)) + .build(); + definitions.put("retry_policy_0_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createAccessPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createAccessPolicyOperationSettings = OperationCallSettings.newBuilder(); + getAccessPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAccessPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateAccessPolicyOperationSettings = OperationCallSettings.newBuilder(); + deleteAccessPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteAccessPolicyOperationSettings = OperationCallSettings.newBuilder(); + listAccessPoliciesSettings = PagedCallSettings.newBuilder(LIST_ACCESS_POLICIES_PAGE_STR_FACT); + searchAccessPolicyBindingsSettings = + PagedCallSettings.newBuilder(SEARCH_ACCESS_POLICY_BINDINGS_PAGE_STR_FACT); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAccessPolicySettings, + getAccessPolicySettings, + updateAccessPolicySettings, + deleteAccessPolicySettings, + listAccessPoliciesSettings, + searchAccessPolicyBindingsSettings); + initDefaults(this); + } + + protected Builder(AccessPoliciesStubSettings settings) { + super(settings); + + createAccessPolicySettings = settings.createAccessPolicySettings.toBuilder(); + createAccessPolicyOperationSettings = + settings.createAccessPolicyOperationSettings.toBuilder(); + getAccessPolicySettings = settings.getAccessPolicySettings.toBuilder(); + updateAccessPolicySettings = settings.updateAccessPolicySettings.toBuilder(); + updateAccessPolicyOperationSettings = + settings.updateAccessPolicyOperationSettings.toBuilder(); + deleteAccessPolicySettings = settings.deleteAccessPolicySettings.toBuilder(); + deleteAccessPolicyOperationSettings = + settings.deleteAccessPolicyOperationSettings.toBuilder(); + listAccessPoliciesSettings = settings.listAccessPoliciesSettings.toBuilder(); + searchAccessPolicyBindingsSettings = settings.searchAccessPolicyBindingsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createAccessPolicySettings, + getAccessPolicySettings, + updateAccessPolicySettings, + deleteAccessPolicySettings, + listAccessPoliciesSettings, + searchAccessPolicyBindingsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder createHttpJsonDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultHttpJsonTransportProviderBuilder().build()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultHttpJsonApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createAccessPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .getAccessPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .updateAccessPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .deleteAccessPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + + builder + .listAccessPoliciesSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .searchAccessPolicyBindingsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); + + builder + .createAccessPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AccessPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .updateAccessPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(AccessPolicy.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + builder + .deleteAccessPolicyOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(OperationMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(45000L)) + .setInitialRpcTimeoutDuration(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeoutDuration(Duration.ZERO) + .setTotalTimeoutDuration(Duration.ofMillis(300000L)) + .build())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

          Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createAccessPolicy. */ + public UnaryCallSettings.Builder + createAccessPolicySettings() { + return createAccessPolicySettings; + } + + /** Returns the builder for the settings used for calls to createAccessPolicy. */ + public OperationCallSettings.Builder + createAccessPolicyOperationSettings() { + return createAccessPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to getAccessPolicy. */ + public UnaryCallSettings.Builder + getAccessPolicySettings() { + return getAccessPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateAccessPolicy. */ + public UnaryCallSettings.Builder + updateAccessPolicySettings() { + return updateAccessPolicySettings; + } + + /** Returns the builder for the settings used for calls to updateAccessPolicy. */ + public OperationCallSettings.Builder + updateAccessPolicyOperationSettings() { + return updateAccessPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteAccessPolicy. */ + public UnaryCallSettings.Builder + deleteAccessPolicySettings() { + return deleteAccessPolicySettings; + } + + /** Returns the builder for the settings used for calls to deleteAccessPolicy. */ + public OperationCallSettings.Builder + deleteAccessPolicyOperationSettings() { + return deleteAccessPolicyOperationSettings; + } + + /** Returns the builder for the settings used for calls to listAccessPolicies. */ + public PagedCallSettings.Builder< + ListAccessPoliciesRequest, ListAccessPoliciesResponse, ListAccessPoliciesPagedResponse> + listAccessPoliciesSettings() { + return listAccessPoliciesSettings; + } + + /** Returns the builder for the settings used for calls to searchAccessPolicyBindings. */ + public PagedCallSettings.Builder< + SearchAccessPolicyBindingsRequest, + SearchAccessPolicyBindingsResponse, + SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsSettings() { + return searchAccessPolicyBindingsSettings; + } + + @Override + public AccessPoliciesStubSettings build() throws IOException { + return new AccessPoliciesStubSettings(this); + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/GrpcAccessPoliciesCallableFactory.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/GrpcAccessPoliciesCallableFactory.java new file mode 100644 index 000000000000..db77a15c6496 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/GrpcAccessPoliciesCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the AccessPolicies service API. + * + *

          This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAccessPoliciesCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/GrpcAccessPoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/GrpcAccessPoliciesStub.java new file mode 100644 index 000000000000..14bc950176aa --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/GrpcAccessPoliciesStub.java @@ -0,0 +1,425 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta.stub; + +import static com.google.iam.v3beta.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3beta.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.iam.v3beta.AccessPolicy; +import com.google.iam.v3beta.CreateAccessPolicyRequest; +import com.google.iam.v3beta.DeleteAccessPolicyRequest; +import com.google.iam.v3beta.GetAccessPolicyRequest; +import com.google.iam.v3beta.ListAccessPoliciesRequest; +import com.google.iam.v3beta.ListAccessPoliciesResponse; +import com.google.iam.v3beta.OperationMetadata; +import com.google.iam.v3beta.SearchAccessPolicyBindingsRequest; +import com.google.iam.v3beta.SearchAccessPolicyBindingsResponse; +import com.google.iam.v3beta.UpdateAccessPolicyRequest; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the AccessPolicies service API. + * + *

          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcAccessPoliciesStub extends AccessPoliciesStub { + private static final MethodDescriptor + createAccessPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3beta.AccessPolicies/CreateAccessPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getAccessPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3beta.AccessPolicies/GetAccessPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(GetAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(AccessPolicy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateAccessPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3beta.AccessPolicies/UpdateAccessPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteAccessPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3beta.AccessPolicies/DeleteAccessPolicy") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listAccessPoliciesMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3beta.AccessPolicies/ListAccessPolicies") + .setRequestMarshaller( + ProtoUtils.marshaller(ListAccessPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListAccessPoliciesResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsResponse> + searchAccessPolicyBindingsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v3beta.AccessPolicies/SearchAccessPolicyBindings") + .setRequestMarshaller( + ProtoUtils.marshaller(SearchAccessPolicyBindingsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(SearchAccessPolicyBindingsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable createAccessPolicyCallable; + private final OperationCallable + createAccessPolicyOperationCallable; + private final UnaryCallable getAccessPolicyCallable; + private final UnaryCallable updateAccessPolicyCallable; + private final OperationCallable + updateAccessPolicyOperationCallable; + private final UnaryCallable deleteAccessPolicyCallable; + private final OperationCallable + deleteAccessPolicyOperationCallable; + private final UnaryCallable + listAccessPoliciesCallable; + private final UnaryCallable + listAccessPoliciesPagedCallable; + private final UnaryCallable + searchAccessPolicyBindingsCallable; + private final UnaryCallable< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsPagedCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcAccessPoliciesStub create(AccessPoliciesStubSettings settings) + throws IOException { + return new GrpcAccessPoliciesStub(settings, ClientContext.create(settings)); + } + + public static final GrpcAccessPoliciesStub create(ClientContext clientContext) + throws IOException { + return new GrpcAccessPoliciesStub( + AccessPoliciesStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcAccessPoliciesStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcAccessPoliciesStub( + AccessPoliciesStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcAccessPoliciesStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAccessPoliciesStub(AccessPoliciesStubSettings settings, ClientContext clientContext) + throws IOException { + this(settings, clientContext, new GrpcAccessPoliciesCallableFactory()); + } + + /** + * Constructs an instance of GrpcAccessPoliciesStub, using the given settings. This is protected + * so that it is easy to make a subclass, but otherwise, the static factory methods should be + * preferred. + */ + protected GrpcAccessPoliciesStub( + AccessPoliciesStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings createAccessPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createAccessPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings getAccessPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getAccessPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings updateAccessPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateAccessPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "access_policy.name", String.valueOf(request.getAccessPolicy().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings deleteAccessPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteAccessPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listAccessPoliciesTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listAccessPoliciesMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + searchAccessPolicyBindingsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(searchAccessPolicyBindingsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.createAccessPolicyCallable = + callableFactory.createUnaryCallable( + createAccessPolicyTransportSettings, + settings.createAccessPolicySettings(), + clientContext); + this.createAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + createAccessPolicyTransportSettings, + settings.createAccessPolicyOperationSettings(), + clientContext, + operationsStub); + this.getAccessPolicyCallable = + callableFactory.createUnaryCallable( + getAccessPolicyTransportSettings, settings.getAccessPolicySettings(), clientContext); + this.updateAccessPolicyCallable = + callableFactory.createUnaryCallable( + updateAccessPolicyTransportSettings, + settings.updateAccessPolicySettings(), + clientContext); + this.updateAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAccessPolicyTransportSettings, + settings.updateAccessPolicyOperationSettings(), + clientContext, + operationsStub); + this.deleteAccessPolicyCallable = + callableFactory.createUnaryCallable( + deleteAccessPolicyTransportSettings, + settings.deleteAccessPolicySettings(), + clientContext); + this.deleteAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAccessPolicyTransportSettings, + settings.deleteAccessPolicyOperationSettings(), + clientContext, + operationsStub); + this.listAccessPoliciesCallable = + callableFactory.createUnaryCallable( + listAccessPoliciesTransportSettings, + settings.listAccessPoliciesSettings(), + clientContext); + this.listAccessPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAccessPoliciesTransportSettings, + settings.listAccessPoliciesSettings(), + clientContext); + this.searchAccessPolicyBindingsCallable = + callableFactory.createUnaryCallable( + searchAccessPolicyBindingsTransportSettings, + settings.searchAccessPolicyBindingsSettings(), + clientContext); + this.searchAccessPolicyBindingsPagedCallable = + callableFactory.createPagedCallable( + searchAccessPolicyBindingsTransportSettings, + settings.searchAccessPolicyBindingsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createAccessPolicyCallable() { + return createAccessPolicyCallable; + } + + @Override + public OperationCallable + createAccessPolicyOperationCallable() { + return createAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable getAccessPolicyCallable() { + return getAccessPolicyCallable; + } + + @Override + public UnaryCallable updateAccessPolicyCallable() { + return updateAccessPolicyCallable; + } + + @Override + public OperationCallable + updateAccessPolicyOperationCallable() { + return updateAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable deleteAccessPolicyCallable() { + return deleteAccessPolicyCallable; + } + + @Override + public OperationCallable + deleteAccessPolicyOperationCallable() { + return deleteAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable + listAccessPoliciesCallable() { + return listAccessPoliciesCallable; + } + + @Override + public UnaryCallable + listAccessPoliciesPagedCallable() { + return listAccessPoliciesPagedCallable; + } + + @Override + public UnaryCallable + searchAccessPolicyBindingsCallable() { + return searchAccessPolicyBindingsCallable; + } + + @Override + public UnaryCallable + searchAccessPolicyBindingsPagedCallable() { + return searchAccessPolicyBindingsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonAccessPoliciesCallableFactory.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonAccessPoliciesCallableFactory.java new file mode 100644 index 000000000000..303e258c811d --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonAccessPoliciesCallableFactory.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonCallableFactory; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshotCallable; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.longrunning.stub.OperationsStub; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST callable factory implementation for the AccessPolicies service API. + * + *

          This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAccessPoliciesCallableFactory + implements HttpJsonStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + HttpJsonCallSettings httpJsonCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createUnaryCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + HttpJsonCallSettings httpJsonCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createPagedCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + HttpJsonCallSettings httpJsonCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createBatchingCallable( + httpJsonCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + HttpJsonCallSettings httpJsonCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + UnaryCallable innerCallable = + HttpJsonCallableFactory.createBaseUnaryCallable( + httpJsonCallSettings, callSettings.getInitialCallSettings(), clientContext); + HttpJsonOperationSnapshotCallable initialCallable = + new HttpJsonOperationSnapshotCallable( + innerCallable, + httpJsonCallSettings.getMethodDescriptor().getOperationSnapshotFactory()); + return HttpJsonCallableFactory.createOperationCallable( + callSettings, clientContext, operationsStub.longRunningClient(), initialCallable); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + HttpJsonCallSettings httpJsonCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return HttpJsonCallableFactory.createServerStreamingCallable( + httpJsonCallSettings, callSettings, clientContext); + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonAccessPoliciesStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonAccessPoliciesStub.java new file mode 100644 index 000000000000..f5b434b1a910 --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonAccessPoliciesStub.java @@ -0,0 +1,664 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta.stub; + +import static com.google.iam.v3beta.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3beta.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.HttpRule; +import com.google.api.core.BetaApi; +import com.google.api.core.InternalApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.httpjson.ApiMethodDescriptor; +import com.google.api.gax.httpjson.HttpJsonCallSettings; +import com.google.api.gax.httpjson.HttpJsonOperationSnapshot; +import com.google.api.gax.httpjson.HttpJsonStubCallableFactory; +import com.google.api.gax.httpjson.ProtoMessageRequestFormatter; +import com.google.api.gax.httpjson.ProtoMessageResponseParser; +import com.google.api.gax.httpjson.ProtoRestSerializer; +import com.google.api.gax.httpjson.longrunning.stub.HttpJsonOperationsStub; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.common.collect.ImmutableMap; +import com.google.iam.v3beta.AccessPolicy; +import com.google.iam.v3beta.CreateAccessPolicyRequest; +import com.google.iam.v3beta.DeleteAccessPolicyRequest; +import com.google.iam.v3beta.GetAccessPolicyRequest; +import com.google.iam.v3beta.ListAccessPoliciesRequest; +import com.google.iam.v3beta.ListAccessPoliciesResponse; +import com.google.iam.v3beta.OperationMetadata; +import com.google.iam.v3beta.SearchAccessPolicyBindingsRequest; +import com.google.iam.v3beta.SearchAccessPolicyBindingsResponse; +import com.google.iam.v3beta.UpdateAccessPolicyRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import com.google.protobuf.TypeRegistry; +import java.io.IOException; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * REST stub implementation for the AccessPolicies service API. + * + *

          This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class HttpJsonAccessPoliciesStub extends AccessPoliciesStub { + private static final TypeRegistry typeRegistry = + TypeRegistry.newBuilder() + .add(Empty.getDescriptor()) + .add(OperationMetadata.getDescriptor()) + .add(AccessPolicy.getDescriptor()) + .build(); + + private static final ApiMethodDescriptor + createAccessPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3beta.AccessPolicies/CreateAccessPolicy") + .setHttpMethod("POST") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta/{parent=projects/*/locations/*}/accessPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v3beta/{parent=folders/*/locations/*}/accessPolicies", + "/v3beta/{parent=organizations/*/locations/*}/accessPolicies") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "accessPolicyId", request.getAccessPolicyId()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("accessPolicy", request.getAccessPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (CreateAccessPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + getAccessPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3beta.AccessPolicies/GetAccessPolicy") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta/{name=projects/*/locations/*/accessPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v3beta/{name=folders/*/locations/*/accessPolicies/*}", + "/v3beta/{name=organizations/*/locations/*/accessPolicies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(AccessPolicy.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor + updateAccessPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3beta.AccessPolicies/UpdateAccessPolicy") + .setHttpMethod("PATCH") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta/{accessPolicy.name=projects/*/locations/*/accessPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam( + fields, "accessPolicy.name", request.getAccessPolicy().getName()); + return fields; + }) + .setAdditionalPaths( + "/v3beta/{accessPolicy.name=folders/*/locations/*/accessPolicies/*}", + "/v3beta/{accessPolicy.name=organizations/*/locations/*/accessPolicies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor( + request -> + ProtoRestSerializer.create() + .toBody("accessPolicy", request.getAccessPolicy(), true)) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (UpdateAccessPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + deleteAccessPolicyMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3beta.AccessPolicies/DeleteAccessPolicy") + .setHttpMethod("DELETE") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta/{name=projects/*/locations/*/accessPolicies/*}", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v3beta/{name=folders/*/locations/*/accessPolicies/*}", + "/v3beta/{name=organizations/*/locations/*/accessPolicies/*}") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "etag", request.getEtag()); + serializer.putQueryParam(fields, "force", request.getForce()); + serializer.putQueryParam( + fields, "validateOnly", request.getValidateOnly()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(Operation.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .setOperationSnapshotFactory( + (DeleteAccessPolicyRequest request, Operation response) -> + HttpJsonOperationSnapshot.create(response)) + .build(); + + private static final ApiMethodDescriptor + listAccessPoliciesMethodDescriptor = + ApiMethodDescriptor.newBuilder() + .setFullMethodName("google.iam.v3beta.AccessPolicies/ListAccessPolicies") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta/{parent=projects/*/locations/*}/accessPolicies", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "parent", request.getParent()); + return fields; + }) + .setAdditionalPaths( + "/v3beta/{parent=folders/*/locations/*}/accessPolicies", + "/v3beta/{parent=organizations/*/locations/*}/accessPolicies") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(ListAccessPoliciesResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private static final ApiMethodDescriptor< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsResponse> + searchAccessPolicyBindingsMethodDescriptor = + ApiMethodDescriptor + .newBuilder() + .setFullMethodName("google.iam.v3beta.AccessPolicies/SearchAccessPolicyBindings") + .setHttpMethod("GET") + .setType(ApiMethodDescriptor.MethodType.UNARY) + .setRequestFormatter( + ProtoMessageRequestFormatter.newBuilder() + .setPath( + "/v3beta/{name=organizations/*/locations/*/accessPolicies/*}:searchPolicyBindings", + request -> { + Map fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putPathParam(fields, "name", request.getName()); + return fields; + }) + .setAdditionalPaths( + "/v3beta/{name=folders/*/locations/*/accessPolicies/*}:searchPolicyBindings", + "/v3beta/{name=projects/*/locations/*/accessPolicies/*}:searchPolicyBindings") + .setQueryParamsExtractor( + request -> { + Map> fields = new HashMap<>(); + ProtoRestSerializer serializer = + ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "pageSize", request.getPageSize()); + serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); + return fields; + }) + .setRequestBodyExtractor(request -> null) + .build()) + .setResponseParser( + ProtoMessageResponseParser.newBuilder() + .setDefaultInstance(SearchAccessPolicyBindingsResponse.getDefaultInstance()) + .setDefaultTypeRegistry(typeRegistry) + .build()) + .build(); + + private final UnaryCallable createAccessPolicyCallable; + private final OperationCallable + createAccessPolicyOperationCallable; + private final UnaryCallable getAccessPolicyCallable; + private final UnaryCallable updateAccessPolicyCallable; + private final OperationCallable + updateAccessPolicyOperationCallable; + private final UnaryCallable deleteAccessPolicyCallable; + private final OperationCallable + deleteAccessPolicyOperationCallable; + private final UnaryCallable + listAccessPoliciesCallable; + private final UnaryCallable + listAccessPoliciesPagedCallable; + private final UnaryCallable + searchAccessPolicyBindingsCallable; + private final UnaryCallable< + SearchAccessPolicyBindingsRequest, SearchAccessPolicyBindingsPagedResponse> + searchAccessPolicyBindingsPagedCallable; + + private final BackgroundResource backgroundResources; + private final HttpJsonOperationsStub httpJsonOperationsStub; + private final HttpJsonStubCallableFactory callableFactory; + + public static final HttpJsonAccessPoliciesStub create(AccessPoliciesStubSettings settings) + throws IOException { + return new HttpJsonAccessPoliciesStub(settings, ClientContext.create(settings)); + } + + public static final HttpJsonAccessPoliciesStub create(ClientContext clientContext) + throws IOException { + return new HttpJsonAccessPoliciesStub( + AccessPoliciesStubSettings.newHttpJsonBuilder().build(), clientContext); + } + + public static final HttpJsonAccessPoliciesStub create( + ClientContext clientContext, HttpJsonStubCallableFactory callableFactory) throws IOException { + return new HttpJsonAccessPoliciesStub( + AccessPoliciesStubSettings.newHttpJsonBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of HttpJsonAccessPoliciesStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAccessPoliciesStub( + AccessPoliciesStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new HttpJsonAccessPoliciesCallableFactory()); + } + + /** + * Constructs an instance of HttpJsonAccessPoliciesStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected HttpJsonAccessPoliciesStub( + AccessPoliciesStubSettings settings, + ClientContext clientContext, + HttpJsonStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.httpJsonOperationsStub = + HttpJsonOperationsStub.create( + clientContext, + callableFactory, + typeRegistry, + ImmutableMap.builder() + .put( + "google.longrunning.Operations.GetOperation", + HttpRule.newBuilder() + .setGet("/v3beta/{name=projects/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v3beta/{name=folders/*/locations/*/operations/*}") + .build()) + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v3beta/{name=organizations/*/locations/*/operations/*}") + .build()) + .build()) + .build()); + + HttpJsonCallSettings createAccessPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(createAccessPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings getAccessPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(getAccessPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings updateAccessPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(updateAccessPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "access_policy.name", String.valueOf(request.getAccessPolicy().getName())); + return builder.build(); + }) + .build(); + HttpJsonCallSettings deleteAccessPolicyTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(deleteAccessPolicyMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + HttpJsonCallSettings + listAccessPoliciesTransportSettings = + HttpJsonCallSettings.newBuilder() + .setMethodDescriptor(listAccessPoliciesMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + HttpJsonCallSettings + searchAccessPolicyBindingsTransportSettings = + HttpJsonCallSettings + .newBuilder() + .setMethodDescriptor(searchAccessPolicyBindingsMethodDescriptor) + .setTypeRegistry(typeRegistry) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + + this.createAccessPolicyCallable = + callableFactory.createUnaryCallable( + createAccessPolicyTransportSettings, + settings.createAccessPolicySettings(), + clientContext); + this.createAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + createAccessPolicyTransportSettings, + settings.createAccessPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.getAccessPolicyCallable = + callableFactory.createUnaryCallable( + getAccessPolicyTransportSettings, settings.getAccessPolicySettings(), clientContext); + this.updateAccessPolicyCallable = + callableFactory.createUnaryCallable( + updateAccessPolicyTransportSettings, + settings.updateAccessPolicySettings(), + clientContext); + this.updateAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + updateAccessPolicyTransportSettings, + settings.updateAccessPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.deleteAccessPolicyCallable = + callableFactory.createUnaryCallable( + deleteAccessPolicyTransportSettings, + settings.deleteAccessPolicySettings(), + clientContext); + this.deleteAccessPolicyOperationCallable = + callableFactory.createOperationCallable( + deleteAccessPolicyTransportSettings, + settings.deleteAccessPolicyOperationSettings(), + clientContext, + httpJsonOperationsStub); + this.listAccessPoliciesCallable = + callableFactory.createUnaryCallable( + listAccessPoliciesTransportSettings, + settings.listAccessPoliciesSettings(), + clientContext); + this.listAccessPoliciesPagedCallable = + callableFactory.createPagedCallable( + listAccessPoliciesTransportSettings, + settings.listAccessPoliciesSettings(), + clientContext); + this.searchAccessPolicyBindingsCallable = + callableFactory.createUnaryCallable( + searchAccessPolicyBindingsTransportSettings, + settings.searchAccessPolicyBindingsSettings(), + clientContext); + this.searchAccessPolicyBindingsPagedCallable = + callableFactory.createPagedCallable( + searchAccessPolicyBindingsTransportSettings, + settings.searchAccessPolicyBindingsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + @InternalApi + public static List getMethodDescriptors() { + List methodDescriptors = new ArrayList<>(); + methodDescriptors.add(createAccessPolicyMethodDescriptor); + methodDescriptors.add(getAccessPolicyMethodDescriptor); + methodDescriptors.add(updateAccessPolicyMethodDescriptor); + methodDescriptors.add(deleteAccessPolicyMethodDescriptor); + methodDescriptors.add(listAccessPoliciesMethodDescriptor); + methodDescriptors.add(searchAccessPolicyBindingsMethodDescriptor); + return methodDescriptors; + } + + public HttpJsonOperationsStub getHttpJsonOperationsStub() { + return httpJsonOperationsStub; + } + + @Override + public UnaryCallable createAccessPolicyCallable() { + return createAccessPolicyCallable; + } + + @Override + public OperationCallable + createAccessPolicyOperationCallable() { + return createAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable getAccessPolicyCallable() { + return getAccessPolicyCallable; + } + + @Override + public UnaryCallable updateAccessPolicyCallable() { + return updateAccessPolicyCallable; + } + + @Override + public OperationCallable + updateAccessPolicyOperationCallable() { + return updateAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable deleteAccessPolicyCallable() { + return deleteAccessPolicyCallable; + } + + @Override + public OperationCallable + deleteAccessPolicyOperationCallable() { + return deleteAccessPolicyOperationCallable; + } + + @Override + public UnaryCallable + listAccessPoliciesCallable() { + return listAccessPoliciesCallable; + } + + @Override + public UnaryCallable + listAccessPoliciesPagedCallable() { + return listAccessPoliciesPagedCallable; + } + + @Override + public UnaryCallable + searchAccessPolicyBindingsCallable() { + return searchAccessPolicyBindingsCallable; + } + + @Override + public UnaryCallable + searchAccessPolicyBindingsPagedCallable() { + return searchAccessPolicyBindingsPagedCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonPolicyBindingsStub.java b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonPolicyBindingsStub.java index 034e8528932a..98243b2994e8 100644 --- a/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonPolicyBindingsStub.java +++ b/java-iam-policy/google-iam-policy/src/main/java/com/google/iam/v3beta/stub/HttpJsonPolicyBindingsStub.java @@ -315,6 +315,7 @@ public class HttpJsonPolicyBindingsStub extends PolicyBindingsStub { Map> fields = new HashMap<>(); ProtoRestSerializer serializer = ProtoRestSerializer.create(); + serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); serializer.putQueryParam(fields, "target", request.getTarget()); diff --git a/java-iam-policy/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v3beta/reflect-config.json b/java-iam-policy/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v3beta/reflect-config.json index 358fac255410..296927b7f09d 100644 --- a/java-iam-policy/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v3beta/reflect-config.json +++ b/java-iam-policy/google-iam-policy/src/main/resources/META-INF/native-image/com.google.iam.v3beta/reflect-config.json @@ -593,6 +593,105 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3beta.AccessPolicy", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.AccessPolicy$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.AccessPolicyDetails", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.AccessPolicyDetails$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.AccessPolicyRule", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.AccessPolicyRule$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.AccessPolicyRule$Effect", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.AccessPolicyRule$Operation", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.AccessPolicyRule$Operation$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.CreateAccessPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.CreateAccessPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3beta.CreatePolicyBindingRequest", "queryAllDeclaredConstructors": true, @@ -629,6 +728,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3beta.DeleteAccessPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.DeleteAccessPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3beta.DeletePolicyBindingRequest", "queryAllDeclaredConstructors": true, @@ -665,6 +782,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3beta.GetAccessPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.GetAccessPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3beta.GetPolicyBindingRequest", "queryAllDeclaredConstructors": true, @@ -701,6 +836,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3beta.ListAccessPoliciesRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.ListAccessPoliciesRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.ListAccessPoliciesResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.ListAccessPoliciesResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3beta.ListPolicyBindingsRequest", "queryAllDeclaredConstructors": true, @@ -899,6 +1070,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3beta.SearchAccessPolicyBindingsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.SearchAccessPolicyBindingsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.SearchAccessPolicyBindingsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.SearchAccessPolicyBindingsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3beta.SearchPrincipalAccessBoundaryPolicyBindingsRequest", "queryAllDeclaredConstructors": true, @@ -971,6 +1178,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.iam.v3beta.UpdateAccessPolicyRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.iam.v3beta.UpdateAccessPolicyRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.iam.v3beta.UpdatePolicyBindingRequest", "queryAllDeclaredConstructors": true, diff --git a/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/AccessPoliciesClientHttpJsonTest.java b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/AccessPoliciesClientHttpJsonTest.java new file mode 100644 index 000000000000..ec79eea7723e --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/AccessPoliciesClientHttpJsonTest.java @@ -0,0 +1,949 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta; + +import static com.google.iam.v3beta.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3beta.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.httpjson.GaxHttpJsonProperties; +import com.google.api.gax.httpjson.testing.MockHttpService; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ApiException; +import com.google.api.gax.rpc.ApiExceptionFactory; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.testing.FakeStatusCode; +import com.google.common.collect.Lists; +import com.google.iam.v3beta.stub.HttpJsonAccessPoliciesStub; +import com.google.longrunning.Operation; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AccessPoliciesClientHttpJsonTest { + private static MockHttpService mockService; + private static AccessPoliciesClient client; + + @BeforeClass + public static void startStaticServer() throws IOException { + mockService = + new MockHttpService( + HttpJsonAccessPoliciesStub.getMethodDescriptors(), + AccessPoliciesSettings.getDefaultEndpoint()); + AccessPoliciesSettings settings = + AccessPoliciesSettings.newHttpJsonBuilder() + .setTransportChannelProvider( + AccessPoliciesSettings.defaultHttpJsonTransportProviderBuilder() + .setHttpTransport(mockService) + .build()) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AccessPoliciesClient.create(settings); + } + + @AfterClass + public static void stopServer() { + client.close(); + } + + @Before + public void setUp() {} + + @After + public void tearDown() throws Exception { + mockService.reset(); + } + + @Test + public void createAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAccessPolicyTest2() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAccessPolicyTest3() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessPolicyExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createAccessPolicyTest4() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "projects/project-5833/locations/location-5833"; + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createAccessPolicyExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void getAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + + AccessPolicy actualResponse = client.getAccessPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + client.getAccessPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessPolicyTest2() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + mockService.addResponse(expectedResponse); + + String name = "projects/project-5052/locations/location-5052/accessPolicies/accessPolicie-5052"; + + AccessPolicy actualResponse = client.getAccessPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void getAccessPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5052/locations/location-5052/accessPolicies/accessPolicie-5052"; + client.getAccessPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + UpdateAccessPolicyRequest request = + UpdateAccessPolicyRequest.newBuilder() + .setAccessPolicy( + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build()) + .setValidateOnly(true) + .build(); + + AccessPolicy actualResponse = client.updateAccessPolicyAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void updateAccessPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + UpdateAccessPolicyRequest request = + UpdateAccessPolicyRequest.newBuilder() + .setAccessPolicy( + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build()) + .setValidateOnly(true) + .build(); + client.updateAccessPolicyAsync(request).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAccessPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + + client.deleteAccessPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAccessPolicyExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + client.deleteAccessPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void deleteAccessPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String name = "projects/project-5052/locations/location-5052/accessPolicies/accessPolicie-5052"; + + client.deleteAccessPolicyAsync(name).get(); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void deleteAccessPolicyExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "projects/project-5052/locations/location-5052/accessPolicies/accessPolicie-5052"; + client.deleteAccessPolicyAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void listAccessPoliciesTest() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessPoliciesExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest2() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessPoliciesExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest3() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessPoliciesExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest4() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "projects/project-5833/locations/location-5833"; + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listAccessPoliciesExceptionTest4() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String parent = "projects/project-5833/locations/location-5833"; + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAccessPolicyBindingsTest() throws Exception { + PolicyBinding responsesElement = PolicyBinding.newBuilder().build(); + SearchAccessPolicyBindingsResponse expectedResponse = + SearchAccessPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + AccessPolicyName name = + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + + SearchAccessPolicyBindingsPagedResponse pagedListResponse = + client.searchAccessPolicyBindings(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchAccessPolicyBindingsExceptionTest() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + client.searchAccessPolicyBindings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAccessPolicyBindingsTest2() throws Exception { + PolicyBinding responsesElement = PolicyBinding.newBuilder().build(); + SearchAccessPolicyBindingsResponse expectedResponse = + SearchAccessPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String name = + "organizations/organization-9476/locations/location-9476/accessPolicies/accessPolicie-9476"; + + SearchAccessPolicyBindingsPagedResponse pagedListResponse = + client.searchAccessPolicyBindings(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void searchAccessPolicyBindingsExceptionTest2() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + + try { + String name = + "organizations/organization-9476/locations/location-9476/accessPolicies/accessPolicie-9476"; + client.searchAccessPolicyBindings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/AccessPoliciesClientTest.java b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/AccessPoliciesClientTest.java new file mode 100644 index 000000000000..01ce21132d4d --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/AccessPoliciesClientTest.java @@ -0,0 +1,868 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta; + +import static com.google.iam.v3beta.AccessPoliciesClient.ListAccessPoliciesPagedResponse; +import static com.google.iam.v3beta.AccessPoliciesClient.SearchAccessPolicyBindingsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.common.collect.Lists; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.Empty; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class AccessPoliciesClientTest { + private static MockAccessPolicies mockAccessPolicies; + private static MockLocations mockLocations; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private AccessPoliciesClient client; + + @BeforeClass + public static void startStaticServer() { + mockAccessPolicies = new MockAccessPolicies(); + mockLocations = new MockLocations(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList(mockAccessPolicies, mockLocations)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + AccessPoliciesSettings settings = + AccessPoliciesSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = AccessPoliciesClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessPolicyRequest actualRequest = ((CreateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(accessPolicy, actualRequest.getAccessPolicy()); + Assert.assertEquals(accessPolicyId, actualRequest.getAccessPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).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 createAccessPolicyTest2() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessPolicyRequest actualRequest = ((CreateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(accessPolicy, actualRequest.getAccessPolicy()); + Assert.assertEquals(accessPolicyId, actualRequest.getAccessPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).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 createAccessPolicyTest3() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessPolicyRequest actualRequest = ((CreateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(accessPolicy, actualRequest.getAccessPolicy()); + Assert.assertEquals(accessPolicyId, actualRequest.getAccessPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessPolicyExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).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 createAccessPolicyTest4() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + String parent = "parent-995424086"; + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + + AccessPolicy actualResponse = + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateAccessPolicyRequest actualRequest = ((CreateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(accessPolicy, actualRequest.getAccessPolicy()); + Assert.assertEquals(accessPolicyId, actualRequest.getAccessPolicyId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createAccessPolicyExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String parent = "parent-995424086"; + AccessPolicy accessPolicy = AccessPolicy.newBuilder().build(); + String accessPolicyId = "accessPolicyId97623921"; + client.createAccessPolicyAsync(parent, accessPolicy, accessPolicyId).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 getAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + + AccessPolicy actualResponse = client.getAccessPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessPolicyRequest actualRequest = ((GetAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + client.getAccessPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getAccessPolicyTest2() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + String name = "name3373707"; + + AccessPolicy actualResponse = client.getAccessPolicy(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetAccessPolicyRequest actualRequest = ((GetAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getAccessPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String name = "name3373707"; + client.getAccessPolicy(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateAccessPolicyTest() throws Exception { + AccessPolicy expectedResponse = + AccessPolicy.newBuilder() + .setName( + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]") + .toString()) + .setUid("uid115792") + .setEtag("etag3123477") + .setDisplayName("displayName1714148973") + .putAllAnnotations(new HashMap()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDetails(AccessPolicyDetails.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + UpdateAccessPolicyRequest request = + UpdateAccessPolicyRequest.newBuilder() + .setAccessPolicy(AccessPolicy.newBuilder().build()) + .setValidateOnly(true) + .build(); + + AccessPolicy actualResponse = client.updateAccessPolicyAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateAccessPolicyRequest actualRequest = ((UpdateAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getAccessPolicy(), actualRequest.getAccessPolicy()); + Assert.assertEquals(request.getValidateOnly(), actualRequest.getValidateOnly()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateAccessPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + UpdateAccessPolicyRequest request = + UpdateAccessPolicyRequest.newBuilder() + .setAccessPolicy(AccessPolicy.newBuilder().build()) + .setValidateOnly(true) + .build(); + client.updateAccessPolicyAsync(request).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 deleteAccessPolicyTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + + client.deleteAccessPolicyAsync(name).get(); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAccessPolicyRequest actualRequest = ((DeleteAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAccessPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofProjectLocationAccessPolicyName( + "[PROJECT]", "[LOCATION]", "[ACCESS_POLICY]"); + client.deleteAccessPolicyAsync(name).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 deleteAccessPolicyTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteAccessPolicyTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockAccessPolicies.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteAccessPolicyAsync(name).get(); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteAccessPolicyRequest actualRequest = ((DeleteAccessPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteAccessPolicyExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String name = "name3373707"; + client.deleteAccessPolicyAsync(name).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 listAccessPoliciesTest() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessPoliciesRequest actualRequest = ((ListAccessPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessPoliciesExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + FolderLocationName parent = FolderLocationName.of("[FOLDER]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest2() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessPoliciesRequest actualRequest = ((ListAccessPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessPoliciesExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest3() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessPoliciesRequest actualRequest = ((ListAccessPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessPoliciesExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listAccessPoliciesTest4() throws Exception { + AccessPolicy responsesElement = AccessPolicy.newBuilder().build(); + ListAccessPoliciesResponse expectedResponse = + ListAccessPoliciesResponse.newBuilder() + .setNextPageToken("") + .addAllAccessPolicies(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListAccessPoliciesPagedResponse pagedListResponse = client.listAccessPolicies(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getAccessPoliciesList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListAccessPoliciesRequest actualRequest = ((ListAccessPoliciesRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listAccessPoliciesExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String parent = "parent-995424086"; + client.listAccessPolicies(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAccessPolicyBindingsTest() throws Exception { + PolicyBinding responsesElement = PolicyBinding.newBuilder().build(); + SearchAccessPolicyBindingsResponse expectedResponse = + SearchAccessPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + AccessPolicyName name = + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + + SearchAccessPolicyBindingsPagedResponse pagedListResponse = + client.searchAccessPolicyBindings(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchAccessPolicyBindingsRequest actualRequest = + ((SearchAccessPolicyBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchAccessPolicyBindingsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + AccessPolicyName name = + AccessPolicyName.ofOrganizationLocationAccessPolicyName( + "[ORGANIZATION]", "[LOCATION]", "[ACCESS_POLICY]"); + client.searchAccessPolicyBindings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void searchAccessPolicyBindingsTest2() throws Exception { + PolicyBinding responsesElement = PolicyBinding.newBuilder().build(); + SearchAccessPolicyBindingsResponse expectedResponse = + SearchAccessPolicyBindingsResponse.newBuilder() + .setNextPageToken("") + .addAllPolicyBindings(Arrays.asList(responsesElement)) + .build(); + mockAccessPolicies.addResponse(expectedResponse); + + String name = "name3373707"; + + SearchAccessPolicyBindingsPagedResponse pagedListResponse = + client.searchAccessPolicyBindings(name); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getPolicyBindingsList().get(0), resources.get(0)); + + List actualRequests = mockAccessPolicies.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SearchAccessPolicyBindingsRequest actualRequest = + ((SearchAccessPolicyBindingsRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void searchAccessPolicyBindingsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockAccessPolicies.addException(exception); + + try { + String name = "name3373707"; + client.searchAccessPolicyBindings(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/MockAccessPolicies.java b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/MockAccessPolicies.java new file mode 100644 index 000000000000..4e58d7d46abc --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/MockAccessPolicies.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAccessPolicies implements MockGrpcService { + private final MockAccessPoliciesImpl serviceImpl; + + public MockAccessPolicies() { + serviceImpl = new MockAccessPoliciesImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/MockAccessPoliciesImpl.java b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/MockAccessPoliciesImpl.java new file mode 100644 index 000000000000..39fe2941e8bc --- /dev/null +++ b/java-iam-policy/google-iam-policy/src/test/java/com/google/iam/v3beta/MockAccessPoliciesImpl.java @@ -0,0 +1,190 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta; + +import com.google.api.core.BetaApi; +import com.google.iam.v3beta.AccessPoliciesGrpc.AccessPoliciesImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockAccessPoliciesImpl extends AccessPoliciesImplBase { + private List requests; + private Queue responses; + + public MockAccessPoliciesImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createAccessPolicy( + CreateAccessPolicyRequest 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 CreateAccessPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getAccessPolicy( + GetAccessPolicyRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof AccessPolicy) { + requests.add(request); + responseObserver.onNext(((AccessPolicy) 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 GetAccessPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + AccessPolicy.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateAccessPolicy( + UpdateAccessPolicyRequest 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 UpdateAccessPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteAccessPolicy( + DeleteAccessPolicyRequest 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 DeleteAccessPolicy, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listAccessPolicies( + ListAccessPoliciesRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListAccessPoliciesResponse) { + requests.add(request); + responseObserver.onNext(((ListAccessPoliciesResponse) 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 ListAccessPolicies, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + ListAccessPoliciesResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void searchAccessPolicyBindings( + SearchAccessPolicyBindingsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof SearchAccessPolicyBindingsResponse) { + requests.add(request); + responseObserver.onNext(((SearchAccessPolicyBindingsResponse) 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 SearchAccessPolicyBindings, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + SearchAccessPolicyBindingsResponse.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java index 807c85324b29..99afcd1956cf 100644 --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorClient.java @@ -23,6 +23,7 @@ import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.BidiStreamingCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.UnaryCallable; import com.google.cloud.location.GetLocationRequest; @@ -229,8 +230,30 @@ * * * + *

          StreamSanitizeUserPrompt + *

          Streaming version of Sanitize User Prompt. + * + *

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

          + *
            + *
          • streamSanitizeUserPromptCallable() + *

          + * + * + * + *

          StreamSanitizeModelResponse + *

          Streaming version of Sanitizes Model Response. + * + *

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

          + *
            + *
          • streamSanitizeModelResponseCallable() + *

          + * + * + * *

          ListLocations - *

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

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

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

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

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

          *
            @@ -1191,6 +1214,7 @@ public final UnaryCallable updateFloorS * .setUserPromptData(DataItem.newBuilder().build()) * .setMultiLanguageDetectionMetadata( * MultiLanguageDetectionMetadata.newBuilder().build()) + * .setStreamingMode(StreamingMode.forNumber(0)) * .build(); * SanitizeUserPromptResponse response = modelArmorClient.sanitizeUserPrompt(request); * } @@ -1222,6 +1246,7 @@ public final SanitizeUserPromptResponse sanitizeUserPrompt(SanitizeUserPromptReq * .setUserPromptData(DataItem.newBuilder().build()) * .setMultiLanguageDetectionMetadata( * MultiLanguageDetectionMetadata.newBuilder().build()) + * .setStreamingMode(StreamingMode.forNumber(0)) * .build(); * ApiFuture future = * modelArmorClient.sanitizeUserPromptCallable().futureCall(request); @@ -1255,6 +1280,7 @@ public final SanitizeUserPromptResponse sanitizeUserPrompt(SanitizeUserPromptReq * .setUserPrompt("userPrompt1504308495") * .setMultiLanguageDetectionMetadata( * MultiLanguageDetectionMetadata.newBuilder().build()) + * .setStreamingMode(StreamingMode.forNumber(0)) * .build(); * SanitizeModelResponseResponse response = modelArmorClient.sanitizeModelResponse(request); * } @@ -1288,6 +1314,7 @@ public final SanitizeModelResponseResponse sanitizeModelResponse( * .setUserPrompt("userPrompt1504308495") * .setMultiLanguageDetectionMetadata( * MultiLanguageDetectionMetadata.newBuilder().build()) + * .setStreamingMode(StreamingMode.forNumber(0)) * .build(); * ApiFuture future = * modelArmorClient.sanitizeModelResponseCallable().futureCall(request); @@ -1301,10 +1328,93 @@ public final SanitizeModelResponseResponse sanitizeModelResponse( return stub.sanitizeModelResponseCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Streaming version of Sanitize User Prompt. + * + *

            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 (ModelArmorClient modelArmorClient = ModelArmorClient.create()) {
            +   *   BidiStream bidiStream =
            +   *       modelArmorClient.streamSanitizeUserPromptCallable().call();
            +   *   SanitizeUserPromptRequest request =
            +   *       SanitizeUserPromptRequest.newBuilder()
            +   *           .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
            +   *           .setUserPromptData(DataItem.newBuilder().build())
            +   *           .setMultiLanguageDetectionMetadata(
            +   *               MultiLanguageDetectionMetadata.newBuilder().build())
            +   *           .setStreamingMode(StreamingMode.forNumber(0))
            +   *           .build();
            +   *   bidiStream.send(request);
            +   *   for (SanitizeUserPromptResponse response : bidiStream) {
            +   *     // Do something when a response is received.
            +   *   }
            +   * }
            +   * }
            + */ + public final BidiStreamingCallable + streamSanitizeUserPromptCallable() { + return stub.streamSanitizeUserPromptCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Streaming version of Sanitizes Model Response. + * + *

            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 (ModelArmorClient modelArmorClient = ModelArmorClient.create()) {
            +   *   BidiStream bidiStream =
            +   *       modelArmorClient.streamSanitizeModelResponseCallable().call();
            +   *   SanitizeModelResponseRequest request =
            +   *       SanitizeModelResponseRequest.newBuilder()
            +   *           .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
            +   *           .setModelResponseData(DataItem.newBuilder().build())
            +   *           .setUserPrompt("userPrompt1504308495")
            +   *           .setMultiLanguageDetectionMetadata(
            +   *               MultiLanguageDetectionMetadata.newBuilder().build())
            +   *           .setStreamingMode(StreamingMode.forNumber(0))
            +   *           .build();
            +   *   bidiStream.send(request);
            +   *   for (SanitizeModelResponseResponse response : bidiStream) {
            +   *     // Do something when a response is received.
            +   *   }
            +   * }
            +   * }
            + */ + public final BidiStreamingCallable + streamSanitizeModelResponseCallable() { + return stub.streamSanitizeModelResponseCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. * + *

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

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

            Sample code: * *

            {@code
            @@ -1338,6 +1448,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
               /**
                * Lists information about the supported locations for this service.
                *
            +   * 

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

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

            Sample code: * *

            {@code
            @@ -1372,6 +1494,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
               /**
                * Lists information about the supported locations for this service.
                *
            +   * 

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

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

            Sample code: * *

            {@code
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorSettings.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorSettings.java
            index 65cb8901a17f..a09d6203077c 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorSettings.java
            +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorSettings.java
            @@ -29,6 +29,7 @@
             import com.google.api.gax.rpc.ClientContext;
             import com.google.api.gax.rpc.ClientSettings;
             import com.google.api.gax.rpc.PagedCallSettings;
            +import com.google.api.gax.rpc.StreamingCallSettings;
             import com.google.api.gax.rpc.TransportChannelProvider;
             import com.google.api.gax.rpc.UnaryCallSettings;
             import com.google.cloud.location.GetLocationRequest;
            @@ -142,6 +143,18 @@ public UnaryCallSettings updateFloorSet
                 return ((ModelArmorStubSettings) getStubSettings()).sanitizeModelResponseSettings();
               }
             
            +  /** Returns the object with the settings used for calls to streamSanitizeUserPrompt. */
            +  public StreamingCallSettings
            +      streamSanitizeUserPromptSettings() {
            +    return ((ModelArmorStubSettings) getStubSettings()).streamSanitizeUserPromptSettings();
            +  }
            +
            +  /** Returns the object with the settings used for calls to streamSanitizeModelResponse. */
            +  public StreamingCallSettings
            +      streamSanitizeModelResponseSettings() {
            +    return ((ModelArmorStubSettings) getStubSettings()).streamSanitizeModelResponseSettings();
            +  }
            +
               /** Returns the object with the settings used for calls to listLocations. */
               public PagedCallSettings
                   listLocationsSettings() {
            @@ -315,6 +328,19 @@ public UnaryCallSettings.Builder deleteTemplateSet
                   return getStubSettingsBuilder().sanitizeModelResponseSettings();
                 }
             
            +    /** Returns the builder for the settings used for calls to streamSanitizeUserPrompt. */
            +    public StreamingCallSettings.Builder
            +        streamSanitizeUserPromptSettings() {
            +      return getStubSettingsBuilder().streamSanitizeUserPromptSettings();
            +    }
            +
            +    /** Returns the builder for the settings used for calls to streamSanitizeModelResponse. */
            +    public StreamingCallSettings.Builder<
            +            SanitizeModelResponseRequest, SanitizeModelResponseResponse>
            +        streamSanitizeModelResponseSettings() {
            +      return getStubSettingsBuilder().streamSanitizeModelResponseSettings();
            +    }
            +
                 /** Returns the builder for the settings used for calls to listLocations. */
                 public PagedCallSettings.Builder<
                         ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/gapic_metadata.json b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/gapic_metadata.json
            index ca079dc027f7..bc020e5522d7 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/gapic_metadata.json
            +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/gapic_metadata.json
            @@ -37,6 +37,12 @@
                         "SanitizeUserPrompt": {
                           "methods": ["sanitizeUserPrompt", "sanitizeUserPromptCallable"]
                         },
            +            "StreamSanitizeModelResponse": {
            +              "methods": ["streamSanitizeModelResponseCallable"]
            +            },
            +            "StreamSanitizeUserPrompt": {
            +              "methods": ["streamSanitizeUserPromptCallable"]
            +            },
                         "UpdateFloorSetting": {
                           "methods": ["updateFloorSetting", "updateFloorSetting", "updateFloorSettingCallable"]
                         },
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/GrpcModelArmorStub.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/GrpcModelArmorStub.java
            index dc4341099767..f60fc7fb6d08 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/GrpcModelArmorStub.java
            +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/GrpcModelArmorStub.java
            @@ -24,6 +24,7 @@
             import com.google.api.gax.core.BackgroundResourceAggregation;
             import com.google.api.gax.grpc.GrpcCallSettings;
             import com.google.api.gax.grpc.GrpcStubCallableFactory;
            +import com.google.api.gax.rpc.BidiStreamingCallable;
             import com.google.api.gax.rpc.ClientContext;
             import com.google.api.gax.rpc.RequestParamsBuilder;
             import com.google.api.gax.rpc.UnaryCallable;
            @@ -162,6 +163,32 @@ public class GrpcModelArmorStub extends ModelArmorStub {
                           .setSampledToLocalTracing(true)
                           .build();
             
            +  private static final MethodDescriptor
            +      streamSanitizeUserPromptMethodDescriptor =
            +          MethodDescriptor.newBuilder()
            +              .setType(MethodDescriptor.MethodType.BIDI_STREAMING)
            +              .setFullMethodName(
            +                  "google.cloud.modelarmor.v1beta.ModelArmor/StreamSanitizeUserPrompt")
            +              .setRequestMarshaller(
            +                  ProtoUtils.marshaller(SanitizeUserPromptRequest.getDefaultInstance()))
            +              .setResponseMarshaller(
            +                  ProtoUtils.marshaller(SanitizeUserPromptResponse.getDefaultInstance()))
            +              .setSampledToLocalTracing(true)
            +              .build();
            +
            +  private static final MethodDescriptor
            +      streamSanitizeModelResponseMethodDescriptor =
            +          MethodDescriptor.newBuilder()
            +              .setType(MethodDescriptor.MethodType.BIDI_STREAMING)
            +              .setFullMethodName(
            +                  "google.cloud.modelarmor.v1beta.ModelArmor/StreamSanitizeModelResponse")
            +              .setRequestMarshaller(
            +                  ProtoUtils.marshaller(SanitizeModelResponseRequest.getDefaultInstance()))
            +              .setResponseMarshaller(
            +                  ProtoUtils.marshaller(SanitizeModelResponseResponse.getDefaultInstance()))
            +              .setSampledToLocalTracing(true)
            +              .build();
            +
               private static final MethodDescriptor
                   listLocationsMethodDescriptor =
                       MethodDescriptor.newBuilder()
            @@ -196,6 +223,10 @@ public class GrpcModelArmorStub extends ModelArmorStub {
                   sanitizeUserPromptCallable;
               private final UnaryCallable
                   sanitizeModelResponseCallable;
            +  private final BidiStreamingCallable
            +      streamSanitizeUserPromptCallable;
            +  private final BidiStreamingCallable
            +      streamSanitizeModelResponseCallable;
               private final UnaryCallable listLocationsCallable;
               private final UnaryCallable
                   listLocationsPagedCallable;
            @@ -344,6 +375,19 @@ protected GrpcModelArmorStub(
                                 })
                             .setResourceNameExtractor(request -> request.getName())
                             .build();
            +    GrpcCallSettings
            +        streamSanitizeUserPromptTransportSettings =
            +            GrpcCallSettings.newBuilder()
            +                .setMethodDescriptor(streamSanitizeUserPromptMethodDescriptor)
            +                .setResourceNameExtractor(request -> request.getName())
            +                .build();
            +    GrpcCallSettings
            +        streamSanitizeModelResponseTransportSettings =
            +            GrpcCallSettings
            +                .newBuilder()
            +                .setMethodDescriptor(streamSanitizeModelResponseMethodDescriptor)
            +                .setResourceNameExtractor(request -> request.getName())
            +                .build();
                 GrpcCallSettings listLocationsTransportSettings =
                     GrpcCallSettings.newBuilder()
                         .setMethodDescriptor(listLocationsMethodDescriptor)
            @@ -401,6 +445,16 @@ protected GrpcModelArmorStub(
                         sanitizeModelResponseTransportSettings,
                         settings.sanitizeModelResponseSettings(),
                         clientContext);
            +    this.streamSanitizeUserPromptCallable =
            +        callableFactory.createBidiStreamingCallable(
            +            streamSanitizeUserPromptTransportSettings,
            +            settings.streamSanitizeUserPromptSettings(),
            +            clientContext);
            +    this.streamSanitizeModelResponseCallable =
            +        callableFactory.createBidiStreamingCallable(
            +            streamSanitizeModelResponseTransportSettings,
            +            settings.streamSanitizeModelResponseSettings(),
            +            clientContext);
                 this.listLocationsCallable =
                     callableFactory.createUnaryCallable(
                         listLocationsTransportSettings, settings.listLocationsSettings(), clientContext);
            @@ -472,6 +526,18 @@ public UnaryCallable updateFloorSetting
                 return sanitizeModelResponseCallable;
               }
             
            +  @Override
            +  public BidiStreamingCallable
            +      streamSanitizeUserPromptCallable() {
            +    return streamSanitizeUserPromptCallable;
            +  }
            +
            +  @Override
            +  public BidiStreamingCallable
            +      streamSanitizeModelResponseCallable() {
            +    return streamSanitizeModelResponseCallable;
            +  }
            +
               @Override
               public UnaryCallable listLocationsCallable() {
                 return listLocationsCallable;
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/HttpJsonModelArmorStub.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/HttpJsonModelArmorStub.java
            index 6b8054ca4e36..2d1861047a6a 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/HttpJsonModelArmorStub.java
            +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/HttpJsonModelArmorStub.java
            @@ -29,6 +29,7 @@
             import com.google.api.gax.httpjson.ProtoMessageRequestFormatter;
             import com.google.api.gax.httpjson.ProtoMessageResponseParser;
             import com.google.api.gax.httpjson.ProtoRestSerializer;
            +import com.google.api.gax.rpc.BidiStreamingCallable;
             import com.google.api.gax.rpc.ClientContext;
             import com.google.api.gax.rpc.RequestParamsBuilder;
             import com.google.api.gax.rpc.UnaryCallable;
            @@ -813,6 +814,22 @@ public UnaryCallable getLocationCallable() {
                 return getLocationCallable;
               }
             
            +  @Override
            +  public BidiStreamingCallable
            +      streamSanitizeUserPromptCallable() {
            +    throw new UnsupportedOperationException(
            +        "Not implemented: streamSanitizeUserPromptCallable(). REST transport is not implemented for"
            +            + " this method yet.");
            +  }
            +
            +  @Override
            +  public BidiStreamingCallable
            +      streamSanitizeModelResponseCallable() {
            +    throw new UnsupportedOperationException(
            +        "Not implemented: streamSanitizeModelResponseCallable(). REST transport is not implemented"
            +            + " for this method yet.");
            +  }
            +
               @Override
               public final void close() {
                 try {
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStub.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStub.java
            index 7b88762ff403..fa913ef03a4f 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStub.java
            +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStub.java
            @@ -21,6 +21,7 @@
             
             import com.google.api.core.BetaApi;
             import com.google.api.gax.core.BackgroundResource;
            +import com.google.api.gax.rpc.BidiStreamingCallable;
             import com.google.api.gax.rpc.UnaryCallable;
             import com.google.cloud.location.GetLocationRequest;
             import com.google.cloud.location.ListLocationsRequest;
            @@ -96,6 +97,17 @@ public UnaryCallable updateFloorSetting
                 throw new UnsupportedOperationException("Not implemented: sanitizeModelResponseCallable()");
               }
             
            +  public BidiStreamingCallable
            +      streamSanitizeUserPromptCallable() {
            +    throw new UnsupportedOperationException("Not implemented: streamSanitizeUserPromptCallable()");
            +  }
            +
            +  public BidiStreamingCallable
            +      streamSanitizeModelResponseCallable() {
            +    throw new UnsupportedOperationException(
            +        "Not implemented: streamSanitizeModelResponseCallable()");
            +  }
            +
               public UnaryCallable
                   listLocationsPagedCallable() {
                 throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()");
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStubSettings.java b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStubSettings.java
            index f5fe5212024e..a609e656c3b6 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStubSettings.java
            +++ b/java-modelarmor/google-cloud-modelarmor/src/main/java/com/google/cloud/modelarmor/v1beta/stub/ModelArmorStubSettings.java
            @@ -42,6 +42,7 @@
             import com.google.api.gax.rpc.PagedListDescriptor;
             import com.google.api.gax.rpc.PagedListResponseFactory;
             import com.google.api.gax.rpc.StatusCode;
            +import com.google.api.gax.rpc.StreamingCallSettings;
             import com.google.api.gax.rpc.StubSettings;
             import com.google.api.gax.rpc.TransportChannelProvider;
             import com.google.api.gax.rpc.UnaryCallSettings;
            @@ -145,6 +146,10 @@ public class ModelArmorStubSettings extends StubSettings
                   sanitizeUserPromptSettings;
               private final UnaryCallSettings
                   sanitizeModelResponseSettings;
            +  private final StreamingCallSettings
            +      streamSanitizeUserPromptSettings;
            +  private final StreamingCallSettings
            +      streamSanitizeModelResponseSettings;
               private final PagedCallSettings<
                       ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                   listLocationsSettings;
            @@ -300,6 +305,18 @@ public UnaryCallSettings updateFloorSet
                 return sanitizeModelResponseSettings;
               }
             
            +  /** Returns the object with the settings used for calls to streamSanitizeUserPrompt. */
            +  public StreamingCallSettings
            +      streamSanitizeUserPromptSettings() {
            +    return streamSanitizeUserPromptSettings;
            +  }
            +
            +  /** Returns the object with the settings used for calls to streamSanitizeModelResponse. */
            +  public StreamingCallSettings
            +      streamSanitizeModelResponseSettings() {
            +    return streamSanitizeModelResponseSettings;
            +  }
            +
               /** Returns the object with the settings used for calls to listLocations. */
               public PagedCallSettings
                   listLocationsSettings() {
            @@ -431,6 +448,9 @@ protected ModelArmorStubSettings(Builder settingsBuilder) throws IOException {
                 updateFloorSettingSettings = settingsBuilder.updateFloorSettingSettings().build();
                 sanitizeUserPromptSettings = settingsBuilder.sanitizeUserPromptSettings().build();
                 sanitizeModelResponseSettings = settingsBuilder.sanitizeModelResponseSettings().build();
            +    streamSanitizeUserPromptSettings = settingsBuilder.streamSanitizeUserPromptSettings().build();
            +    streamSanitizeModelResponseSettings =
            +        settingsBuilder.streamSanitizeModelResponseSettings().build();
                 listLocationsSettings = settingsBuilder.listLocationsSettings().build();
                 getLocationSettings = settingsBuilder.getLocationSettings().build();
               }
            @@ -463,6 +483,12 @@ public static class Builder extends StubSettings.Builder
                     sanitizeModelResponseSettings;
            +    private final StreamingCallSettings.Builder<
            +            SanitizeUserPromptRequest, SanitizeUserPromptResponse>
            +        streamSanitizeUserPromptSettings;
            +    private final StreamingCallSettings.Builder<
            +            SanitizeModelResponseRequest, SanitizeModelResponseResponse>
            +        streamSanitizeModelResponseSettings;
                 private final PagedCallSettings.Builder<
                         ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
                     listLocationsSettings;
            @@ -527,6 +553,8 @@ protected Builder(ClientContext clientContext) {
                   updateFloorSettingSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                   sanitizeUserPromptSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
                   sanitizeModelResponseSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
            +      streamSanitizeUserPromptSettings = StreamingCallSettings.newBuilder();
            +      streamSanitizeModelResponseSettings = StreamingCallSettings.newBuilder();
                   listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT);
                   getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
             
            @@ -558,6 +586,9 @@ protected Builder(ModelArmorStubSettings settings) {
                   updateFloorSettingSettings = settings.updateFloorSettingSettings.toBuilder();
                   sanitizeUserPromptSettings = settings.sanitizeUserPromptSettings.toBuilder();
                   sanitizeModelResponseSettings = settings.sanitizeModelResponseSettings.toBuilder();
            +      streamSanitizeUserPromptSettings = settings.streamSanitizeUserPromptSettings.toBuilder();
            +      streamSanitizeModelResponseSettings =
            +          settings.streamSanitizeModelResponseSettings.toBuilder();
                   listLocationsSettings = settings.listLocationsSettings.toBuilder();
                   getLocationSettings = settings.getLocationSettings.toBuilder();
             
            @@ -725,6 +756,19 @@ public UnaryCallSettings.Builder deleteTemplateSet
                   return sanitizeModelResponseSettings;
                 }
             
            +    /** Returns the builder for the settings used for calls to streamSanitizeUserPrompt. */
            +    public StreamingCallSettings.Builder
            +        streamSanitizeUserPromptSettings() {
            +      return streamSanitizeUserPromptSettings;
            +    }
            +
            +    /** Returns the builder for the settings used for calls to streamSanitizeModelResponse. */
            +    public StreamingCallSettings.Builder<
            +            SanitizeModelResponseRequest, SanitizeModelResponseResponse>
            +        streamSanitizeModelResponseSettings() {
            +      return streamSanitizeModelResponseSettings;
            +    }
            +
                 /** Returns the builder for the settings used for calls to listLocations. */
                 public PagedCallSettings.Builder<
                         ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1beta/reflect-config.json b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1beta/reflect-config.json
            index 80fa2193196c..bac2c323d34d 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1beta/reflect-config.json
            +++ b/java-modelarmor/google-cloud-modelarmor/src/main/resources/META-INF/native-image/com.google.cloud.modelarmor.v1beta/reflect-config.json
            @@ -980,6 +980,24 @@
                 "allDeclaredClasses": true,
                 "allPublicClasses": true
               },
            +  {
            +    "name": "com.google.cloud.modelarmor.v1beta.McpServerFloorSetting",
            +    "queryAllDeclaredConstructors": true,
            +    "queryAllPublicConstructors": true,
            +    "queryAllDeclaredMethods": true,
            +    "allPublicMethods": true,
            +    "allDeclaredClasses": true,
            +    "allPublicClasses": true
            +  },
            +  {
            +    "name": "com.google.cloud.modelarmor.v1beta.McpServerFloorSetting$Builder",
            +    "queryAllDeclaredConstructors": true,
            +    "queryAllPublicConstructors": true,
            +    "queryAllDeclaredMethods": true,
            +    "allPublicMethods": true,
            +    "allDeclaredClasses": true,
            +    "allPublicClasses": true
            +  },
               {
                 "name": "com.google.cloud.modelarmor.v1beta.MessageItem",
                 "queryAllDeclaredConstructors": true,
            @@ -1439,6 +1457,15 @@
                 "allDeclaredClasses": true,
                 "allPublicClasses": true
               },
            +  {
            +    "name": "com.google.cloud.modelarmor.v1beta.StreamingMode",
            +    "queryAllDeclaredConstructors": true,
            +    "queryAllPublicConstructors": true,
            +    "queryAllDeclaredMethods": true,
            +    "allPublicMethods": true,
            +    "allDeclaredClasses": true,
            +    "allPublicClasses": true
            +  },
               {
                 "name": "com.google.cloud.modelarmor.v1beta.Template",
                 "queryAllDeclaredConstructors": true,
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/MockModelArmorImpl.java b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/MockModelArmorImpl.java
            index 4bb3b3b97231..30266c96da4c 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/MockModelArmorImpl.java
            +++ b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/MockModelArmorImpl.java
            @@ -249,4 +249,80 @@ public void sanitizeModelResponse(
                               Exception.class.getName())));
                 }
               }
            +
            +  @Override
            +  public StreamObserver streamSanitizeUserPrompt(
            +      final StreamObserver responseObserver) {
            +    StreamObserver requestObserver =
            +        new StreamObserver() {
            +          @Override
            +          public void onNext(SanitizeUserPromptRequest value) {
            +            requests.add(value);
            +            final Object response = responses.remove();
            +            if (response instanceof SanitizeUserPromptResponse) {
            +              responseObserver.onNext(((SanitizeUserPromptResponse) response));
            +            } else if (response instanceof Exception) {
            +              responseObserver.onError(((Exception) response));
            +            } else {
            +              responseObserver.onError(
            +                  new IllegalArgumentException(
            +                      String.format(
            +                          "Unrecognized response type %s for method StreamSanitizeUserPrompt,"
            +                              + " expected %s or %s",
            +                          response == null ? "null" : response.getClass().getName(),
            +                          SanitizeUserPromptResponse.class.getName(),
            +                          Exception.class.getName())));
            +            }
            +          }
            +
            +          @Override
            +          public void onError(Throwable t) {
            +            responseObserver.onError(t);
            +          }
            +
            +          @Override
            +          public void onCompleted() {
            +            responseObserver.onCompleted();
            +          }
            +        };
            +    return requestObserver;
            +  }
            +
            +  @Override
            +  public StreamObserver streamSanitizeModelResponse(
            +      final StreamObserver responseObserver) {
            +    StreamObserver requestObserver =
            +        new StreamObserver() {
            +          @Override
            +          public void onNext(SanitizeModelResponseRequest value) {
            +            requests.add(value);
            +            final Object response = responses.remove();
            +            if (response instanceof SanitizeModelResponseResponse) {
            +              responseObserver.onNext(((SanitizeModelResponseResponse) response));
            +            } else if (response instanceof Exception) {
            +              responseObserver.onError(((Exception) response));
            +            } else {
            +              responseObserver.onError(
            +                  new IllegalArgumentException(
            +                      String.format(
            +                          "Unrecognized response type %s for method StreamSanitizeModelResponse,"
            +                              + " expected %s or %s",
            +                          response == null ? "null" : response.getClass().getName(),
            +                          SanitizeModelResponseResponse.class.getName(),
            +                          Exception.class.getName())));
            +            }
            +          }
            +
            +          @Override
            +          public void onError(Throwable t) {
            +            responseObserver.onError(t);
            +          }
            +
            +          @Override
            +          public void onCompleted() {
            +            responseObserver.onCompleted();
            +          }
            +        };
            +    return requestObserver;
            +  }
             }
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientHttpJsonTest.java b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientHttpJsonTest.java
            index 0da355ac4755..730e25421b0a 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientHttpJsonTest.java
            +++ b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientHttpJsonTest.java
            @@ -548,6 +548,7 @@ public void getFloorSettingTest() throws Exception {
                         .addAllIntegratedServices(new ArrayList())
                         .setAiPlatformFloorSetting(AiPlatformFloorSetting.newBuilder().build())
                         .setFloorSettingMetadata(FloorSetting.FloorSettingMetadata.newBuilder().build())
            +            .setGoogleMcpServerFloorSetting(McpServerFloorSetting.newBuilder().build())
                         .build();
                 mockService.addResponse(expectedResponse);
             
            @@ -599,6 +600,7 @@ public void getFloorSettingTest2() throws Exception {
                         .addAllIntegratedServices(new ArrayList())
                         .setAiPlatformFloorSetting(AiPlatformFloorSetting.newBuilder().build())
                         .setFloorSettingMetadata(FloorSetting.FloorSettingMetadata.newBuilder().build())
            +            .setGoogleMcpServerFloorSetting(McpServerFloorSetting.newBuilder().build())
                         .build();
                 mockService.addResponse(expectedResponse);
             
            @@ -650,6 +652,7 @@ public void updateFloorSettingTest() throws Exception {
                         .addAllIntegratedServices(new ArrayList())
                         .setAiPlatformFloorSetting(AiPlatformFloorSetting.newBuilder().build())
                         .setFloorSettingMetadata(FloorSetting.FloorSettingMetadata.newBuilder().build())
            +            .setGoogleMcpServerFloorSetting(McpServerFloorSetting.newBuilder().build())
                         .build();
                 mockService.addResponse(expectedResponse);
             
            @@ -663,6 +666,7 @@ public void updateFloorSettingTest() throws Exception {
                         .addAllIntegratedServices(new ArrayList())
                         .setAiPlatformFloorSetting(AiPlatformFloorSetting.newBuilder().build())
                         .setFloorSettingMetadata(FloorSetting.FloorSettingMetadata.newBuilder().build())
            +            .setGoogleMcpServerFloorSetting(McpServerFloorSetting.newBuilder().build())
                         .build();
                 FieldMask updateMask = FieldMask.newBuilder().build();
             
            @@ -702,6 +706,7 @@ public void updateFloorSettingExceptionTest() throws Exception {
                           .addAllIntegratedServices(new ArrayList())
                           .setAiPlatformFloorSetting(AiPlatformFloorSetting.newBuilder().build())
                           .setFloorSettingMetadata(FloorSetting.FloorSettingMetadata.newBuilder().build())
            +              .setGoogleMcpServerFloorSetting(McpServerFloorSetting.newBuilder().build())
                           .build();
                   FieldMask updateMask = FieldMask.newBuilder().build();
                   client.updateFloorSetting(floorSetting, updateMask);
            @@ -724,6 +729,7 @@ public void sanitizeUserPromptTest() throws Exception {
                         .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
                         .setUserPromptData(DataItem.newBuilder().build())
                         .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build())
            +            .setStreamingMode(StreamingMode.forNumber(0))
                         .build();
             
                 SanitizeUserPromptResponse actualResponse = client.sanitizeUserPrompt(request);
            @@ -758,6 +764,7 @@ public void sanitizeUserPromptExceptionTest() throws Exception {
                           .setUserPromptData(DataItem.newBuilder().build())
                           .setMultiLanguageDetectionMetadata(
                               MultiLanguageDetectionMetadata.newBuilder().build())
            +              .setStreamingMode(StreamingMode.forNumber(0))
                           .build();
                   client.sanitizeUserPrompt(request);
                   Assert.fail("No exception raised");
            @@ -780,6 +787,7 @@ public void sanitizeModelResponseTest() throws Exception {
                         .setModelResponseData(DataItem.newBuilder().build())
                         .setUserPrompt("userPrompt1504308495")
                         .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build())
            +            .setStreamingMode(StreamingMode.forNumber(0))
                         .build();
             
                 SanitizeModelResponseResponse actualResponse = client.sanitizeModelResponse(request);
            @@ -815,6 +823,7 @@ public void sanitizeModelResponseExceptionTest() throws Exception {
                           .setUserPrompt("userPrompt1504308495")
                           .setMultiLanguageDetectionMetadata(
                               MultiLanguageDetectionMetadata.newBuilder().build())
            +              .setStreamingMode(StreamingMode.forNumber(0))
                           .build();
                   client.sanitizeModelResponse(request);
                   Assert.fail("No exception raised");
            @@ -823,6 +832,18 @@ public void sanitizeModelResponseExceptionTest() throws Exception {
                 }
               }
             
            +  @Test
            +  public void streamSanitizeUserPromptUnsupportedMethodTest() throws Exception {
            +    // The streamSanitizeUserPrompt() method is not supported in REST transport.
            +    // This empty test is generated for technical reasons.
            +  }
            +
            +  @Test
            +  public void streamSanitizeModelResponseUnsupportedMethodTest() throws Exception {
            +    // The streamSanitizeModelResponse() method is not supported in REST transport.
            +    // This empty test is generated for technical reasons.
            +  }
            +
               @Test
               public void listLocationsTest() throws Exception {
                 Location responsesElement = Location.newBuilder().build();
            diff --git a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientTest.java b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientTest.java
            index fd9a7af40876..596a38b0244d 100644
            --- a/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientTest.java
            +++ b/java-modelarmor/google-cloud-modelarmor/src/test/java/com/google/cloud/modelarmor/v1beta/ModelArmorClientTest.java
            @@ -24,8 +24,12 @@
             import com.google.api.gax.grpc.testing.LocalChannelProvider;
             import com.google.api.gax.grpc.testing.MockGrpcService;
             import com.google.api.gax.grpc.testing.MockServiceHelper;
            +import com.google.api.gax.grpc.testing.MockStreamObserver;
             import com.google.api.gax.rpc.ApiClientHeaderProvider;
            +import com.google.api.gax.rpc.ApiStreamObserver;
            +import com.google.api.gax.rpc.BidiStreamingCallable;
             import com.google.api.gax.rpc.InvalidArgumentException;
            +import com.google.api.gax.rpc.StatusCode;
             import com.google.cloud.location.GetLocationRequest;
             import com.google.cloud.location.ListLocationsRequest;
             import com.google.cloud.location.ListLocationsResponse;
            @@ -43,6 +47,7 @@
             import java.util.HashMap;
             import java.util.List;
             import java.util.UUID;
            +import java.util.concurrent.ExecutionException;
             import javax.annotation.Generated;
             import org.junit.After;
             import org.junit.AfterClass;
            @@ -490,6 +495,7 @@ public void getFloorSettingTest() throws Exception {
                         .addAllIntegratedServices(new ArrayList())
                         .setAiPlatformFloorSetting(AiPlatformFloorSetting.newBuilder().build())
                         .setFloorSettingMetadata(FloorSetting.FloorSettingMetadata.newBuilder().build())
            +            .setGoogleMcpServerFloorSetting(McpServerFloorSetting.newBuilder().build())
                         .build();
                 mockModelArmor.addResponse(expectedResponse);
             
            @@ -535,6 +541,7 @@ public void getFloorSettingTest2() throws Exception {
                         .addAllIntegratedServices(new ArrayList())
                         .setAiPlatformFloorSetting(AiPlatformFloorSetting.newBuilder().build())
                         .setFloorSettingMetadata(FloorSetting.FloorSettingMetadata.newBuilder().build())
            +            .setGoogleMcpServerFloorSetting(McpServerFloorSetting.newBuilder().build())
                         .build();
                 mockModelArmor.addResponse(expectedResponse);
             
            @@ -580,6 +587,7 @@ public void updateFloorSettingTest() throws Exception {
                         .addAllIntegratedServices(new ArrayList())
                         .setAiPlatformFloorSetting(AiPlatformFloorSetting.newBuilder().build())
                         .setFloorSettingMetadata(FloorSetting.FloorSettingMetadata.newBuilder().build())
            +            .setGoogleMcpServerFloorSetting(McpServerFloorSetting.newBuilder().build())
                         .build();
                 mockModelArmor.addResponse(expectedResponse);
             
            @@ -629,6 +637,7 @@ public void sanitizeUserPromptTest() throws Exception {
                         .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
                         .setUserPromptData(DataItem.newBuilder().build())
                         .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build())
            +            .setStreamingMode(StreamingMode.forNumber(0))
                         .build();
             
                 SanitizeUserPromptResponse actualResponse = client.sanitizeUserPrompt(request);
            @@ -643,6 +652,7 @@ public void sanitizeUserPromptTest() throws Exception {
                 Assert.assertEquals(
                     request.getMultiLanguageDetectionMetadata(),
                     actualRequest.getMultiLanguageDetectionMetadata());
            +    Assert.assertEquals(request.getStreamingMode(), actualRequest.getStreamingMode());
                 Assert.assertTrue(
                     channelProvider.isHeaderSent(
                         ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
            @@ -661,6 +671,7 @@ public void sanitizeUserPromptExceptionTest() throws Exception {
                           .setUserPromptData(DataItem.newBuilder().build())
                           .setMultiLanguageDetectionMetadata(
                               MultiLanguageDetectionMetadata.newBuilder().build())
            +              .setStreamingMode(StreamingMode.forNumber(0))
                           .build();
                   client.sanitizeUserPrompt(request);
                   Assert.fail("No exception raised");
            @@ -683,6 +694,7 @@ public void sanitizeModelResponseTest() throws Exception {
                         .setModelResponseData(DataItem.newBuilder().build())
                         .setUserPrompt("userPrompt1504308495")
                         .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build())
            +            .setStreamingMode(StreamingMode.forNumber(0))
                         .build();
             
                 SanitizeModelResponseResponse actualResponse = client.sanitizeModelResponse(request);
            @@ -699,6 +711,7 @@ public void sanitizeModelResponseTest() throws Exception {
                 Assert.assertEquals(
                     request.getMultiLanguageDetectionMetadata(),
                     actualRequest.getMultiLanguageDetectionMetadata());
            +    Assert.assertEquals(request.getStreamingMode(), actualRequest.getStreamingMode());
                 Assert.assertTrue(
                     channelProvider.isHeaderSent(
                         ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
            @@ -718,6 +731,7 @@ public void sanitizeModelResponseExceptionTest() throws Exception {
                           .setUserPrompt("userPrompt1504308495")
                           .setMultiLanguageDetectionMetadata(
                               MultiLanguageDetectionMetadata.newBuilder().build())
            +              .setStreamingMode(StreamingMode.forNumber(0))
                           .build();
                   client.sanitizeModelResponse(request);
                   Assert.fail("No exception raised");
            @@ -726,6 +740,130 @@ public void sanitizeModelResponseExceptionTest() throws Exception {
                 }
               }
             
            +  @Test
            +  public void streamSanitizeUserPromptTest() throws Exception {
            +    SanitizeUserPromptResponse expectedResponse =
            +        SanitizeUserPromptResponse.newBuilder()
            +            .setSanitizationResult(SanitizationResult.newBuilder().build())
            +            .build();
            +    mockModelArmor.addResponse(expectedResponse);
            +    SanitizeUserPromptRequest request =
            +        SanitizeUserPromptRequest.newBuilder()
            +            .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
            +            .setUserPromptData(DataItem.newBuilder().build())
            +            .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build())
            +            .setStreamingMode(StreamingMode.forNumber(0))
            +            .build();
            +
            +    MockStreamObserver responseObserver = new MockStreamObserver<>();
            +
            +    BidiStreamingCallable callable =
            +        client.streamSanitizeUserPromptCallable();
            +    ApiStreamObserver requestObserver =
            +        callable.bidiStreamingCall(responseObserver);
            +
            +    requestObserver.onNext(request);
            +    requestObserver.onCompleted();
            +
            +    List actualResponses = responseObserver.future().get();
            +    Assert.assertEquals(1, actualResponses.size());
            +    Assert.assertEquals(expectedResponse, actualResponses.get(0));
            +  }
            +
            +  @Test
            +  public void streamSanitizeUserPromptExceptionTest() throws Exception {
            +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
            +    mockModelArmor.addException(exception);
            +    SanitizeUserPromptRequest request =
            +        SanitizeUserPromptRequest.newBuilder()
            +            .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
            +            .setUserPromptData(DataItem.newBuilder().build())
            +            .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build())
            +            .setStreamingMode(StreamingMode.forNumber(0))
            +            .build();
            +
            +    MockStreamObserver responseObserver = new MockStreamObserver<>();
            +
            +    BidiStreamingCallable callable =
            +        client.streamSanitizeUserPromptCallable();
            +    ApiStreamObserver requestObserver =
            +        callable.bidiStreamingCall(responseObserver);
            +
            +    requestObserver.onNext(request);
            +
            +    try {
            +      List actualResponses = responseObserver.future().get();
            +      Assert.fail("No exception thrown");
            +    } catch (ExecutionException e) {
            +      Assert.assertTrue(e.getCause() instanceof InvalidArgumentException);
            +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
            +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
            +    }
            +  }
            +
            +  @Test
            +  public void streamSanitizeModelResponseTest() throws Exception {
            +    SanitizeModelResponseResponse expectedResponse =
            +        SanitizeModelResponseResponse.newBuilder()
            +            .setSanitizationResult(SanitizationResult.newBuilder().build())
            +            .build();
            +    mockModelArmor.addResponse(expectedResponse);
            +    SanitizeModelResponseRequest request =
            +        SanitizeModelResponseRequest.newBuilder()
            +            .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
            +            .setModelResponseData(DataItem.newBuilder().build())
            +            .setUserPrompt("userPrompt1504308495")
            +            .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build())
            +            .setStreamingMode(StreamingMode.forNumber(0))
            +            .build();
            +
            +    MockStreamObserver responseObserver = new MockStreamObserver<>();
            +
            +    BidiStreamingCallable callable =
            +        client.streamSanitizeModelResponseCallable();
            +    ApiStreamObserver requestObserver =
            +        callable.bidiStreamingCall(responseObserver);
            +
            +    requestObserver.onNext(request);
            +    requestObserver.onCompleted();
            +
            +    List actualResponses = responseObserver.future().get();
            +    Assert.assertEquals(1, actualResponses.size());
            +    Assert.assertEquals(expectedResponse, actualResponses.get(0));
            +  }
            +
            +  @Test
            +  public void streamSanitizeModelResponseExceptionTest() throws Exception {
            +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
            +    mockModelArmor.addException(exception);
            +    SanitizeModelResponseRequest request =
            +        SanitizeModelResponseRequest.newBuilder()
            +            .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString())
            +            .setModelResponseData(DataItem.newBuilder().build())
            +            .setUserPrompt("userPrompt1504308495")
            +            .setMultiLanguageDetectionMetadata(MultiLanguageDetectionMetadata.newBuilder().build())
            +            .setStreamingMode(StreamingMode.forNumber(0))
            +            .build();
            +
            +    MockStreamObserver responseObserver = new MockStreamObserver<>();
            +
            +    BidiStreamingCallable callable =
            +        client.streamSanitizeModelResponseCallable();
            +    ApiStreamObserver requestObserver =
            +        callable.bidiStreamingCall(responseObserver);
            +
            +    requestObserver.onNext(request);
            +
            +    try {
            +      List actualResponses = responseObserver.future().get();
            +      Assert.fail("No exception thrown");
            +    } catch (ExecutionException e) {
            +      Assert.assertTrue(e.getCause() instanceof InvalidArgumentException);
            +      InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause());
            +      Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode());
            +    }
            +  }
            +
               @Test
               public void listLocationsTest() throws Exception {
                 Location responsesElement = Location.newBuilder().build();
            diff --git a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorGrpc.java b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorGrpc.java
            index fb9b7b6657f6..d85fd3eb4cac 100644
            --- a/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorGrpc.java
            +++ b/java-modelarmor/grpc-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ModelArmorGrpc.java
            @@ -443,6 +443,107 @@ private ModelArmorGrpc() {}
                 return getSanitizeModelResponseMethod;
               }
             
            +  private static volatile io.grpc.MethodDescriptor<
            +          com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest,
            +          com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse>
            +      getStreamSanitizeUserPromptMethod;
            +
            +  @io.grpc.stub.annotations.RpcMethod(
            +      fullMethodName = SERVICE_NAME + '/' + "StreamSanitizeUserPrompt",
            +      requestType = com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest.class,
            +      responseType = com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse.class,
            +      methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            +  public static io.grpc.MethodDescriptor<
            +          com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest,
            +          com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse>
            +      getStreamSanitizeUserPromptMethod() {
            +    io.grpc.MethodDescriptor<
            +            com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest,
            +            com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse>
            +        getStreamSanitizeUserPromptMethod;
            +    if ((getStreamSanitizeUserPromptMethod = ModelArmorGrpc.getStreamSanitizeUserPromptMethod)
            +        == null) {
            +      synchronized (ModelArmorGrpc.class) {
            +        if ((getStreamSanitizeUserPromptMethod = ModelArmorGrpc.getStreamSanitizeUserPromptMethod)
            +            == null) {
            +          ModelArmorGrpc.getStreamSanitizeUserPromptMethod =
            +              getStreamSanitizeUserPromptMethod =
            +                  io.grpc.MethodDescriptor
            +                      .
            +                          newBuilder()
            +                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            +                      .setFullMethodName(
            +                          generateFullMethodName(SERVICE_NAME, "StreamSanitizeUserPrompt"))
            +                      .setSampledToLocalTracing(true)
            +                      .setRequestMarshaller(
            +                          io.grpc.protobuf.ProtoUtils.marshaller(
            +                              com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest
            +                                  .getDefaultInstance()))
            +                      .setResponseMarshaller(
            +                          io.grpc.protobuf.ProtoUtils.marshaller(
            +                              com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse
            +                                  .getDefaultInstance()))
            +                      .setSchemaDescriptor(
            +                          new ModelArmorMethodDescriptorSupplier("StreamSanitizeUserPrompt"))
            +                      .build();
            +        }
            +      }
            +    }
            +    return getStreamSanitizeUserPromptMethod;
            +  }
            +
            +  private static volatile io.grpc.MethodDescriptor<
            +          com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest,
            +          com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse>
            +      getStreamSanitizeModelResponseMethod;
            +
            +  @io.grpc.stub.annotations.RpcMethod(
            +      fullMethodName = SERVICE_NAME + '/' + "StreamSanitizeModelResponse",
            +      requestType = com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest.class,
            +      responseType = com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse.class,
            +      methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            +  public static io.grpc.MethodDescriptor<
            +          com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest,
            +          com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse>
            +      getStreamSanitizeModelResponseMethod() {
            +    io.grpc.MethodDescriptor<
            +            com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest,
            +            com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse>
            +        getStreamSanitizeModelResponseMethod;
            +    if ((getStreamSanitizeModelResponseMethod = ModelArmorGrpc.getStreamSanitizeModelResponseMethod)
            +        == null) {
            +      synchronized (ModelArmorGrpc.class) {
            +        if ((getStreamSanitizeModelResponseMethod =
            +                ModelArmorGrpc.getStreamSanitizeModelResponseMethod)
            +            == null) {
            +          ModelArmorGrpc.getStreamSanitizeModelResponseMethod =
            +              getStreamSanitizeModelResponseMethod =
            +                  io.grpc.MethodDescriptor
            +                      .
            +                          newBuilder()
            +                      .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
            +                      .setFullMethodName(
            +                          generateFullMethodName(SERVICE_NAME, "StreamSanitizeModelResponse"))
            +                      .setSampledToLocalTracing(true)
            +                      .setRequestMarshaller(
            +                          io.grpc.protobuf.ProtoUtils.marshaller(
            +                              com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest
            +                                  .getDefaultInstance()))
            +                      .setResponseMarshaller(
            +                          io.grpc.protobuf.ProtoUtils.marshaller(
            +                              com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse
            +                                  .getDefaultInstance()))
            +                      .setSchemaDescriptor(
            +                          new ModelArmorMethodDescriptorSupplier("StreamSanitizeModelResponse"))
            +                      .build();
            +        }
            +      }
            +    }
            +    return getStreamSanitizeModelResponseMethod;
            +  }
            +
               /** Creates a new async stub that supports all call types for the service */
               public static ModelArmorStub newStub(io.grpc.Channel channel) {
                 io.grpc.stub.AbstractStub.StubFactory factory =
            @@ -636,6 +737,40 @@ default void sanitizeModelResponse(
                   io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
                       getSanitizeModelResponseMethod(), responseObserver);
                 }
            +
            +    /**
            +     *
            +     *
            +     * 
            +     * Streaming version of Sanitize User Prompt.
            +     * 
            + */ + default io.grpc.stub.StreamObserver< + com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest> + streamSanitizeUserPrompt( + io.grpc.stub.StreamObserver< + com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamSanitizeUserPromptMethod(), responseObserver); + } + + /** + * + * + *
            +     * Streaming version of Sanitizes Model Response.
            +     * 
            + */ + default io.grpc.stub.StreamObserver< + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest> + streamSanitizeModelResponse( + io.grpc.stub.StreamObserver< + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse> + responseObserver) { + return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall( + getStreamSanitizeModelResponseMethod(), responseObserver); + } } /** @@ -819,6 +954,41 @@ public void sanitizeModelResponse( request, responseObserver); } + + /** + * + * + *
            +     * Streaming version of Sanitize User Prompt.
            +     * 
            + */ + public io.grpc.stub.StreamObserver + streamSanitizeUserPrompt( + io.grpc.stub.StreamObserver< + com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamSanitizeUserPromptMethod(), getCallOptions()), + responseObserver); + } + + /** + * + * + *
            +     * Streaming version of Sanitizes Model Response.
            +     * 
            + */ + public io.grpc.stub.StreamObserver< + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest> + streamSanitizeModelResponse( + io.grpc.stub.StreamObserver< + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse> + responseObserver) { + return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( + getChannel().newCall(getStreamSanitizeModelResponseMethod(), getCallOptions()), + responseObserver); + } } /** @@ -965,6 +1135,38 @@ public com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse sanitize return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getSanitizeModelResponseMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Streaming version of Sanitize User Prompt.
            +     * 
            + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest, + com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse> + streamSanitizeUserPrompt() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamSanitizeUserPromptMethod(), getCallOptions()); + } + + /** + * + * + *
            +     * Streaming version of Sanitizes Model Response.
            +     * 
            + */ + @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/10918") + public io.grpc.stub.BlockingClientCall< + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest, + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse> + streamSanitizeModelResponse() { + return io.grpc.stub.ClientCalls.blockingBidiStreamingCall( + getChannel(), getStreamSanitizeModelResponseMethod(), getCallOptions()); + } } /** @@ -1258,6 +1460,8 @@ protected ModelArmorFutureStub build(io.grpc.Channel channel, io.grpc.CallOption private static final int METHODID_UPDATE_FLOOR_SETTING = 6; private static final int METHODID_SANITIZE_USER_PROMPT = 7; private static final int METHODID_SANITIZE_MODEL_RESPONSE = 8; + private static final int METHODID_STREAM_SANITIZE_USER_PROMPT = 9; + private static final int METHODID_STREAM_SANITIZE_MODEL_RESPONSE = 10; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -1342,6 +1546,18 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { + case METHODID_STREAM_SANITIZE_USER_PROMPT: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamSanitizeUserPrompt( + (io.grpc.stub.StreamObserver< + com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse>) + responseObserver); + case METHODID_STREAM_SANITIZE_MODEL_RESPONSE: + return (io.grpc.stub.StreamObserver) + serviceImpl.streamSanitizeModelResponse( + (io.grpc.stub.StreamObserver< + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse>) + responseObserver); default: throw new AssertionError(); } @@ -1411,6 +1627,20 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest, com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse>( service, METHODID_SANITIZE_MODEL_RESPONSE))) + .addMethod( + getStreamSanitizeUserPromptMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest, + com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse>( + service, METHODID_STREAM_SANITIZE_USER_PROMPT))) + .addMethod( + getStreamSanitizeModelResponseMethod(), + io.grpc.stub.ServerCalls.asyncBidiStreamingCall( + new MethodHandlers< + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest, + com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse>( + service, METHODID_STREAM_SANITIZE_MODEL_RESPONSE))) .build(); } @@ -1471,6 +1701,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getUpdateFloorSettingMethod()) .addMethod(getSanitizeUserPromptMethod()) .addMethod(getSanitizeModelResponseMethod()) + .addMethod(getStreamSanitizeUserPromptMethod()) + .addMethod(getStreamSanitizeModelResponseMethod()) .build(); } } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ByteDataItem.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ByteDataItem.java index 9c0ac877f1ad..05708cf498df 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ByteDataItem.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ByteDataItem.java @@ -54,6 +54,7 @@ private ByteDataItem(com.google.protobuf.GeneratedMessage.Builder builder) { private ByteDataItem() { byteDataType_ = 0; byteData_ = com.google.protobuf.ByteString.EMPTY; + fileLabel_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -161,6 +162,16 @@ public enum ByteItemType implements com.google.protobuf.ProtocolMessageEnum { * CSV = 7; */ CSV(7), + /** + * + * + *
            +     * ZIP
            +     * 
            + * + * ZIP = 9; + */ + ZIP(9), UNRECOGNIZED(-1), ; @@ -262,6 +273,17 @@ public enum ByteItemType implements com.google.protobuf.ProtocolMessageEnum { */ public static final int CSV_VALUE = 7; + /** + * + * + *
            +     * ZIP
            +     * 
            + * + * ZIP = 9; + */ + public static final int ZIP_VALUE = 9; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -302,6 +324,8 @@ public static ByteItemType forNumber(int value) { return TXT; case 7: return CSV; + case 9: + return ZIP; default: return null; } @@ -417,6 +441,61 @@ public com.google.protobuf.ByteString getByteData() { return byteData_; } + public static final int FILE_LABEL_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object fileLabel_ = ""; + + /** + * + * + *
            +   * Optional. Label of the file. This is used to identify the file in the
            +   * response.
            +   * 
            + * + * string file_label = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fileLabel. + */ + @java.lang.Override + public java.lang.String getFileLabel() { + java.lang.Object ref = fileLabel_; + 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(); + fileLabel_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Label of the file. This is used to identify the file in the
            +   * response.
            +   * 
            + * + * string file_label = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fileLabel. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFileLabelBytes() { + java.lang.Object ref = fileLabel_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -439,6 +518,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!byteData_.isEmpty()) { output.writeBytes(2, byteData_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileLabel_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, fileLabel_); + } getUnknownFields().writeTo(output); } @@ -456,6 +538,9 @@ public int getSerializedSize() { if (!byteData_.isEmpty()) { size += com.google.protobuf.CodedOutputStream.computeBytesSize(2, byteData_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(fileLabel_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, fileLabel_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -474,6 +559,7 @@ public boolean equals(final java.lang.Object obj) { if (byteDataType_ != other.byteDataType_) return false; if (!getByteData().equals(other.getByteData())) return false; + if (!getFileLabel().equals(other.getFileLabel())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -489,6 +575,8 @@ public int hashCode() { hash = (53 * hash) + byteDataType_; hash = (37 * hash) + BYTE_DATA_FIELD_NUMBER; hash = (53 * hash) + getByteData().hashCode(); + hash = (37 * hash) + FILE_LABEL_FIELD_NUMBER; + hash = (53 * hash) + getFileLabel().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -631,6 +719,7 @@ public Builder clear() { bitField0_ = 0; byteDataType_ = 0; byteData_ = com.google.protobuf.ByteString.EMPTY; + fileLabel_ = ""; return this; } @@ -673,6 +762,9 @@ private void buildPartial0(com.google.cloud.modelarmor.v1beta.ByteDataItem resul if (((from_bitField0_ & 0x00000002) != 0)) { result.byteData_ = byteData_; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.fileLabel_ = fileLabel_; + } } @java.lang.Override @@ -694,6 +786,11 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1beta.ByteDataItem other) if (!other.getByteData().isEmpty()) { setByteData(other.getByteData()); } + if (!other.getFileLabel().isEmpty()) { + fileLabel_ = other.fileLabel_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -732,6 +829,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + fileLabel_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -917,6 +1020,122 @@ public Builder clearByteData() { return this; } + private java.lang.Object fileLabel_ = ""; + + /** + * + * + *
            +     * Optional. Label of the file. This is used to identify the file in the
            +     * response.
            +     * 
            + * + * string file_label = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fileLabel. + */ + public java.lang.String getFileLabel() { + java.lang.Object ref = fileLabel_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + fileLabel_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Label of the file. This is used to identify the file in the
            +     * response.
            +     * 
            + * + * string file_label = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fileLabel. + */ + public com.google.protobuf.ByteString getFileLabelBytes() { + java.lang.Object ref = fileLabel_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + fileLabel_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Label of the file. This is used to identify the file in the
            +     * response.
            +     * 
            + * + * string file_label = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The fileLabel to set. + * @return This builder for chaining. + */ + public Builder setFileLabel(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + fileLabel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Label of the file. This is used to identify the file in the
            +     * response.
            +     * 
            + * + * string file_label = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFileLabel() { + fileLabel_ = getDefaultInstance().getFileLabel(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Label of the file. This is used to identify the file in the
            +     * response.
            +     * 
            + * + * string file_label = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for fileLabel to set. + * @return This builder for chaining. + */ + public Builder setFileLabelBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + fileLabel_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1beta.ByteDataItem) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ByteDataItemOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ByteDataItemOrBuilder.java index 155edbfb6d9b..0c16a15be474 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ByteDataItemOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/ByteDataItemOrBuilder.java @@ -68,4 +68,32 @@ public interface ByteDataItemOrBuilder * @return The byteData. */ com.google.protobuf.ByteString getByteData(); + + /** + * + * + *
            +   * Optional. Label of the file. This is used to identify the file in the
            +   * response.
            +   * 
            + * + * string file_label = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The fileLabel. + */ + java.lang.String getFileLabel(); + + /** + * + * + *
            +   * Optional. Label of the file. This is used to identify the file in the
            +   * response.
            +   * 
            + * + * string file_label = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for fileLabel. + */ + com.google.protobuf.ByteString getFileLabelBytes(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSetting.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSetting.java index 17c6a2714f28..34db9cf8e0e4 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSetting.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSetting.java @@ -101,6 +101,16 @@ public enum IntegratedService implements com.google.protobuf.ProtocolMessageEnum * AI_PLATFORM = 1; */ AI_PLATFORM(1), + /** + * + * + *
            +     * Google MCP Server (via Shim Service Extension)
            +     * 
            + * + * GOOGLE_MCP_SERVER = 2; + */ + GOOGLE_MCP_SERVER(2), UNRECOGNIZED(-1), ; @@ -136,6 +146,17 @@ public enum IntegratedService implements com.google.protobuf.ProtocolMessageEnum */ public static final int AI_PLATFORM_VALUE = 1; + /** + * + * + *
            +     * Google MCP Server (via Shim Service Extension)
            +     * 
            + * + * GOOGLE_MCP_SERVER = 2; + */ + public static final int GOOGLE_MCP_SERVER_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -164,6 +185,8 @@ public static IntegratedService forNumber(int value) { return INTEGRATED_SERVICE_UNSPECIFIED; case 1: return AI_PLATFORM; + case 2: + return GOOGLE_MCP_SERVER; default: return null; } @@ -2114,6 +2137,66 @@ public boolean hasFloorSettingMetadata() { : floorSettingMetadata_; } + public static final int GOOGLE_MCP_SERVER_FLOOR_SETTING_FIELD_NUMBER = 9; + private com.google.cloud.modelarmor.v1beta.McpServerFloorSetting googleMcpServerFloorSetting_; + + /** + * + * + *
            +   * Optional. Google MCP Server floor setting.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleMcpServerFloorSetting field is set. + */ + @java.lang.Override + public boolean hasGoogleMcpServerFloorSetting() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +   * Optional. Google MCP Server floor setting.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleMcpServerFloorSetting. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.McpServerFloorSetting getGoogleMcpServerFloorSetting() { + return googleMcpServerFloorSetting_ == null + ? com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.getDefaultInstance() + : googleMcpServerFloorSetting_; + } + + /** + * + * + *
            +   * Optional. Google MCP Server floor setting.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.McpServerFloorSettingOrBuilder + getGoogleMcpServerFloorSettingOrBuilder() { + return googleMcpServerFloorSetting_ == null + ? com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.getDefaultInstance() + : googleMcpServerFloorSetting_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -2157,6 +2240,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(8, getFloorSettingMetadata()); } + if (((bitField0_ & 0x00000040) != 0)) { + output.writeMessage(9, getGoogleMcpServerFloorSetting()); + } getUnknownFields().writeTo(output); } @@ -2204,6 +2290,11 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getFloorSettingMetadata()); } + if (((bitField0_ & 0x00000040) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 9, getGoogleMcpServerFloorSetting()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2248,6 +2339,11 @@ public boolean equals(final java.lang.Object obj) { if (hasFloorSettingMetadata()) { if (!getFloorSettingMetadata().equals(other.getFloorSettingMetadata())) return false; } + if (hasGoogleMcpServerFloorSetting() != other.hasGoogleMcpServerFloorSetting()) return false; + if (hasGoogleMcpServerFloorSetting()) { + if (!getGoogleMcpServerFloorSetting().equals(other.getGoogleMcpServerFloorSetting())) + return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2291,6 +2387,10 @@ public int hashCode() { hash = (37 * hash) + FLOOR_SETTING_METADATA_FIELD_NUMBER; hash = (53 * hash) + getFloorSettingMetadata().hashCode(); } + if (hasGoogleMcpServerFloorSetting()) { + hash = (37 * hash) + GOOGLE_MCP_SERVER_FLOOR_SETTING_FIELD_NUMBER; + hash = (53 * hash) + getGoogleMcpServerFloorSetting().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2437,6 +2537,7 @@ private void maybeForceBuilderInitialization() { internalGetFilterConfigFieldBuilder(); internalGetAiPlatformFloorSettingFieldBuilder(); internalGetFloorSettingMetadataFieldBuilder(); + internalGetGoogleMcpServerFloorSettingFieldBuilder(); } } @@ -2472,6 +2573,11 @@ public Builder clear() { floorSettingMetadataBuilder_.dispose(); floorSettingMetadataBuilder_ = null; } + googleMcpServerFloorSetting_ = null; + if (googleMcpServerFloorSettingBuilder_ != null) { + googleMcpServerFloorSettingBuilder_.dispose(); + googleMcpServerFloorSettingBuilder_ = null; + } return this; } @@ -2547,6 +2653,13 @@ private void buildPartial0(com.google.cloud.modelarmor.v1beta.FloorSetting resul : floorSettingMetadataBuilder_.build(); to_bitField0_ |= 0x00000020; } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.googleMcpServerFloorSetting_ = + googleMcpServerFloorSettingBuilder_ == null + ? googleMcpServerFloorSetting_ + : googleMcpServerFloorSettingBuilder_.build(); + to_bitField0_ |= 0x00000040; + } result.bitField0_ |= to_bitField0_; } @@ -2597,6 +2710,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1beta.FloorSetting other) if (other.hasFloorSettingMetadata()) { mergeFloorSettingMetadata(other.getFloorSettingMetadata()); } + if (other.hasGoogleMcpServerFloorSetting()) { + mergeGoogleMcpServerFloorSetting(other.getGoogleMcpServerFloorSetting()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2689,6 +2805,14 @@ public Builder mergeFrom( bitField0_ |= 0x00000080; break; } // case 66 + case 74: + { + input.readMessage( + internalGetGoogleMcpServerFloorSettingFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 74 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4255,6 +4379,225 @@ public Builder clearFloorSettingMetadata() { return floorSettingMetadataBuilder_; } + private com.google.cloud.modelarmor.v1beta.McpServerFloorSetting googleMcpServerFloorSetting_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting, + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.Builder, + com.google.cloud.modelarmor.v1beta.McpServerFloorSettingOrBuilder> + googleMcpServerFloorSettingBuilder_; + + /** + * + * + *
            +     * Optional. Google MCP Server floor setting.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleMcpServerFloorSetting field is set. + */ + public boolean hasGoogleMcpServerFloorSetting() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +     * Optional. Google MCP Server floor setting.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleMcpServerFloorSetting. + */ + public com.google.cloud.modelarmor.v1beta.McpServerFloorSetting + getGoogleMcpServerFloorSetting() { + if (googleMcpServerFloorSettingBuilder_ == null) { + return googleMcpServerFloorSetting_ == null + ? com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.getDefaultInstance() + : googleMcpServerFloorSetting_; + } else { + return googleMcpServerFloorSettingBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Google MCP Server floor setting.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleMcpServerFloorSetting( + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting value) { + if (googleMcpServerFloorSettingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + googleMcpServerFloorSetting_ = value; + } else { + googleMcpServerFloorSettingBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Google MCP Server floor setting.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGoogleMcpServerFloorSetting( + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.Builder builderForValue) { + if (googleMcpServerFloorSettingBuilder_ == null) { + googleMcpServerFloorSetting_ = builderForValue.build(); + } else { + googleMcpServerFloorSettingBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Google MCP Server floor setting.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGoogleMcpServerFloorSetting( + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting value) { + if (googleMcpServerFloorSettingBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && googleMcpServerFloorSetting_ != null + && googleMcpServerFloorSetting_ + != com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.getDefaultInstance()) { + getGoogleMcpServerFloorSettingBuilder().mergeFrom(value); + } else { + googleMcpServerFloorSetting_ = value; + } + } else { + googleMcpServerFloorSettingBuilder_.mergeFrom(value); + } + if (googleMcpServerFloorSetting_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Google MCP Server floor setting.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGoogleMcpServerFloorSetting() { + bitField0_ = (bitField0_ & ~0x00000100); + googleMcpServerFloorSetting_ = null; + if (googleMcpServerFloorSettingBuilder_ != null) { + googleMcpServerFloorSettingBuilder_.dispose(); + googleMcpServerFloorSettingBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Google MCP Server floor setting.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.Builder + getGoogleMcpServerFloorSettingBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetGoogleMcpServerFloorSettingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Google MCP Server floor setting.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.modelarmor.v1beta.McpServerFloorSettingOrBuilder + getGoogleMcpServerFloorSettingOrBuilder() { + if (googleMcpServerFloorSettingBuilder_ != null) { + return googleMcpServerFloorSettingBuilder_.getMessageOrBuilder(); + } else { + return googleMcpServerFloorSetting_ == null + ? com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.getDefaultInstance() + : googleMcpServerFloorSetting_; + } + } + + /** + * + * + *
            +     * Optional. Google MCP Server floor setting.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting, + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.Builder, + com.google.cloud.modelarmor.v1beta.McpServerFloorSettingOrBuilder> + internalGetGoogleMcpServerFloorSettingFieldBuilder() { + if (googleMcpServerFloorSettingBuilder_ == null) { + googleMcpServerFloorSettingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting, + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.Builder, + com.google.cloud.modelarmor.v1beta.McpServerFloorSettingOrBuilder>( + getGoogleMcpServerFloorSetting(), getParentForChildren(), isClean()); + googleMcpServerFloorSetting_ = null; + } + return googleMcpServerFloorSettingBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1beta.FloorSetting) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSettingOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSettingOrBuilder.java index 639c96095246..c684db7d5a4e 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSettingOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/FloorSettingOrBuilder.java @@ -376,4 +376,48 @@ com.google.cloud.modelarmor.v1beta.FloorSetting.IntegratedService getIntegratedS */ com.google.cloud.modelarmor.v1beta.FloorSetting.FloorSettingMetadataOrBuilder getFloorSettingMetadataOrBuilder(); + + /** + * + * + *
            +   * Optional. Google MCP Server floor setting.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the googleMcpServerFloorSetting field is set. + */ + boolean hasGoogleMcpServerFloorSetting(); + + /** + * + * + *
            +   * Optional. Google MCP Server floor setting.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The googleMcpServerFloorSetting. + */ + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting getGoogleMcpServerFloorSetting(); + + /** + * + * + *
            +   * Optional. Google MCP Server floor setting.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.McpServerFloorSetting google_mcp_server_floor_setting = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.modelarmor.v1beta.McpServerFloorSettingOrBuilder + getGoogleMcpServerFloorSettingOrBuilder(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/McpServerFloorSetting.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/McpServerFloorSetting.java new file mode 100644 index 000000000000..5521b2cec2e4 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/McpServerFloorSetting.java @@ -0,0 +1,1206 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1beta; + +/** + * + * + *
            + * Message describing MCP Server Floor Setting.
            + * 
            + * + * Protobuf type {@code google.cloud.modelarmor.v1beta.McpServerFloorSetting} + */ +@com.google.protobuf.Generated +public final class McpServerFloorSetting extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.modelarmor.v1beta.McpServerFloorSetting) + McpServerFloorSettingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "McpServerFloorSetting"); + } + + // Use McpServerFloorSetting.newBuilder() to construct. + private McpServerFloorSetting(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private McpServerFloorSetting() { + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.class, + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.Builder.class); + } + + private int enforcementTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object enforcementType_; + + public enum EnforcementTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + INSPECT_ONLY(1), + INSPECT_AND_BLOCK(2), + ENFORCEMENTTYPE_NOT_SET(0); + private final int value; + + private EnforcementTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EnforcementTypeCase valueOf(int value) { + return forNumber(value); + } + + public static EnforcementTypeCase forNumber(int value) { + switch (value) { + case 1: + return INSPECT_ONLY; + case 2: + return INSPECT_AND_BLOCK; + case 0: + return ENFORCEMENTTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EnforcementTypeCase getEnforcementTypeCase() { + return EnforcementTypeCase.forNumber(enforcementTypeCase_); + } + + public static final int INSPECT_ONLY_FIELD_NUMBER = 1; + + /** + * + * + *
            +   * Optional. If true, Model Armor filters will be run in inspect only mode.
            +   * No action will be taken on the request.
            +   * 
            + * + * bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the inspectOnly field is set. + */ + @java.lang.Override + public boolean hasInspectOnly() { + return enforcementTypeCase_ == 1; + } + + /** + * + * + *
            +   * Optional. If true, Model Armor filters will be run in inspect only mode.
            +   * No action will be taken on the request.
            +   * 
            + * + * bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inspectOnly. + */ + @java.lang.Override + public boolean getInspectOnly() { + if (enforcementTypeCase_ == 1) { + return (java.lang.Boolean) enforcementType_; + } + return false; + } + + public static final int INSPECT_AND_BLOCK_FIELD_NUMBER = 2; + + /** + * + * + *
            +   * Optional. If true, Model Armor filters will be run in inspect and block
            +   * mode. Requests that trip Model Armor filters will be blocked.
            +   * 
            + * + * bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the inspectAndBlock field is set. + */ + @java.lang.Override + public boolean hasInspectAndBlock() { + return enforcementTypeCase_ == 2; + } + + /** + * + * + *
            +   * Optional. If true, Model Armor filters will be run in inspect and block
            +   * mode. Requests that trip Model Armor filters will be blocked.
            +   * 
            + * + * bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inspectAndBlock. + */ + @java.lang.Override + public boolean getInspectAndBlock() { + if (enforcementTypeCase_ == 2) { + return (java.lang.Boolean) enforcementType_; + } + return false; + } + + public static final int ENABLE_CLOUD_LOGGING_FIELD_NUMBER = 3; + private boolean enableCloudLogging_ = false; + + /** + * + * + *
            +   * Optional. If true, log Model Armor filter results to Cloud Logging.
            +   * 
            + * + * bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableCloudLogging. + */ + @java.lang.Override + public boolean getEnableCloudLogging() { + return enableCloudLogging_; + } + + public static final int APIS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. List of MCP servers for which the MCP floor setting is
            +   * applicable. Examples: "bigquery.googleapis.com/mcp",
            +   * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +   * applicable to all MCP servers.
            +   * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + return apis_; + } + + /** + * + * + *
            +   * Optional. List of MCP servers for which the MCP floor setting is
            +   * applicable. Examples: "bigquery.googleapis.com/mcp",
            +   * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +   * applicable to all MCP servers.
            +   * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
            +   * Optional. List of MCP servers for which the MCP floor setting is
            +   * applicable. Examples: "bigquery.googleapis.com/mcp",
            +   * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +   * applicable to all MCP servers.
            +   * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
            +   * Optional. List of MCP servers for which the MCP floor setting is
            +   * applicable. Examples: "bigquery.googleapis.com/mcp",
            +   * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +   * applicable to all MCP servers.
            +   * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (enforcementTypeCase_ == 1) { + output.writeBool(1, (boolean) ((java.lang.Boolean) enforcementType_)); + } + if (enforcementTypeCase_ == 2) { + output.writeBool(2, (boolean) ((java.lang.Boolean) enforcementType_)); + } + if (enableCloudLogging_ != false) { + output.writeBool(3, enableCloudLogging_); + } + for (int i = 0; i < apis_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, apis_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (enforcementTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 1, (boolean) ((java.lang.Boolean) enforcementType_)); + } + if (enforcementTypeCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeBoolSize( + 2, (boolean) ((java.lang.Boolean) enforcementType_)); + } + if (enableCloudLogging_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, enableCloudLogging_); + } + { + int dataSize = 0; + for (int i = 0; i < apis_.size(); i++) { + dataSize += computeStringSizeNoTag(apis_.getRaw(i)); + } + size += dataSize; + size += 1 * getApisList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.modelarmor.v1beta.McpServerFloorSetting)) { + return super.equals(obj); + } + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting other = + (com.google.cloud.modelarmor.v1beta.McpServerFloorSetting) obj; + + if (getEnableCloudLogging() != other.getEnableCloudLogging()) return false; + if (!getApisList().equals(other.getApisList())) return false; + if (!getEnforcementTypeCase().equals(other.getEnforcementTypeCase())) return false; + switch (enforcementTypeCase_) { + case 1: + if (getInspectOnly() != other.getInspectOnly()) return false; + break; + case 2: + if (getInspectAndBlock() != other.getInspectAndBlock()) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + ENABLE_CLOUD_LOGGING_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getEnableCloudLogging()); + if (getApisCount() > 0) { + hash = (37 * hash) + APIS_FIELD_NUMBER; + hash = (53 * hash) + getApisList().hashCode(); + } + switch (enforcementTypeCase_) { + case 1: + hash = (37 * hash) + INSPECT_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInspectOnly()); + break; + case 2: + hash = (37 * hash) + INSPECT_AND_BLOCK_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getInspectAndBlock()); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting 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.modelarmor.v1beta.McpServerFloorSetting parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting 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.modelarmor.v1beta.McpServerFloorSetting parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message describing MCP Server Floor Setting.
            +   * 
            + * + * Protobuf type {@code google.cloud.modelarmor.v1beta.McpServerFloorSetting} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.modelarmor.v1beta.McpServerFloorSetting) + com.google.cloud.modelarmor.v1beta.McpServerFloorSettingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.class, + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.Builder.class); + } + + // Construct using com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + enableCloudLogging_ = false; + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + enforcementTypeCase_ = 0; + enforcementType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.modelarmor.v1beta.V1mainProto + .internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_descriptor; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.McpServerFloorSetting getDefaultInstanceForType() { + return com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.McpServerFloorSetting build() { + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.McpServerFloorSetting buildPartial() { + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting result = + new com.google.cloud.modelarmor.v1beta.McpServerFloorSetting(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.modelarmor.v1beta.McpServerFloorSetting result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.enableCloudLogging_ = enableCloudLogging_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + apis_.makeImmutable(); + result.apis_ = apis_; + } + } + + private void buildPartialOneofs( + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting result) { + result.enforcementTypeCase_ = enforcementTypeCase_; + result.enforcementType_ = this.enforcementType_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.modelarmor.v1beta.McpServerFloorSetting) { + return mergeFrom((com.google.cloud.modelarmor.v1beta.McpServerFloorSetting) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.modelarmor.v1beta.McpServerFloorSetting other) { + if (other == com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.getDefaultInstance()) + return this; + if (other.getEnableCloudLogging() != false) { + setEnableCloudLogging(other.getEnableCloudLogging()); + } + if (!other.apis_.isEmpty()) { + if (apis_.isEmpty()) { + apis_ = other.apis_; + bitField0_ |= 0x00000008; + } else { + ensureApisIsMutable(); + apis_.addAll(other.apis_); + } + onChanged(); + } + switch (other.getEnforcementTypeCase()) { + case INSPECT_ONLY: + { + setInspectOnly(other.getInspectOnly()); + break; + } + case INSPECT_AND_BLOCK: + { + setInspectAndBlock(other.getInspectAndBlock()); + break; + } + case ENFORCEMENTTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + enforcementType_ = input.readBool(); + enforcementTypeCase_ = 1; + break; + } // case 8 + case 16: + { + enforcementType_ = input.readBool(); + enforcementTypeCase_ = 2; + break; + } // case 16 + case 24: + { + enableCloudLogging_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureApisIsMutable(); + apis_.add(s); + break; + } // case 34 + 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 enforcementTypeCase_ = 0; + private java.lang.Object enforcementType_; + + public EnforcementTypeCase getEnforcementTypeCase() { + return EnforcementTypeCase.forNumber(enforcementTypeCase_); + } + + public Builder clearEnforcementType() { + enforcementTypeCase_ = 0; + enforcementType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +     * Optional. If true, Model Armor filters will be run in inspect only mode.
            +     * No action will be taken on the request.
            +     * 
            + * + * bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the inspectOnly field is set. + */ + public boolean hasInspectOnly() { + return enforcementTypeCase_ == 1; + } + + /** + * + * + *
            +     * Optional. If true, Model Armor filters will be run in inspect only mode.
            +     * No action will be taken on the request.
            +     * 
            + * + * bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inspectOnly. + */ + public boolean getInspectOnly() { + if (enforcementTypeCase_ == 1) { + return (java.lang.Boolean) enforcementType_; + } + return false; + } + + /** + * + * + *
            +     * Optional. If true, Model Armor filters will be run in inspect only mode.
            +     * No action will be taken on the request.
            +     * 
            + * + * bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inspectOnly to set. + * @return This builder for chaining. + */ + public Builder setInspectOnly(boolean value) { + + enforcementTypeCase_ = 1; + enforcementType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If true, Model Armor filters will be run in inspect only mode.
            +     * No action will be taken on the request.
            +     * 
            + * + * bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInspectOnly() { + if (enforcementTypeCase_ == 1) { + enforcementTypeCase_ = 0; + enforcementType_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. If true, Model Armor filters will be run in inspect and block
            +     * mode. Requests that trip Model Armor filters will be blocked.
            +     * 
            + * + * bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the inspectAndBlock field is set. + */ + public boolean hasInspectAndBlock() { + return enforcementTypeCase_ == 2; + } + + /** + * + * + *
            +     * Optional. If true, Model Armor filters will be run in inspect and block
            +     * mode. Requests that trip Model Armor filters will be blocked.
            +     * 
            + * + * bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inspectAndBlock. + */ + public boolean getInspectAndBlock() { + if (enforcementTypeCase_ == 2) { + return (java.lang.Boolean) enforcementType_; + } + return false; + } + + /** + * + * + *
            +     * Optional. If true, Model Armor filters will be run in inspect and block
            +     * mode. Requests that trip Model Armor filters will be blocked.
            +     * 
            + * + * bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inspectAndBlock to set. + * @return This builder for chaining. + */ + public Builder setInspectAndBlock(boolean value) { + + enforcementTypeCase_ = 2; + enforcementType_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If true, Model Armor filters will be run in inspect and block
            +     * mode. Requests that trip Model Armor filters will be blocked.
            +     * 
            + * + * bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInspectAndBlock() { + if (enforcementTypeCase_ == 2) { + enforcementTypeCase_ = 0; + enforcementType_ = null; + onChanged(); + } + return this; + } + + private boolean enableCloudLogging_; + + /** + * + * + *
            +     * Optional. If true, log Model Armor filter results to Cloud Logging.
            +     * 
            + * + * bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableCloudLogging. + */ + @java.lang.Override + public boolean getEnableCloudLogging() { + return enableCloudLogging_; + } + + /** + * + * + *
            +     * Optional. If true, log Model Armor filter results to Cloud Logging.
            +     * 
            + * + * bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The enableCloudLogging to set. + * @return This builder for chaining. + */ + public Builder setEnableCloudLogging(boolean value) { + + enableCloudLogging_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. If true, log Model Armor filter results to Cloud Logging.
            +     * 
            + * + * bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEnableCloudLogging() { + bitField0_ = (bitField0_ & ~0x00000004); + enableCloudLogging_ = false; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList apis_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureApisIsMutable() { + if (!apis_.isModifiable()) { + apis_ = new com.google.protobuf.LazyStringArrayList(apis_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
            +     * Optional. List of MCP servers for which the MCP floor setting is
            +     * applicable. Examples: "bigquery.googleapis.com/mcp",
            +     * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +     * applicable to all MCP servers.
            +     * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the apis. + */ + public com.google.protobuf.ProtocolStringList getApisList() { + apis_.makeImmutable(); + return apis_; + } + + /** + * + * + *
            +     * Optional. List of MCP servers for which the MCP floor setting is
            +     * applicable. Examples: "bigquery.googleapis.com/mcp",
            +     * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +     * applicable to all MCP servers.
            +     * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of apis. + */ + public int getApisCount() { + return apis_.size(); + } + + /** + * + * + *
            +     * Optional. List of MCP servers for which the MCP floor setting is
            +     * applicable. Examples: "bigquery.googleapis.com/mcp",
            +     * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +     * applicable to all MCP servers.
            +     * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + public java.lang.String getApis(int index) { + return apis_.get(index); + } + + /** + * + * + *
            +     * Optional. List of MCP servers for which the MCP floor setting is
            +     * applicable. Examples: "bigquery.googleapis.com/mcp",
            +     * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +     * applicable to all MCP servers.
            +     * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + public com.google.protobuf.ByteString getApisBytes(int index) { + return apis_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. List of MCP servers for which the MCP floor setting is
            +     * applicable. Examples: "bigquery.googleapis.com/mcp",
            +     * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +     * applicable to all MCP servers.
            +     * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The apis to set. + * @return This builder for chaining. + */ + public Builder setApis(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. List of MCP servers for which the MCP floor setting is
            +     * applicable. Examples: "bigquery.googleapis.com/mcp",
            +     * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +     * applicable to all MCP servers.
            +     * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The apis to add. + * @return This builder for chaining. + */ + public Builder addApis(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. List of MCP servers for which the MCP floor setting is
            +     * applicable. Examples: "bigquery.googleapis.com/mcp",
            +     * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +     * applicable to all MCP servers.
            +     * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The apis to add. + * @return This builder for chaining. + */ + public Builder addAllApis(java.lang.Iterable values) { + ensureApisIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, apis_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. List of MCP servers for which the MCP floor setting is
            +     * applicable. Examples: "bigquery.googleapis.com/mcp",
            +     * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +     * applicable to all MCP servers.
            +     * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearApis() { + apis_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. List of MCP servers for which the MCP floor setting is
            +     * applicable. Examples: "bigquery.googleapis.com/mcp",
            +     * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +     * applicable to all MCP servers.
            +     * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the apis to add. + * @return This builder for chaining. + */ + public Builder addApisBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureApisIsMutable(); + apis_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1beta.McpServerFloorSetting) + } + + // @@protoc_insertion_point(class_scope:google.cloud.modelarmor.v1beta.McpServerFloorSetting) + private static final com.google.cloud.modelarmor.v1beta.McpServerFloorSetting DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.modelarmor.v1beta.McpServerFloorSetting(); + } + + public static com.google.cloud.modelarmor.v1beta.McpServerFloorSetting getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public McpServerFloorSetting 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.modelarmor.v1beta.McpServerFloorSetting getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/McpServerFloorSettingOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/McpServerFloorSettingOrBuilder.java new file mode 100644 index 000000000000..d53056af95e7 --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/McpServerFloorSettingOrBuilder.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1beta; + +@com.google.protobuf.Generated +public interface McpServerFloorSettingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.modelarmor.v1beta.McpServerFloorSetting) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. If true, Model Armor filters will be run in inspect only mode.
            +   * No action will be taken on the request.
            +   * 
            + * + * bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the inspectOnly field is set. + */ + boolean hasInspectOnly(); + + /** + * + * + *
            +   * Optional. If true, Model Armor filters will be run in inspect only mode.
            +   * No action will be taken on the request.
            +   * 
            + * + * bool inspect_only = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inspectOnly. + */ + boolean getInspectOnly(); + + /** + * + * + *
            +   * Optional. If true, Model Armor filters will be run in inspect and block
            +   * mode. Requests that trip Model Armor filters will be blocked.
            +   * 
            + * + * bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the inspectAndBlock field is set. + */ + boolean hasInspectAndBlock(); + + /** + * + * + *
            +   * Optional. If true, Model Armor filters will be run in inspect and block
            +   * mode. Requests that trip Model Armor filters will be blocked.
            +   * 
            + * + * bool inspect_and_block = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inspectAndBlock. + */ + boolean getInspectAndBlock(); + + /** + * + * + *
            +   * Optional. If true, log Model Armor filter results to Cloud Logging.
            +   * 
            + * + * bool enable_cloud_logging = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The enableCloudLogging. + */ + boolean getEnableCloudLogging(); + + /** + * + * + *
            +   * Optional. List of MCP servers for which the MCP floor setting is
            +   * applicable. Examples: "bigquery.googleapis.com/mcp",
            +   * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +   * applicable to all MCP servers.
            +   * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the apis. + */ + java.util.List getApisList(); + + /** + * + * + *
            +   * Optional. List of MCP servers for which the MCP floor setting is
            +   * applicable. Examples: "bigquery.googleapis.com/mcp",
            +   * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +   * applicable to all MCP servers.
            +   * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of apis. + */ + int getApisCount(); + + /** + * + * + *
            +   * Optional. List of MCP servers for which the MCP floor setting is
            +   * applicable. Examples: "bigquery.googleapis.com/mcp",
            +   * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +   * applicable to all MCP servers.
            +   * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The apis at the given index. + */ + java.lang.String getApis(int index); + + /** + * + * + *
            +   * Optional. List of MCP servers for which the MCP floor setting is
            +   * applicable. Examples: "bigquery.googleapis.com/mcp",
            +   * "run.googleapis.com/mcp" Empty list denotes that the floor setting is
            +   * applicable to all MCP servers.
            +   * 
            + * + * repeated string apis = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the apis at the given index. + */ + com.google.protobuf.ByteString getApisBytes(int index); + + com.google.cloud.modelarmor.v1beta.McpServerFloorSetting.EnforcementTypeCase + getEnforcementTypeCase(); +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadata.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadata.java index 4d3b49804967..f2cc2777be7e 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadata.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadata.java @@ -81,8 +81,18 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                * Optional. Optional Source language of the user prompt.
                *
            -   * If multi-language detection is enabled but language is not set in that case
            -   * we would automatically detect the source language.
            +   * If multi-language detection is enabled and this field is not set, the
            +   * source language will be automatically detected. When a source language is
            +   * provided, Model Armor uses it to sanitize the input. In that case the
            +   * system does not perform auto-detection and relies solely on the specified
            +   * language.
            +   *
            +   * This string field accepts a language code from the ISO-639 standard.
            +   * For a list of languages supported by Model Armor, see
            +   * [Model Armor supported languages]
            +   * (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported).
            +   * For a comprehensive list of language codes, see
            +   * [ISO-639](https://cloud.google.com/translate/docs/languages#nmt).
                * 
            * * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -108,8 +118,18 @@ public java.lang.String getSourceLanguage() { *
                * Optional. Optional Source language of the user prompt.
                *
            -   * If multi-language detection is enabled but language is not set in that case
            -   * we would automatically detect the source language.
            +   * If multi-language detection is enabled and this field is not set, the
            +   * source language will be automatically detected. When a source language is
            +   * provided, Model Armor uses it to sanitize the input. In that case the
            +   * system does not perform auto-detection and relies solely on the specified
            +   * language.
            +   *
            +   * This string field accepts a language code from the ISO-639 standard.
            +   * For a list of languages supported by Model Armor, see
            +   * [Model Armor supported languages]
            +   * (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported).
            +   * For a comprehensive list of language codes, see
            +   * [ISO-639](https://cloud.google.com/translate/docs/languages#nmt).
                * 
            * * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -498,8 +518,18 @@ public Builder mergeFrom( *
                  * Optional. Optional Source language of the user prompt.
                  *
            -     * If multi-language detection is enabled but language is not set in that case
            -     * we would automatically detect the source language.
            +     * If multi-language detection is enabled and this field is not set, the
            +     * source language will be automatically detected. When a source language is
            +     * provided, Model Armor uses it to sanitize the input. In that case the
            +     * system does not perform auto-detection and relies solely on the specified
            +     * language.
            +     *
            +     * This string field accepts a language code from the ISO-639 standard.
            +     * For a list of languages supported by Model Armor, see
            +     * [Model Armor supported languages]
            +     * (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported).
            +     * For a comprehensive list of language codes, see
            +     * [ISO-639](https://cloud.google.com/translate/docs/languages#nmt).
                  * 
            * * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -524,8 +554,18 @@ public java.lang.String getSourceLanguage() { *
                  * Optional. Optional Source language of the user prompt.
                  *
            -     * If multi-language detection is enabled but language is not set in that case
            -     * we would automatically detect the source language.
            +     * If multi-language detection is enabled and this field is not set, the
            +     * source language will be automatically detected. When a source language is
            +     * provided, Model Armor uses it to sanitize the input. In that case the
            +     * system does not perform auto-detection and relies solely on the specified
            +     * language.
            +     *
            +     * This string field accepts a language code from the ISO-639 standard.
            +     * For a list of languages supported by Model Armor, see
            +     * [Model Armor supported languages]
            +     * (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported).
            +     * For a comprehensive list of language codes, see
            +     * [ISO-639](https://cloud.google.com/translate/docs/languages#nmt).
                  * 
            * * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -550,8 +590,18 @@ public com.google.protobuf.ByteString getSourceLanguageBytes() { *
                  * Optional. Optional Source language of the user prompt.
                  *
            -     * If multi-language detection is enabled but language is not set in that case
            -     * we would automatically detect the source language.
            +     * If multi-language detection is enabled and this field is not set, the
            +     * source language will be automatically detected. When a source language is
            +     * provided, Model Armor uses it to sanitize the input. In that case the
            +     * system does not perform auto-detection and relies solely on the specified
            +     * language.
            +     *
            +     * This string field accepts a language code from the ISO-639 standard.
            +     * For a list of languages supported by Model Armor, see
            +     * [Model Armor supported languages]
            +     * (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported).
            +     * For a comprehensive list of language codes, see
            +     * [ISO-639](https://cloud.google.com/translate/docs/languages#nmt).
                  * 
            * * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -575,8 +625,18 @@ public Builder setSourceLanguage(java.lang.String value) { *
                  * Optional. Optional Source language of the user prompt.
                  *
            -     * If multi-language detection is enabled but language is not set in that case
            -     * we would automatically detect the source language.
            +     * If multi-language detection is enabled and this field is not set, the
            +     * source language will be automatically detected. When a source language is
            +     * provided, Model Armor uses it to sanitize the input. In that case the
            +     * system does not perform auto-detection and relies solely on the specified
            +     * language.
            +     *
            +     * This string field accepts a language code from the ISO-639 standard.
            +     * For a list of languages supported by Model Armor, see
            +     * [Model Armor supported languages]
            +     * (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported).
            +     * For a comprehensive list of language codes, see
            +     * [ISO-639](https://cloud.google.com/translate/docs/languages#nmt).
                  * 
            * * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -596,8 +656,18 @@ public Builder clearSourceLanguage() { *
                  * Optional. Optional Source language of the user prompt.
                  *
            -     * If multi-language detection is enabled but language is not set in that case
            -     * we would automatically detect the source language.
            +     * If multi-language detection is enabled and this field is not set, the
            +     * source language will be automatically detected. When a source language is
            +     * provided, Model Armor uses it to sanitize the input. In that case the
            +     * system does not perform auto-detection and relies solely on the specified
            +     * language.
            +     *
            +     * This string field accepts a language code from the ISO-639 standard.
            +     * For a list of languages supported by Model Armor, see
            +     * [Model Armor supported languages]
            +     * (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported).
            +     * For a comprehensive list of language codes, see
            +     * [ISO-639](https://cloud.google.com/translate/docs/languages#nmt).
                  * 
            * * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadataOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadataOrBuilder.java index a20b2b1d9f86..05ceed066abb 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadataOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/MultiLanguageDetectionMetadataOrBuilder.java @@ -32,8 +32,18 @@ public interface MultiLanguageDetectionMetadataOrBuilder *
                * Optional. Optional Source language of the user prompt.
                *
            -   * If multi-language detection is enabled but language is not set in that case
            -   * we would automatically detect the source language.
            +   * If multi-language detection is enabled and this field is not set, the
            +   * source language will be automatically detected. When a source language is
            +   * provided, Model Armor uses it to sanitize the input. In that case the
            +   * system does not perform auto-detection and relies solely on the specified
            +   * language.
            +   *
            +   * This string field accepts a language code from the ISO-639 standard.
            +   * For a list of languages supported by Model Armor, see
            +   * [Model Armor supported languages]
            +   * (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported).
            +   * For a comprehensive list of language codes, see
            +   * [ISO-639](https://cloud.google.com/translate/docs/languages#nmt).
                * 
            * * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; @@ -48,8 +58,18 @@ public interface MultiLanguageDetectionMetadataOrBuilder *
                * Optional. Optional Source language of the user prompt.
                *
            -   * If multi-language detection is enabled but language is not set in that case
            -   * we would automatically detect the source language.
            +   * If multi-language detection is enabled and this field is not set, the
            +   * source language will be automatically detected. When a source language is
            +   * provided, Model Armor uses it to sanitize the input. In that case the
            +   * system does not perform auto-detection and relies solely on the specified
            +   * language.
            +   *
            +   * This string field accepts a language code from the ISO-639 standard.
            +   * For a list of languages supported by Model Armor, see
            +   * [Model Armor supported languages]
            +   * (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported).
            +   * For a comprehensive list of language codes, see
            +   * [ISO-639](https://cloud.google.com/translate/docs/languages#nmt).
                * 
            * * string source_language = 1 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/PiAndJailbreakFilterSettings.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/PiAndJailbreakFilterSettings.java index a9f7a1ed16f3..b3cabe42e5bb 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/PiAndJailbreakFilterSettings.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/PiAndJailbreakFilterSettings.java @@ -107,7 +107,7 @@ public enum PiAndJailbreakFilterEnforcement implements com.google.protobuf.Proto * * *
            -     * Enabled
            +     * Disabled
                  * 
            * * DISABLED = 2; @@ -152,7 +152,7 @@ public enum PiAndJailbreakFilterEnforcement implements com.google.protobuf.Proto * * *
            -     * Enabled
            +     * Disabled
                  * 
            * * DISABLED = 2; diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/RaiFilterResult.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/RaiFilterResult.java index 5d486ba91459..afc104521a41 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/RaiFilterResult.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/RaiFilterResult.java @@ -1309,7 +1309,8 @@ public int getRaiFilterTypeResultsCount() { * *
                * The map of RAI filter results where key is RAI filter type - either of
            -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +   * "sexually_suggestive".
                * 
            * * @@ -1338,7 +1339,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                * The map of RAI filter results where key is RAI filter type - either of
            -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +   * "sexually_suggestive".
                * 
            * * @@ -1357,7 +1359,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                * The map of RAI filter results where key is RAI filter type - either of
            -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +   * "sexually_suggestive".
                * 
            * * @@ -1385,7 +1388,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                * The map of RAI filter results where key is RAI filter type - either of
            -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +   * "sexually_suggestive".
                * 
            * * @@ -2620,7 +2624,8 @@ public int getRaiFilterTypeResultsCount() { * *
                  * The map of RAI filter results where key is RAI filter type - either of
            -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +     * "sexually_suggestive".
                  * 
            * * @@ -2650,7 +2655,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                  * The map of RAI filter results where key is RAI filter type - either of
            -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +     * "sexually_suggestive".
                  * 
            * * @@ -2670,7 +2676,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                  * The map of RAI filter results where key is RAI filter type - either of
            -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +     * "sexually_suggestive".
                  * 
            * * @@ -2700,7 +2707,8 @@ public boolean containsRaiFilterTypeResults(java.lang.String key) { * *
                  * The map of RAI filter results where key is RAI filter type - either of
            -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +     * "sexually_suggestive".
                  * 
            * * @@ -2734,7 +2742,8 @@ public Builder clearRaiFilterTypeResults() { * *
                  * The map of RAI filter results where key is RAI filter type - either of
            -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +     * "sexually_suggestive".
                  * 
            * * @@ -2764,7 +2773,8 @@ public Builder removeRaiFilterTypeResults(java.lang.String key) { * *
                  * The map of RAI filter results where key is RAI filter type - either of
            -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +     * "sexually_suggestive".
                  * 
            * * @@ -2790,7 +2800,8 @@ public Builder putRaiFilterTypeResults( * *
                  * The map of RAI filter results where key is RAI filter type - either of
            -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +     * "sexually_suggestive".
                  * 
            * * @@ -2820,7 +2831,8 @@ public Builder putAllRaiFilterTypeResults( * *
                  * The map of RAI filter results where key is RAI filter type - either of
            -     * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +     * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +     * "sexually_suggestive".
                  * 
            * * diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/RaiFilterResultOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/RaiFilterResultOrBuilder.java index b9709e2cc0cd..d4b61632a8f8 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/RaiFilterResultOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/RaiFilterResultOrBuilder.java @@ -168,7 +168,8 @@ public interface RaiFilterResultOrBuilder * *
                * The map of RAI filter results where key is RAI filter type - either of
            -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +   * "sexually_suggestive".
                * 
            * * @@ -182,7 +183,8 @@ public interface RaiFilterResultOrBuilder * *
                * The map of RAI filter results where key is RAI filter type - either of
            -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +   * "sexually_suggestive".
                * 
            * * @@ -202,7 +204,8 @@ public interface RaiFilterResultOrBuilder * *
                * The map of RAI filter results where key is RAI filter type - either of
            -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +   * "sexually_suggestive".
                * 
            * * @@ -218,7 +221,8 @@ public interface RaiFilterResultOrBuilder * *
                * The map of RAI filter results where key is RAI filter type - either of
            -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +   * "sexually_suggestive".
                * 
            * * @@ -237,7 +241,8 @@ public interface RaiFilterResultOrBuilder * *
                * The map of RAI filter results where key is RAI filter type - either of
            -   * "sexually_explicit", "hate_speech", "harassment", "dangerous".
            +   * "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence",
            +   * "sexually_suggestive".
                * 
            * * diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequest.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequest.java index b526139a6b93..eacc1718d936 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequest.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequest.java @@ -54,6 +54,7 @@ private SanitizeModelResponseRequest(com.google.protobuf.GeneratedMessage.Builde private SanitizeModelResponseRequest() { name_ = ""; userPrompt_ = ""; + streamingMode_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -305,6 +306,65 @@ public boolean hasMultiLanguageDetectionMetadata() { : multiLanguageDetectionMetadata_; } + public static final int STREAMING_MODE_FIELD_NUMBER = 8; + private int streamingMode_ = 0; + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the streamingMode field is set. + */ + @java.lang.Override + public boolean hasStreamingMode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for streamingMode. + */ + @java.lang.Override + public int getStreamingModeValue() { + return streamingMode_; + } + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingMode. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.StreamingMode getStreamingMode() { + com.google.cloud.modelarmor.v1beta.StreamingMode result = + com.google.cloud.modelarmor.v1beta.StreamingMode.forNumber(streamingMode_); + return result == null ? com.google.cloud.modelarmor.v1beta.StreamingMode.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -331,6 +391,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(7, getMultiLanguageDetectionMetadata()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(8, streamingMode_); + } getUnknownFields().writeTo(output); } @@ -354,6 +417,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 7, getMultiLanguageDetectionMetadata()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(8, streamingMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -382,6 +448,10 @@ public boolean equals(final java.lang.Object obj) { if (!getMultiLanguageDetectionMetadata().equals(other.getMultiLanguageDetectionMetadata())) return false; } + if (hasStreamingMode() != other.hasStreamingMode()) return false; + if (hasStreamingMode()) { + if (streamingMode_ != other.streamingMode_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -405,6 +475,10 @@ public int hashCode() { hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER; hash = (53 * hash) + getMultiLanguageDetectionMetadata().hashCode(); } + if (hasStreamingMode()) { + hash = (37 * hash) + STREAMING_MODE_FIELD_NUMBER; + hash = (53 * hash) + streamingMode_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -568,6 +642,7 @@ public Builder clear() { multiLanguageDetectionMetadataBuilder_.dispose(); multiLanguageDetectionMetadataBuilder_ = null; } + streamingMode_ = 0; return this; } @@ -627,6 +702,10 @@ private void buildPartial0( : multiLanguageDetectionMetadataBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.streamingMode_ = streamingMode_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -661,6 +740,9 @@ public Builder mergeFrom( if (other.hasMultiLanguageDetectionMetadata()) { mergeMultiLanguageDetectionMetadata(other.getMultiLanguageDetectionMetadata()); } + if (other.hasStreamingMode()) { + setStreamingModeValue(other.getStreamingModeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -714,6 +796,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 58 + case 64: + { + streamingMode_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 64 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1405,6 +1493,131 @@ public Builder clearMultiLanguageDetectionMetadata() { return multiLanguageDetectionMetadataBuilder_; } + private int streamingMode_ = 0; + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the streamingMode field is set. + */ + @java.lang.Override + public boolean hasStreamingMode() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for streamingMode. + */ + @java.lang.Override + public int getStreamingModeValue() { + return streamingMode_; + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for streamingMode to set. + * @return This builder for chaining. + */ + public Builder setStreamingModeValue(int value) { + streamingMode_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingMode. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.StreamingMode getStreamingMode() { + com.google.cloud.modelarmor.v1beta.StreamingMode result = + com.google.cloud.modelarmor.v1beta.StreamingMode.forNumber(streamingMode_); + return result == null + ? com.google.cloud.modelarmor.v1beta.StreamingMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The streamingMode to set. + * @return This builder for chaining. + */ + public Builder setStreamingMode(com.google.cloud.modelarmor.v1beta.StreamingMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + streamingMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStreamingMode() { + bitField0_ = (bitField0_ & ~0x00000010); + streamingMode_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequestOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequestOrBuilder.java index 5c9dd6d9b11d..62a54bbf22d9 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequestOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeModelResponseRequestOrBuilder.java @@ -171,4 +171,49 @@ public interface SanitizeModelResponseRequestOrBuilder */ com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataOrBuilder getMultiLanguageDetectionMetadataOrBuilder(); + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the streamingMode field is set. + */ + boolean hasStreamingMode(); + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for streamingMode. + */ + int getStreamingModeValue(); + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingMode. + */ + com.google.cloud.modelarmor.v1beta.StreamingMode getStreamingMode(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequest.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequest.java index 8b90e67edbda..946d4dbe8bb8 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequest.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequest.java @@ -53,6 +53,7 @@ private SanitizeUserPromptRequest(com.google.protobuf.GeneratedMessage.Builder + * Optional. Streaming Mode for StreamSanitize* API. + *
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the streamingMode field is set. + */ + @java.lang.Override + public boolean hasStreamingMode() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for streamingMode. + */ + @java.lang.Override + public int getStreamingModeValue() { + return streamingMode_; + } + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingMode. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.StreamingMode getStreamingMode() { + com.google.cloud.modelarmor.v1beta.StreamingMode result = + com.google.cloud.modelarmor.v1beta.StreamingMode.forNumber(streamingMode_); + return result == null ? com.google.cloud.modelarmor.v1beta.StreamingMode.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -274,6 +334,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(6, getMultiLanguageDetectionMetadata()); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(7, streamingMode_); + } getUnknownFields().writeTo(output); } @@ -294,6 +357,9 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 6, getMultiLanguageDetectionMetadata()); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, streamingMode_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -321,6 +387,10 @@ public boolean equals(final java.lang.Object obj) { if (!getMultiLanguageDetectionMetadata().equals(other.getMultiLanguageDetectionMetadata())) return false; } + if (hasStreamingMode() != other.hasStreamingMode()) return false; + if (hasStreamingMode()) { + if (streamingMode_ != other.streamingMode_) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -342,6 +412,10 @@ public int hashCode() { hash = (37 * hash) + MULTI_LANGUAGE_DETECTION_METADATA_FIELD_NUMBER; hash = (53 * hash) + getMultiLanguageDetectionMetadata().hashCode(); } + if (hasStreamingMode()) { + hash = (37 * hash) + STREAMING_MODE_FIELD_NUMBER; + hash = (53 * hash) + streamingMode_; + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -504,6 +578,7 @@ public Builder clear() { multiLanguageDetectionMetadataBuilder_.dispose(); multiLanguageDetectionMetadataBuilder_ = null; } + streamingMode_ = 0; return this; } @@ -558,6 +633,10 @@ private void buildPartial0( : multiLanguageDetectionMetadataBuilder_.build(); to_bitField0_ |= 0x00000002; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.streamingMode_ = streamingMode_; + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -586,6 +665,9 @@ public Builder mergeFrom(com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRe if (other.hasMultiLanguageDetectionMetadata()) { mergeMultiLanguageDetectionMetadata(other.getMultiLanguageDetectionMetadata()); } + if (other.hasStreamingMode()) { + setStreamingModeValue(other.getStreamingModeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -633,6 +715,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 50 + case 56: + { + streamingMode_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 56 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1213,6 +1301,131 @@ public Builder clearMultiLanguageDetectionMetadata() { return multiLanguageDetectionMetadataBuilder_; } + private int streamingMode_ = 0; + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the streamingMode field is set. + */ + @java.lang.Override + public boolean hasStreamingMode() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for streamingMode. + */ + @java.lang.Override + public int getStreamingModeValue() { + return streamingMode_; + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for streamingMode to set. + * @return This builder for chaining. + */ + public Builder setStreamingModeValue(int value) { + streamingMode_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingMode. + */ + @java.lang.Override + public com.google.cloud.modelarmor.v1beta.StreamingMode getStreamingMode() { + com.google.cloud.modelarmor.v1beta.StreamingMode result = + com.google.cloud.modelarmor.v1beta.StreamingMode.forNumber(streamingMode_); + return result == null + ? com.google.cloud.modelarmor.v1beta.StreamingMode.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The streamingMode to set. + * @return This builder for chaining. + */ + public Builder setStreamingMode(com.google.cloud.modelarmor.v1beta.StreamingMode value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + streamingMode_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Streaming Mode for StreamSanitize* API.
            +     * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearStreamingMode() { + bitField0_ = (bitField0_ & ~0x00000008); + streamingMode_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest) } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequestOrBuilder.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequestOrBuilder.java index 0cfe0dbb8a58..8189bab9c67c 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequestOrBuilder.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SanitizeUserPromptRequestOrBuilder.java @@ -145,4 +145,49 @@ public interface SanitizeUserPromptRequestOrBuilder */ com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataOrBuilder getMultiLanguageDetectionMetadataOrBuilder(); + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the streamingMode field is set. + */ + boolean hasStreamingMode(); + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for streamingMode. + */ + int getStreamingModeValue(); + + /** + * + * + *
            +   * Optional. Streaming Mode for StreamSanitize* API.
            +   * 
            + * + * + * optional .google.cloud.modelarmor.v1beta.StreamingMode streaming_mode = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The streamingMode. + */ + com.google.cloud.modelarmor.v1beta.StreamingMode getStreamingMode(); } diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SdpFinding.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SdpFinding.java index b7f2ce6acb49..4e2ef9bf0eda 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SdpFinding.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/SdpFinding.java @@ -84,6 +84,7 @@ public interface SdpFindingLocationOrBuilder * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. *
            * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -100,6 +101,7 @@ public interface SdpFindingLocationOrBuilder * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. *
            * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -116,6 +118,7 @@ public interface SdpFindingLocationOrBuilder * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -129,6 +132,7 @@ public interface SdpFindingLocationOrBuilder * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -144,6 +148,7 @@ public interface SdpFindingLocationOrBuilder * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -159,6 +164,7 @@ public interface SdpFindingLocationOrBuilder * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -225,6 +231,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -244,6 +251,7 @@ public boolean hasByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -265,6 +273,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfo getByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -286,6 +295,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfoOrBuilder getByteRangeOrBuild * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -304,6 +314,7 @@ public boolean hasCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -324,6 +335,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfo getCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -724,6 +736,7 @@ public Builder mergeFrom( * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -742,6 +755,7 @@ public boolean hasByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -766,6 +780,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfo getByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -792,6 +807,7 @@ public Builder setByteRange(com.google.cloud.modelarmor.v1beta.RangeInfo value) * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -816,6 +832,7 @@ public Builder setByteRange( * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -847,6 +864,7 @@ public Builder mergeByteRange(com.google.cloud.modelarmor.v1beta.RangeInfo value * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -870,6 +888,7 @@ public Builder clearByteRange() { * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -888,6 +907,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfo.Builder getByteRangeBuilder( * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -910,6 +930,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfoOrBuilder getByteRangeOrBuild * These are relative to the finding's containing element. * Note that when the content is not textual, this references * the UTF-8 encoded textual representation of the content. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo byte_range = 1; @@ -945,6 +966,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfoOrBuilder getByteRangeOrBuild * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -962,6 +984,7 @@ public boolean hasCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -985,6 +1008,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfo getCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -1010,6 +1034,7 @@ public Builder setCodepointRange(com.google.cloud.modelarmor.v1beta.RangeInfo va * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -1033,6 +1058,7 @@ public Builder setCodepointRange( * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -1064,6 +1090,7 @@ public Builder mergeCodepointRange(com.google.cloud.modelarmor.v1beta.RangeInfo * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -1086,6 +1113,7 @@ public Builder clearCodepointRange() { * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -1103,6 +1131,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfo.Builder getCodepointRangeBui * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; @@ -1124,6 +1153,7 @@ public com.google.cloud.modelarmor.v1beta.RangeInfoOrBuilder getCodepointRangeOr * Unicode character offsets delimiting the finding. * These are relative to the finding's containing element. * Provided when the content is text. + * Note: Omitted if content is an image. * * * .google.cloud.modelarmor.v1beta.RangeInfo codepoint_range = 2; diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/StreamingMode.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/StreamingMode.java new file mode 100644 index 000000000000..4040f58613ac --- /dev/null +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/StreamingMode.java @@ -0,0 +1,191 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/modelarmor/v1beta/service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.modelarmor.v1beta; + +/** + * + * + *
            + * Streaming Mode for Sanitize* API.
            + * 
            + * + * Protobuf enum {@code google.cloud.modelarmor.v1beta.StreamingMode} + */ +@com.google.protobuf.Generated +public enum StreamingMode implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +   * Default value.
            +   * 
            + * + * STREAMING_MODE_UNSPECIFIED = 0; + */ + STREAMING_MODE_UNSPECIFIED(0), + /** + * + * + *
            +   * Buffered Streaming mode.
            +   * 
            + * + * STREAMING_MODE_BUFFERED = 1; + */ + STREAMING_MODE_BUFFERED(1), + /** + * + * + *
            +   * Real Time Streaming mode.
            +   * 
            + * + * STREAMING_MODE_REALTIME = 2; + */ + STREAMING_MODE_REALTIME(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StreamingMode"); + } + + /** + * + * + *
            +   * Default value.
            +   * 
            + * + * STREAMING_MODE_UNSPECIFIED = 0; + */ + public static final int STREAMING_MODE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +   * Buffered Streaming mode.
            +   * 
            + * + * STREAMING_MODE_BUFFERED = 1; + */ + public static final int STREAMING_MODE_BUFFERED_VALUE = 1; + + /** + * + * + *
            +   * Real Time Streaming mode.
            +   * 
            + * + * STREAMING_MODE_REALTIME = 2; + */ + public static final int STREAMING_MODE_REALTIME_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static StreamingMode valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static StreamingMode forNumber(int value) { + switch (value) { + case 0: + return STREAMING_MODE_UNSPECIFIED; + case 1: + return STREAMING_MODE_BUFFERED; + case 2: + return STREAMING_MODE_REALTIME; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public StreamingMode findValueByNumber(int number) { + return StreamingMode.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.modelarmor.v1beta.V1mainProto.getDescriptor().getEnumTypes().get(6); + } + + private static final StreamingMode[] VALUES = values(); + + public static StreamingMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private StreamingMode(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.modelarmor.v1beta.StreamingMode) +} diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/V1mainProto.java b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/V1mainProto.java index 7a4f88f18508..b65aa4c879bf 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/V1mainProto.java +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/java/com/google/cloud/modelarmor/v1beta/V1mainProto.java @@ -68,6 +68,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_modelarmor_v1beta_FloorSetting_FloorSettingMetadata_MultiLanguageDetection_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_modelarmor_v1beta_FloorSetting_FloorSettingMetadata_MultiLanguageDetection_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_modelarmor_v1beta_AiPlatformFloorSetting_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -294,7 +298,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\002 \001(\t:\0028\001:z\352Aw\n" + "\"modelarmor.googleapis.com/T" + "emplate\022or" - + "ganizations/{organization}/locations/{location}/floorSetting*\r" + + "\013AI_PLATFORM\020\001\022\025\n" + + "\021GOOGLE_MCP_SERVER\020\002:\363\001\352A\357\001\n" + + "&modelarmor.googleapis.com/FloorSetting\0224projects/{project}/" + + "locations/{location}/floorSetting\0222folders/{folder}/locations/{location}/floorSe" + + "tting\022>organizations/{organization}/locations/{location}/floorSetting*\r" + "floorSettings2\014floorSettingB#\n" + "!_enable_floor_setting_enforcementB\034\n" - + "\032_ai_platform_floor_setting\"\216\001\n" + + "\032_ai_platform_floor_settingB\"\n" + + " _google_mcp_server_floor_setting\"\240\001\n" + + "\025McpServerFloorSetting\022\033\n" + + "\014inspect_only\030\001 \001(\010B\003\340A\001H\000\022 \n" + + "\021inspect_and_block\030\002 \001(\010B\003\340A\001H\000\022!\n" + + "\024enable_cloud_logging\030\003 \001(\010B\003\340A\001\022\021\n" + + "\004apis\030\004 \003(\tB\003\340A\001B\022\n" + + "\020enforcement_type\"\216\001\n" + "\026AiPlatformFloorSetting\022\033\n" + "\014inspect_only\030\001 \001(\010B\003\340A\001H\000\022 \n" + "\021inspect_and_block\030\002 \001(\010B\003\340A\001H\000\022!\n" @@ -348,12 +363,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tB*\340A\002\372A$\022\"modelarmor.googleapis.com/Template\022\030\n" + "\013template_id\030\002 \001(\tB\003\340A\002\022?\n" + "\010template\030\003" - + " \001(\0132(.google.cloud.modelarmor.v1beta.TemplateB\003\340A\002\022\037\n\n" + + " \001(\0132(.google.cloud.modelarmor.v1beta.TemplateB\003\340A\002\022\037\n" + + "\n" + "request_id\030\004 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"\257\001\n" + "\025UpdateTemplateRequest\0224\n" + "\013update_mask\030\001 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\002\022?\n" - + "\010template\030\002 \001(\013" - + "2(.google.cloud.modelarmor.v1beta.TemplateB\003\340A\002\022\037\n\n" + + "\010template\030\002" + + " \001(\0132(.google.cloud.modelarmor.v1beta.TemplateB\003\340A\002\022\037\n\n" + "request_id\030\003 \001(\tB\013\340A\001\342\214\317\327\010\002\010\001\"r\n" + "\025DeleteTemplateRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" @@ -368,151 +384,158 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_mask\030\002" + " \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"\377\002\n" + "\014FilterConfig\022L\n" - + "\014rai_settings\030\001 \001(" - + "\01321.google.cloud.modelarmor.v1beta.RaiFilterSettingsB\003\340A\001\022L\n" - + "\014sdp_settings\030\002 \001(\0132" - + "1.google.cloud.modelarmor.v1beta.SdpFilterSettingsB\003\340A\001\022k\n" - + " pi_and_jailbreak_filter_settings\030\003 \001(\0132<.google.cloud.modelar" - + "mor.v1beta.PiAndJailbreakFilterSettingsB\003\340A\001\022f\n" - + "\035malicious_uri_filter_settings\030\004 " - + "\001(\0132:.google.cloud.modelarmor.v1beta.MaliciousUriFilterSettingsB\003\340A\001\"\351\002\n" + + "\014rai_settings\030\001" + + " \001(\01321.google.cloud.modelarmor.v1beta.RaiFilterSettingsB\003\340A\001\022L\n" + + "\014sdp_settings\030\002" + + " \001(\01321.google.cloud.modelarmor.v1beta.SdpFilterSettingsB\003\340A\001\022k\n" + + " pi_and_jailbreak_filter_settings\030\003 \001(\0132<.google.cloud" + + ".modelarmor.v1beta.PiAndJailbreakFilterSettingsB\003\340A\001\022f\n" + + "\035malicious_uri_filter_settings\030\004" + + " \001(\0132:.google.cloud.modelarmor.v1beta.MaliciousUriFilterSettingsB\003\340A\001\"\351\002\n" + "\034PiAndJailbreakFilterSettings\022}\n" - + "\022filter_enforcement\030\001 \001(\0162\\.google.cloud.modelarmor.v1be" - + "ta.PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcementB\003\340A\001\022W\n" - + "\020confidence_level\030\003" - + " \001(\01628.google.cloud.modelarmor.v1beta.DetectionConfidenceLevelB\003\340A\001\"q\n" + + "\022filter_enforcement\030\001 \001(\0162\\.google.cloud.modelar" + + "mor.v1beta.PiAndJailbreakFilterSettings.PiAndJailbreakFilterEnforcementB\003\340A\001\022W\n" + + "\020confidence_level\030\003 \001(\01628.google.cloud.mo" + + "delarmor.v1beta.DetectionConfidenceLevelB\003\340A\001\"q\n" + "\037PiAndJailbreakFilterEnforcement\0223\n" + "/PI_AND_JAILBREAK_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\205\002\n" + "\032MaliciousUriFilterSettings\022y\n" - + "\022filter_enforcement\030\001 \001(\0162X.google.cloud.modelarmor.v1" - + "beta.MaliciousUriFilterSettings.MaliciousUriFilterEnforcementB\003\340A\001\"l\n" + + "\022filter_enforcement\030\001 \001(\0162X.google.cloud.model" + + "armor.v1beta.MaliciousUriFilterSettings.MaliciousUriFilterEnforcementB\003\340A\001\"l\n" + "\035MaliciousUriFilterEnforcement\0220\n" + ",MALICIOUS_URI_FILTER_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"\232\002\n" + "\021RaiFilterSettings\022U\n" - + "\013rai_filters\030\001 \003(\0132;.google.cloud.model" - + "armor.v1beta.RaiFilterSettings.RaiFilterB\003\340A\002\032\255\001\n" + + "\013rai_filters\030\001 \003(\0132;.google.clo" + + "ud.modelarmor.v1beta.RaiFilterSettings.RaiFilterB\003\340A\002\032\255\001\n" + "\tRaiFilter\022G\n" - + "\013filter_type\030\001 \001(\016" - + "2-.google.cloud.modelarmor.v1beta.RaiFilterTypeB\003\340A\002\022W\n" - + "\020confidence_level\030\002 \001(\01628" - + ".google.cloud.modelarmor.v1beta.DetectionConfidenceLevelB\003\340A\001\"\310\001\n" + + "\013filter_type\030\001" + + " \001(\0162-.google.cloud.modelarmor.v1beta.RaiFilterTypeB\003\340A\002\022W\n" + + "\020confidence_level\030\002" + + " \001(\01628.google.cloud.modelarmor.v1beta.DetectionConfidenceLevelB\003\340A\001\"\310\001\n" + "\021SdpFilterSettings\022K\n" - + "\014basic_config\030\001 \001(\0132..google.cloud" - + ".modelarmor.v1beta.SdpBasicConfigB\003\340A\001H\000\022Q\n" - + "\017advanced_config\030\002 \001(\01321.google.cloud" - + ".modelarmor.v1beta.SdpAdvancedConfigB\003\340A\001H\000B\023\n" + + "\014basic_config\030\001 \001(\0132..goog" + + "le.cloud.modelarmor.v1beta.SdpBasicConfigB\003\340A\001H\000\022Q\n" + + "\017advanced_config\030\002 \001(\01321.goog" + + "le.cloud.modelarmor.v1beta.SdpAdvancedConfigB\003\340A\001H\000B\023\n" + "\021sdp_configuration\"\341\001\n" + "\016SdpBasicConfig\022i\n" - + "\022filter_enforcement\030\003 \001(\0162H.google" - + ".cloud.modelarmor.v1beta.SdpBasicConfig.SdpBasicConfigEnforcementB\003\340A\001\"d\n" + + "\022filter_enforcement\030\003 \001(\0162H.google.cloud.modelarmor.v1beta.SdpBasi" + + "cConfig.SdpBasicConfigEnforcementB\003\340A\001\"d\n" + "\031SdpBasicConfigEnforcement\022,\n" + "(SDP_BASIC_CONFIG_ENFORCEMENT_UNSPECIFIED\020\000\022\013\n" + "\007ENABLED\020\001\022\014\n" + "\010DISABLED\020\002\"T\n" + "\021SdpAdvancedConfig\022\035\n" + "\020inspect_template\030\001 \001(\tB\003\340A\001\022 \n" - + "\023deidentify_template\030\002 \001(\tB\003\340A\001\"\216\002\n" + + "\023deidentify_template\030\002 \001(\tB\003\340A\001\"\362\002\n" + "\031SanitizeUserPromptRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"modelarmor.googleapis.com/Template\022G\n" + "\020user_prompt_data\030\002" + " \001(\0132(.google.cloud.modelarmor.v1beta.DataItemB\003\340A\002\022n\n" - + "!multi_language_detection_metadata\030\006 \001(\0132>.google.cloud.mo" - + "delarmor.v1beta.MultiLanguageDetectionMetadataB\003\340A\001\"\256\002\n" + + "!multi_language_detection_metadata\030\006 \001(\0132>.google." + + "cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataB\003\340A\001\022O\n" + + "\016streaming_mode\030\007 " + + "\001(\0162-.google.cloud.modelarmor.v1beta.StreamingModeB\003\340A\001H\000\210\001\001B\021\n" + + "\017_streaming_mode\"\222\003\n" + "\034SanitizeModelResponseRequest\0228\n" + "\004name\030\001 \001(\tB*\340A\002\372A$\n" + "\"modelarmor.googleapis.com/Template\022J\n" - + "\023model_response_data\030\002" - + " \001(\0132(.google.cloud.modelarmor.v1beta.DataItemB\003\340A\002\022\030\n" + + "\023model_response_data\030\002 \001(\0132" + + "(.google.cloud.modelarmor.v1beta.DataItemB\003\340A\002\022\030\n" + "\013user_prompt\030\004 \001(\tB\003\340A\001\022n\n" - + "!multi_language_detection_metadata\030\007" - + " \001(\0132>.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataB\003\340A\001\"r\n" + + "!multi_language_detection_metadata\030\007 \001(\0132>.go" + + "ogle.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadataB\003\340A\001\022O\n" + + "\016streaming_mode\030\010" + + " \001(\0162-.google.cloud.modelarmor.v1beta.StreamingModeB\003\340A\001H\000\210\001\001B\021\n" + + "\017_streaming_mode\"r\n" + "\032SanitizeUserPromptResponse\022T\n" - + "\023sanitization_result\030\001" - + " \001(\01322.google.cloud.modelarmor.v1beta.SanitizationResultB\003\340A\003\"u\n" + + "\023sanitization_result\030\001 \001(\01322.google.cloud.m" + + "odelarmor.v1beta.SanitizationResultB\003\340A\003\"u\n" + "\035SanitizeModelResponseResponse\022T\n" - + "\023sanitization_result\030\001" - + " \001(\01322.google.cloud.modelarmor.v1beta.SanitizationResultB\003\340A\003\"\335\004\n" + + "\023sanitization_result\030\001 \001(\01322.google.cloud.mo" + + "delarmor.v1beta.SanitizationResultB\003\340A\003\"\335\004\n" + "\022SanitizationResult\022Q\n" - + "\022filter_match_state\030\001 \001" - + "(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022b\n" - + "\016filter_results\030\002 \003(" - + "\0132E.google.cloud.modelarmor.v1beta.SanitizationResult.FilterResultsEntryB\003\340A\003\022P\n" - + "\021invocation_result\030\004 \001(\01620.google.cloud." - + "modelarmor.v1beta.InvocationResultB\003\340A\003\022k\n" - + "\025sanitization_metadata\030\003 \001(\0132G.google." - + "cloud.modelarmor.v1beta.SanitizationResult.SanitizationMetadataB\003\340A\003\032m\n" + + "\022filter_match_state\030\001" + + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022b\n" + + "\016filter_results\030\002 \003(\0132E.google.cloud.modelarmor.v1be" + + "ta.SanitizationResult.FilterResultsEntryB\003\340A\003\022P\n" + + "\021invocation_result\030\004 \001(\01620.googl" + + "e.cloud.modelarmor.v1beta.InvocationResultB\003\340A\003\022k\n" + + "\025sanitization_metadata\030\003 \001(\0132G" + + ".google.cloud.modelarmor.v1beta.SanitizationResult.SanitizationMetadataB\003\340A\003\032m\n" + "\024SanitizationMetadata\022\022\n\n" + "error_code\030\001 \001(\003\022\025\n\r" + "error_message\030\002 \001(\t\022*\n" + "\"ignore_partial_invocation_failures\030\003 \001(\010\032b\n" + "\022FilterResultsEntry\022\013\n" + "\003key\030\001 \001(\t\022;\n" - + "\005value\030\002 \001(\0132,.google.c" - + "loud.modelarmor.v1beta.FilterResult:\0028\001\"l\n" + + "\005value\030\002 \001(\0132,." + + "google.cloud.modelarmor.v1beta.FilterResult:\0028\001\"l\n" + "\036MultiLanguageDetectionMetadata\022\034\n" + "\017source_language\030\001 \001(\tB\003\340A\001\022,\n" + "\037enable_multi_language_detection\030\002 \001(\010B\003\340A\001\"\264\004\n" + "\014FilterResult\022L\n" - + "\021rai_filter_result\030\001 \001(\0132/.goog" - + "le.cloud.modelarmor.v1beta.RaiFilterResultH\000\022L\n" - + "\021sdp_filter_result\030\002 \001(\0132/.google" - + ".cloud.modelarmor.v1beta.SdpFilterResultH\000\022d\n" - + "\036pi_and_jailbreak_filter_result\030\003 \001" - + "(\0132:.google.cloud.modelarmor.v1beta.PiAndJailbreakFilterResultH\000\022_\n" - + "\033malicious_uri_filter_result\030\004 \001(\01328.google.cloud.mod" - + "elarmor.v1beta.MaliciousUriFilterResultH\000\022U\n" - + "\031csam_filter_filter_result\030\005 \001(\01320.g" - + "oogle.cloud.modelarmor.v1beta.CsamFilterResultH\000\022Y\n" - + "\030virus_scan_filter_result\030\006 \001" - + "(\01325.google.cloud.modelarmor.v1beta.VirusScanFilterResultH\000B\017\n\r" + + "\021rai_filter_result\030\001 \001(" + + "\0132/.google.cloud.modelarmor.v1beta.RaiFilterResultH\000\022L\n" + + "\021sdp_filter_result\030\002 \001(\0132" + + "/.google.cloud.modelarmor.v1beta.SdpFilterResultH\000\022d\n" + + "\036pi_and_jailbreak_filter_result\030\003" + + " \001(\0132:.google.cloud.modelarmor.v1beta.PiAndJailbreakFilterResultH\000\022_\n" + + "\033malicious_uri_filter_result\030\004 \001(\01328.google.c" + + "loud.modelarmor.v1beta.MaliciousUriFilterResultH\000\022U\n" + + "\031csam_filter_filter_result\030\005" + + " \001(\01320.google.cloud.modelarmor.v1beta.CsamFilterResultH\000\022Y\n" + + "\030virus_scan_filter_result\030\006" + + " \001(\01325.google.cloud.modelarmor.v1beta.VirusScanFilterResultH\000B\017\n\r" + "filter_result\"\340\005\n" + "\017RaiFilterResult\022R\n" - + "\017execution_state\030\001 \001(" - + "\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001" + + " \001(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003 \001(\01620.google.c" - + "loud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022j\n" - + "\027rai_filter_type_results\030\004 \003(\0132I." - + "google.cloud.modelarmor.v1beta.RaiFilterResult.RaiFilterTypeResultsEntry\032\371\001\n" + + "\013match_state\030\003 \001(\01620." + + "google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022j\n" + + "\027rai_filter_type_results\030\004 \003(\0132I.google.cloud.modelarmor.v1beta.R" + + "aiFilterResult.RaiFilterTypeResultsEntry\032\371\001\n" + "\023RaiFilterTypeResult\022B\n" - + "\013filter_type\030\001 \001(\0162-." - + "google.cloud.modelarmor.v1beta.RaiFilterType\022R\n" - + "\020confidence_level\030\002 \001(\01628.google." - + "cloud.modelarmor.v1beta.DetectionConfidenceLevel\022J\n" - + "\013match_state\030\003 \001(\01620.google.c" - + "loud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\032\200\001\n" + + "\013filter_type\030\001" + + " \001(\0162-.google.cloud.modelarmor.v1beta.RaiFilterType\022R\n" + + "\020confidence_level\030\002 \001(\01628" + + ".google.cloud.modelarmor.v1beta.DetectionConfidenceLevel\022J\n" + + "\013match_state\030\003 \001(\01620." + + "google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\032\200\001\n" + "\031RaiFilterTypeResultsEntry\022\013\n" + "\003key\030\001 \001(\t\022R\n" - + "\005value\030\002 \001(\0132C.google.cloud.mo" - + "delarmor.v1beta.RaiFilterResult.RaiFilterTypeResult:\0028\001\"\271\001\n" + + "\005value\030\002 \001(\0132C.google." + + "cloud.modelarmor.v1beta.RaiFilterResult.RaiFilterTypeResult:\0028\001\"\271\001\n" + "\017SdpFilterResult\022J\n" - + "\016inspect_result\030\001" - + " \001(\01320.google.cloud.modelarmor.v1beta.SdpInspectResultH\000\022P\n" - + "\021deidentify_result\030\002" - + " \001(\01323.google.cloud.modelarmor.v1beta.SdpDeidentifyResultH\000B\010\n" + + "\016inspect_result\030\001 \001(\01320.google.clo" + + "ud.modelarmor.v1beta.SdpInspectResultH\000\022P\n" + + "\021deidentify_result\030\002 \001(\01323.google.clou" + + "d.modelarmor.v1beta.SdpDeidentifyResultH\000B\010\n" + "\006result\"\320\002\n" + "\020SdpInspectResult\022R\n" + "\017execution_state\030\001" + " \001(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003 \001(\01620." - + "google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022<\n" + + "\013match_state\030\003" + + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022<\n" + "\010findings\030\004 \003(\0132*.google.cloud.modelarmor.v1beta.SdpFinding\022\032\n" + "\022findings_truncated\030\005 \001(\010\"j\n" + "\010DataItem\022\016\n" + "\004text\030\001 \001(\tH\000\022A\n" - + "\tbyte_item\030\002" - + " \001(\0132,.google.cloud.modelarmor.v1beta.ByteDataItemH\000B\013\n" - + "\tdata_item\"\236\002\n" + + "\tbyte_item\030\002 \001(\0132,." + + "google.cloud.modelarmor.v1beta.ByteDataItemH\000B\013\n" + + "\tdata_item\"\300\002\n" + "\014ByteDataItem\022V\n" - + "\016byte_data_type\030\001" - + " \001(\01629.google.cloud.modelarmor.v1beta.ByteDataItem.ByteItemTypeB\003\340A\002\022\026\n" - + "\tbyte_data\030\002 \001(\014B\003\340A\002\"\235\001\n" + + "\016byte_data_type\030\001 \001(\01629.google.cloud.model" + + "armor.v1beta.ByteDataItem.ByteItemTypeB\003\340A\002\022\026\n" + + "\tbyte_data\030\002 \001(\014B\003\340A\002\022\027\n\n" + + "file_label\030\003 \001(\tB\003\340A\001\"\246\001\n" + "\014ByteItemType\022\036\n" + "\032BYTE_ITEM_TYPE_UNSPECIFIED\020\000\022\022\n" + "\016PLAINTEXT_UTF8\020\001\022\007\n" @@ -521,10 +544,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016EXCEL_DOCUMENT\020\004\022\027\n" + "\023POWERPOINT_DOCUMENT\020\005\022\007\n" + "\003TXT\020\006\022\007\n" - + "\003CSV\020\007\"\340\002\n" + + "\003CSV\020\007\022\007\n" + + "\003ZIP\020\t\"\340\002\n" + "\023SdpDeidentifyResult\022R\n" - + "\017execution_state\030\001 \001(\01624.google.cl" - + "oud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001 \001(\01624.google." + + "cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" + "\013match_state\030\003" + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\0226\n" @@ -533,41 +557,41 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "info_types\030\006 \003(\t\"\324\002\n\n" + "SdpFinding\022\021\n" + "\tinfo_type\030\001 \001(\t\022H\n\n" - + "likelihood\030\002 \001(\01624.google.cl" - + "oud.modelarmor.v1beta.SdpFindingLikelihood\022O\n" - + "\010location\030\003 \001(\0132=.google.cloud.mode" - + "larmor.v1beta.SdpFinding.SdpFindingLocation\032\227\001\n" + + "likelihood\030\002 \001(\01624.google." + + "cloud.modelarmor.v1beta.SdpFindingLikelihood\022O\n" + + "\010location\030\003 \001(\0132=.google.cloud.mo" + + "delarmor.v1beta.SdpFinding.SdpFindingLocation\032\227\001\n" + "\022SdpFindingLocation\022=\n\n" + "byte_range\030\001 \001(\0132).google.cloud.modelarmor.v1beta.RangeInfo\022B\n" - + "\017codepoint_range\030\002 \001(\0132).goo" - + "gle.cloud.modelarmor.v1beta.RangeInfo\"\324\002\n" + + "\017codepoint_range\030\002 \001(\0132).g" + + "oogle.cloud.modelarmor.v1beta.RangeInfo\"\324\002\n" + "\032PiAndJailbreakFilterResult\022R\n" + "\017execution_state\030\001" + " \001(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003 \001(" - + "\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022R\n" - + "\020confidence_level\030\005 \001" - + "(\01628.google.cloud.modelarmor.v1beta.DetectionConfidenceLevel\"\333\003\n" + + "\013match_state\030\003 " + + "\001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022R\n" + + "\020confidence_level\030\005" + + " \001(\01628.google.cloud.modelarmor.v1beta.DetectionConfidenceLevel\"\333\003\n" + "\030MaliciousUriFilterResult\022R\n" - + "\017execution_state\030\001 \001(\01624.goo" - + "gle.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001 \001(\01624.g" + + "oogle.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003" - + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022u\n" - + "\033malicious_uri_matched_items\030\004 \003(\0132P.goo" - + "gle.cloud.modelarmor.v1beta.MaliciousUriFilterResult.MaliciousUriMatchedItem\032d\n" + + "\013match_state\030\003 \001(\01620.google.cloud." + + "modelarmor.v1beta.FilterMatchStateB\003\340A\003\022u\n" + + "\033malicious_uri_matched_items\030\004 \003(\0132P.g" + + "oogle.cloud.modelarmor.v1beta.MaliciousUriFilterResult.MaliciousUriMatchedItem\032d\n" + "\027MaliciousUriMatchedItem\022\013\n" + "\003uri\030\001 \001(\t\022<\n" + "\tlocations\030\002 \003(\0132).google.cloud.modelarmor.v1beta.RangeInfo\"\264\004\n" + "\025VirusScanFilterResult\022R\n" - + "\017execution_state\030\001 \001(\01624.google.c" - + "loud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001 \001(\01624.google" + + ".cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" + "\013match_state\030\003" + " \001(\01620.google.cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\022f\n" - + "\024scanned_content_type\030\004 \001(\0162H.google.cloud.mo" - + "delarmor.v1beta.VirusScanFilterResult.ScannedContentType\022\031\n" + + "\024scanned_content_type\030\004 \001(\0162H.google.cloud." + + "modelarmor.v1beta.VirusScanFilterResult.ScannedContentType\022\031\n" + "\014scanned_size\030\005 \001(\003H\000\210\001\001\022B\n\r" + "virus_details\030\006 \003(\0132+.google.cloud.modelarmor.v1beta.VirusDetail\"_\n" + "\022ScannedContentType\022$\n" @@ -589,14 +613,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033POTENTIALLY_HARMFUL_CONTENT\020\004\022 \n" + "\034POTENTIALLY_UNWANTED_CONTENT\020\005\"\366\001\n" + "\020CsamFilterResult\022R\n" - + "\017execution_state\030\001 \001(" - + "\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + + "\017execution_state\030\001 " + + "\001(\01624.google.cloud.modelarmor.v1beta.FilterExecutionStateB\003\340A\003\022B\n\r" + "message_items\030\002 \003(\0132+.google.cloud.modelarmor.v1beta.MessageItem\022J\n" - + "\013match_state\030\003 \001(\01620.google.c" - + "loud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\"\274\001\n" + + "\013match_state\030\003 \001(\01620.google" + + ".cloud.modelarmor.v1beta.FilterMatchStateB\003\340A\003\"\274\001\n" + "\013MessageItem\022M\n" - + "\014message_type\030\001 \001" - + "(\01627.google.cloud.modelarmor.v1beta.MessageItem.MessageType\022\017\n" + + "\014message_type\030\001" + + " \001(\01627.google.cloud.modelarmor.v1beta.MessageItem.MessageType\022\017\n" + "\007message\030\002 \001(\t\"M\n" + "\013MessageType\022\034\n" + "\030MESSAGE_TYPE_UNSPECIFIED\020\000\022\010\n" @@ -619,8 +643,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "RaiFilterType\022\037\n" + "\033RAI_FILTER_TYPE_UNSPECIFIED\020\000\022\025\n" + "\021SEXUALLY_EXPLICIT\020\002\022\017\n" - + "\013HATE_SPEECH\020\003\022\016\n" - + "\n" + + "\013HATE_SPEECH\020\003\022\016\n\n" + "HARASSMENT\020\006\022\r\n" + "\tDANGEROUS\020\021*y\n" + "\030DetectionConfidenceLevel\022*\n" @@ -639,54 +662,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035INVOCATION_RESULT_UNSPECIFIED\020\000\022\013\n" + "\007SUCCESS\020\001\022\013\n" + "\007PARTIAL\020\002\022\013\n" - + "\007FAILURE\020\0032\274\021\n\n" + + "\007FAILURE\020\003*i\n\r" + + "StreamingMode\022\036\n" + + "\032STREAMING_MODE_UNSPECIFIED\020\000\022\033\n" + + "\027STREAMING_MODE_BUFFERED\020\001\022\033\n" + + "\027STREAMING_MODE_REALTIME\020\0022\371\023\n\n" + "ModelArmor\022\300\001\n\r" - + "ListTemplates\0224.google.cloud.modelarmor.v1beta.ListTemplatesRequest\0325.goog" - + "le.cloud.modelarmor.v1beta.ListTemplates" - + "Response\"B\332A\006parent\202\323\344\223\0023\0221/v1beta/{parent=projects/*/locations/*}/templates\022\255\001\n" - + "\013GetTemplate\0222.google.cloud.modelarmor.v" - + "1beta.GetTemplateRequest\032(.google.cloud." - + "modelarmor.v1beta.Template\"@\332A\004name\202\323\344\223\002" - + "3\0221/v1beta/{name=projects/*/locations/*/templates/*}\022\324\001\n" - + "\016CreateTemplate\0225.google.cloud.modelarmor.v1beta.CreateTemplateR" - + "equest\032(.google.cloud.modelarmor.v1beta." - + "Template\"a\332A\033parent,template,template_id" - + "\202\323\344\223\002=\"1/v1beta/{parent=projects/*/locations/*}/templates:\010template\022\326\001\n" - + "\016UpdateTemplate\0225.google.cloud.modelarmor.v1beta." - + "UpdateTemplateRequest\032(.google.cloud.mod" - + "elarmor.v1beta.Template\"c\332A\024template,upd" - + "ate_mask\202\323\344\223\002F2:/v1beta/{template.name=p" - + "rojects/*/locations/*/templates/*}:\010template\022\241\001\n" - + "\016DeleteTemplate\0225.google.cloud.modelarmor.v1beta.DeleteTemplateRequest\032\026" - + ".google.protobuf.Empty\"@\332A\004name\202\323\344\223\0023*1/" - + "v1beta/{name=projects/*/locations/*/templates/*}\022\254\002\n" - + "\017GetFloorSetting\0226.google.cloud.modelarmor.v1beta.GetFloorSettingReq" - + "uest\032,.google.cloud.modelarmor.v1beta.Fl" - + "oorSetting\"\262\001\332A\004name\202\323\344\223\002\244\001\0222/v1beta/{na" - + "me=projects/*/locations/*/floorSetting}Z3\0221/v1beta/{name=folders/*/locations/*/f" - + "loorSetting}Z9\0227/v1beta/{name=organizations/*/locations/*/floorSetting}\022\236\003\n" - + "\022UpdateFloorSetting\0229.google.cloud.modelarmor" - + ".v1beta.UpdateFloorSettingRequest\032,.google.cloud.modelarmor.v1beta.FloorSetting\"" - + "\236\002\332A\031floor_setting,update_mask\202\323\344\223\002\373\0012@/" - + "v1beta/{floor_setting.name=projects/*/locations/*/floorSetting}:\r" + + "ListTemplates\0224.google.cloud.modelarmor.v1bet" + + "a.ListTemplatesRequest\0325.google.cloud.mo" + + "delarmor.v1beta.ListTemplatesResponse\"B\332" + + "A\006parent\202\323\344\223\0023\0221/v1beta/{parent=projects/*/locations/*}/templates\022\255\001\n" + + "\013GetTemplate\0222.google.cloud.modelarmor.v1beta.GetTe" + + "mplateRequest\032(.google.cloud.modelarmor." + + "v1beta.Template\"@\332A\004name\202\323\344\223\0023\0221/v1beta/" + + "{name=projects/*/locations/*/templates/*}\022\324\001\n" + + "\016CreateTemplate\0225.google.cloud.modelarmor.v1beta.CreateTemplateRequest\032(.go" + + "ogle.cloud.modelarmor.v1beta.Template\"a\332" + + "A\033parent,template,template_id\202\323\344\223\002=\"1/v1" + + "beta/{parent=projects/*/locations/*}/templates:\010template\022\326\001\n" + + "\016UpdateTemplate\0225.google.cloud.modelarmor.v1beta.UpdateTempl" + + "ateRequest\032(.google.cloud.modelarmor.v1b" + + "eta.Template\"c\332A\024template,update_mask\202\323\344" + + "\223\002F2:/v1beta/{template.name=projects/*/locations/*/templates/*}:\010template\022\241\001\n" + + "\016DeleteTemplate\0225.google.cloud.modelarmor.v" + + "1beta.DeleteTemplateRequest\032\026.google.pro" + + "tobuf.Empty\"@\332A\004name\202\323\344\223\0023*1/v1beta/{nam" + + "e=projects/*/locations/*/templates/*}\022\254\002\n" + + "\017GetFloorSetting\0226.google.cloud.modelar" + + "mor.v1beta.GetFloorSettingRequest\032,.google.cloud.modelarmor.v1beta.FloorSetting\"" + + "\262\001\332A\004name\202\323\344\223\002\244\001\0222/v1beta/{name=projects" + + "/*/locations/*/floorSetting}Z3\0221/v1beta/{name=folders/*/locations/*/floorSetting" + + "}Z9\0227/v1beta/{name=organizations/*/locations/*/floorSetting}\022\236\003\n" + + "\022UpdateFloorSetting\0229.google.cloud.modelarmor.v1beta.Upd" + + "ateFloorSettingRequest\032,.google.cloud.mo" + + "delarmor.v1beta.FloorSetting\"\236\002\332A\031floor_" + + "setting,update_mask\202\323\344\223\002\373\0012@/v1beta/{flo" + + "or_setting.name=projects/*/locations/*/floorSetting}:\r" + "floor_settingZP2?/v1beta/{floor_setting.name=folders/*/locations/*/floorSetting}:\r" - + "floor_setting" - + "ZV2E/v1beta/{floor_setting.name=organizations/*/locations/*/floorSetting}:\r" + + "floor_settingZV2E/v1beta" + + "/{floor_setting.name=organizations/*/locations/*/floorSetting}:\r" + "floor_setting\022\334\001\n" - + "\022SanitizeUserPrompt\0229.google.cloud.modelarmor.v1beta.SanitizeUserPro" - + "mptRequest\032:.google.cloud.modelarmor.v1b" - + "eta.SanitizeUserPromptResponse\"O\202\323\344\223\002I\"D" - + "/v1beta/{name=projects/*/locations/*/templates/*}:sanitizeUserPrompt:\001*\022\350\001\n" - + "\025SanitizeModelResponse\022<.google.cloud.modelar" - + "mor.v1beta.SanitizeModelResponseRequest\032=.google.cloud.modelarmor.v1beta.Sanitiz" - + "eModelResponseResponse\"R\202\323\344\223\002L\"G/v1beta/" - + "{name=projects/*/locations/*/templates/*" - + "}:sanitizeModelResponse:\001*\032M\312A\031modelarmo" - + "r.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\271\001\n" - + "\"com.google.cloud.modelarmor.v1betaB\013V1mainProtoP\001Z" - + "Bcloud.google.com/go/modelarmor/apiv1bet" - + "a/modelarmorpb;modelarmorpb\252\002\036Google.Clo" - + "ud.ModelArmor.V1Beta\312\002\036Google\\Cloud\\ModelArmor\\V1betab\006proto3" + + "\022SanitizeUserPrompt\0229.google.cloud.mode" + + "larmor.v1beta.SanitizeUserPromptRequest\032:.google.cloud.modelarmor.v1beta.Sanitiz" + + "eUserPromptResponse\"O\202\323\344\223\002I\"D/v1beta/{na" + + "me=projects/*/locations/*/templates/*}:sanitizeUserPrompt:\001*\022\350\001\n" + + "\025SanitizeModelResponse\022<.google.cloud.modelarmor.v1beta." + + "SanitizeModelResponseRequest\032=.google.cloud.modelarmor.v1beta.SanitizeModelRespo" + + "nseResponse\"R\202\323\344\223\002L\"G/v1beta/{name=proje", + "cts/*/locations/*/templates/*}:sanitizeM" + + "odelResponse:\001*\022\227\001\n\030StreamSanitizeUserPr" + + "ompt\0229.google.cloud.modelarmor.v1beta.Sa" + + "nitizeUserPromptRequest\032:.google.cloud.m" + + "odelarmor.v1beta.SanitizeUserPromptRespo" + + "nse\"\000(\0010\001\022\240\001\n\033StreamSanitizeModelRespons" + + "e\022<.google.cloud.modelarmor.v1beta.Sanit" + + "izeModelResponseRequest\032=.google.cloud.m" + + "odelarmor.v1beta.SanitizeModelResponseRe" + + "sponse\"\000(\0010\001\032M\312A\031modelarmor.googleapis.c" + + "om\322A.https://www.googleapis.com/auth/clo" + + "ud-platformB\271\001\n\"com.google.cloud.modelar" + + "mor.v1betaB\013V1mainProtoP\001ZBcloud.google." + + "com/go/modelarmor/apiv1beta/modelarmorpb" + + ";modelarmorpb\252\002\036Google.Cloud.ModelArmor." + + "V1Beta\312\002\036Google\\Cloud\\ModelArmor\\V1betab" + + "\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -756,6 +795,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "IntegratedServices", "AiPlatformFloorSetting", "FloorSettingMetadata", + "GoogleMcpServerFloorSetting", }); internal_static_google_cloud_modelarmor_v1beta_FloorSetting_FloorSettingMetadata_descriptor = internal_static_google_cloud_modelarmor_v1beta_FloorSetting_descriptor.getNestedType(0); @@ -774,8 +814,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "EnableMultiLanguageDetection", }); - internal_static_google_cloud_modelarmor_v1beta_AiPlatformFloorSetting_descriptor = + internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_descriptor = getDescriptor().getMessageType(2); + internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_modelarmor_v1beta_McpServerFloorSetting_descriptor, + new java.lang.String[] { + "InspectOnly", "InspectAndBlock", "EnableCloudLogging", "Apis", "EnforcementType", + }); + internal_static_google_cloud_modelarmor_v1beta_AiPlatformFloorSetting_descriptor = + getDescriptor().getMessageType(3); internal_static_google_cloud_modelarmor_v1beta_AiPlatformFloorSetting_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_AiPlatformFloorSetting_descriptor, @@ -783,7 +831,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectOnly", "InspectAndBlock", "EnableCloudLogging", "EnforcementType", }); internal_static_google_cloud_modelarmor_v1beta_ListTemplatesRequest_descriptor = - getDescriptor().getMessageType(3); + getDescriptor().getMessageType(4); internal_static_google_cloud_modelarmor_v1beta_ListTemplatesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_ListTemplatesRequest_descriptor, @@ -791,7 +839,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", "Filter", "OrderBy", }); internal_static_google_cloud_modelarmor_v1beta_ListTemplatesResponse_descriptor = - getDescriptor().getMessageType(4); + getDescriptor().getMessageType(5); internal_static_google_cloud_modelarmor_v1beta_ListTemplatesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_ListTemplatesResponse_descriptor, @@ -799,7 +847,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Templates", "NextPageToken", "Unreachable", }); internal_static_google_cloud_modelarmor_v1beta_GetTemplateRequest_descriptor = - getDescriptor().getMessageType(5); + getDescriptor().getMessageType(6); internal_static_google_cloud_modelarmor_v1beta_GetTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_GetTemplateRequest_descriptor, @@ -807,7 +855,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_modelarmor_v1beta_CreateTemplateRequest_descriptor = - getDescriptor().getMessageType(6); + getDescriptor().getMessageType(7); internal_static_google_cloud_modelarmor_v1beta_CreateTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_CreateTemplateRequest_descriptor, @@ -815,7 +863,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "TemplateId", "Template", "RequestId", }); internal_static_google_cloud_modelarmor_v1beta_UpdateTemplateRequest_descriptor = - getDescriptor().getMessageType(7); + getDescriptor().getMessageType(8); internal_static_google_cloud_modelarmor_v1beta_UpdateTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_UpdateTemplateRequest_descriptor, @@ -823,7 +871,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "UpdateMask", "Template", "RequestId", }); internal_static_google_cloud_modelarmor_v1beta_DeleteTemplateRequest_descriptor = - getDescriptor().getMessageType(8); + getDescriptor().getMessageType(9); internal_static_google_cloud_modelarmor_v1beta_DeleteTemplateRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_DeleteTemplateRequest_descriptor, @@ -831,7 +879,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "RequestId", }); internal_static_google_cloud_modelarmor_v1beta_GetFloorSettingRequest_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_modelarmor_v1beta_GetFloorSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_GetFloorSettingRequest_descriptor, @@ -839,7 +887,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_cloud_modelarmor_v1beta_UpdateFloorSettingRequest_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_modelarmor_v1beta_UpdateFloorSettingRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_UpdateFloorSettingRequest_descriptor, @@ -847,7 +895,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FloorSetting", "UpdateMask", }); internal_static_google_cloud_modelarmor_v1beta_FilterConfig_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_modelarmor_v1beta_FilterConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_FilterConfig_descriptor, @@ -858,7 +906,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MaliciousUriFilterSettings", }); internal_static_google_cloud_modelarmor_v1beta_PiAndJailbreakFilterSettings_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_modelarmor_v1beta_PiAndJailbreakFilterSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_PiAndJailbreakFilterSettings_descriptor, @@ -866,7 +914,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FilterEnforcement", "ConfidenceLevel", }); internal_static_google_cloud_modelarmor_v1beta_MaliciousUriFilterSettings_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_modelarmor_v1beta_MaliciousUriFilterSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_MaliciousUriFilterSettings_descriptor, @@ -874,7 +922,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FilterEnforcement", }); internal_static_google_cloud_modelarmor_v1beta_RaiFilterSettings_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_modelarmor_v1beta_RaiFilterSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_RaiFilterSettings_descriptor, @@ -891,7 +939,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FilterType", "ConfidenceLevel", }); internal_static_google_cloud_modelarmor_v1beta_SdpFilterSettings_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_modelarmor_v1beta_SdpFilterSettings_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SdpFilterSettings_descriptor, @@ -899,7 +947,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BasicConfig", "AdvancedConfig", "SdpConfiguration", }); internal_static_google_cloud_modelarmor_v1beta_SdpBasicConfig_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_modelarmor_v1beta_SdpBasicConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SdpBasicConfig_descriptor, @@ -907,7 +955,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FilterEnforcement", }); internal_static_google_cloud_modelarmor_v1beta_SdpAdvancedConfig_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(18); internal_static_google_cloud_modelarmor_v1beta_SdpAdvancedConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SdpAdvancedConfig_descriptor, @@ -915,23 +963,27 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectTemplate", "DeidentifyTemplate", }); internal_static_google_cloud_modelarmor_v1beta_SanitizeUserPromptRequest_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(19); internal_static_google_cloud_modelarmor_v1beta_SanitizeUserPromptRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SanitizeUserPromptRequest_descriptor, new java.lang.String[] { - "Name", "UserPromptData", "MultiLanguageDetectionMetadata", + "Name", "UserPromptData", "MultiLanguageDetectionMetadata", "StreamingMode", }); internal_static_google_cloud_modelarmor_v1beta_SanitizeModelResponseRequest_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(20); internal_static_google_cloud_modelarmor_v1beta_SanitizeModelResponseRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SanitizeModelResponseRequest_descriptor, new java.lang.String[] { - "Name", "ModelResponseData", "UserPrompt", "MultiLanguageDetectionMetadata", + "Name", + "ModelResponseData", + "UserPrompt", + "MultiLanguageDetectionMetadata", + "StreamingMode", }); internal_static_google_cloud_modelarmor_v1beta_SanitizeUserPromptResponse_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(21); internal_static_google_cloud_modelarmor_v1beta_SanitizeUserPromptResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SanitizeUserPromptResponse_descriptor, @@ -939,7 +991,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SanitizationResult", }); internal_static_google_cloud_modelarmor_v1beta_SanitizeModelResponseResponse_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(22); internal_static_google_cloud_modelarmor_v1beta_SanitizeModelResponseResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SanitizeModelResponseResponse_descriptor, @@ -947,7 +999,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SanitizationResult", }); internal_static_google_cloud_modelarmor_v1beta_SanitizationResult_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(23); internal_static_google_cloud_modelarmor_v1beta_SanitizationResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SanitizationResult_descriptor, @@ -973,7 +1025,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_modelarmor_v1beta_MultiLanguageDetectionMetadata_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(24); internal_static_google_cloud_modelarmor_v1beta_MultiLanguageDetectionMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_MultiLanguageDetectionMetadata_descriptor, @@ -981,7 +1033,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceLanguage", "EnableMultiLanguageDetection", }); internal_static_google_cloud_modelarmor_v1beta_FilterResult_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(25); internal_static_google_cloud_modelarmor_v1beta_FilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_FilterResult_descriptor, @@ -995,7 +1047,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "FilterResult", }); internal_static_google_cloud_modelarmor_v1beta_RaiFilterResult_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(26); internal_static_google_cloud_modelarmor_v1beta_RaiFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_RaiFilterResult_descriptor, @@ -1019,7 +1071,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_modelarmor_v1beta_SdpFilterResult_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(27); internal_static_google_cloud_modelarmor_v1beta_SdpFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SdpFilterResult_descriptor, @@ -1027,7 +1079,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InspectResult", "DeidentifyResult", "Result", }); internal_static_google_cloud_modelarmor_v1beta_SdpInspectResult_descriptor = - getDescriptor().getMessageType(27); + getDescriptor().getMessageType(28); internal_static_google_cloud_modelarmor_v1beta_SdpInspectResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SdpInspectResult_descriptor, @@ -1035,7 +1087,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", "Findings", "FindingsTruncated", }); internal_static_google_cloud_modelarmor_v1beta_DataItem_descriptor = - getDescriptor().getMessageType(28); + getDescriptor().getMessageType(29); internal_static_google_cloud_modelarmor_v1beta_DataItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_DataItem_descriptor, @@ -1043,15 +1095,15 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Text", "ByteItem", "DataItem", }); internal_static_google_cloud_modelarmor_v1beta_ByteDataItem_descriptor = - getDescriptor().getMessageType(29); + getDescriptor().getMessageType(30); internal_static_google_cloud_modelarmor_v1beta_ByteDataItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_ByteDataItem_descriptor, new java.lang.String[] { - "ByteDataType", "ByteData", + "ByteDataType", "ByteData", "FileLabel", }); internal_static_google_cloud_modelarmor_v1beta_SdpDeidentifyResult_descriptor = - getDescriptor().getMessageType(30); + getDescriptor().getMessageType(31); internal_static_google_cloud_modelarmor_v1beta_SdpDeidentifyResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SdpDeidentifyResult_descriptor, @@ -1064,7 +1116,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "InfoTypes", }); internal_static_google_cloud_modelarmor_v1beta_SdpFinding_descriptor = - getDescriptor().getMessageType(31); + getDescriptor().getMessageType(32); internal_static_google_cloud_modelarmor_v1beta_SdpFinding_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_SdpFinding_descriptor, @@ -1080,7 +1132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ByteRange", "CodepointRange", }); internal_static_google_cloud_modelarmor_v1beta_PiAndJailbreakFilterResult_descriptor = - getDescriptor().getMessageType(32); + getDescriptor().getMessageType(33); internal_static_google_cloud_modelarmor_v1beta_PiAndJailbreakFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_PiAndJailbreakFilterResult_descriptor, @@ -1088,7 +1140,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", "ConfidenceLevel", }); internal_static_google_cloud_modelarmor_v1beta_MaliciousUriFilterResult_descriptor = - getDescriptor().getMessageType(33); + getDescriptor().getMessageType(34); internal_static_google_cloud_modelarmor_v1beta_MaliciousUriFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_MaliciousUriFilterResult_descriptor, @@ -1105,7 +1157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Uri", "Locations", }); internal_static_google_cloud_modelarmor_v1beta_VirusScanFilterResult_descriptor = - getDescriptor().getMessageType(34); + getDescriptor().getMessageType(35); internal_static_google_cloud_modelarmor_v1beta_VirusScanFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_VirusScanFilterResult_descriptor, @@ -1118,7 +1170,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "VirusDetails", }); internal_static_google_cloud_modelarmor_v1beta_VirusDetail_descriptor = - getDescriptor().getMessageType(35); + getDescriptor().getMessageType(36); internal_static_google_cloud_modelarmor_v1beta_VirusDetail_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_VirusDetail_descriptor, @@ -1126,7 +1178,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Vendor", "Names", "ThreatType", }); internal_static_google_cloud_modelarmor_v1beta_CsamFilterResult_descriptor = - getDescriptor().getMessageType(36); + getDescriptor().getMessageType(37); internal_static_google_cloud_modelarmor_v1beta_CsamFilterResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_CsamFilterResult_descriptor, @@ -1134,7 +1186,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ExecutionState", "MessageItems", "MatchState", }); internal_static_google_cloud_modelarmor_v1beta_MessageItem_descriptor = - getDescriptor().getMessageType(37); + getDescriptor().getMessageType(38); internal_static_google_cloud_modelarmor_v1beta_MessageItem_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_MessageItem_descriptor, @@ -1142,7 +1194,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MessageType", "Message", }); internal_static_google_cloud_modelarmor_v1beta_RangeInfo_descriptor = - getDescriptor().getMessageType(38); + getDescriptor().getMessageType(39); internal_static_google_cloud_modelarmor_v1beta_RangeInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_modelarmor_v1beta_RangeInfo_descriptor, diff --git a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/proto/google/cloud/modelarmor/v1beta/service.proto b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/proto/google/cloud/modelarmor/v1beta/service.proto index 4b0ab97abf0e..5984fad510d9 100644 --- a/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/proto/google/cloud/modelarmor/v1beta/service.proto +++ b/java-modelarmor/proto-google-cloud-modelarmor-v1beta/src/main/proto/google/cloud/modelarmor/v1beta/service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -128,6 +128,14 @@ service ModelArmor { body: "*" }; } + + // Streaming version of Sanitize User Prompt. + rpc StreamSanitizeUserPrompt(stream SanitizeUserPromptRequest) + returns (stream SanitizeUserPromptResponse) {} + + // Streaming version of Sanitizes Model Response. + rpc StreamSanitizeModelResponse(stream SanitizeModelResponseRequest) + returns (stream SanitizeModelResponseResponse) {} } // Option to specify filter match state. @@ -228,6 +236,18 @@ enum InvocationResult { FAILURE = 3; } +// Streaming Mode for Sanitize* API. +enum StreamingMode { + // Default value. + STREAMING_MODE_UNSPECIFIED = 0; + + // Buffered Streaming mode. + STREAMING_MODE_BUFFERED = 1; + + // Real Time Streaming mode. + STREAMING_MODE_REALTIME = 2; +} + // Message describing Template resource message Template { option (google.api.resource) = { @@ -354,6 +374,9 @@ message FloorSetting { // AI Platform. AI_PLATFORM = 1; + + // Google MCP Server (via Shim Service Extension) + GOOGLE_MCP_SERVER = 2; } // Identifier. The resource name. @@ -386,6 +409,33 @@ message FloorSetting { // Optional. Metadata for FloorSetting FloorSettingMetadata floor_setting_metadata = 8 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Google MCP Server floor setting. + optional McpServerFloorSetting google_mcp_server_floor_setting = 9 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Message describing MCP Server Floor Setting. +message McpServerFloorSetting { + // enforcement type for Model Armor filters. + oneof enforcement_type { + // Optional. If true, Model Armor filters will be run in inspect only mode. + // No action will be taken on the request. + bool inspect_only = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If true, Model Armor filters will be run in inspect and block + // mode. Requests that trip Model Armor filters will be blocked. + bool inspect_and_block = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Optional. If true, log Model Armor filter results to Cloud Logging. + bool enable_cloud_logging = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. List of MCP servers for which the MCP floor setting is + // applicable. Examples: "bigquery.googleapis.com/mcp", + // "run.googleapis.com/mcp" Empty list denotes that the floor setting is + // applicable to all MCP servers. + repeated string apis = 4 [(google.api.field_behavior) = OPTIONAL]; } // message describing AiPlatformFloorSetting @@ -604,7 +654,7 @@ message PiAndJailbreakFilterSettings { // Enabled ENABLED = 1; - // Enabled + // Disabled DISABLED = 2; } @@ -745,6 +795,10 @@ message SanitizeUserPromptRequest { // Optional. Metadata related to Multi Language Detection. MultiLanguageDetectionMetadata multi_language_detection_metadata = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Streaming Mode for StreamSanitize* API. + optional StreamingMode streaming_mode = 7 + [(google.api.field_behavior) = OPTIONAL]; } // Sanitize Model Response request. @@ -767,6 +821,10 @@ message SanitizeModelResponseRequest { // Optional. Metadata related for multi language detection. MultiLanguageDetectionMetadata multi_language_detection_metadata = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Streaming Mode for StreamSanitize* API. + optional StreamingMode streaming_mode = 8 + [(google.api.field_behavior) = OPTIONAL]; } // Sanitized User Prompt Response. @@ -830,8 +888,18 @@ message SanitizationResult { message MultiLanguageDetectionMetadata { // Optional. Optional Source language of the user prompt. // - // If multi-language detection is enabled but language is not set in that case - // we would automatically detect the source language. + // If multi-language detection is enabled and this field is not set, the + // source language will be automatically detected. When a source language is + // provided, Model Armor uses it to sanitize the input. In that case the + // system does not perform auto-detection and relies solely on the specified + // language. + // + // This string field accepts a language code from the ISO-639 standard. + // For a list of languages supported by Model Armor, see + // [Model Armor supported languages] + // (https://cloud.google.com/security-command-center/docs/model-armor-overview#languages-supported). + // For a comprehensive list of language codes, see + // [ISO-639](https://cloud.google.com/translate/docs/languages#nmt). string source_language = 1 [(google.api.field_behavior) = OPTIONAL]; // Optional. Enable detection of multi-language prompts and responses. @@ -897,7 +965,8 @@ message RaiFilterResult { FilterMatchState match_state = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // The map of RAI filter results where key is RAI filter type - either of - // "sexually_explicit", "hate_speech", "harassment", "dangerous". + // "sexually_explicit", "hate_speech", "harassment", "dangerous", "violence", + // "sexually_suggestive". map rai_filter_type_results = 4; } @@ -982,6 +1051,9 @@ message ByteDataItem { // CSV CSV = 7; + + // ZIP + ZIP = 9; } // Required. The type of byte data @@ -989,6 +1061,10 @@ message ByteDataItem { // Required. Bytes Data bytes byte_data = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Label of the file. This is used to identify the file in the + // response. + string file_label = 3 [(google.api.field_behavior) = OPTIONAL]; } // Sensitive Data Protection Deidentification Result. @@ -1026,11 +1102,13 @@ message SdpFinding { // These are relative to the finding's containing element. // Note that when the content is not textual, this references // the UTF-8 encoded textual representation of the content. + // Note: Omitted if content is an image. RangeInfo byte_range = 1; // Unicode character offsets delimiting the finding. // These are relative to the finding's containing element. // Provided when the content is text. + // Note: Omitted if content is an image. RangeInfo codepoint_range = 2; } diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizemodelresponse/AsyncSanitizeModelResponse.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizemodelresponse/AsyncSanitizeModelResponse.java index 48e186125222..88bc5f0b4a97 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizemodelresponse/AsyncSanitizeModelResponse.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizemodelresponse/AsyncSanitizeModelResponse.java @@ -23,6 +23,7 @@ import com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest; import com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse; +import com.google.cloud.modelarmor.v1beta.StreamingMode; import com.google.cloud.modelarmor.v1beta.TemplateName; public class AsyncSanitizeModelResponse { @@ -45,6 +46,7 @@ public static void asyncSanitizeModelResponse() throws Exception { .setUserPrompt("userPrompt1504308495") .setMultiLanguageDetectionMetadata( MultiLanguageDetectionMetadata.newBuilder().build()) + .setStreamingMode(StreamingMode.forNumber(0)) .build(); ApiFuture future = modelArmorClient.sanitizeModelResponseCallable().futureCall(request); diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizemodelresponse/SyncSanitizeModelResponse.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizemodelresponse/SyncSanitizeModelResponse.java index 3fd073eb3c4a..e5f8696537c4 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizemodelresponse/SyncSanitizeModelResponse.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizemodelresponse/SyncSanitizeModelResponse.java @@ -22,6 +22,7 @@ import com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest; import com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse; +import com.google.cloud.modelarmor.v1beta.StreamingMode; import com.google.cloud.modelarmor.v1beta.TemplateName; public class SyncSanitizeModelResponse { @@ -44,6 +45,7 @@ public static void syncSanitizeModelResponse() throws Exception { .setUserPrompt("userPrompt1504308495") .setMultiLanguageDetectionMetadata( MultiLanguageDetectionMetadata.newBuilder().build()) + .setStreamingMode(StreamingMode.forNumber(0)) .build(); SanitizeModelResponseResponse response = modelArmorClient.sanitizeModelResponse(request); } diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java index 9297007adf87..2c97e18fcd59 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/AsyncSanitizeUserPrompt.java @@ -23,6 +23,7 @@ import com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest; import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse; +import com.google.cloud.modelarmor.v1beta.StreamingMode; import com.google.cloud.modelarmor.v1beta.TemplateName; public class AsyncSanitizeUserPrompt { @@ -44,6 +45,7 @@ public static void asyncSanitizeUserPrompt() throws Exception { .setUserPromptData(DataItem.newBuilder().build()) .setMultiLanguageDetectionMetadata( MultiLanguageDetectionMetadata.newBuilder().build()) + .setStreamingMode(StreamingMode.forNumber(0)) .build(); ApiFuture future = modelArmorClient.sanitizeUserPromptCallable().futureCall(request); diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java index ff88659d707e..c694b4db0b00 100644 --- a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/sanitizeuserprompt/SyncSanitizeUserPrompt.java @@ -22,6 +22,7 @@ import com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata; import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest; import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse; +import com.google.cloud.modelarmor.v1beta.StreamingMode; import com.google.cloud.modelarmor.v1beta.TemplateName; public class SyncSanitizeUserPrompt { @@ -43,6 +44,7 @@ public static void syncSanitizeUserPrompt() throws Exception { .setUserPromptData(DataItem.newBuilder().build()) .setMultiLanguageDetectionMetadata( MultiLanguageDetectionMetadata.newBuilder().build()) + .setStreamingMode(StreamingMode.forNumber(0)) .build(); SanitizeUserPromptResponse response = modelArmorClient.sanitizeUserPrompt(request); } diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/streamsanitizemodelresponse/AsyncStreamSanitizeModelResponse.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/streamsanitizemodelresponse/AsyncStreamSanitizeModelResponse.java new file mode 100644 index 000000000000..225bca612fb0 --- /dev/null +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/streamsanitizemodelresponse/AsyncStreamSanitizeModelResponse.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.modelarmor.v1beta.samples; + +// [START modelarmor_v1beta_generated_ModelArmor_StreamSanitizeModelResponse_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.modelarmor.v1beta.DataItem; +import com.google.cloud.modelarmor.v1beta.ModelArmorClient; +import com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata; +import com.google.cloud.modelarmor.v1beta.SanitizeModelResponseRequest; +import com.google.cloud.modelarmor.v1beta.SanitizeModelResponseResponse; +import com.google.cloud.modelarmor.v1beta.StreamingMode; +import com.google.cloud.modelarmor.v1beta.TemplateName; + +public class AsyncStreamSanitizeModelResponse { + + public static void main(String[] args) throws Exception { + asyncStreamSanitizeModelResponse(); + } + + public static void asyncStreamSanitizeModelResponse() 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 (ModelArmorClient modelArmorClient = ModelArmorClient.create()) { + BidiStream bidiStream = + modelArmorClient.streamSanitizeModelResponseCallable().call(); + SanitizeModelResponseRequest request = + SanitizeModelResponseRequest.newBuilder() + .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) + .setModelResponseData(DataItem.newBuilder().build()) + .setUserPrompt("userPrompt1504308495") + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) + .setStreamingMode(StreamingMode.forNumber(0)) + .build(); + bidiStream.send(request); + for (SanitizeModelResponseResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END modelarmor_v1beta_generated_ModelArmor_StreamSanitizeModelResponse_async] diff --git a/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/streamsanitizeuserprompt/AsyncStreamSanitizeUserPrompt.java b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/streamsanitizeuserprompt/AsyncStreamSanitizeUserPrompt.java new file mode 100644 index 000000000000..a25546ee358c --- /dev/null +++ b/java-modelarmor/samples/snippets/generated/com/google/cloud/modelarmor/v1beta/modelarmor/streamsanitizeuserprompt/AsyncStreamSanitizeUserPrompt.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.modelarmor.v1beta.samples; + +// [START modelarmor_v1beta_generated_ModelArmor_StreamSanitizeUserPrompt_async] +import com.google.api.gax.rpc.BidiStream; +import com.google.cloud.modelarmor.v1beta.DataItem; +import com.google.cloud.modelarmor.v1beta.ModelArmorClient; +import com.google.cloud.modelarmor.v1beta.MultiLanguageDetectionMetadata; +import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptRequest; +import com.google.cloud.modelarmor.v1beta.SanitizeUserPromptResponse; +import com.google.cloud.modelarmor.v1beta.StreamingMode; +import com.google.cloud.modelarmor.v1beta.TemplateName; + +public class AsyncStreamSanitizeUserPrompt { + + public static void main(String[] args) throws Exception { + asyncStreamSanitizeUserPrompt(); + } + + public static void asyncStreamSanitizeUserPrompt() 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 (ModelArmorClient modelArmorClient = ModelArmorClient.create()) { + BidiStream bidiStream = + modelArmorClient.streamSanitizeUserPromptCallable().call(); + SanitizeUserPromptRequest request = + SanitizeUserPromptRequest.newBuilder() + .setName(TemplateName.of("[PROJECT]", "[LOCATION]", "[TEMPLATE]").toString()) + .setUserPromptData(DataItem.newBuilder().build()) + .setMultiLanguageDetectionMetadata( + MultiLanguageDetectionMetadata.newBuilder().build()) + .setStreamingMode(StreamingMode.forNumber(0)) + .build(); + bidiStream.send(request); + for (SanitizeUserPromptResponse response : bidiStream) { + // Do something when a response is received. + } + } + } +} +// [END modelarmor_v1beta_generated_ModelArmor_StreamSanitizeUserPrompt_async] From bd65a41c0a51e51940a846a608639110be6e7a09 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 21 Apr 2026 03:01:12 +0000 Subject: [PATCH 09/19] chore: Update generation configuration at Tue Apr 21 03:01:04 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 2b7e42ccd812..09b7688a345d 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,5 +1,5 @@ gapic_generator_version: 2.71.0 -googleapis_commitish: 16b4737e7b870914e0c384b87f0e50ed388aa225 +googleapis_commitish: a78b5838b801428bfe5b85758727a46d830b7f39 libraries_bom_version: 26.80.0 libraries: - api_shortname: accessapproval From 70e2571bdb05cdac28bd591d5489b9e72224ffa4 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Tue, 21 Apr 2026 04:38:01 +0000 Subject: [PATCH 10/19] chore: generate libraries at Tue Apr 21 03:03:54 UTC 2026 --- ...ReasoningEngineExecutionServiceClient.java | 142 +++ ...asoningEngineExecutionServiceSettings.java | 60 + .../aiplatform/v1beta1/gapic_metadata.json | 3 + ...pcReasoningEngineExecutionServiceStub.java | 62 + .../ReasoningEngineExecutionServiceStub.java | 24 + ...ingEngineExecutionServiceStubSettings.java | 122 ++ .../reflect-config.json | 54 + ...ckReasoningEngineExecutionServiceImpl.java | 23 + ...oningEngineExecutionServiceClientTest.java | 64 ++ .../ReasoningEngineExecutionServiceGrpc.java | 137 +++ ...QueryReasoningEngineOperationMetadata.java | 741 ++++++++++++ ...oningEngineOperationMetadataOrBuilder.java | 66 ++ .../AsyncQueryReasoningEngineRequest.java | 1017 +++++++++++++++++ ...cQueryReasoningEngineRequestOrBuilder.java | 114 ++ .../AsyncQueryReasoningEngineResponse.java | 611 ++++++++++ ...QueryReasoningEngineResponseOrBuilder.java | 54 + .../ReasoningEngineExecutionServiceProto.java | 130 ++- .../reasoning_engine_execution_service.proto | 55 +- .../AsyncAsyncQueryReasoningEngine.java | 57 + .../AsyncAsyncQueryReasoningEngineLRO.java | 59 + .../SyncAsyncQueryReasoningEngine.java | 52 + .../SyncAsyncQueryReasoningEngine.java | 54 + .../SyncAsyncQueryReasoningEngine.java | 55 + .../google/cloud/netapp/v1/NetAppClient.java | 18 +- .../reflect-config.json | 27 + .../netapp/v1/NetAppClientHttpJsonTest.java | 17 + .../cloud/netapp/v1/NetAppClientTest.java | 13 + .../google/cloud/netapp/v1/CommonProto.java | 14 +- .../netapp/v1/HybridReplicationSchedule.java | 2 +- .../cloud/netapp/v1/LargeCapacityConfig.java | 510 +++++++++ .../v1/LargeCapacityConfigOrBuilder.java | 42 + .../com/google/cloud/netapp/v1/OsType.java | 2 +- .../com/google/cloud/netapp/v1/QosType.java | 2 +- .../com/google/cloud/netapp/v1/ScaleType.java | 195 ++++ .../google/cloud/netapp/v1/StoragePool.java | 176 +++ .../cloud/netapp/v1/StoragePoolOrBuilder.java | 32 + .../cloud/netapp/v1/StoragePoolProto.java | 23 +- .../com/google/cloud/netapp/v1/Volume.java | 396 ++++++- .../cloud/netapp/v1/VolumeOrBuilder.java | 59 +- .../google/cloud/netapp/v1/VolumeProto.java | 127 +- .../proto/google/cloud/netapp/v1/common.proto | 14 + .../google/cloud/netapp/v1/storage_pool.proto | 4 + .../proto/google/cloud/netapp/v1/volume.proto | 21 +- .../products/v1/ProductAttributes.java | 373 +++++- .../v1/ProductAttributesOrBuilder.java | 80 +- .../products/v1/ProductInstallment.java | 145 +++ .../v1/ProductInstallmentOrBuilder.java | 28 + .../products/v1/ProductsCommonProto.java | 114 +- .../products/v1/products_common.proto | 14 +- 49 files changed, 5981 insertions(+), 223 deletions(-) create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponse.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponseOrBuilder.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java create mode 100644 java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfig.java create mode 100644 java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfigOrBuilder.java create mode 100644 java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ScaleType.java diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java index 4146136de493..8fc7bbe82bba 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClient.java @@ -21,9 +21,11 @@ import com.google.api.core.ApiFutures; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; import com.google.api.gax.paging.AbstractFixedSizeCollection; import com.google.api.gax.paging.AbstractPage; import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; @@ -39,6 +41,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -108,6 +112,21 @@ * * * + *

            AsyncQueryReasoningEngine + *

            Async query using a reasoning engine. + * + *

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

            + *
              + *
            • asyncQueryReasoningEngineAsync(AsyncQueryReasoningEngineRequest request) + *

            + *

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

            + *
              + *
            • asyncQueryReasoningEngineOperationCallable() + *

            • asyncQueryReasoningEngineCallable() + *

            + * + * + * *

            ListLocations *

            Lists information about the supported locations for this service. * @@ -228,6 +247,7 @@ public class ReasoningEngineExecutionServiceClient implements BackgroundResource { private final ReasoningEngineExecutionServiceSettings settings; private final ReasoningEngineExecutionServiceStub stub; + private final OperationsClient operationsClient; /** Constructs an instance of ReasoningEngineExecutionServiceClient with default settings. */ public static final ReasoningEngineExecutionServiceClient create() throws IOException { @@ -264,11 +284,13 @@ protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceS this.settings = settings; this.stub = ((ReasoningEngineExecutionServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } protected ReasoningEngineExecutionServiceClient(ReasoningEngineExecutionServiceStub stub) { this.settings = null; this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); } public final ReasoningEngineExecutionServiceSettings getSettings() { @@ -279,6 +301,14 @@ public ReasoningEngineExecutionServiceStub getStub() { return stub; } + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Queries using a reasoning engine. @@ -383,6 +413,118 @@ public final QueryReasoningEngineResponse queryReasoningEngine( return stub.streamQueryReasoningEngineCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

            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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
            +   *     ReasoningEngineExecutionServiceClient.create()) {
            +   *   AsyncQueryReasoningEngineRequest request =
            +   *       AsyncQueryReasoningEngineRequest.newBuilder()
            +   *           .setName(
            +   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
            +   *                   .toString())
            +   *           .setInputGcsUri("inputGcsUri-665217217")
            +   *           .setOutputGcsUri("outputGcsUri-489598154")
            +   *           .build();
            +   *   AsyncQueryReasoningEngineResponse response =
            +   *       reasoningEngineExecutionServiceClient.asyncQueryReasoningEngineAsync(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< + AsyncQueryReasoningEngineResponse, AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineAsync(AsyncQueryReasoningEngineRequest request) { + return asyncQueryReasoningEngineOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

            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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
            +   *     ReasoningEngineExecutionServiceClient.create()) {
            +   *   AsyncQueryReasoningEngineRequest request =
            +   *       AsyncQueryReasoningEngineRequest.newBuilder()
            +   *           .setName(
            +   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
            +   *                   .toString())
            +   *           .setInputGcsUri("inputGcsUri-665217217")
            +   *           .setOutputGcsUri("outputGcsUri-489598154")
            +   *           .build();
            +   *   OperationFuture
            +   *       future =
            +   *           reasoningEngineExecutionServiceClient
            +   *               .asyncQueryReasoningEngineOperationCallable()
            +   *               .futureCall(request);
            +   *   // Do something.
            +   *   AsyncQueryReasoningEngineResponse response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + return stub.asyncQueryReasoningEngineOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Async query using a reasoning engine. + * + *

            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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient =
            +   *     ReasoningEngineExecutionServiceClient.create()) {
            +   *   AsyncQueryReasoningEngineRequest request =
            +   *       AsyncQueryReasoningEngineRequest.newBuilder()
            +   *           .setName(
            +   *               ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]")
            +   *                   .toString())
            +   *           .setInputGcsUri("inputGcsUri-665217217")
            +   *           .setOutputGcsUri("outputGcsUri-489598154")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       reasoningEngineExecutionServiceClient
            +   *           .asyncQueryReasoningEngineCallable()
            +   *           .futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + asyncQueryReasoningEngineCallable() { + return stub.asyncQueryReasoningEngineCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java index 2da603b90ea8..59c914a792bb 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceSettings.java @@ -27,6 +27,7 @@ import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.ServerStreamingCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; @@ -41,6 +42,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import java.io.IOException; import java.util.List; import javax.annotation.Generated; @@ -95,6 +97,32 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncQueryReasoningEngine: + * + *

            {@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
            + * ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder =
            + *     ReasoningEngineExecutionServiceSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * reasoningEngineExecutionServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            */ @BetaApi @Generated("by gapic-generator-java") @@ -115,6 +143,23 @@ public class ReasoningEngineExecutionServiceSettings .streamQueryReasoningEngineSettings(); } + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings + asyncQueryReasoningEngineSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .asyncQueryReasoningEngineSettings(); + } + + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return ((ReasoningEngineExecutionServiceStubSettings) getStubSettings()) + .asyncQueryReasoningEngineOperationSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -253,6 +298,21 @@ public Builder applyToAllUnaryMethods( return getStubSettingsBuilder().streamQueryReasoningEngineSettings(); } + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings() { + return getStubSettingsBuilder().asyncQueryReasoningEngineSettings(); + } + + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return getStubSettingsBuilder().asyncQueryReasoningEngineOperationSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index f026fac0413f..075dac119dc8 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -1636,6 +1636,9 @@ "grpc": { "libraryClient": "ReasoningEngineExecutionServiceClient", "rpcs": { + "AsyncQueryReasoningEngine": { + "methods": ["asyncQueryReasoningEngineAsync", "asyncQueryReasoningEngineOperationCallable", "asyncQueryReasoningEngineCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java index bb454141d4d5..c97af79e31a3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcReasoningEngineExecutionServiceStub.java @@ -25,9 +25,13 @@ import com.google.api.gax.grpc.GrpcCallSettings; import com.google.api.gax.grpc.GrpcStubCallableFactory; import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.RequestParamsBuilder; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; @@ -40,6 +44,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.longrunning.stub.GrpcOperationsStub; import io.grpc.MethodDescriptor; import io.grpc.protobuf.ProtoUtils; @@ -81,6 +86,18 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor + asyncQueryReasoningEngineMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService/AsyncQueryReasoningEngine") + .setRequestMarshaller( + ProtoUtils.marshaller(AsyncQueryReasoningEngineRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -136,6 +153,13 @@ public class GrpcReasoningEngineExecutionServiceStub extends ReasoningEngineExec queryReasoningEngineCallable; private final ServerStreamingCallable streamQueryReasoningEngineCallable; + private final UnaryCallable + asyncQueryReasoningEngineCallable; + private final OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -216,6 +240,18 @@ protected GrpcReasoningEngineExecutionServiceStub( }) .setResourceNameExtractor(request -> request.getName()) .build(); + GrpcCallSettings + asyncQueryReasoningEngineTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(asyncQueryReasoningEngineMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -281,6 +317,17 @@ protected GrpcReasoningEngineExecutionServiceStub( streamQueryReasoningEngineTransportSettings, settings.streamQueryReasoningEngineSettings(), clientContext); + this.asyncQueryReasoningEngineCallable = + callableFactory.createUnaryCallable( + asyncQueryReasoningEngineTransportSettings, + settings.asyncQueryReasoningEngineSettings(), + clientContext); + this.asyncQueryReasoningEngineOperationCallable = + callableFactory.createOperationCallable( + asyncQueryReasoningEngineTransportSettings, + settings.asyncQueryReasoningEngineOperationSettings(), + clientContext, + operationsStub); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -322,6 +369,21 @@ public GrpcOperationsStub getOperationsStub() { return streamQueryReasoningEngineCallable; } + @Override + public UnaryCallable + asyncQueryReasoningEngineCallable() { + return asyncQueryReasoningEngineCallable; + } + + @Override + public OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + return asyncQueryReasoningEngineOperationCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java index 880fa1da9228..fdef35b7810b 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStub.java @@ -21,8 +21,12 @@ import com.google.api.HttpBody; import com.google.api.core.BetaApi; import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; import com.google.api.gax.rpc.ServerStreamingCallable; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; @@ -35,6 +39,8 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; import javax.annotation.Generated; // AUTO-GENERATED DOCUMENTATION AND CLASS. @@ -47,6 +53,10 @@ @Generated("by gapic-generator-java") public abstract class ReasoningEngineExecutionServiceStub implements BackgroundResource { + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + public UnaryCallable queryReasoningEngineCallable() { throw new UnsupportedOperationException("Not implemented: queryReasoningEngineCallable()"); @@ -58,6 +68,20 @@ public abstract class ReasoningEngineExecutionServiceStub implements BackgroundR "Not implemented: streamQueryReasoningEngineCallable()"); } + public OperationCallable< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: asyncQueryReasoningEngineOperationCallable()"); + } + + public UnaryCallable + asyncQueryReasoningEngineCallable() { + throw new UnsupportedOperationException("Not implemented: asyncQueryReasoningEngineCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java index 83a8d0f469f1..530af74bc990 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/ReasoningEngineExecutionServiceStubSettings.java @@ -29,11 +29,15 @@ import com.google.api.gax.grpc.GaxGrpcProperties; import com.google.api.gax.grpc.GrpcTransportChannel; import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; import com.google.api.gax.retrying.RetrySettings; import com.google.api.gax.rpc.ApiCallContext; import com.google.api.gax.rpc.ApiClientHeaderProvider; import com.google.api.gax.rpc.ClientContext; import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; import com.google.api.gax.rpc.PageContext; import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.PagedListDescriptor; @@ -44,6 +48,9 @@ import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineRequest; import com.google.cloud.aiplatform.v1beta1.QueryReasoningEngineResponse; import com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest; @@ -60,7 +67,9 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import java.io.IOException; +import java.time.Duration; import java.util.List; import javax.annotation.Generated; @@ -115,6 +124,33 @@ * Please refer to the [Client Side Retry * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for asyncQueryReasoningEngine: + * + *

            {@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
            + * ReasoningEngineExecutionServiceStubSettings.Builder
            + *     reasoningEngineExecutionServiceSettingsBuilder =
            + *         ReasoningEngineExecutionServiceStubSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * reasoningEngineExecutionServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            */ @BetaApi @Generated("by gapic-generator-java") @@ -129,6 +165,13 @@ public class ReasoningEngineExecutionServiceStubSettings queryReasoningEngineSettings; private final ServerStreamingCallSettings streamQueryReasoningEngineSettings; + private final UnaryCallSettings + asyncQueryReasoningEngineSettings; + private final OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -201,6 +244,21 @@ public ApiFuture getFuturePagedResponse( return streamQueryReasoningEngineSettings; } + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings + asyncQueryReasoningEngineSettings() { + return asyncQueryReasoningEngineSettings; + } + + /** Returns the object with the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return asyncQueryReasoningEngineOperationSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -314,6 +372,9 @@ protected ReasoningEngineExecutionServiceStubSettings(Builder settingsBuilder) queryReasoningEngineSettings = settingsBuilder.queryReasoningEngineSettings().build(); streamQueryReasoningEngineSettings = settingsBuilder.streamQueryReasoningEngineSettings().build(); + asyncQueryReasoningEngineSettings = settingsBuilder.asyncQueryReasoningEngineSettings().build(); + asyncQueryReasoningEngineOperationSettings = + settingsBuilder.asyncQueryReasoningEngineOperationSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -339,6 +400,13 @@ public static class Builder queryReasoningEngineSettings; private final ServerStreamingCallSettings.Builder streamQueryReasoningEngineSettings; + private final UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings; + private final OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -376,6 +444,8 @@ protected Builder(ClientContext clientContext) { queryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); streamQueryReasoningEngineSettings = ServerStreamingCallSettings.newBuilder(); + asyncQueryReasoningEngineSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + asyncQueryReasoningEngineOperationSettings = OperationCallSettings.newBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -385,6 +455,7 @@ protected Builder(ClientContext clientContext) { unaryMethodSettingsBuilders = ImmutableList.>of( queryReasoningEngineSettings, + asyncQueryReasoningEngineSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -398,6 +469,9 @@ protected Builder(ReasoningEngineExecutionServiceStubSettings settings) { queryReasoningEngineSettings = settings.queryReasoningEngineSettings.toBuilder(); streamQueryReasoningEngineSettings = settings.streamQueryReasoningEngineSettings.toBuilder(); + asyncQueryReasoningEngineSettings = settings.asyncQueryReasoningEngineSettings.toBuilder(); + asyncQueryReasoningEngineOperationSettings = + settings.asyncQueryReasoningEngineOperationSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -407,6 +481,7 @@ protected Builder(ReasoningEngineExecutionServiceStubSettings settings) { unaryMethodSettingsBuilders = ImmutableList.>of( queryReasoningEngineSettings, + asyncQueryReasoningEngineSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -437,6 +512,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .asyncQueryReasoningEngineSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -462,6 +542,33 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .asyncQueryReasoningEngineOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + . + newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create( + AsyncQueryReasoningEngineResponse.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + AsyncQueryReasoningEngineOperationMetadata.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())); + return builder; } @@ -492,6 +599,21 @@ public Builder applyToAllUnaryMethods( return streamQueryReasoningEngineSettings; } + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public UnaryCallSettings.Builder + asyncQueryReasoningEngineSettings() { + return asyncQueryReasoningEngineSettings; + } + + /** Returns the builder for the settings used for calls to asyncQueryReasoningEngine. */ + public OperationCallSettings.Builder< + AsyncQueryReasoningEngineRequest, + AsyncQueryReasoningEngineResponse, + AsyncQueryReasoningEngineOperationMetadata> + asyncQueryReasoningEngineOperationSettings() { + return asyncQueryReasoningEngineOperationSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> 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 6dceb47d79ae..d5c26bf9ba99 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 @@ -1187,6 +1187,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.AsyncRetrieveContextsOperationMetadata", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java index a16183980911..2220b794cd60 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockReasoningEngineExecutionServiceImpl.java @@ -19,6 +19,7 @@ import com.google.api.HttpBody; import com.google.api.core.BetaApi; import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceGrpc.ReasoningEngineExecutionServiceImplBase; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import io.grpc.stub.StreamObserver; import java.util.ArrayList; @@ -104,4 +105,26 @@ public void streamQueryReasoningEngine( Exception.class.getName()))); } } + + @Override + public void asyncQueryReasoningEngine( + AsyncQueryReasoningEngineRequest 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 AsyncQueryReasoningEngine, expected %s" + + " or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java index e8fbd7bbd8b8..998d27c17750 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceClientTest.java @@ -42,6 +42,7 @@ import com.google.iam.v1.SetIamPolicyRequest; import com.google.iam.v1.TestIamPermissionsRequest; import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; import com.google.protobuf.AbstractMessage; import com.google.protobuf.Any; import com.google.protobuf.ByteString; @@ -218,6 +219,69 @@ public void streamQueryReasoningEngineExceptionTest() throws Exception { } } + @Test + public void asyncQueryReasoningEngineTest() throws Exception { + AsyncQueryReasoningEngineResponse expectedResponse = + AsyncQueryReasoningEngineResponse.newBuilder() + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("asyncQueryReasoningEngineTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockReasoningEngineExecutionService.addResponse(resultOperation); + + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]").toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + + AsyncQueryReasoningEngineResponse actualResponse = + client.asyncQueryReasoningEngineAsync(request).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockReasoningEngineExecutionService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + AsyncQueryReasoningEngineRequest actualRequest = + ((AsyncQueryReasoningEngineRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getInputGcsUri(), actualRequest.getInputGcsUri()); + Assert.assertEquals(request.getOutputGcsUri(), actualRequest.getOutputGcsUri()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void asyncQueryReasoningEngineExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockReasoningEngineExecutionService.addException(exception); + + try { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + client.asyncQueryReasoningEngineAsync(request).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 listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java index 0cd007e80a40..14c6eb3edd0c 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceGrpc.java @@ -138,6 +138,58 @@ private ReasoningEngineExecutionServiceGrpc() {} return getStreamQueryReasoningEngineMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "AsyncQueryReasoningEngine", + requestType = com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation> + getAsyncQueryReasoningEngineMethod; + if ((getAsyncQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod) + == null) { + synchronized (ReasoningEngineExecutionServiceGrpc.class) { + if ((getAsyncQueryReasoningEngineMethod = + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod) + == null) { + ReasoningEngineExecutionServiceGrpc.getAsyncQueryReasoningEngineMethod = + getAsyncQueryReasoningEngineMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "AsyncQueryReasoningEngine")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new ReasoningEngineExecutionServiceMethodDescriptorSupplier( + "AsyncQueryReasoningEngine")) + .build(); + } + } + } + return getAsyncQueryReasoningEngineMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static ReasoningEngineExecutionServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -232,6 +284,20 @@ default void streamQueryReasoningEngine( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getStreamQueryReasoningEngineMethod(), responseObserver); } + + /** + * + * + *
            +     * Async query using a reasoning engine.
            +     * 
            + */ + default void asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getAsyncQueryReasoningEngineMethod(), responseObserver); + } } /** @@ -304,6 +370,22 @@ public void streamQueryReasoningEngine( request, responseObserver); } + + /** + * + * + *
            +     * Async query using a reasoning engine.
            +     * 
            + */ + public void asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getAsyncQueryReasoningEngineMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -353,6 +435,20 @@ public io.grpc.stub.BlockingClientCall streamQueryRe return io.grpc.stub.ClientCalls.blockingV2ServerStreamingCall( getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Async query using a reasoning engine.
            +     * 
            + */ + public com.google.longrunning.Operation asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getAsyncQueryReasoningEngineMethod(), getCallOptions(), request); + } } /** @@ -401,6 +497,19 @@ public java.util.Iterator streamQueryReasoningEngine( return io.grpc.stub.ClientCalls.blockingServerStreamingCall( getChannel(), getStreamQueryReasoningEngineMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Async query using a reasoning engine.
            +     * 
            + */ + public com.google.longrunning.Operation asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getAsyncQueryReasoningEngineMethod(), getCallOptions(), request); + } } /** @@ -438,10 +547,25 @@ protected ReasoningEngineExecutionServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getQueryReasoningEngineMethod(), getCallOptions()), request); } + + /** + * + * + *
            +     * Async query using a reasoning engine.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + asyncQueryReasoningEngine( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getAsyncQueryReasoningEngineMethod(), getCallOptions()), request); + } } private static final int METHODID_QUERY_REASONING_ENGINE = 0; private static final int METHODID_STREAM_QUERY_REASONING_ENGINE = 1; + private static final int METHODID_ASYNC_QUERY_REASONING_ENGINE = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -472,6 +596,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_ASYNC_QUERY_REASONING_ENGINE: + serviceImpl.asyncQueryReasoningEngine( + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; default: throw new AssertionError(); } @@ -503,6 +632,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1beta1.StreamQueryReasoningEngineRequest, com.google.api.HttpBody>(service, METHODID_STREAM_QUERY_REASONING_ENGINE))) + .addMethod( + getAsyncQueryReasoningEngineMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest, + com.google.longrunning.Operation>( + service, METHODID_ASYNC_QUERY_REASONING_ENGINE))) .build(); } @@ -558,6 +694,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { new ReasoningEngineExecutionServiceFileDescriptorSupplier()) .addMethod(getQueryReasoningEngineMethod()) .addMethod(getStreamQueryReasoningEngineMethod()) + .addMethod(getAsyncQueryReasoningEngineMethod()) .build(); } } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadata.java new file mode 100644 index 000000000000..1ea60c0cc90f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadata.java @@ -0,0 +1,741 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Operation metadata message for
            + * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + AsyncQueryReasoningEngineOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineOperationMetadata"); + } + + // Use AsyncQueryReasoningEngineOperationMetadata.newBuilder() to construct. + private AsyncQueryReasoningEngineOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
            +   * The common part of the operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * The common part of the operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
            +   * The common part of the operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + 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.AsyncQueryReasoningEngineOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + 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.AsyncQueryReasoningEngineOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + 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.AsyncQueryReasoningEngineOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Operation metadata message for
            +   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
            +   * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @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.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + .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( + internalGetGenericMetadataFieldBuilder().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.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
            +     * The common part of the operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * The common part of the operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * The common part of the operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The common part of the operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The common part of the operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The common part of the operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The common part of the operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The common part of the operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
            +     * The common part of the operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1 + .AsyncQueryReasoningEngineOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineOperationMetadata 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.AsyncQueryReasoningEngineOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..b841370705d7 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * The common part of the operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
            +   * The common part of the operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
            +   * The common part of the operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequest.java new file mode 100644 index 000000000000..3da7cc070ceb --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequest.java @@ -0,0 +1,1017 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Request message for
            + * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + AsyncQueryReasoningEngineRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineRequest"); + } + + // Use AsyncQueryReasoningEngineRequest.newBuilder() to construct. + private AsyncQueryReasoningEngineRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineRequest() { + name_ = ""; + inputGcsUri_ = ""; + outputGcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the ReasoningEngine resource to use.
            +   * Format:
            +   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the ReasoningEngine resource to use.
            +   * Format:
            +   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INPUT_GCS_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object inputGcsUri_ = ""; + + /** + * + * + *
            +   * Optional. Input Cloud Storage URI for the Async query.
            +   * 
            + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + @java.lang.Override + public java.lang.String getInputGcsUri() { + java.lang.Object ref = inputGcsUri_; + 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(); + inputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Input Cloud Storage URI for the Async query.
            +   * 
            + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInputGcsUriBytes() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int OUTPUT_GCS_URI_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
            +   * Optional. Output Cloud Storage URI for the Async query.
            +   * 
            + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + @java.lang.Override + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + 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(); + outputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Output Cloud Storage URI for the Async query.
            +   * 
            + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, inputGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, outputGcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(inputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, inputGcsUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, outputGcsUri_); + } + 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.AsyncQueryReasoningEngineRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest other = + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getInputGcsUri().equals(other.getInputGcsUri())) return false; + if (!getOutputGcsUri().equals(other.getOutputGcsUri())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + INPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getInputGcsUri().hashCode(); + hash = (37 * hash) + OUTPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest 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.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest 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.AsyncQueryReasoningEngineRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest 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.AsyncQueryReasoningEngineRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for
            +   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + inputGcsUri_ = ""; + outputGcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest build() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest result = + new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.inputGcsUri_ = inputGcsUri_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.outputGcsUri_ = outputGcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getInputGcsUri().isEmpty()) { + inputGcsUri_ = other.inputGcsUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getOutputGcsUri().isEmpty()) { + outputGcsUri_ = other.outputGcsUri_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + inputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + outputGcsUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Required. The name of the ReasoningEngine resource to use.
            +     * Format:
            +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the ReasoningEngine resource to use.
            +     * Format:
            +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the ReasoningEngine resource to use.
            +     * Format:
            +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the ReasoningEngine resource to use.
            +     * Format:
            +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the ReasoningEngine resource to use.
            +     * Format:
            +     * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object inputGcsUri_ = ""; + + /** + * + * + *
            +     * Optional. Input Cloud Storage URI for the Async query.
            +     * 
            + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + public java.lang.String getInputGcsUri() { + java.lang.Object ref = inputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + inputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Input Cloud Storage URI for the Async query.
            +     * 
            + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + public com.google.protobuf.ByteString getInputGcsUriBytes() { + java.lang.Object ref = inputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + inputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Input Cloud Storage URI for the Async query.
            +     * 
            + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The inputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setInputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + inputGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Input Cloud Storage URI for the Async query.
            +     * 
            + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInputGcsUri() { + inputGcsUri_ = getDefaultInstance().getInputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Input Cloud Storage URI for the Async query.
            +     * 
            + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for inputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setInputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + inputGcsUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
            +     * Optional. Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOutputGcsUri() { + outputGcsUri_ = getDefaultInstance().getOutputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsUri_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + private static final com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineRequest 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.AsyncQueryReasoningEngineRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequestOrBuilder.java new file mode 100644 index 000000000000..9239c326f5d8 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineRequestOrBuilder.java @@ -0,0 +1,114 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the ReasoningEngine resource to use.
            +   * Format:
            +   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the ReasoningEngine resource to use.
            +   * Format:
            +   * `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}`
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Optional. Input Cloud Storage URI for the Async query.
            +   * 
            + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The inputGcsUri. + */ + java.lang.String getInputGcsUri(); + + /** + * + * + *
            +   * Optional. Input Cloud Storage URI for the Async query.
            +   * 
            + * + * string input_gcs_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for inputGcsUri. + */ + com.google.protobuf.ByteString getInputGcsUriBytes(); + + /** + * + * + *
            +   * Optional. Output Cloud Storage URI for the Async query.
            +   * 
            + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The outputGcsUri. + */ + java.lang.String getOutputGcsUri(); + + /** + * + * + *
            +   * Optional. Output Cloud Storage URI for the Async query.
            +   * 
            + * + * string output_gcs_uri = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for outputGcsUri. + */ + com.google.protobuf.ByteString getOutputGcsUriBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponse.java new file mode 100644 index 000000000000..206be14855b0 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponse.java @@ -0,0 +1,611 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Response message for
            + * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse} + */ +@com.google.protobuf.Generated +public final class AsyncQueryReasoningEngineResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + AsyncQueryReasoningEngineResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AsyncQueryReasoningEngineResponse"); + } + + // Use AsyncQueryReasoningEngineResponse.newBuilder() to construct. + private AsyncQueryReasoningEngineResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AsyncQueryReasoningEngineResponse() { + outputGcsUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.Builder.class); + } + + public static final int OUTPUT_GCS_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object outputGcsUri_ = ""; + + /** + * + * + *
            +   * Output Cloud Storage URI for the Async query.
            +   * 
            + * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + @java.lang.Override + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + 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(); + outputGcsUri_ = s; + return s; + } + } + + /** + * + * + *
            +   * Output Cloud Storage URI for the Async query.
            +   * 
            + * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, outputGcsUri_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(outputGcsUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, outputGcsUri_); + } + 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.AsyncQueryReasoningEngineResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse other = + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) obj; + + if (!getOutputGcsUri().equals(other.getOutputGcsUri())) 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) + OUTPUT_GCS_URI_FIELD_NUMBER; + hash = (53 * hash) + getOutputGcsUri().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse 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.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse 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.AsyncQueryReasoningEngineResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse 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.AsyncQueryReasoningEngineResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for
            +   * [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine].
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.class, + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + outputGcsUri_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse build() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse result = + new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.outputGcsUri_ = outputGcsUri_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + .getDefaultInstance()) return this; + if (!other.getOutputGcsUri().isEmpty()) { + outputGcsUri_ = other.outputGcsUri_; + 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: + { + outputGcsUri_ = 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 outputGcsUri_ = ""; + + /** + * + * + *
            +     * Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + public java.lang.String getOutputGcsUri() { + java.lang.Object ref = outputGcsUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + outputGcsUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + public com.google.protobuf.ByteString getOutputGcsUriBytes() { + java.lang.Object ref = outputGcsUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + outputGcsUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 1; + * + * @param value The outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + outputGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 1; + * + * @return This builder for chaining. + */ + public Builder clearOutputGcsUri() { + outputGcsUri_ = getDefaultInstance().getOutputGcsUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output Cloud Storage URI for the Async query.
            +     * 
            + * + * string output_gcs_uri = 1; + * + * @param value The bytes for outputGcsUri to set. + * @return This builder for chaining. + */ + public Builder setOutputGcsUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + outputGcsUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + private static final com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AsyncQueryReasoningEngineResponse 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.AsyncQueryReasoningEngineResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponseOrBuilder.java new file mode 100644 index 000000000000..3195b04a2e3f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AsyncQueryReasoningEngineResponseOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AsyncQueryReasoningEngineResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output Cloud Storage URI for the Async query.
            +   * 
            + * + * string output_gcs_uri = 1; + * + * @return The outputGcsUri. + */ + java.lang.String getOutputGcsUri(); + + /** + * + * + *
            +   * Output Cloud Storage URI for the Async query.
            +   * 
            + * + * string output_gcs_uri = 1; + * + * @return The bytes for outputGcsUri. + */ + com.google.protobuf.ByteString getOutputGcsUriBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java index c5b8c0ec76d8..b3064d68df64 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ReasoningEngineExecutionServiceProto.java @@ -52,6 +52,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_StreamQueryReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -67,41 +79,60 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "annotations.proto\032\027google/api/client.pro" + "to\032\037google/api/field_behavior.proto\032\031goo" + "gle/api/httpbody.proto\032\031google/api/resou" - + "rce.proto\032\034google/protobuf/struct.proto\"" - + "\246\001\n\033QueryReasoningEngineRequest\022?\n\004name\030" - + "\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleapis.com" - + "/ReasoningEngine\022+\n\005input\030\002 \001(\0132\027.google" - + ".protobuf.StructB\003\340A\001\022\031\n\014class_method\030\003 " - + "\001(\tB\003\340A\001\"F\n\034QueryReasoningEngineResponse" - + "\022&\n\006output\030\001 \001(\0132\026.google.protobuf.Value" - + "\"\254\001\n!StreamQueryReasoningEngineRequest\022?" - + "\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googlea" - + "pis.com/ReasoningEngine\022+\n\005input\030\002 \001(\0132\027" - + ".google.protobuf.StructB\003\340A\001\022\031\n\014class_me" - + "thod\030\003 \001(\tB\003\340A\0012\204\005\n\037ReasoningEngineExecu" - + "tionService\022\216\002\n\024QueryReasoningEngine\022<.g" - + "oogle.cloud.aiplatform.v1beta1.QueryReas" - + "oningEngineRequest\032=.google.cloud.aiplat" - + "form.v1beta1.QueryReasoningEngineRespons" - + "e\"y\202\323\344\223\002s\"?/v1beta1/{name=projects/*/loc" - + "ations/*/reasoningEngines/*}:query:\001*Z-\"" - + "(/v1beta1/{name=reasoningEngines/*}:quer" - + "y:\001*\022\200\002\n\032StreamQueryReasoningEngine\022B.go" - + "ogle.cloud.aiplatform.v1beta1.StreamQuer" - + "yReasoningEngineRequest\032\024.google.api.Htt" - + "pBody\"\205\001\202\323\344\223\002\177\"E/v1beta1/{name=projects/" - + "*/locations/*/reasoningEngines/*}:stream" - + "Query:\001*Z3\"./v1beta1/{name=reasoningEngi" - + "nes/*}:streamQuery:\001*0\001\032M\312A\031aiplatform.g" - + "oogleapis.com\322A.https://www.googleapis.c" - + "om/auth/cloud-platformB\373\001\n#com.google.cl" - + "oud.aiplatform.v1beta1B$ReasoningEngineE" - + "xecutionServiceProtoP\001ZCcloud.google.com" - + "/go/aiplatform/apiv1beta1/aiplatformpb;a" - + "iplatformpb\252\002\037Google.Cloud.AIPlatform.V1" - + "Beta1\312\002\037Google\\Cloud\\AIPlatform\\V1beta1\352" - + "\002\"Google::Cloud::AIPlatform::V1beta1b\006pr" - + "oto3" + + "rce.proto\032/google/cloud/aiplatform/v1bet" + + "a1/operation.proto\032#google/longrunning/o" + + "perations.proto\032\034google/protobuf/struct." + + "proto\"\246\001\n\033QueryReasoningEngineRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.googleap" + + "is.com/ReasoningEngine\022+\n\005input\030\002 \001(\0132\027." + + "google.protobuf.StructB\003\340A\001\022\031\n\014class_met" + + "hod\030\003 \001(\tB\003\340A\001\"F\n\034QueryReasoningEngineRe" + + "sponse\022&\n\006output\030\001 \001(\0132\026.google.protobuf" + + ".Value\"\254\001\n!StreamQueryReasoningEngineReq" + + "uest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+\n)aiplatform.g" + + "oogleapis.com/ReasoningEngine\022+\n\005input\030\002" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\022\031\n\014cl" + + "ass_method\030\003 \001(\tB\003\340A\001\"\234\001\n AsyncQueryReas" + + "oningEngineRequest\022?\n\004name\030\001 \001(\tB1\340A\002\372A+" + + "\n)aiplatform.googleapis.com/ReasoningEng" + + "ine\022\032\n\rinput_gcs_uri\030\002 \001(\tB\003\340A\001\022\033\n\016outpu" + + "t_gcs_uri\030\003 \001(\tB\003\340A\001\"\201\001\n*AsyncQueryReaso" + + "ningEngineOperationMetadata\022S\n\020generic_m" + + "etadata\030\001 \001(\01329.google.cloud.aiplatform." + + "v1beta1.GenericOperationMetadata\";\n!Asyn" + + "cQueryReasoningEngineResponse\022\026\n\016output_" + + "gcs_uri\030\001 \001(\t2\334\007\n\037ReasoningEngineExecuti" + + "onService\022\216\002\n\024QueryReasoningEngine\022<.goo" + + "gle.cloud.aiplatform.v1beta1.QueryReason" + + "ingEngineRequest\032=.google.cloud.aiplatfo" + + "rm.v1beta1.QueryReasoningEngineResponse\"" + + "y\202\323\344\223\002s\"?/v1beta1/{name=projects/*/locat" + + "ions/*/reasoningEngines/*}:query:\001*Z-\"(/" + + "v1beta1/{name=reasoningEngines/*}:query:" + + "\001*\022\200\002\n\032StreamQueryReasoningEngine\022B.goog" + + "le.cloud.aiplatform.v1beta1.StreamQueryR" + + "easoningEngineRequest\032\024.google.api.HttpB" + + "ody\"\205\001\202\323\344\223\002\177\"E/v1beta1/{name=projects/*/" + + "locations/*/reasoningEngines/*}:streamQu" + + "ery:\001*Z3\"./v1beta1/{name=reasoningEngine" + + "s/*}:streamQuery:\001*0\001\022\325\002\n\031AsyncQueryReas" + + "oningEngine\022A.google.cloud.aiplatform.v1" + + "beta1.AsyncQueryReasoningEngineRequest\032\035" + + ".google.longrunning.Operation\"\325\001\312AO\n!Asy" + + "ncQueryReasoningEngineResponse\022*AsyncQue" + + "ryReasoningEngineOperationMetadata\202\323\344\223\002}" + + "\"D/v1beta1/{name=projects/*/locations/*/" + + "reasoningEngines/*}:asyncQuery:\001*Z2\"-/v1" + + "beta1/{name=reasoningEngines/*}:asyncQue" + + "ry:\001*\032M\312A\031aiplatform.googleapis.com\322A.ht" + + "tps://www.googleapis.com/auth/cloud-plat" + + "formB\373\001\n#com.google.cloud.aiplatform.v1b" + + "eta1B$ReasoningEngineExecutionServicePro" + + "toP\001ZCcloud.google.com/go/aiplatform/api" + + "v1beta1/aiplatformpb;aiplatformpb\252\002\037Goog" + + "le.Cloud.AIPlatform.V1Beta1\312\002\037Google\\Clo" + + "ud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::A" + + "IPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -112,6 +143,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.HttpBodyProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), com.google.protobuf.StructProto.getDescriptor(), }); internal_static_google_cloud_aiplatform_v1beta1_QueryReasoningEngineRequest_descriptor = @@ -138,12 +171,38 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "Input", "ClassMethod", }); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineRequest_descriptor, + new java.lang.String[] { + "Name", "InputGcsUri", "OutputGcsUri", + }); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AsyncQueryReasoningEngineResponse_descriptor, + new java.lang.String[] { + "OutputGcsUri", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.HttpBodyProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); com.google.protobuf.StructProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); @@ -152,6 +211,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.AnnotationsProto.http); registry.add(com.google.api.ClientProto.oauthScopes); registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto index 9562eafaf289..b5d72ec6159d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/reasoning_engine_execution_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,8 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/httpbody.proto"; import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/longrunning/operations.proto"; import "google/protobuf/struct.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -62,6 +64,23 @@ service ReasoningEngineExecutionService { } }; } + + // Async query using a reasoning engine. + rpc AsyncQueryReasoningEngine(AsyncQueryReasoningEngineRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/reasoningEngines/*}:asyncQuery" + body: "*" + additional_bindings { + post: "/v1beta1/{name=reasoningEngines/*}:asyncQuery" + body: "*" + } + }; + option (google.longrunning.operation_info) = { + response_type: "AsyncQueryReasoningEngineResponse" + metadata_type: "AsyncQueryReasoningEngineOperationMetadata" + }; + } } // Request message for [ReasoningEngineExecutionService.Query][]. @@ -111,3 +130,37 @@ message StreamQueryReasoningEngineRequest { // It is optional and defaults to "stream_query" if unspecified. string class_method = 3 [(google.api.field_behavior) = OPTIONAL]; } + +// Request message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineRequest { + // Required. The name of the ReasoningEngine resource to use. + // Format: + // `projects/{project}/locations/{location}/reasoningEngines/{reasoning_engine}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/ReasoningEngine" + } + ]; + + // Optional. Input Cloud Storage URI for the Async query. + string input_gcs_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Output Cloud Storage URI for the Async query. + string output_gcs_uri = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Operation metadata message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineOperationMetadata { + // The common part of the operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Response message for +// [ReasoningEngineExecutionService.AsyncQueryReasoningEngine][google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionService.AsyncQueryReasoningEngine]. +message AsyncQueryReasoningEngineResponse { + // Output Cloud Storage URI for the Async query. + string output_gcs_uri = 1; +} diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..2aed13ed2411 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngine.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineName; +import com.google.longrunning.Operation; + +public class AsyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + asyncAsyncQueryReasoningEngine(); + } + + public static void asyncAsyncQueryReasoningEngine() 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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + ApiFuture future = + reasoningEngineExecutionServiceClient + .asyncQueryReasoningEngineCallable() + .futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java new file mode 100644 index 000000000000..00a73643c93e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/AsyncAsyncQueryReasoningEngineLRO.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineName; + +public class AsyncAsyncQueryReasoningEngineLRO { + + public static void main(String[] args) throws Exception { + asyncAsyncQueryReasoningEngineLRO(); + } + + public static void asyncAsyncQueryReasoningEngineLRO() 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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + OperationFuture + future = + reasoningEngineExecutionServiceClient + .asyncQueryReasoningEngineOperationCallable() + .futureCall(request); + // Do something. + AsyncQueryReasoningEngineResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..5fb8b3d688d7 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservice/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_sync] +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineRequest; +import com.google.cloud.aiplatform.v1beta1.AsyncQueryReasoningEngineResponse; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceClient; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineName; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() 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 (ReasoningEngineExecutionServiceClient reasoningEngineExecutionServiceClient = + ReasoningEngineExecutionServiceClient.create()) { + AsyncQueryReasoningEngineRequest request = + AsyncQueryReasoningEngineRequest.newBuilder() + .setName( + ReasoningEngineName.of("[PROJECT]", "[LOCATION]", "[REASONING_ENGINE]") + .toString()) + .setInputGcsUri("inputGcsUri-665217217") + .setOutputGcsUri("outputGcsUri-489598154") + .build(); + AsyncQueryReasoningEngineResponse response = + reasoningEngineExecutionServiceClient.asyncQueryReasoningEngineAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionService_AsyncQueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..6a24a3b4ed91 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/reasoningengineexecutionservicesettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionServiceSettings_AsyncQueryReasoningEngine_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1beta1.ReasoningEngineExecutionServiceSettings; +import java.time.Duration; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() 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 + ReasoningEngineExecutionServiceSettings.Builder reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineExecutionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionServiceSettings_AsyncQueryReasoningEngine_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java new file mode 100644 index 000000000000..1dee447d6870 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/reasoningengineexecutionservicestubsettings/asyncqueryreasoningengine/SyncAsyncQueryReasoningEngine.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub.samples; + +// [START aiplatform_v1beta1_generated_ReasoningEngineExecutionServiceStubSettings_AsyncQueryReasoningEngine_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1beta1.stub.ReasoningEngineExecutionServiceStubSettings; +import java.time.Duration; + +public class SyncAsyncQueryReasoningEngine { + + public static void main(String[] args) throws Exception { + syncAsyncQueryReasoningEngine(); + } + + public static void syncAsyncQueryReasoningEngine() 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 + ReasoningEngineExecutionServiceStubSettings.Builder + reasoningEngineExecutionServiceSettingsBuilder = + ReasoningEngineExecutionServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + reasoningEngineExecutionServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1beta1_generated_ReasoningEngineExecutionServiceStubSettings_AsyncQueryReasoningEngine_sync] diff --git a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java index df61e87e53c6..af2dd0f7af96 100644 --- a/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java +++ b/java-netapp/google-cloud-netapp/src/main/java/com/google/cloud/netapp/v1/NetAppClient.java @@ -1388,8 +1388,7 @@ * *

            ListLocations *

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

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

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

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

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

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

            @@ -10776,9 +10775,8 @@ public final ExecuteOntapPatchResponse executeOntapPatch(ExecuteOntapPatchReques * Lists information about the supported locations for this service. * *

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

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

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

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

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

            * **Global locations**: If `name` is empty, the method lists thepublic + * [ListLocationsRequest.name][google.cloud.location.ListLocationsRequest.name] field: + * ***Global locations**: If `name` is empty, the method lists thepublic * locations available to all projects. * **Project-specificlocations**: If * `name` follows the format`projects/{project}`, the method lists locations visible to * thatspecific project. This includes public, private, or otherproject-specific locations enabled diff --git a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json index c438dacccbd8..1166f4326cf7 100644 --- a/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json +++ b/java-netapp/google-cloud-netapp/src/main/resources/META-INF/native-image/com.google.cloud.netapp.v1/reflect-config.json @@ -1871,6 +1871,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.LargeCapacityConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.netapp.v1.LargeCapacityConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.ListActiveDirectoriesRequest", "queryAllDeclaredConstructors": true, @@ -2600,6 +2618,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.netapp.v1.ScaleType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.netapp.v1.SecurityStyle", "queryAllDeclaredConstructors": true, diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java index ac6c02b6fca0..62226d07f6e7 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientHttpJsonTest.java @@ -235,6 +235,7 @@ public void createStoragePoolTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -321,6 +322,7 @@ public void createStoragePoolTest2() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -407,6 +409,7 @@ public void getStoragePoolTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -483,6 +486,7 @@ public void getStoragePoolTest2() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); mockService.addResponse(expectedResponse); @@ -559,6 +563,7 @@ public void updateStoragePoolTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -603,6 +608,7 @@ public void updateStoragePoolTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -668,6 +674,7 @@ public void updateStoragePoolExceptionTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); client.updateStoragePoolAsync(storagePool, updateMask).get(); @@ -856,6 +863,7 @@ public void switchActiveReplicaZoneTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -1053,6 +1061,7 @@ public void getVolumeTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1140,6 +1149,7 @@ public void getVolumeTest2() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); mockService.addResponse(expectedResponse); @@ -1227,6 +1237,7 @@ public void createVolumeTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = @@ -1323,6 +1334,7 @@ public void createVolumeTest2() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = @@ -1419,6 +1431,7 @@ public void updateVolumeTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = @@ -1474,6 +1487,7 @@ public void updateVolumeTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1550,6 +1564,7 @@ public void updateVolumeExceptionTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); FieldMask updateMask = FieldMask.newBuilder().build(); @@ -1696,6 +1711,7 @@ public void revertVolumeTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = @@ -1796,6 +1812,7 @@ public void establishVolumePeeringTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = diff --git a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java index b0582e202da8..cb07f7560e6e 100644 --- a/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java +++ b/java-netapp/google-cloud-netapp/src/test/java/com/google/cloud/netapp/v1/NetAppClientTest.java @@ -231,6 +231,7 @@ public void createStoragePoolTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -316,6 +317,7 @@ public void createStoragePoolTest2() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -401,6 +403,7 @@ public void getStoragePoolTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); mockNetApp.addResponse(expectedResponse); @@ -471,6 +474,7 @@ public void getStoragePoolTest2() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); mockNetApp.addResponse(expectedResponse); @@ -541,6 +545,7 @@ public void updateStoragePoolTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -758,6 +763,7 @@ public void switchActiveReplicaZoneTest() throws Exception { .setHotTierSizeUsedGib(-151116719) .setType(StoragePoolType.forNumber(0)) .setMode(Mode.forNumber(0)) + .setScaleType(ScaleType.forNumber(0)) .build(); Operation resultOperation = Operation.newBuilder() @@ -941,6 +947,7 @@ public void getVolumeTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); mockNetApp.addResponse(expectedResponse); @@ -1022,6 +1029,7 @@ public void getVolumeTest2() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); mockNetApp.addResponse(expectedResponse); @@ -1103,6 +1111,7 @@ public void createVolumeTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = @@ -1198,6 +1207,7 @@ public void createVolumeTest2() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = @@ -1293,6 +1303,7 @@ public void updateVolumeTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = @@ -1469,6 +1480,7 @@ public void revertVolumeTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = @@ -1567,6 +1579,7 @@ public void establishVolumePeeringTest() throws Exception { .setCacheParameters(CacheParameters.newBuilder().build()) .setHotTierSizeUsedGib(-151116719) .addAllBlockDevices(new ArrayList()) + .setLargeCapacityConfig(LargeCapacityConfig.newBuilder().build()) .setCloneDetails(Volume.CloneDetails.newBuilder().build()) .build(); Operation resultOperation = diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java index 294815a4b171..293fd3038d9a 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/CommonProto.java @@ -89,7 +89,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017StoragePoolType\022!\n" + "\035STORAGE_POOL_TYPE_UNSPECIFIED\020\000\022\010\n" + "\004FILE\020\001\022\013\n" - + "\007UNIFIED\020\002*u\n" + + "\007UNIFIED\020\002*X\n" + + "\tScaleType\022\032\n" + + "\026SCALE_TYPE_UNSPECIFIED\020\000\022\026\n" + + "\022SCALE_TYPE_DEFAULT\020\001\022\027\n" + + "\023SCALE_TYPE_SCALEOUT\020\002*u\n" + "\031HybridReplicationSchedule\022+\n" + "\'HYBRID_REPLICATION_SCHEDULE_UNSPECIFIED\020\000\022\024\n" + "\020EVERY_10_MINUTES\020\001\022\n\n" @@ -104,10 +108,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005LINUX\020\001\022\013\n" + "\007WINDOWS\020\002\022\010\n" + "\004ESXI\020\003B\255\001\n" - + "\032com.google.cloud.netapp.v1B\013CommonProtoP\001Z2c" - + "loud.google.com/go/netapp/apiv1/netapppb" - + ";netapppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Goo" - + "gle\\Cloud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" + + "\032com.google.cloud.netapp.v1B\013CommonProtoP\001Z2cloud.google.com/go/netapp/apiv" + + "1/netapppb;netapppb\252\002\026Google.Cloud.NetAp" + + "p.V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::" + + "Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationSchedule.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationSchedule.java index c13579d33fbd..434036311e5a 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationSchedule.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/HybridReplicationSchedule.java @@ -193,7 +193,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.netapp.v1.CommonProto.getDescriptor().getEnumTypes().get(5); + return com.google.cloud.netapp.v1.CommonProto.getDescriptor().getEnumTypes().get(6); } private static final HybridReplicationSchedule[] VALUES = values(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfig.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfig.java new file mode 100644 index 000000000000..cc90966fdda3 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfig.java @@ -0,0 +1,510 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *

            + * Configuration for a Large Capacity Volume. A Large Capacity Volume
            + * supports sizes ranging from 4.8 TiB to 20 PiB, it is composed of multiple
            + * internal constituents, and must be created in a large capacity pool.
            + * 
            + * + * Protobuf type {@code google.cloud.netapp.v1.LargeCapacityConfig} + */ +@com.google.protobuf.Generated +public final class LargeCapacityConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.netapp.v1.LargeCapacityConfig) + LargeCapacityConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "LargeCapacityConfig"); + } + + // Use LargeCapacityConfig.newBuilder() to construct. + private LargeCapacityConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private LargeCapacityConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_LargeCapacityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_LargeCapacityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.LargeCapacityConfig.class, + com.google.cloud.netapp.v1.LargeCapacityConfig.Builder.class); + } + + public static final int CONSTITUENT_COUNT_FIELD_NUMBER = 1; + private int constituentCount_ = 0; + + /** + * + * + *
            +   * Optional. The number of internal constituents (e.g., FlexVols) for this
            +   * large volume. The minimum number of constituents is 2.
            +   * 
            + * + * int32 constituent_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The constituentCount. + */ + @java.lang.Override + public int getConstituentCount() { + return constituentCount_; + } + + 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 (constituentCount_ != 0) { + output.writeInt32(1, constituentCount_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (constituentCount_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, constituentCount_); + } + 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.netapp.v1.LargeCapacityConfig)) { + return super.equals(obj); + } + com.google.cloud.netapp.v1.LargeCapacityConfig other = + (com.google.cloud.netapp.v1.LargeCapacityConfig) obj; + + if (getConstituentCount() != other.getConstituentCount()) 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) + CONSTITUENT_COUNT_FIELD_NUMBER; + hash = (53 * hash) + getConstituentCount(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig 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.netapp.v1.LargeCapacityConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig 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.netapp.v1.LargeCapacityConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.netapp.v1.LargeCapacityConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Configuration for a Large Capacity Volume. A Large Capacity Volume
            +   * supports sizes ranging from 4.8 TiB to 20 PiB, it is composed of multiple
            +   * internal constituents, and must be created in a large capacity pool.
            +   * 
            + * + * Protobuf type {@code google.cloud.netapp.v1.LargeCapacityConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.netapp.v1.LargeCapacityConfig) + com.google.cloud.netapp.v1.LargeCapacityConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_LargeCapacityConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_LargeCapacityConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.netapp.v1.LargeCapacityConfig.class, + com.google.cloud.netapp.v1.LargeCapacityConfig.Builder.class); + } + + // Construct using com.google.cloud.netapp.v1.LargeCapacityConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + constituentCount_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.netapp.v1.VolumeProto + .internal_static_google_cloud_netapp_v1_LargeCapacityConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.LargeCapacityConfig getDefaultInstanceForType() { + return com.google.cloud.netapp.v1.LargeCapacityConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.netapp.v1.LargeCapacityConfig build() { + com.google.cloud.netapp.v1.LargeCapacityConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.netapp.v1.LargeCapacityConfig buildPartial() { + com.google.cloud.netapp.v1.LargeCapacityConfig result = + new com.google.cloud.netapp.v1.LargeCapacityConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.netapp.v1.LargeCapacityConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.constituentCount_ = constituentCount_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.netapp.v1.LargeCapacityConfig) { + return mergeFrom((com.google.cloud.netapp.v1.LargeCapacityConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.netapp.v1.LargeCapacityConfig other) { + if (other == com.google.cloud.netapp.v1.LargeCapacityConfig.getDefaultInstance()) return this; + if (other.getConstituentCount() != 0) { + setConstituentCount(other.getConstituentCount()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + constituentCount_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int constituentCount_; + + /** + * + * + *
            +     * Optional. The number of internal constituents (e.g., FlexVols) for this
            +     * large volume. The minimum number of constituents is 2.
            +     * 
            + * + * int32 constituent_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The constituentCount. + */ + @java.lang.Override + public int getConstituentCount() { + return constituentCount_; + } + + /** + * + * + *
            +     * Optional. The number of internal constituents (e.g., FlexVols) for this
            +     * large volume. The minimum number of constituents is 2.
            +     * 
            + * + * int32 constituent_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The constituentCount to set. + * @return This builder for chaining. + */ + public Builder setConstituentCount(int value) { + + constituentCount_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The number of internal constituents (e.g., FlexVols) for this
            +     * large volume. The minimum number of constituents is 2.
            +     * 
            + * + * int32 constituent_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearConstituentCount() { + bitField0_ = (bitField0_ & ~0x00000001); + constituentCount_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.LargeCapacityConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.netapp.v1.LargeCapacityConfig) + private static final com.google.cloud.netapp.v1.LargeCapacityConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.netapp.v1.LargeCapacityConfig(); + } + + public static com.google.cloud.netapp.v1.LargeCapacityConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public LargeCapacityConfig 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.netapp.v1.LargeCapacityConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfigOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfigOrBuilder.java new file mode 100644 index 000000000000..7eb7d566d3f2 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/LargeCapacityConfigOrBuilder.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/volume.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +@com.google.protobuf.Generated +public interface LargeCapacityConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.netapp.v1.LargeCapacityConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. The number of internal constituents (e.g., FlexVols) for this
            +   * large volume. The minimum number of constituents is 2.
            +   * 
            + * + * int32 constituent_count = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The constituentCount. + */ + int getConstituentCount(); +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OsType.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OsType.java index fe7397e12474..89880df98a34 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OsType.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/OsType.java @@ -189,7 +189,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.netapp.v1.CommonProto.getDescriptor().getEnumTypes().get(7); + return com.google.cloud.netapp.v1.CommonProto.getDescriptor().getEnumTypes().get(8); } private static final OsType[] VALUES = values(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QosType.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QosType.java index f8849143c634..58170579a091 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QosType.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/QosType.java @@ -166,7 +166,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.cloud.netapp.v1.CommonProto.getDescriptor().getEnumTypes().get(6); + return com.google.cloud.netapp.v1.CommonProto.getDescriptor().getEnumTypes().get(7); } private static final QosType[] VALUES = values(); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ScaleType.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ScaleType.java new file mode 100644 index 000000000000..43ed4b3504a6 --- /dev/null +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/ScaleType.java @@ -0,0 +1,195 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/netapp/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.netapp.v1; + +/** + * + * + *
            + * Defines the scale-type of a UNIFIED Storage Pool.
            + * 
            + * + * Protobuf enum {@code google.cloud.netapp.v1.ScaleType} + */ +@com.google.protobuf.Generated +public enum ScaleType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +   * Unspecified scale type.
            +   * 
            + * + * SCALE_TYPE_UNSPECIFIED = 0; + */ + SCALE_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +   * Represents standard capacity and performance scale-type.
            +   * Suitable for general purpose workloads.
            +   * 
            + * + * SCALE_TYPE_DEFAULT = 1; + */ + SCALE_TYPE_DEFAULT(1), + /** + * + * + *
            +   * Represents higher capacity and performance scale-type.
            +   * Suitable for more demanding workloads.
            +   * 
            + * + * SCALE_TYPE_SCALEOUT = 2; + */ + SCALE_TYPE_SCALEOUT(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScaleType"); + } + + /** + * + * + *
            +   * Unspecified scale type.
            +   * 
            + * + * SCALE_TYPE_UNSPECIFIED = 0; + */ + public static final int SCALE_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +   * Represents standard capacity and performance scale-type.
            +   * Suitable for general purpose workloads.
            +   * 
            + * + * SCALE_TYPE_DEFAULT = 1; + */ + public static final int SCALE_TYPE_DEFAULT_VALUE = 1; + + /** + * + * + *
            +   * Represents higher capacity and performance scale-type.
            +   * Suitable for more demanding workloads.
            +   * 
            + * + * SCALE_TYPE_SCALEOUT = 2; + */ + public static final int SCALE_TYPE_SCALEOUT_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ScaleType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ScaleType forNumber(int value) { + switch (value) { + case 0: + return SCALE_TYPE_UNSPECIFIED; + case 1: + return SCALE_TYPE_DEFAULT; + case 2: + return SCALE_TYPE_SCALEOUT; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ScaleType findValueByNumber(int number) { + return ScaleType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.netapp.v1.CommonProto.getDescriptor().getEnumTypes().get(5); + } + + private static final ScaleType[] VALUES = values(); + + public static ScaleType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ScaleType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.netapp.v1.ScaleType) +} diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java index ec37dd7679a9..068dc6bf031b 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePool.java @@ -69,6 +69,7 @@ private StoragePool() { qosType_ = 0; type_ = 0; mode_ = 0; + scaleType_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -1693,6 +1694,49 @@ public com.google.cloud.netapp.v1.Mode getMode() { return result == null ? com.google.cloud.netapp.v1.Mode.UNRECOGNIZED : result; } + public static final int SCALE_TYPE_FIELD_NUMBER = 38; + private int scaleType_ = 0; + + /** + * + * + *
            +   * Optional. The scale type of the storage pool. Defaults to
            +   * `SCALE_TYPE_DEFAULT` if not specified.
            +   * 
            + * + * + * .google.cloud.netapp.v1.ScaleType scale_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scaleType. + */ + @java.lang.Override + public int getScaleTypeValue() { + return scaleType_; + } + + /** + * + * + *
            +   * Optional. The scale type of the storage pool. Defaults to
            +   * `SCALE_TYPE_DEFAULT` if not specified.
            +   * 
            + * + * + * .google.cloud.netapp.v1.ScaleType scale_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scaleType. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.ScaleType getScaleType() { + com.google.cloud.netapp.v1.ScaleType result = + com.google.cloud.netapp.v1.ScaleType.forNumber(scaleType_); + return result == null ? com.google.cloud.netapp.v1.ScaleType.UNRECOGNIZED : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1807,6 +1851,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(36, mode_); } + if (scaleType_ != com.google.cloud.netapp.v1.ScaleType.SCALE_TYPE_UNSPECIFIED.getNumber()) { + output.writeEnum(38, scaleType_); + } getUnknownFields().writeTo(output); } @@ -1925,6 +1972,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(36, mode_); } + if (scaleType_ != com.google.cloud.netapp.v1.ScaleType.SCALE_TYPE_UNSPECIFIED.getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(38, scaleType_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1989,6 +2039,7 @@ public boolean equals(final java.lang.Object obj) { if (hasMode()) { if (mode_ != other.mode_) return false; } + if (scaleType_ != other.scaleType_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -2081,6 +2132,8 @@ public int hashCode() { hash = (37 * hash) + MODE_FIELD_NUMBER; hash = (53 * hash) + mode_; } + hash = (37 * hash) + SCALE_TYPE_FIELD_NUMBER; + hash = (53 * hash) + scaleType_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -2292,6 +2345,7 @@ public Builder clear() { hotTierSizeUsedGib_ = 0L; type_ = 0; mode_ = 0; + scaleType_ = 0; return this; } @@ -2443,6 +2497,9 @@ private void buildPartial1(com.google.cloud.netapp.v1.StoragePool result) { result.mode_ = mode_; to_bitField0_ |= 0x00000010; } + if (((from_bitField1_ & 0x00000002) != 0)) { + result.scaleType_ = scaleType_; + } result.bitField0_ |= to_bitField0_; } @@ -2574,6 +2631,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.StoragePool other) { if (other.hasMode()) { setModeValue(other.getModeValue()); } + if (other.scaleType_ != 0) { + setScaleTypeValue(other.getScaleTypeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -2805,6 +2865,12 @@ public Builder mergeFrom( bitField1_ |= 0x00000001; break; } // case 288 + case 304: + { + scaleType_ = input.readEnum(); + bitField1_ |= 0x00000002; + break; + } // case 304 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -5942,6 +6008,116 @@ public Builder clearMode() { return this; } + private int scaleType_ = 0; + + /** + * + * + *
            +     * Optional. The scale type of the storage pool. Defaults to
            +     * `SCALE_TYPE_DEFAULT` if not specified.
            +     * 
            + * + * + * .google.cloud.netapp.v1.ScaleType scale_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scaleType. + */ + @java.lang.Override + public int getScaleTypeValue() { + return scaleType_; + } + + /** + * + * + *
            +     * Optional. The scale type of the storage pool. Defaults to
            +     * `SCALE_TYPE_DEFAULT` if not specified.
            +     * 
            + * + * + * .google.cloud.netapp.v1.ScaleType scale_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for scaleType to set. + * @return This builder for chaining. + */ + public Builder setScaleTypeValue(int value) { + scaleType_ = value; + bitField1_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The scale type of the storage pool. Defaults to
            +     * `SCALE_TYPE_DEFAULT` if not specified.
            +     * 
            + * + * + * .google.cloud.netapp.v1.ScaleType scale_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scaleType. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.ScaleType getScaleType() { + com.google.cloud.netapp.v1.ScaleType result = + com.google.cloud.netapp.v1.ScaleType.forNumber(scaleType_); + return result == null ? com.google.cloud.netapp.v1.ScaleType.UNRECOGNIZED : result; + } + + /** + * + * + *
            +     * Optional. The scale type of the storage pool. Defaults to
            +     * `SCALE_TYPE_DEFAULT` if not specified.
            +     * 
            + * + * + * .google.cloud.netapp.v1.ScaleType scale_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The scaleType to set. + * @return This builder for chaining. + */ + public Builder setScaleType(com.google.cloud.netapp.v1.ScaleType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField1_ |= 0x00000002; + scaleType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The scale type of the storage pool. Defaults to
            +     * `SCALE_TYPE_DEFAULT` if not specified.
            +     * 
            + * + * + * .google.cloud.netapp.v1.ScaleType scale_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearScaleType() { + bitField1_ = (bitField1_ & ~0x00000002); + scaleType_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.netapp.v1.StoragePool) } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java index a8418a5f69d3..795be628156b 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolOrBuilder.java @@ -863,4 +863,36 @@ java.lang.String getLabelsOrDefault( * @return The mode. */ com.google.cloud.netapp.v1.Mode getMode(); + + /** + * + * + *
            +   * Optional. The scale type of the storage pool. Defaults to
            +   * `SCALE_TYPE_DEFAULT` if not specified.
            +   * 
            + * + * + * .google.cloud.netapp.v1.ScaleType scale_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for scaleType. + */ + int getScaleTypeValue(); + + /** + * + * + *
            +   * Optional. The scale type of the storage pool. Defaults to
            +   * `SCALE_TYPE_DEFAULT` if not specified.
            +   * 
            + * + * + * .google.cloud.netapp.v1.ScaleType scale_type = 38 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scaleType. + */ + com.google.cloud.netapp.v1.ScaleType getScaleType(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java index 4bb3053aafa0..01df7fcaefd8 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/StoragePoolProto.java @@ -124,7 +124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "!netapp.googleapis.com/StoragePool\"Y\n" + "\036SwitchActiveReplicaZoneRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" - + "!netapp.googleapis.com/StoragePool\"\355\r\n" + + "!netapp.googleapis.com/StoragePool\"\251\016\n" + "\013StoragePool\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022@\n\r" + "service_level\030\002" @@ -171,7 +171,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004type\030#" + " \001(\0162\'.google.cloud.netapp.v1.StoragePoolTypeB\003\340A\001H\002\210\001\001\0224\n" + "\004mode\030$ " - + "\001(\0162\034.google.cloud.netapp.v1.ModeB\003\340A\001H\003\210\001\001\032-\n" + + "\001(\0162\034.google.cloud.netapp.v1.ModeB\003\340A\001H\003\210\001\001\022:\n\n" + + "scale_type\030& \001(\0162!.google.cloud.netapp.v1.ScaleTypeB\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001\"{\n" @@ -184,8 +185,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tRESTORING\020\005\022\014\n" + "\010DISABLED\020\006\022\t\n" + "\005ERROR\020\007:\207\001\352A\203\001\n" - + "!netapp.googleapis.com/StoragePool\022Cprojects/{project}/lo" - + "cations/{location}/storagePools/{storage_pool}*\014storagePools2\013storagePoolB\030\n" + + "!netapp.googleapis.com/StoragePool\022Cprojects/{project}/locations/{location}/s" + + "toragePools/{storage_pool}*\014storagePools2\013storagePoolB\030\n" + "\026_global_access_allowedB\036\n" + "\034_enable_hot_tier_auto_resizeB\007\n" + "\005_typeB\007\n" @@ -193,16 +194,17 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037ValidateDirectoryServiceRequest\0227\n" + "\004name\030\001 \001(\tB)\340A\002\372A#\n" + "!netapp.googleapis.com/StoragePool\022L\n" - + "\026directory_service_type\030\002 \001(\0162,.goo" - + "gle.cloud.netapp.v1.DirectoryServiceType*4\n" + + "\026directory_service_type\030\002" + + " \001(\0162,.google.cloud.netapp.v1.DirectoryServiceType*4\n" + "\004Mode\022\024\n" + "\020MODE_UNSPECIFIED\020\000\022\013\n" + "\007DEFAULT\020\001\022\t\n" + "\005ONTAP\020\002B\262\001\n" - + "\032com.google.cloud.netapp.v1B\020StoragePoolProtoP\001Z2cloud.google." - + "com/go/netapp/apiv1/netapppb;netapppb\252\002\026" - + "Google.Cloud.NetApp.V1\312\002\026Google\\Cloud\\Ne" - + "tApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" + + "\032com.google.cloud.netapp.v1B\020StoragePoolPr" + + "otoP\001Z2cloud.google.com/go/netapp/apiv1/" + + "netapppb;netapppb\252\002\026Google.Cloud.NetApp." + + "V1\312\002\026Google\\Cloud\\NetApp\\V1\352\002\031Google::Cl" + + "oud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -309,6 +311,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "HotTierSizeUsedGib", "Type", "Mode", + "ScaleType", }); internal_static_google_cloud_netapp_v1_StoragePool_LabelsEntry_descriptor = internal_static_google_cloud_netapp_v1_StoragePool_descriptor.getNestedType(0); diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java index 81ad13bb8655..8e8aec59f6a0 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/Volume.java @@ -3123,7 +3123,9 @@ public int getRestrictedActionsValue(int index) { * *
                * Optional. Flag indicating if the volume will be a large capacity volume or
            -   * a regular volume.
            +   * a regular volume. This field is used for legacy FILE pools. For Unified
            +   * pools, use the `large_capacity_config` field instead. This field and
            +   * `large_capacity_config` are mutually exclusive.
                * 
            * * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -3584,6 +3586,77 @@ public com.google.cloud.netapp.v1.BlockDeviceOrBuilder getBlockDevicesOrBuilder( return blockDevices_.get(index); } + public static final int LARGE_CAPACITY_CONFIG_FIELD_NUMBER = 46; + private com.google.cloud.netapp.v1.LargeCapacityConfig largeCapacityConfig_; + + /** + * + * + *
            +   * Optional. Large capacity config for the volume.
            +   * Enables and configures large capacity for volumes in Unified pools with
            +   * File protocols. Not applicable for Block protocols in Unified pools.
            +   * This field and the legacy `large_capacity` boolean field
            +   * are mutually exclusive.
            +   * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the largeCapacityConfig field is set. + */ + @java.lang.Override + public boolean hasLargeCapacityConfig() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +   * Optional. Large capacity config for the volume.
            +   * Enables and configures large capacity for volumes in Unified pools with
            +   * File protocols. Not applicable for Block protocols in Unified pools.
            +   * This field and the legacy `large_capacity` boolean field
            +   * are mutually exclusive.
            +   * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The largeCapacityConfig. + */ + @java.lang.Override + public com.google.cloud.netapp.v1.LargeCapacityConfig getLargeCapacityConfig() { + return largeCapacityConfig_ == null + ? com.google.cloud.netapp.v1.LargeCapacityConfig.getDefaultInstance() + : largeCapacityConfig_; + } + + /** + * + * + *
            +   * Optional. Large capacity config for the volume.
            +   * Enables and configures large capacity for volumes in Unified pools with
            +   * File protocols. Not applicable for Block protocols in Unified pools.
            +   * This field and the legacy `large_capacity` boolean field
            +   * are mutually exclusive.
            +   * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.netapp.v1.LargeCapacityConfigOrBuilder getLargeCapacityConfigOrBuilder() { + return largeCapacityConfig_ == null + ? com.google.cloud.netapp.v1.LargeCapacityConfig.getDefaultInstance() + : largeCapacityConfig_; + } + public static final int CLONE_DETAILS_FIELD_NUMBER = 47; private com.google.cloud.netapp.v1.Volume.CloneDetails cloneDetails_; @@ -3603,7 +3676,7 @@ public com.google.cloud.netapp.v1.BlockDeviceOrBuilder getBlockDevicesOrBuilder( */ @java.lang.Override public boolean hasCloneDetails() { - return ((bitField0_ & 0x00000100) != 0); + return ((bitField0_ & 0x00000200) != 0); } /** @@ -3802,6 +3875,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage(45, blockDevices_.get(i)); } if (((bitField0_ & 0x00000100) != 0)) { + output.writeMessage(46, getLargeCapacityConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(47, getCloneDetails()); } getUnknownFields().writeTo(output); @@ -3983,6 +4059,10 @@ public int getSerializedSize() { size += com.google.protobuf.CodedOutputStream.computeMessageSize(45, blockDevices_.get(i)); } if (((bitField0_ & 0x00000100) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(46, getLargeCapacityConfig()); + } + if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(47, getCloneDetails()); } size += getUnknownFields().getSerializedSize(); @@ -4069,6 +4149,10 @@ public boolean equals(final java.lang.Object obj) { } if (getHotTierSizeUsedGib() != other.getHotTierSizeUsedGib()) return false; if (!getBlockDevicesList().equals(other.getBlockDevicesList())) return false; + if (hasLargeCapacityConfig() != other.hasLargeCapacityConfig()) return false; + if (hasLargeCapacityConfig()) { + if (!getLargeCapacityConfig().equals(other.getLargeCapacityConfig())) return false; + } if (hasCloneDetails() != other.hasCloneDetails()) return false; if (hasCloneDetails()) { if (!getCloneDetails().equals(other.getCloneDetails())) return false; @@ -4202,6 +4286,10 @@ public int hashCode() { hash = (37 * hash) + BLOCK_DEVICES_FIELD_NUMBER; hash = (53 * hash) + getBlockDevicesList().hashCode(); } + if (hasLargeCapacityConfig()) { + hash = (37 * hash) + LARGE_CAPACITY_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getLargeCapacityConfig().hashCode(); + } if (hasCloneDetails()) { hash = (37 * hash) + CLONE_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getCloneDetails().hashCode(); @@ -4378,6 +4466,7 @@ private void maybeForceBuilderInitialization() { internalGetHybridReplicationParametersFieldBuilder(); internalGetCacheParametersFieldBuilder(); internalGetBlockDevicesFieldBuilder(); + internalGetLargeCapacityConfigFieldBuilder(); internalGetCloneDetailsFieldBuilder(); } } @@ -4473,6 +4562,11 @@ public Builder clear() { blockDevicesBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000200); + largeCapacityConfig_ = null; + if (largeCapacityConfigBuilder_ != null) { + largeCapacityConfigBuilder_.dispose(); + largeCapacityConfigBuilder_ = null; + } cloneDetails_ = null; if (cloneDetailsBuilder_ != null) { cloneDetailsBuilder_.dispose(); @@ -4689,9 +4783,16 @@ private void buildPartial1(com.google.cloud.netapp.v1.Volume result) { result.hotTierSizeUsedGib_ = hotTierSizeUsedGib_; } if (((from_bitField1_ & 0x00000400) != 0)) { + result.largeCapacityConfig_ = + largeCapacityConfigBuilder_ == null + ? largeCapacityConfig_ + : largeCapacityConfigBuilder_.build(); + to_bitField0_ |= 0x00000100; + } + if (((from_bitField1_ & 0x00000800) != 0)) { result.cloneDetails_ = cloneDetailsBuilder_ == null ? cloneDetails_ : cloneDetailsBuilder_.build(); - to_bitField0_ |= 0x00000100; + to_bitField0_ |= 0x00000200; } result.bitField0_ |= to_bitField0_; } @@ -4929,6 +5030,9 @@ public Builder mergeFrom(com.google.cloud.netapp.v1.Volume other) { } } } + if (other.hasLargeCapacityConfig()) { + mergeLargeCapacityConfig(other.getLargeCapacityConfig()); + } if (other.hasCloneDetails()) { mergeCloneDetails(other.getCloneDetails()); } @@ -5275,11 +5379,18 @@ public Builder mergeFrom( } break; } // case 362 + case 370: + { + input.readMessage( + internalGetLargeCapacityConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000400; + break; + } // case 370 case 378: { input.readMessage( internalGetCloneDetailsFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; break; } // case 378 default: @@ -9699,7 +9810,9 @@ public Builder addAllRestrictedActionsValue(java.lang.Iterable * Optional. Flag indicating if the volume will be a large capacity volume or - * a regular volume. + * a regular volume. This field is used for legacy FILE pools. For Unified + * pools, use the `large_capacity_config` field instead. This field and + * `large_capacity_config` are mutually exclusive. * * * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -9716,7 +9829,9 @@ public boolean getLargeCapacity() { * *
                  * Optional. Flag indicating if the volume will be a large capacity volume or
            -     * a regular volume.
            +     * a regular volume. This field is used for legacy FILE pools. For Unified
            +     * pools, use the `large_capacity_config` field instead. This field and
            +     * `large_capacity_config` are mutually exclusive.
                  * 
            * * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -9737,7 +9852,9 @@ public Builder setLargeCapacity(boolean value) { * *
                  * Optional. Flag indicating if the volume will be a large capacity volume or
            -     * a regular volume.
            +     * a regular volume. This field is used for legacy FILE pools. For Unified
            +     * pools, use the `large_capacity_config` field instead. This field and
            +     * `large_capacity_config` are mutually exclusive.
                  * 
            * * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -11257,6 +11374,257 @@ public com.google.cloud.netapp.v1.BlockDevice.Builder addBlockDevicesBuilder(int return blockDevicesBuilder_; } + private com.google.cloud.netapp.v1.LargeCapacityConfig largeCapacityConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.LargeCapacityConfig, + com.google.cloud.netapp.v1.LargeCapacityConfig.Builder, + com.google.cloud.netapp.v1.LargeCapacityConfigOrBuilder> + largeCapacityConfigBuilder_; + + /** + * + * + *
            +     * Optional. Large capacity config for the volume.
            +     * Enables and configures large capacity for volumes in Unified pools with
            +     * File protocols. Not applicable for Block protocols in Unified pools.
            +     * This field and the legacy `large_capacity` boolean field
            +     * are mutually exclusive.
            +     * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the largeCapacityConfig field is set. + */ + public boolean hasLargeCapacityConfig() { + return ((bitField1_ & 0x00000400) != 0); + } + + /** + * + * + *
            +     * Optional. Large capacity config for the volume.
            +     * Enables and configures large capacity for volumes in Unified pools with
            +     * File protocols. Not applicable for Block protocols in Unified pools.
            +     * This field and the legacy `large_capacity` boolean field
            +     * are mutually exclusive.
            +     * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The largeCapacityConfig. + */ + public com.google.cloud.netapp.v1.LargeCapacityConfig getLargeCapacityConfig() { + if (largeCapacityConfigBuilder_ == null) { + return largeCapacityConfig_ == null + ? com.google.cloud.netapp.v1.LargeCapacityConfig.getDefaultInstance() + : largeCapacityConfig_; + } else { + return largeCapacityConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Large capacity config for the volume.
            +     * Enables and configures large capacity for volumes in Unified pools with
            +     * File protocols. Not applicable for Block protocols in Unified pools.
            +     * This field and the legacy `large_capacity` boolean field
            +     * are mutually exclusive.
            +     * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLargeCapacityConfig(com.google.cloud.netapp.v1.LargeCapacityConfig value) { + if (largeCapacityConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + largeCapacityConfig_ = value; + } else { + largeCapacityConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Large capacity config for the volume.
            +     * Enables and configures large capacity for volumes in Unified pools with
            +     * File protocols. Not applicable for Block protocols in Unified pools.
            +     * This field and the legacy `large_capacity` boolean field
            +     * are mutually exclusive.
            +     * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setLargeCapacityConfig( + com.google.cloud.netapp.v1.LargeCapacityConfig.Builder builderForValue) { + if (largeCapacityConfigBuilder_ == null) { + largeCapacityConfig_ = builderForValue.build(); + } else { + largeCapacityConfigBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Large capacity config for the volume.
            +     * Enables and configures large capacity for volumes in Unified pools with
            +     * File protocols. Not applicable for Block protocols in Unified pools.
            +     * This field and the legacy `large_capacity` boolean field
            +     * are mutually exclusive.
            +     * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeLargeCapacityConfig(com.google.cloud.netapp.v1.LargeCapacityConfig value) { + if (largeCapacityConfigBuilder_ == null) { + if (((bitField1_ & 0x00000400) != 0) + && largeCapacityConfig_ != null + && largeCapacityConfig_ + != com.google.cloud.netapp.v1.LargeCapacityConfig.getDefaultInstance()) { + getLargeCapacityConfigBuilder().mergeFrom(value); + } else { + largeCapacityConfig_ = value; + } + } else { + largeCapacityConfigBuilder_.mergeFrom(value); + } + if (largeCapacityConfig_ != null) { + bitField1_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Large capacity config for the volume.
            +     * Enables and configures large capacity for volumes in Unified pools with
            +     * File protocols. Not applicable for Block protocols in Unified pools.
            +     * This field and the legacy `large_capacity` boolean field
            +     * are mutually exclusive.
            +     * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearLargeCapacityConfig() { + bitField1_ = (bitField1_ & ~0x00000400); + largeCapacityConfig_ = null; + if (largeCapacityConfigBuilder_ != null) { + largeCapacityConfigBuilder_.dispose(); + largeCapacityConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Large capacity config for the volume.
            +     * Enables and configures large capacity for volumes in Unified pools with
            +     * File protocols. Not applicable for Block protocols in Unified pools.
            +     * This field and the legacy `large_capacity` boolean field
            +     * are mutually exclusive.
            +     * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.netapp.v1.LargeCapacityConfig.Builder getLargeCapacityConfigBuilder() { + bitField1_ |= 0x00000400; + onChanged(); + return internalGetLargeCapacityConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Large capacity config for the volume.
            +     * Enables and configures large capacity for volumes in Unified pools with
            +     * File protocols. Not applicable for Block protocols in Unified pools.
            +     * This field and the legacy `large_capacity` boolean field
            +     * are mutually exclusive.
            +     * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.netapp.v1.LargeCapacityConfigOrBuilder + getLargeCapacityConfigOrBuilder() { + if (largeCapacityConfigBuilder_ != null) { + return largeCapacityConfigBuilder_.getMessageOrBuilder(); + } else { + return largeCapacityConfig_ == null + ? com.google.cloud.netapp.v1.LargeCapacityConfig.getDefaultInstance() + : largeCapacityConfig_; + } + } + + /** + * + * + *
            +     * Optional. Large capacity config for the volume.
            +     * Enables and configures large capacity for volumes in Unified pools with
            +     * File protocols. Not applicable for Block protocols in Unified pools.
            +     * This field and the legacy `large_capacity` boolean field
            +     * are mutually exclusive.
            +     * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.LargeCapacityConfig, + com.google.cloud.netapp.v1.LargeCapacityConfig.Builder, + com.google.cloud.netapp.v1.LargeCapacityConfigOrBuilder> + internalGetLargeCapacityConfigFieldBuilder() { + if (largeCapacityConfigBuilder_ == null) { + largeCapacityConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.netapp.v1.LargeCapacityConfig, + com.google.cloud.netapp.v1.LargeCapacityConfig.Builder, + com.google.cloud.netapp.v1.LargeCapacityConfigOrBuilder>( + getLargeCapacityConfig(), getParentForChildren(), isClean()); + largeCapacityConfig_ = null; + } + return largeCapacityConfigBuilder_; + } + private com.google.cloud.netapp.v1.Volume.CloneDetails cloneDetails_; private com.google.protobuf.SingleFieldBuilder< com.google.cloud.netapp.v1.Volume.CloneDetails, @@ -11279,7 +11647,7 @@ public com.google.cloud.netapp.v1.BlockDevice.Builder addBlockDevicesBuilder(int * @return Whether the cloneDetails field is set. */ public boolean hasCloneDetails() { - return ((bitField1_ & 0x00000400) != 0); + return ((bitField1_ & 0x00000800) != 0); } /** @@ -11327,7 +11695,7 @@ public Builder setCloneDetails(com.google.cloud.netapp.v1.Volume.CloneDetails va } else { cloneDetailsBuilder_.setMessage(value); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -11351,7 +11719,7 @@ public Builder setCloneDetails( } else { cloneDetailsBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; onChanged(); return this; } @@ -11370,7 +11738,7 @@ public Builder setCloneDetails( */ public Builder mergeCloneDetails(com.google.cloud.netapp.v1.Volume.CloneDetails value) { if (cloneDetailsBuilder_ == null) { - if (((bitField1_ & 0x00000400) != 0) + if (((bitField1_ & 0x00000800) != 0) && cloneDetails_ != null && cloneDetails_ != com.google.cloud.netapp.v1.Volume.CloneDetails.getDefaultInstance()) { @@ -11382,7 +11750,7 @@ public Builder mergeCloneDetails(com.google.cloud.netapp.v1.Volume.CloneDetails cloneDetailsBuilder_.mergeFrom(value); } if (cloneDetails_ != null) { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; onChanged(); } return this; @@ -11401,7 +11769,7 @@ public Builder mergeCloneDetails(com.google.cloud.netapp.v1.Volume.CloneDetails *
            */ public Builder clearCloneDetails() { - bitField1_ = (bitField1_ & ~0x00000400); + bitField1_ = (bitField1_ & ~0x00000800); cloneDetails_ = null; if (cloneDetailsBuilder_ != null) { cloneDetailsBuilder_.dispose(); @@ -11424,7 +11792,7 @@ public Builder clearCloneDetails() { *
            */ public com.google.cloud.netapp.v1.Volume.CloneDetails.Builder getCloneDetailsBuilder() { - bitField1_ |= 0x00000400; + bitField1_ |= 0x00000800; onChanged(); return internalGetCloneDetailsFieldBuilder().getBuilder(); } diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java index 348691574afc..a7287203c206 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeOrBuilder.java @@ -1096,7 +1096,9 @@ java.lang.String getLabelsOrDefault( * *
                * Optional. Flag indicating if the volume will be a large capacity volume or
            -   * a regular volume.
            +   * a regular volume. This field is used for legacy FILE pools. For Unified
            +   * pools, use the `large_capacity_config` field instead. This field and
            +   * `large_capacity_config` are mutually exclusive.
                * 
            * * bool large_capacity = 32 [(.google.api.field_behavior) = OPTIONAL]; @@ -1408,6 +1410,61 @@ java.lang.String getLabelsOrDefault( */ com.google.cloud.netapp.v1.BlockDeviceOrBuilder getBlockDevicesOrBuilder(int index); + /** + * + * + *
            +   * Optional. Large capacity config for the volume.
            +   * Enables and configures large capacity for volumes in Unified pools with
            +   * File protocols. Not applicable for Block protocols in Unified pools.
            +   * This field and the legacy `large_capacity` boolean field
            +   * are mutually exclusive.
            +   * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the largeCapacityConfig field is set. + */ + boolean hasLargeCapacityConfig(); + + /** + * + * + *
            +   * Optional. Large capacity config for the volume.
            +   * Enables and configures large capacity for volumes in Unified pools with
            +   * File protocols. Not applicable for Block protocols in Unified pools.
            +   * This field and the legacy `large_capacity` boolean field
            +   * are mutually exclusive.
            +   * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The largeCapacityConfig. + */ + com.google.cloud.netapp.v1.LargeCapacityConfig getLargeCapacityConfig(); + + /** + * + * + *
            +   * Optional. Large capacity config for the volume.
            +   * Enables and configures large capacity for volumes in Unified pools with
            +   * File protocols. Not applicable for Block protocols in Unified pools.
            +   * This field and the legacy `large_capacity` boolean field
            +   * are mutually exclusive.
            +   * 
            + * + * + * .google.cloud.netapp.v1.LargeCapacityConfig large_capacity_config = 46 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.netapp.v1.LargeCapacityConfigOrBuilder getLargeCapacityConfigOrBuilder(); + /** * * diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java index 8f404fff5cf6..9397bb5521ff 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/java/com/google/cloud/netapp/v1/VolumeProto.java @@ -80,6 +80,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_netapp_v1_Volume_LabelsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_netapp_v1_LargeCapacityConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_netapp_v1_LargeCapacityConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_netapp_v1_ExportPolicy_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -205,7 +209,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023RevertVolumeRequest\0222\n" + "\004name\030\001 \001(\tB$\340A\002\372A\036\n" + "\034netapp.googleapis.com/Volume\022\030\n" - + "\013snapshot_id\030\002 \001(\tB\003\340A\002\"\325\024\n" + + "\013snapshot_id\030\002 \001(\tB\003\340A\002\"\246\025\n" + "\006Volume\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\0228\n" + "\005state\030\002 \001(\0162$.g" @@ -269,19 +273,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020cache_parameters\030*" + " \001(\0132\'.google.cloud.netapp.v1.CacheParametersB\003\340A\001\022#\n" + "\026hot_tier_size_used_gib\030, \001(\003B\003\340A\003\022?\n\r" - + "block_devices\030- \003(\013" - + "2#.google.cloud.netapp.v1.BlockDeviceB\003\340A\001\022G\n\r" + + "block_devices\030- \003(\0132#.google.cloud.netapp.v1.BlockDeviceB\003\340A\001\022O\n" + + "\025large_capacity_config\030. \001(\0132+.goog" + + "le.cloud.netapp.v1.LargeCapacityConfigB\003\340A\001\022G\n\r" + "clone_details\030/" + " \001(\0132+.google.cloud.netapp.v1.Volume.CloneDetailsB\003\340A\003\032\253\001\n" + "\014CloneDetails\022?\n" + "\017source_snapshot\030\001 \001(\tB&\340A\003\372A \n" - + "\036netapp.googleapis.com/Snapshot\022;\n" - + "\r" + + "\036netapp.googleapis.com/Snapshot\022;\n\r" + "source_volume\030\002 \001(\tB$\340A\003\372A\036\n" + "\034netapp.googleapis.com/Volume\022\035\n" + "\020shared_space_gib\030\003 \001(\003B\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" - + "\003key\030\001 \001(\t\022\r\n" + + "\003key\030\001 \001(\t\022\r" + + "\n" + "\005value\030\002 \001(\t:\0028\001\"\231\001\n" + "\005State\022\025\n" + "\021STATE_UNSPECIFIED\020\000\022\t\n" @@ -292,15 +297,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tRESTORING\020\005\022\014\n" + "\010DISABLED\020\006\022\t\n" + "\005ERROR\020\007\022\r\n" - + "\tPREPARING\020\010\022\r\n" + + "\tPREPARING\020\010\022\r" + + "\n" + "\tREAD_ONLY\020\t:l\352Ai\n" - + "\034netapp.googleapis.com/Volume\0228projects/{project}/locations/{l" - + "ocation}/volumes/{volume}*\007volumes2\006volumeB\020\n" + + "\034netapp.googleapis.com/Volume\0228projects/{project}/locations/{" + + "location}/volumes/{volume}*\007volumes2\006volumeB\020\n" + "\016_backup_configB\021\n" - + "\017_tiering_policy\"R\n" + + "\017_tiering_policy\"5\n" + + "\023LargeCapacityConfig\022\036\n" + + "\021constituent_count\030\001 \001(\005B\003\340A\001\"R\n" + "\014ExportPolicy\022B\n" - + "\005rules\030\001 \003(\0132..google." - + "cloud.netapp.v1.SimpleExportPolicyRuleB\003\340A\002\"\357\006\n" + + "\005rules\030\001" + + " \003(\0132..google.cloud.netapp.v1.SimpleExportPolicyRuleB\003\340A\002\"\357\006\n" + "\026SimpleExportPolicyRule\022\034\n" + "\017allowed_clients\030\001 \001(\tH\000\210\001\001\022\034\n" + "\017has_root_access\030\002 \001(\tH\001\210\001\001\022<\n" @@ -316,8 +324,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\010H\t\210\001\001\022#\n" + "\026kerberos_5p_read_write\030\013 \001(\010H\n" + "\210\001\001\022X\n" - + "\013squash_mode\030\014 \001(\01629.google." - + "cloud.netapp.v1.SimpleExportPolicyRule.SquashModeB\003\340A\001H\013\210\001\001\022\032\n" + + "\013squash_mode\030\014" + + " \001(\01629.google.cloud.netapp.v1.SimpleExportPolicyRule.SquashModeB\003\340A\001H\013\210\001\001\022\032\n" + "\010anon_uid\030\r" + " \001(\003B\003\340A\001H\014\210\001\001\"^\n\n" + "SquashMode\022\033\n" @@ -342,12 +350,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\007enabled\030\001 \001(\010H\000\210\001\001\022D\n" + "\017hourly_schedule\030\002" + " \001(\0132&.google.cloud.netapp.v1.HourlyScheduleH\001\210\001\001\022B\n" - + "\016daily_schedule\030\003" - + " \001(\0132%.google.cloud.netapp.v1.DailyScheduleH\002\210\001\001\022D\n" + + "\016daily_schedule\030\003 \001(\0132%.g" + + "oogle.cloud.netapp.v1.DailyScheduleH\002\210\001\001\022D\n" + "\017weekly_schedule\030\004" + " \001(\0132&.google.cloud.netapp.v1.WeeklyScheduleH\003\210\001\001\022F\n" - + "\020monthly_schedule\030\005 \001(\013" - + "2\'.google.cloud.netapp.v1.MonthlyScheduleH\004\210\001\001B\n\n" + + "\020monthly_schedule\030\005" + + " \001(\0132\'.google.cloud.netapp.v1.MonthlyScheduleH\004\210\001\001B\n\n" + "\010_enabledB\022\n" + "\020_hourly_scheduleB\021\n" + "\017_daily_scheduleB\022\n" @@ -404,8 +412,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031_scheduled_backup_enabledB\025\n" + "\023_backup_chain_bytes\"\312\002\n\r" + "TieringPolicy\022O\n" - + "\013tier_action\030\001 \001(\01620.g" - + "oogle.cloud.netapp.v1.TieringPolicy.TierActionB\003\340A\001H\000\210\001\001\022(\n" + + "\013tier_action\030\001" + + " \001(\01620.google.cloud.netapp.v1.TieringPolicy.TierActionB\003\340A\001H\000\210\001\001\022(\n" + "\026cooling_threshold_days\030\002 \001(\005B\003\340A\001H\001\210\001\001\022.\n" + "\034hot_tier_bypass_mode_enabled\030\003" + " \001(\010B\003\340A\001H\002\210\001\001\"B\n\n" @@ -425,13 +433,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021peer_ip_addresses\030\005 \003(\tB\003\340A\002\022\035\n" + "\020cluster_location\030\006 \001(\tB\003\340A\001\022\030\n" + "\013description\030\007 \001(\tB\003\340A\001\022T\n" - + "\006labels\030\010 \003(\0132?.google.cloud.ne" - + "tapp.v1.HybridReplicationParameters.LabelsEntryB\003\340A\001\022T\n" - + "\024replication_schedule\030\t \001" - + "(\01621.google.cloud.netapp.v1.HybridReplicationScheduleB\003\340A\001\022u\n" + + "\006labels\030\010 \003(\0132?" + + ".google.cloud.netapp.v1.HybridReplicationParameters.LabelsEntryB\003\340A\001\022T\n" + + "\024replication_schedule\030\t" + + " \001(\01621.google.cloud.netapp.v1.HybridReplicationScheduleB\003\340A\001\022u\n" + "\027hybrid_replication_type\030\n" - + " \001(\0162O.google.cloud.netapp.v1.Hyb" - + "ridReplicationParameters.VolumeHybridReplicationTypeB\003\340A\001\022+\n" + + " \001(\0162O.google.clo" + + "ud.netapp.v1.HybridReplicationParameters.VolumeHybridReplicationTypeB\003\340A\001\022+\n" + "\036large_volume_constituent_count\030\013 \001(\005B\003\340A\001\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" @@ -450,8 +458,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\027enable_global_file_lock\030\005 \001(\010B\003\340A\001H\000\210\001\001\022>\n" + "\014cache_config\030\006" + " \001(\0132#.google.cloud.netapp.v1.CacheConfigB\003\340A\001\022L\n" - + "\013cache_state\030\007 \001(\0162" - + "2.google.cloud.netapp.v1.CacheParameters.CacheStateB\003\340A\003\022\024\n" + + "\013cache_state\030\007" + + " \001(\01622.google.cloud.netapp.v1.CacheParameters.CacheStateB\003\340A\003\022\024\n" + "\007command\030\010 \001(\tB\003\340A\003\022D\n" + "\033peering_command_expiry_time\030\t" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\027\n\n" @@ -466,12 +474,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005ERROR\020\004B\032\n" + "\030_enable_global_file_lock\"\277\003\n" + "\013CacheConfig\022I\n" - + "\022cache_pre_populate\030\001 \001(\0132(.goog" - + "le.cloud.netapp.v1.CachePrePopulateB\003\340A\001\022#\n" + + "\022cache_pre_populate\030\001" + + " \001(\0132(.google.cloud.netapp.v1.CachePrePopulateB\003\340A\001\022#\n" + "\021writeback_enabled\030\002 \001(\010B\003\340A\001H\000\210\001\001\022,\n" + "\032cifs_change_notify_enabled\030\005 \001(\010B\003\340A\001H\001\210\001\001\022`\n" - + "\030cache_pre_populate_state\030\006 \001(\01629." - + "google.cloud.netapp.v1.CacheConfig.CachePrePopulateStateB\003\340A\003\"{\n" + + "\030cache_pre_populate_state\030\006" + + " \001(\01629.google.cloud.netapp.v1.CacheConfig.CachePrePopulateStateB\003\340A\003\"{\n" + "\025CachePrePopulateState\022(\n" + "$CACHE_PRE_POPULATE_STATE_UNSPECIFIED\020\000\022\016\n\n" + "NOT_NEEDED\020\001\022\017\n" @@ -539,10 +547,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020RestrictedAction\022!\n" + "\035RESTRICTED_ACTION_UNSPECIFIED\020\000\022\n\n" + "\006DELETE\020\001B\255\001\n" - + "\032com.google.cloud.netapp.v1B\013VolumeProtoP\001Z2cloud.google.com/go/" - + "netapp/apiv1/netapppb;netapppb\252\002\026Google." - + "Cloud.NetApp.V1\312\002\026Google\\Cloud\\NetApp\\V1" - + "\352\002\031Google::Cloud::NetApp::V1b\006proto3" + + "\032com.google.cloud.netapp.v1B\013VolumeProtoP\001Z2clou" + + "d.google.com/go/netapp/apiv1/netapppb;ne" + + "tapppb\252\002\026Google.Cloud.NetApp.V1\312\002\026Google" + + "\\Cloud\\NetApp\\V1\352\002\031Google::Cloud::NetApp::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -658,6 +666,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CacheParameters", "HotTierSizeUsedGib", "BlockDevices", + "LargeCapacityConfig", "CloneDetails", }); internal_static_google_cloud_netapp_v1_Volume_CloneDetails_descriptor = @@ -676,8 +685,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Key", "Value", }); - internal_static_google_cloud_netapp_v1_ExportPolicy_descriptor = + internal_static_google_cloud_netapp_v1_LargeCapacityConfig_descriptor = getDescriptor().getMessageType(8); + internal_static_google_cloud_netapp_v1_LargeCapacityConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_netapp_v1_LargeCapacityConfig_descriptor, + new java.lang.String[] { + "ConstituentCount", + }); + internal_static_google_cloud_netapp_v1_ExportPolicy_descriptor = + getDescriptor().getMessageType(9); internal_static_google_cloud_netapp_v1_ExportPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_ExportPolicy_descriptor, @@ -685,7 +702,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Rules", }); internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_descriptor = - getDescriptor().getMessageType(9); + getDescriptor().getMessageType(10); internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_SimpleExportPolicyRule_descriptor, @@ -705,7 +722,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "AnonUid", }); internal_static_google_cloud_netapp_v1_SnapshotPolicy_descriptor = - getDescriptor().getMessageType(10); + getDescriptor().getMessageType(11); internal_static_google_cloud_netapp_v1_SnapshotPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_SnapshotPolicy_descriptor, @@ -713,7 +730,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Enabled", "HourlySchedule", "DailySchedule", "WeeklySchedule", "MonthlySchedule", }); internal_static_google_cloud_netapp_v1_HourlySchedule_descriptor = - getDescriptor().getMessageType(11); + getDescriptor().getMessageType(12); internal_static_google_cloud_netapp_v1_HourlySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_HourlySchedule_descriptor, @@ -721,7 +738,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SnapshotsToKeep", "Minute", }); internal_static_google_cloud_netapp_v1_DailySchedule_descriptor = - getDescriptor().getMessageType(12); + getDescriptor().getMessageType(13); internal_static_google_cloud_netapp_v1_DailySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_DailySchedule_descriptor, @@ -729,7 +746,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SnapshotsToKeep", "Minute", "Hour", }); internal_static_google_cloud_netapp_v1_WeeklySchedule_descriptor = - getDescriptor().getMessageType(13); + getDescriptor().getMessageType(14); internal_static_google_cloud_netapp_v1_WeeklySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_WeeklySchedule_descriptor, @@ -737,7 +754,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SnapshotsToKeep", "Minute", "Hour", "Day", }); internal_static_google_cloud_netapp_v1_MonthlySchedule_descriptor = - getDescriptor().getMessageType(14); + getDescriptor().getMessageType(15); internal_static_google_cloud_netapp_v1_MonthlySchedule_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_MonthlySchedule_descriptor, @@ -745,7 +762,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SnapshotsToKeep", "Minute", "Hour", "DaysOfMonth", }); internal_static_google_cloud_netapp_v1_MountOption_descriptor = - getDescriptor().getMessageType(15); + getDescriptor().getMessageType(16); internal_static_google_cloud_netapp_v1_MountOption_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_MountOption_descriptor, @@ -753,7 +770,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Export", "ExportFull", "Protocol", "Instructions", "IpAddress", }); internal_static_google_cloud_netapp_v1_RestoreParameters_descriptor = - getDescriptor().getMessageType(16); + getDescriptor().getMessageType(17); internal_static_google_cloud_netapp_v1_RestoreParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_RestoreParameters_descriptor, @@ -761,7 +778,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "SourceSnapshot", "SourceBackup", "Source", }); internal_static_google_cloud_netapp_v1_BackupConfig_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(18); internal_static_google_cloud_netapp_v1_BackupConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_BackupConfig_descriptor, @@ -769,7 +786,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "BackupPolicies", "BackupVault", "ScheduledBackupEnabled", "BackupChainBytes", }); internal_static_google_cloud_netapp_v1_TieringPolicy_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(19); internal_static_google_cloud_netapp_v1_TieringPolicy_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_TieringPolicy_descriptor, @@ -777,7 +794,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "TierAction", "CoolingThresholdDays", "HotTierBypassModeEnabled", }); internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(20); internal_static_google_cloud_netapp_v1_HybridReplicationParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_HybridReplicationParameters_descriptor, @@ -804,7 +821,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Key", "Value", }); internal_static_google_cloud_netapp_v1_CacheParameters_descriptor = - getDescriptor().getMessageType(20); + getDescriptor().getMessageType(21); internal_static_google_cloud_netapp_v1_CacheParameters_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_CacheParameters_descriptor, @@ -822,7 +839,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StateDetails", }); internal_static_google_cloud_netapp_v1_CacheConfig_descriptor = - getDescriptor().getMessageType(21); + getDescriptor().getMessageType(22); internal_static_google_cloud_netapp_v1_CacheConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_CacheConfig_descriptor, @@ -833,7 +850,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CachePrePopulateState", }); internal_static_google_cloud_netapp_v1_CachePrePopulate_descriptor = - getDescriptor().getMessageType(22); + getDescriptor().getMessageType(23); internal_static_google_cloud_netapp_v1_CachePrePopulate_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_CachePrePopulate_descriptor, @@ -841,7 +858,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "PathList", "ExcludePathList", "Recursion", }); internal_static_google_cloud_netapp_v1_BlockDevice_descriptor = - getDescriptor().getMessageType(23); + getDescriptor().getMessageType(24); internal_static_google_cloud_netapp_v1_BlockDevice_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_BlockDevice_descriptor, @@ -849,7 +866,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "HostGroups", "Identifier", "SizeGib", "OsType", }); internal_static_google_cloud_netapp_v1_RestoreBackupFilesRequest_descriptor = - getDescriptor().getMessageType(24); + getDescriptor().getMessageType(25); internal_static_google_cloud_netapp_v1_RestoreBackupFilesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_RestoreBackupFilesRequest_descriptor, @@ -857,13 +874,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Backup", "FileList", "RestoreDestinationPath", }); internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_descriptor = - getDescriptor().getMessageType(25); + getDescriptor().getMessageType(26); internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_RestoreBackupFilesResponse_descriptor, new java.lang.String[] {}); internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor = - getDescriptor().getMessageType(26); + getDescriptor().getMessageType(27); internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_netapp_v1_EstablishVolumePeeringRequest_descriptor, diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto index 789ad87e8bed..d73116f1b372 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/common.proto @@ -89,6 +89,20 @@ enum StoragePoolType { UNIFIED = 2; } +// Defines the scale-type of a UNIFIED Storage Pool. +enum ScaleType { + // Unspecified scale type. + SCALE_TYPE_UNSPECIFIED = 0; + + // Represents standard capacity and performance scale-type. + // Suitable for general purpose workloads. + SCALE_TYPE_DEFAULT = 1; + + // Represents higher capacity and performance scale-type. + // Suitable for more demanding workloads. + SCALE_TYPE_SCALEOUT = 2; +} + // Schedule for Hybrid Replication. // New enum values may be added in future to support different frequency of // replication. diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto index 7bbca2f75887..6d7d0a090b73 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/storage_pool.proto @@ -323,6 +323,10 @@ message StoragePool { // GCNV ONTAP Mode APIs. If not specified during creation, it defaults to // `DEFAULT`. optional Mode mode = 36 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The scale type of the storage pool. Defaults to + // `SCALE_TYPE_DEFAULT` if not specified. + ScaleType scale_type = 38 [(google.api.field_behavior) = OPTIONAL]; } // ValidateDirectoryServiceRequest validates the directory service policy diff --git a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto index d5526eaefd41..8b90c83e5602 100644 --- a/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto +++ b/java-netapp/proto-google-cloud-netapp-v1/src/main/proto/google/cloud/netapp/v1/volume.proto @@ -423,7 +423,9 @@ message Volume { [(google.api.field_behavior) = OPTIONAL]; // Optional. Flag indicating if the volume will be a large capacity volume or - // a regular volume. + // a regular volume. This field is used for legacy FILE pools. For Unified + // pools, use the `large_capacity_config` field instead. This field and + // `large_capacity_config` are mutually exclusive. bool large_capacity = 32 [(google.api.field_behavior) = OPTIONAL]; // Optional. Flag indicating if the volume will have an IP address per node @@ -464,11 +466,28 @@ message Volume { repeated BlockDevice block_devices = 45 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Large capacity config for the volume. + // Enables and configures large capacity for volumes in Unified pools with + // File protocols. Not applicable for Block protocols in Unified pools. + // This field and the legacy `large_capacity` boolean field + // are mutually exclusive. + LargeCapacityConfig large_capacity_config = 46 + [(google.api.field_behavior) = OPTIONAL]; + // Output only. If this volume is a clone, this field contains details about // the clone. CloneDetails clone_details = 47 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Configuration for a Large Capacity Volume. A Large Capacity Volume +// supports sizes ranging from 4.8 TiB to 20 PiB, it is composed of multiple +// internal constituents, and must be created in a large capacity pool. +message LargeCapacityConfig { + // Optional. The number of internal constituents (e.g., FlexVols) for this + // large volume. The minimum number of constituents is 2. + int32 constituent_count = 1 [(google.api.field_behavior) = OPTIONAL]; +} + // Defines the export policy for the volume. message ExportPolicy { // Required. List of export policy rules diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributes.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributes.java index 56d650f4b662..b69c78286b2c 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributes.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributes.java @@ -117,6 +117,7 @@ private ProductAttributes() { virtualModelLink_ = ""; certifications_ = java.util.Collections.emptyList(); sustainabilityIncentives_ = java.util.Collections.emptyList(); + videoLinks_ = com.google.protobuf.LazyStringArrayList.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -8219,7 +8220,7 @@ public com.google.protobuf.ByteString getGoogleProductCategoryBytes() { * *
                * Global Trade Item Numbers
            -   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                * item.
                * You can provide up to 10 GTINs.
                * 
            @@ -8237,7 +8238,7 @@ public com.google.protobuf.ProtocolStringList getGtinsList() { * *
                * Global Trade Item Numbers
            -   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                * item.
                * You can provide up to 10 GTINs.
                * 
            @@ -8255,7 +8256,7 @@ public int getGtinsCount() { * *
                * Global Trade Item Numbers
            -   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                * item.
                * You can provide up to 10 GTINs.
                * 
            @@ -8274,7 +8275,7 @@ public java.lang.String getGtins(int index) { * *
                * Global Trade Item Numbers
            -   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                * item.
                * You can provide up to 10 GTINs.
                * 
            @@ -8439,7 +8440,7 @@ public com.google.protobuf.ByteString getMaterialBytes() { * *
                * Manufacturer Part Number
            -   * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +   * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                * item.
                * 
            * @@ -8457,7 +8458,7 @@ public boolean hasMpn() { * *
                * Manufacturer Part Number
            -   * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +   * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                * item.
                * 
            * @@ -8483,7 +8484,7 @@ public java.lang.String getMpn() { * *
                * Manufacturer Part Number
            -   * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +   * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                * item.
                * 
            * @@ -13639,6 +13640,86 @@ public int getSustainabilityIncentivesCount() { return sustainabilityIncentives_.get(index); } + public static final int VIDEO_LINKS_FIELD_NUMBER = 169; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList videoLinks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. A list of video URLs for the item. Use this attribute to provide
            +   * more visuals for your product beyond your image attributes. See the [Help
            +   * Center article](https://support.google.com/merchants/answer/15216925) for
            +   * more information.
            +   * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the videoLinks. + */ + public com.google.protobuf.ProtocolStringList getVideoLinksList() { + return videoLinks_; + } + + /** + * + * + *
            +   * Optional. A list of video URLs for the item. Use this attribute to provide
            +   * more visuals for your product beyond your image attributes. See the [Help
            +   * Center article](https://support.google.com/merchants/answer/15216925) for
            +   * more information.
            +   * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of videoLinks. + */ + public int getVideoLinksCount() { + return videoLinks_.size(); + } + + /** + * + * + *
            +   * Optional. A list of video URLs for the item. Use this attribute to provide
            +   * more visuals for your product beyond your image attributes. See the [Help
            +   * Center article](https://support.google.com/merchants/answer/15216925) for
            +   * more information.
            +   * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The videoLinks at the given index. + */ + public java.lang.String getVideoLinks(int index) { + return videoLinks_.get(index); + } + + /** + * + * + *
            +   * Optional. A list of video URLs for the item. Use this attribute to provide
            +   * more visuals for your product beyond your image attributes. See the [Help
            +   * Center article](https://support.google.com/merchants/answer/15216925) for
            +   * more information.
            +   * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the videoLinks at the given index. + */ + public com.google.protobuf.ByteString getVideoLinksBytes(int index) { + return videoLinks_.getByteString(index); + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -13955,6 +14036,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < shippingTransitBusinessDays_.size(); i++) { output.writeMessage(144, shippingTransitBusinessDays_.get(i)); } + for (int i = 0; i < videoLinks_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 169, videoLinks_.getRaw(i)); + } if (((bitField1_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 170, returnPolicyLabel_); } @@ -14351,6 +14435,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 144, shippingTransitBusinessDays_.get(i)); } + { + int dataSize = 0; + for (int i = 0; i < videoLinks_.size(); i++) { + dataSize += computeStringSizeNoTag(videoLinks_.getRaw(i)); + } + size += dataSize; + size += 2 * getVideoLinksList().size(); + } if (((bitField1_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(170, returnPolicyLabel_); } @@ -14695,6 +14787,7 @@ public boolean equals(final java.lang.Object obj) { } if (!getSustainabilityIncentivesList().equals(other.getSustainabilityIncentivesList())) return false; + if (!getVideoLinksList().equals(other.getVideoLinksList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -15097,6 +15190,10 @@ public int hashCode() { hash = (37 * hash) + SUSTAINABILITY_INCENTIVES_FIELD_NUMBER; hash = (53 * hash) + getSustainabilityIncentivesList().hashCode(); } + if (getVideoLinksCount() > 0) { + hash = (37 * hash) + VIDEO_LINKS_FIELD_NUMBER; + hash = (53 * hash) + getVideoLinksList().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -15543,6 +15640,7 @@ public Builder clear() { sustainabilityIncentivesBuilder_.clear(); } bitField3_ = (bitField3_ & ~0x00000001); + videoLinks_ = com.google.protobuf.LazyStringArrayList.emptyList(); return this; } @@ -16096,6 +16194,10 @@ private void buildPartial2(com.google.shopping.merchant.products.v1.ProductAttri private void buildPartial3(com.google.shopping.merchant.products.v1.ProductAttributes result) { int from_bitField3_ = bitField3_; + if (((from_bitField3_ & 0x00000002) != 0)) { + videoLinks_.makeImmutable(); + result.videoLinks_ = videoLinks_; + } } @java.lang.Override @@ -16817,6 +16919,16 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductAttribu } } } + if (!other.videoLinks_.isEmpty()) { + if (videoLinks_.isEmpty()) { + videoLinks_ = other.videoLinks_; + bitField3_ |= 0x00000002; + } else { + ensureVideoLinksIsMutable(); + videoLinks_.addAll(other.videoLinks_); + } + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -17586,6 +17698,13 @@ public Builder mergeFrom( } break; } // case 1154 + case 1354: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureVideoLinksIsMutable(); + videoLinks_.add(s); + break; + } // case 1354 case 1362: { returnPolicyLabel_ = input.readStringRequireUtf8(); @@ -20360,7 +20479,7 @@ private void ensureGtinsIsMutable() { * *
                  * Global Trade Item Numbers
            -     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                  * item.
                  * You can provide up to 10 GTINs.
                  * 
            @@ -20379,7 +20498,7 @@ public com.google.protobuf.ProtocolStringList getGtinsList() { * *
                  * Global Trade Item Numbers
            -     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                  * item.
                  * You can provide up to 10 GTINs.
                  * 
            @@ -20397,7 +20516,7 @@ public int getGtinsCount() { * *
                  * Global Trade Item Numbers
            -     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                  * item.
                  * You can provide up to 10 GTINs.
                  * 
            @@ -20416,7 +20535,7 @@ public java.lang.String getGtins(int index) { * *
                  * Global Trade Item Numbers
            -     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                  * item.
                  * You can provide up to 10 GTINs.
                  * 
            @@ -20435,7 +20554,7 @@ public com.google.protobuf.ByteString getGtinsBytes(int index) { * *
                  * Global Trade Item Numbers
            -     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                  * item.
                  * You can provide up to 10 GTINs.
                  * 
            @@ -20462,7 +20581,7 @@ public Builder setGtins(int index, java.lang.String value) { * *
                  * Global Trade Item Numbers
            -     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                  * item.
                  * You can provide up to 10 GTINs.
                  * 
            @@ -20488,7 +20607,7 @@ public Builder addGtins(java.lang.String value) { * *
                  * Global Trade Item Numbers
            -     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                  * item.
                  * You can provide up to 10 GTINs.
                  * 
            @@ -20511,7 +20630,7 @@ public Builder addAllGtins(java.lang.Iterable values) { * *
                  * Global Trade Item Numbers
            -     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                  * item.
                  * You can provide up to 10 GTINs.
                  * 
            @@ -20533,7 +20652,7 @@ public Builder clearGtins() { * *
                  * Global Trade Item Numbers
            -     * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +     * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                  * item.
                  * You can provide up to 10 GTINs.
                  * 
            @@ -20820,7 +20939,7 @@ public Builder setMaterialBytes(com.google.protobuf.ByteString value) { * *
                  * Manufacturer Part Number
            -     * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +     * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                  * item.
                  * 
            * @@ -20837,7 +20956,7 @@ public boolean hasMpn() { * *
                  * Manufacturer Part Number
            -     * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +     * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                  * item.
                  * 
            * @@ -20862,7 +20981,7 @@ public java.lang.String getMpn() { * *
                  * Manufacturer Part Number
            -     * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +     * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                  * item.
                  * 
            * @@ -20887,7 +21006,7 @@ public com.google.protobuf.ByteString getMpnBytes() { * *
                  * Manufacturer Part Number
            -     * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +     * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                  * item.
                  * 
            * @@ -20911,7 +21030,7 @@ public Builder setMpn(java.lang.String value) { * *
                  * Manufacturer Part Number
            -     * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +     * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                  * item.
                  * 
            * @@ -20931,7 +21050,7 @@ public Builder clearMpn() { * *
                  * Manufacturer Part Number
            -     * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +     * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                  * item.
                  * 
            * @@ -36246,6 +36365,216 @@ public Builder removeSustainabilityIncentives(int index) { return sustainabilityIncentivesBuilder_; } + private com.google.protobuf.LazyStringArrayList videoLinks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureVideoLinksIsMutable() { + if (!videoLinks_.isModifiable()) { + videoLinks_ = new com.google.protobuf.LazyStringArrayList(videoLinks_); + } + bitField3_ |= 0x00000002; + } + + /** + * + * + *
            +     * Optional. A list of video URLs for the item. Use this attribute to provide
            +     * more visuals for your product beyond your image attributes. See the [Help
            +     * Center article](https://support.google.com/merchants/answer/15216925) for
            +     * more information.
            +     * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the videoLinks. + */ + public com.google.protobuf.ProtocolStringList getVideoLinksList() { + videoLinks_.makeImmutable(); + return videoLinks_; + } + + /** + * + * + *
            +     * Optional. A list of video URLs for the item. Use this attribute to provide
            +     * more visuals for your product beyond your image attributes. See the [Help
            +     * Center article](https://support.google.com/merchants/answer/15216925) for
            +     * more information.
            +     * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of videoLinks. + */ + public int getVideoLinksCount() { + return videoLinks_.size(); + } + + /** + * + * + *
            +     * Optional. A list of video URLs for the item. Use this attribute to provide
            +     * more visuals for your product beyond your image attributes. See the [Help
            +     * Center article](https://support.google.com/merchants/answer/15216925) for
            +     * more information.
            +     * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The videoLinks at the given index. + */ + public java.lang.String getVideoLinks(int index) { + return videoLinks_.get(index); + } + + /** + * + * + *
            +     * Optional. A list of video URLs for the item. Use this attribute to provide
            +     * more visuals for your product beyond your image attributes. See the [Help
            +     * Center article](https://support.google.com/merchants/answer/15216925) for
            +     * more information.
            +     * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the videoLinks at the given index. + */ + public com.google.protobuf.ByteString getVideoLinksBytes(int index) { + return videoLinks_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. A list of video URLs for the item. Use this attribute to provide
            +     * more visuals for your product beyond your image attributes. See the [Help
            +     * Center article](https://support.google.com/merchants/answer/15216925) for
            +     * more information.
            +     * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The videoLinks to set. + * @return This builder for chaining. + */ + public Builder setVideoLinks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVideoLinksIsMutable(); + videoLinks_.set(index, value); + bitField3_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A list of video URLs for the item. Use this attribute to provide
            +     * more visuals for your product beyond your image attributes. See the [Help
            +     * Center article](https://support.google.com/merchants/answer/15216925) for
            +     * more information.
            +     * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The videoLinks to add. + * @return This builder for chaining. + */ + public Builder addVideoLinks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureVideoLinksIsMutable(); + videoLinks_.add(value); + bitField3_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A list of video URLs for the item. Use this attribute to provide
            +     * more visuals for your product beyond your image attributes. See the [Help
            +     * Center article](https://support.google.com/merchants/answer/15216925) for
            +     * more information.
            +     * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The videoLinks to add. + * @return This builder for chaining. + */ + public Builder addAllVideoLinks(java.lang.Iterable values) { + ensureVideoLinksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, videoLinks_); + bitField3_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A list of video URLs for the item. Use this attribute to provide
            +     * more visuals for your product beyond your image attributes. See the [Help
            +     * Center article](https://support.google.com/merchants/answer/15216925) for
            +     * more information.
            +     * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearVideoLinks() { + videoLinks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField3_ = (bitField3_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A list of video URLs for the item. Use this attribute to provide
            +     * more visuals for your product beyond your image attributes. See the [Help
            +     * Center article](https://support.google.com/merchants/answer/15216925) for
            +     * more information.
            +     * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the videoLinks to add. + * @return This builder for chaining. + */ + public Builder addVideoLinksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureVideoLinksIsMutable(); + videoLinks_.add(value); + bitField3_ |= 0x00000002; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.products.v1.ProductAttributes) } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributesOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributesOrBuilder.java index 4a05870adc9b..333e41d28466 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributesOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductAttributesOrBuilder.java @@ -849,7 +849,7 @@ public interface ProductAttributesOrBuilder * *
                * Global Trade Item Numbers
            -   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                * item.
                * You can provide up to 10 GTINs.
                * 
            @@ -865,7 +865,7 @@ public interface ProductAttributesOrBuilder * *
                * Global Trade Item Numbers
            -   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                * item.
                * You can provide up to 10 GTINs.
                * 
            @@ -881,7 +881,7 @@ public interface ProductAttributesOrBuilder * *
                * Global Trade Item Numbers
            -   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                * item.
                * You can provide up to 10 GTINs.
                * 
            @@ -898,7 +898,7 @@ public interface ProductAttributesOrBuilder * *
                * Global Trade Item Numbers
            -   * ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the
            +   * ([GTIN](https://support.google.com/merchants/answer/6324461)) of the
                * item.
                * You can provide up to 10 GTINs.
                * 
            @@ -996,7 +996,7 @@ public interface ProductAttributesOrBuilder * *
                * Manufacturer Part Number
            -   * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +   * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                * item.
                * 
            * @@ -1011,7 +1011,7 @@ public interface ProductAttributesOrBuilder * *
                * Manufacturer Part Number
            -   * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +   * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                * item.
                * 
            * @@ -1026,7 +1026,7 @@ public interface ProductAttributesOrBuilder * *
                * Manufacturer Part Number
            -   * ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the
            +   * ([MPN](https://support.google.com/merchants/answer/6324482)) of the
                * item.
                * 
            * @@ -4648,4 +4648,70 @@ com.google.shopping.merchant.products.v1.ProductCertificationOrBuilder getCertif */ com.google.shopping.merchant.products.v1.ProductSustainabilityIncentiveOrBuilder getSustainabilityIncentivesOrBuilder(int index); + + /** + * + * + *
            +   * Optional. A list of video URLs for the item. Use this attribute to provide
            +   * more visuals for your product beyond your image attributes. See the [Help
            +   * Center article](https://support.google.com/merchants/answer/15216925) for
            +   * more information.
            +   * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the videoLinks. + */ + java.util.List getVideoLinksList(); + + /** + * + * + *
            +   * Optional. A list of video URLs for the item. Use this attribute to provide
            +   * more visuals for your product beyond your image attributes. See the [Help
            +   * Center article](https://support.google.com/merchants/answer/15216925) for
            +   * more information.
            +   * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of videoLinks. + */ + int getVideoLinksCount(); + + /** + * + * + *
            +   * Optional. A list of video URLs for the item. Use this attribute to provide
            +   * more visuals for your product beyond your image attributes. See the [Help
            +   * Center article](https://support.google.com/merchants/answer/15216925) for
            +   * more information.
            +   * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The videoLinks at the given index. + */ + java.lang.String getVideoLinks(int index); + + /** + * + * + *
            +   * Optional. A list of video URLs for the item. Use this attribute to provide
            +   * more visuals for your product beyond your image attributes. See the [Help
            +   * Center article](https://support.google.com/merchants/answer/15216925) for
            +   * more information.
            +   * 
            + * + * repeated string video_links = 169 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the videoLinks at the given index. + */ + com.google.protobuf.ByteString getVideoLinksBytes(int index); } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInstallment.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInstallment.java index 6f6fc4a0aebf..dd378ba70586 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInstallment.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInstallment.java @@ -247,6 +247,43 @@ public com.google.shopping.merchant.products.v1.CreditType getCreditType() { : result; } + public static final int ANNUAL_PERCENTAGE_RATE_FIELD_NUMBER = 5; + private double annualPercentageRate_ = 0D; + + /** + * + * + *
            +   * Optional. Annual percentage rate for `credit_type` finance
            +   * 
            + * + * optional double annual_percentage_rate = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the annualPercentageRate field is set. + */ + @java.lang.Override + public boolean hasAnnualPercentageRate() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. Annual percentage rate for `credit_type` finance
            +   * 
            + * + * optional double annual_percentage_rate = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The annualPercentageRate. + */ + @java.lang.Override + public double getAnnualPercentageRate() { + return annualPercentageRate_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -273,6 +310,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(4, creditType_); } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeDouble(5, annualPercentageRate_); + } getUnknownFields().writeTo(output); } @@ -294,6 +334,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, creditType_); } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(5, annualPercentageRate_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -323,6 +366,11 @@ public boolean equals(final java.lang.Object obj) { if (hasCreditType()) { if (creditType_ != other.creditType_) return false; } + if (hasAnnualPercentageRate() != other.hasAnnualPercentageRate()) return false; + if (hasAnnualPercentageRate()) { + if (java.lang.Double.doubleToLongBits(getAnnualPercentageRate()) + != java.lang.Double.doubleToLongBits(other.getAnnualPercentageRate())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -348,6 +396,13 @@ public int hashCode() { hash = (37 * hash) + CREDIT_TYPE_FIELD_NUMBER; hash = (53 * hash) + creditType_; } + if (hasAnnualPercentageRate()) { + hash = (37 * hash) + ANNUAL_PERCENTAGE_RATE_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getAnnualPercentageRate())); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -511,6 +566,7 @@ public Builder clear() { downpaymentBuilder_ = null; } creditType_ = 0; + annualPercentageRate_ = 0D; return this; } @@ -564,6 +620,10 @@ private void buildPartial0(com.google.shopping.merchant.products.v1.ProductInsta result.creditType_ = creditType_; to_bitField0_ |= 0x00000004; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annualPercentageRate_ = annualPercentageRate_; + to_bitField0_ |= 0x00000008; + } result.bitField0_ |= to_bitField0_; } @@ -592,6 +652,9 @@ public Builder mergeFrom(com.google.shopping.merchant.products.v1.ProductInstall if (other.hasCreditType()) { setCreditTypeValue(other.getCreditTypeValue()); } + if (other.hasAnnualPercentageRate()) { + setAnnualPercentageRate(other.getAnnualPercentageRate()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -643,6 +706,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 32 + case 41: + { + annualPercentageRate_ = input.readDouble(); + bitField0_ |= 0x00000010; + break; + } // case 41 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1215,6 +1284,82 @@ public Builder clearCreditType() { return this; } + private double annualPercentageRate_; + + /** + * + * + *
            +     * Optional. Annual percentage rate for `credit_type` finance
            +     * 
            + * + * optional double annual_percentage_rate = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the annualPercentageRate field is set. + */ + @java.lang.Override + public boolean hasAnnualPercentageRate() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. Annual percentage rate for `credit_type` finance
            +     * 
            + * + * optional double annual_percentage_rate = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The annualPercentageRate. + */ + @java.lang.Override + public double getAnnualPercentageRate() { + return annualPercentageRate_; + } + + /** + * + * + *
            +     * Optional. Annual percentage rate for `credit_type` finance
            +     * 
            + * + * optional double annual_percentage_rate = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The annualPercentageRate to set. + * @return This builder for chaining. + */ + public Builder setAnnualPercentageRate(double value) { + + annualPercentageRate_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Annual percentage rate for `credit_type` finance
            +     * 
            + * + * optional double annual_percentage_rate = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAnnualPercentageRate() { + bitField0_ = (bitField0_ & ~0x00000010); + annualPercentageRate_ = 0D; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.shopping.merchant.products.v1.ProductInstallment) } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInstallmentOrBuilder.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInstallmentOrBuilder.java index 3f71dfdeeab8..278a8de96f1d 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInstallmentOrBuilder.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductInstallmentOrBuilder.java @@ -151,4 +151,32 @@ public interface ProductInstallmentOrBuilder * @return The creditType. */ com.google.shopping.merchant.products.v1.CreditType getCreditType(); + + /** + * + * + *
            +   * Optional. Annual percentage rate for `credit_type` finance
            +   * 
            + * + * optional double annual_percentage_rate = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the annualPercentageRate field is set. + */ + boolean hasAnnualPercentageRate(); + + /** + * + * + *
            +   * Optional. Annual percentage rate for `credit_type` finance
            +   * 
            + * + * optional double annual_percentage_rate = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The annualPercentageRate. + */ + double getAnnualPercentageRate(); } diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsCommonProto.java b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsCommonProto.java index 481333f7470c..d74f51e6f861 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsCommonProto.java +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/java/com/google/shopping/merchant/products/v1/ProductsCommonProto.java @@ -157,7 +157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + ":google/shopping/merchant/products/v1/products_common.proto\022$google.shopping.me" + "rchant.products.v1\032\037google/api/field_beh" + "avior.proto\032\037google/protobuf/timestamp.proto\032" - + " google/shopping/type/types.proto\032\032google/type/interval.proto\"\361D\n" + + " google/shopping/type/types.proto\032\032google/type/interval.proto\"\214E\n" + "\021ProductAttributes\022\036\n" + "\021identifier_exists\030\004 \001(\010H\000\210\001\001\022\026\n" + "\tis_bundle\030\005 \001(\010H\001\210\001\001\022\022\n" @@ -297,7 +297,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "oogle.shopping.merchant.products.v1.StructuredDescriptionH3\210\001\001\022;\n" + "\026auto_pricing_min_price\030| \001(\0132\033.google.shopping.type.Price\022h\n" + "\031sustainability_incentives\030\212\001 \003(\0132" - + "D.google.shopping.merchant.products.v1.ProductSustainabilityIncentive\032l\n" + + "D.google.shopping.merchant.products.v1.ProductSustainabilityIncentive\022\031\n" + + "\013video_links\030\251\001 \003(\tB\003\340A\001\032l\n" + "\032ShippingBusinessDaysConfig\022\024\n" + "\007country\030\001 \001(\tH\000\210\001\001\022\032\n\r" + "business_days\030\002 \001(\tH\001\210\001\001B\n\n" @@ -309,8 +310,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013postal_code\030\003 \001(\tH\002\210\001\001\022\037\n" + "\022origin_postal_code\030\004 \001(\tH\003\210\001\001\0224\n\n" + "flat_price\030\005 \001(\0132\033.google.shopping.type.PriceH\004\210\001\001\022f\n\r" - + "carrier_price\030\006 \001(\0162J.google.shopping.mer" - + "chant.products.v1.ProductAttributes.CarrierPriceOptionH\005\210\001\001\022G\n" + + "carrier_price\030\006 \001(\0162J.google.shopping.merchant.product" + + "s.v1.ProductAttributes.CarrierPriceOptionH\005\210\001\001\022G\n" + "\035carrier_price_flat_adjustment\030\007" + " \001(\0132\033.google.shopping.type.PriceH\006\210\001\001\0220\n" + "#carrier_price_percentage_adjustment\030\010 \001(\001H\007\210\001\001\022\036\n" @@ -321,8 +322,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\210\001\001\022#\n" + "\026fixed_max_transit_time\030\014 \001(\003H\013\210\001\001\022a\n" + "\024carrier_transit_time\030\r" - + " \001(\0162>.google." - + "shopping.merchant.products.v1.CarrierTransitTimeOptionH\014\210\001\001B\n\n" + + " \001(\0162>.google.shopping.merc" + + "hant.products.v1.CarrierTransitTimeOptionH\014\210\001\001B\n\n" + "\010_countryB\t\n" + "\007_regionB\016\n" + "\014_postal_codeB\025\n" @@ -466,19 +467,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\001 \001(\001\022\014\n" + "\004unit\030\002 \001(\t\"\240\001\n" + "\020SubscriptionCost\022H\n" - + "\006period\030\001" - + " \001(\01628.google.shopping.merchant.products.v1.SubscriptionPeriod\022\025\n\r" + + "\006period\030\001 \001(\01628.goog" + + "le.shopping.merchant.products.v1.SubscriptionPeriod\022\025\n\r" + "period_length\030\002 \001(\003\022+\n" - + "\006amount\030\003 \001(\0132\033.google.shopping.type.Price\"\364\001\n" + + "\006amount\030\003 \001(\0132\033.google.shopping.type.Price\"\271\002\n" + "\022ProductInstallment\022\016\n" + "\006months\030\001 \001(\003\022+\n" + "\006amount\030\002 \001(\0132\033.google.shopping.type.Price\0225\n" + "\013downpayment\030\003" + " \001(\0132\033.google.shopping.type.PriceH\000\210\001\001\022J\n" - + "\013credit_type\030\004" - + " \001(\01620.google.shopping.merchant.products.v1.CreditTypeH\001\210\001\001B\016\n" + + "\013credit_type\030\004 \001(\0162" + + "0.google.shopping.merchant.products.v1.CreditTypeH\001\210\001\001\022(\n" + + "\026annual_percentage_rate\030\005 \001(\001B\003\340A\001H\002\210\001\001B\016\n" + "\014_downpaymentB\016\n" - + "\014_credit_type\"B\n\r" + + "\014_credit_typeB\031\n" + + "\027_annual_percentage_rate\"B\n\r" + "LoyaltyPoints\022\014\n" + "\004name\030\001 \001(\t\022\024\n" + "\014points_value\030\002 \001(\003\022\r\n" @@ -533,10 +536,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\016attribute_name\030\002 \001(\t\022\027\n" + "\017attribute_value\030\003 \001(\t\"\371\002\n" + "\024ProductCertification\022b\n" - + "\027certification_authority\030\001 \001(\0162<.google.shopping" - + ".merchant.products.v1.CertificationAuthorityH\000\210\001\001\022X\n" - + "\022certification_name\030\002 \001(\01627." - + "google.shopping.merchant.products.v1.CertificationNameH\001\210\001\001\022\037\n" + + "\027certification_authority\030\001 \001(\0162<" + + ".google.shopping.merchant.products.v1.CertificationAuthorityH\000\210\001\001\022X\n" + + "\022certification_name\030\002" + + " \001(\01627.google.shopping.merchant.products.v1.CertificationNameH\001\210\001\001\022\037\n" + "\022certification_code\030\003 \001(\tH\002\210\001\001\022 \n" + "\023certification_value\030\004 \001(\tH\003\210\001\001B\032\n" + "\030_certification_authorityB\025\n" @@ -544,14 +547,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\023_certification_codeB\026\n" + "\024_certification_value\"\246\001\n" + "\017StructuredTitle\022Y\n" - + "\023digital_source_type\030\001 \001(\01627.goog" - + "le.shopping.merchant.products.v1.DigitalSourceTypeH\000\210\001\001\022\024\n" + + "\023digital_source_type\030\001" + + " \001(\01627.google.shopping.merchant.products.v1.DigitalSourceTypeH\000\210\001\001\022\024\n" + "\007content\030\002 \001(\tH\001\210\001\001B\026\n" + "\024_digital_source_typeB\n\n" + "\010_content\"\254\001\n" + "\025StructuredDescription\022Y\n" - + "\023digital_source_type\030\001" - + " \001(\01627.google.shopping.merchant.products.v1.DigitalSourceTypeH\000\210\001\001\022\024\n" + + "\023digital_source_type\030\001 \001(\01627.google.shoppi" + + "ng.merchant.products.v1.DigitalSourceTypeH\000\210\001\001\022\024\n" + "\007content\030\002 \001(\tH\001\210\001\001B\026\n" + "\024_digital_source_typeB\n\n" + "\010_content\"9\n" @@ -562,28 +565,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005value\030\001 \001(\001B\003\340A\002\022\021\n" + "\004unit\030\002 \001(\tB\003\340A\002\"\353\007\n\r" + "ProductStatus\022c\n" - + "\024destination_statuses\030\003 \003(\0132E.google.shopping.merchant.p" - + "roducts.v1.ProductStatus.DestinationStatus\022]\n" - + "\021item_level_issues\030\004 \003(\0132B.google.s" - + "hopping.merchant.products.v1.ProductStatus.ItemLevelIssue\0221\n\r" + + "\024destination_statuses\030\003 \003(\0132E.google.sho" + + "pping.merchant.products.v1.ProductStatus.DestinationStatus\022]\n" + + "\021item_level_issues\030\004" + + " \003(\0132B.google.shopping.merchant.products.v1.ProductStatus.ItemLevelIssue\0221\n\r" + "creation_date\030\005 \001(\0132\032.google.protobuf.Timestamp\0224\n" + "\020last_update_date\030\006 \001(\0132\032.google.protobuf.Timestamp\022:\n" + "\026google_expiration_date\030\007" + " \001(\0132\032.google.protobuf.Timestamp\032\301\001\n" + "\021DestinationStatus\022V\n" - + "\021reporting_context\030\001 \001(\0162;.google" - + ".shopping.type.ReportingContext.ReportingContextEnum\022\032\n" + + "\021reporting_context\030\001" + + " \001(\0162;.google.shopping.type.ReportingContext.ReportingContextEnum\022\032\n" + "\022approved_countries\030\002 \003(\t\022\031\n" + "\021pending_countries\030\003 \003(\t\022\035\n" + "\025disapproved_countries\030\004 \003(\t\032\254\003\n" + "\016ItemLevelIssue\022\014\n" + "\004code\030\001 \001(\t\022]\n" - + "\010severity\030\002 \001(\0162K.google.s" - + "hopping.merchant.products.v1.ProductStatus.ItemLevelIssue.Severity\022\022\n\n" + + "\010severity\030\002 \001(\0162K.google.shopping.merchant.product" + + "s.v1.ProductStatus.ItemLevelIssue.Severity\022\022\n\n" + "resolution\030\003 \001(\t\022\021\n" + "\tattribute\030\004 \001(\t\022V\n" - + "\021reporting_context\030\005" - + " \001(\0162;.google.shopping.type.ReportingContext.ReportingContextEnum\022\023\n" + + "\021reporting_context\030\005 \001(\0162;.google.sh" + + "opping.type.ReportingContext.ReportingContextEnum\022\023\n" + "\013description\030\006 \001(\t\022\016\n" + "\006detail\030\007 \001(\t\022\025\n\r" + "documentation\030\010 \001(\t\022\034\n" @@ -604,15 +607,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tunit_code\030\010 \001(\tH\004\210\001\001B\020\n" + "\016_property_nameB\r\n" + "\013_bool_valueB\014\n\n" - + "_min_valueB\014\n" - + "\n" + + "_min_valueB\014\n\n" + "_max_valueB\014\n\n" + "_unit_code\"\235\002\n" + "\036ProductSustainabilityIncentive\022-\n" + "\006amount\030\002 \001(\0132\033.google.shopping.type.PriceH\000\022\024\n\n" + "percentage\030\003 \001(\001H\000\022\\\n" - + "\004type\030\001 \001(\0162I.google.shoppin" - + "g.merchant.products.v1.ProductSustainabilityIncentive.TypeH\001\210\001\001\"F\n" + + "\004type\030\001 \001(\0162I.google.shopping.merchant.products.v1.P" + + "roductSustainabilityIncentive.TypeH\001\210\001\001\"F\n" + "\004Type\022\024\n" + "\020TYPE_UNSPECIFIED\020\000\022\021\n\r" + "EV_TAX_CREDIT\020\001\022\025\n" @@ -762,27 +764,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021TNT_ESSENTIEL_24H\020\022\022\035\n" + "\031TNT_ESSENTIEL_FLEXIBILITE\020\023\022\020\n" + "\014FEDEX_GROUND\020\024\022\027\n" - + "\023FEDEX_HOME_DELIVERY\020\025\022\027\n" - + "\023FEDEX_EXPRESS_SAVER\020\026\022\031\n" - + "\025FEDEX_FIRST_OVERNIGHT\020\027\022\034\n" - + "\030FEDEX_PRIORITY_OVERNIG", - "HT\020\030\022\034\n\030FEDEX_STANDARD_OVERNIGHT\020\031\022\016\n\nFE" - + "DEX_2DAY\020\032\022\023\n\017UPS_2ND_DAY_AIR\020\033\022\022\n\016UPS_2" - + "ND_DAY_AM\020\034\022\024\n\020UPS_3_DAY_SELECT\020\035\022\016\n\nUPS" - + "_GROUND\020\036\022\024\n\020UPS_NEXT_DAY_AIR\020\037\022\035\n\031UPS_N" - + "EXT_DAY_AIR_EARLY_AM\020 \022\032\n\026UPS_NEXT_DAY_A" - + "IR_SAVER\020!\022\036\n\032USPS_PRIORITY_MAIL_EXPRESS" - + "\020\"\022\023\n\017USPS_MEDIA_MAIL\020#\022 \n\034USPS_GROUND_A" - + "DVANTAGE_RETAIL\020$\022\026\n\022USPS_PRIORITY_MAIL\020" - + "%\022$\n USPS_GROUND_ADVANTAGE_COMMERCIAL\020&\022" - + "\031\n\025USPS_FIRST_CLASS_MAIL\020\'B\206\002\n(com.googl" - + "e.shopping.merchant.products.v1B\023Product" - + "sCommonProtoP\001ZJcloud.google.com/go/shop" - + "ping/merchant/products/apiv1/productspb;" - + "productspb\252\002$Google.Shopping.Merchant.Pr" - + "oducts.V1\312\002$Google\\Shopping\\Merchant\\Pro" - + "ducts\\V1\352\002(Google::Shopping::Merchant::P" - + "roducts::V1b\006proto3" + + "\023FED", + "EX_HOME_DELIVERY\020\025\022\027\n\023FEDEX_EXPRESS_SAVE" + + "R\020\026\022\031\n\025FEDEX_FIRST_OVERNIGHT\020\027\022\034\n\030FEDEX_" + + "PRIORITY_OVERNIGHT\020\030\022\034\n\030FEDEX_STANDARD_O" + + "VERNIGHT\020\031\022\016\n\nFEDEX_2DAY\020\032\022\023\n\017UPS_2ND_DA" + + "Y_AIR\020\033\022\022\n\016UPS_2ND_DAY_AM\020\034\022\024\n\020UPS_3_DAY" + + "_SELECT\020\035\022\016\n\nUPS_GROUND\020\036\022\024\n\020UPS_NEXT_DA" + + "Y_AIR\020\037\022\035\n\031UPS_NEXT_DAY_AIR_EARLY_AM\020 \022\032" + + "\n\026UPS_NEXT_DAY_AIR_SAVER\020!\022\036\n\032USPS_PRIOR" + + "ITY_MAIL_EXPRESS\020\"\022\023\n\017USPS_MEDIA_MAIL\020#\022" + + " \n\034USPS_GROUND_ADVANTAGE_RETAIL\020$\022\026\n\022USP" + + "S_PRIORITY_MAIL\020%\022$\n USPS_GROUND_ADVANTA" + + "GE_COMMERCIAL\020&\022\031\n\025USPS_FIRST_CLASS_MAIL" + + "\020\'B\206\002\n(com.google.shopping.merchant.prod" + + "ucts.v1B\023ProductsCommonProtoP\001ZJcloud.go" + + "ogle.com/go/shopping/merchant/products/a" + + "piv1/productspb;productspb\252\002$Google.Shop" + + "ping.Merchant.Products.V1\312\002$Google\\Shopp" + + "ing\\Merchant\\Products\\V1\352\002(Google::Shopp" + + "ing::Merchant::Products::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -896,6 +897,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "StructuredDescription", "AutoPricingMinPrice", "SustainabilityIncentives", + "VideoLinks", }); internal_static_google_shopping_merchant_products_v1_ProductAttributes_ShippingBusinessDaysConfig_descriptor = internal_static_google_shopping_merchant_products_v1_ProductAttributes_descriptor @@ -973,7 +975,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_shopping_merchant_products_v1_ProductInstallment_descriptor, new java.lang.String[] { - "Months", "Amount", "Downpayment", "CreditType", + "Months", "Amount", "Downpayment", "CreditType", "AnnualPercentageRate", }); internal_static_google_shopping_merchant_products_v1_LoyaltyPoints_descriptor = getDescriptor().getMessageType(7); diff --git a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products_common.proto b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products_common.proto index f78c2b365c40..ee4278deb0ba 100644 --- a/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products_common.proto +++ b/java-shopping-merchant-products/proto-google-shopping-merchant-products-v1/src/main/proto/google/shopping/merchant/products/v1/products_common.proto @@ -902,7 +902,7 @@ message ProductAttributes { optional string google_product_category = 25; // Global Trade Item Numbers - // ([GTIN](https://support.google.com/merchants/answer/188494#gtin)) of the + // ([GTIN](https://support.google.com/merchants/answer/6324461)) of the // item. // You can provide up to 10 GTINs. repeated string gtins = 140; @@ -915,7 +915,7 @@ message ProductAttributes { optional string material = 28; // Manufacturer Part Number - // ([MPN](https://support.google.com/merchants/answer/188494#mpn)) of the + // ([MPN](https://support.google.com/merchants/answer/6324482)) of the // item. optional string mpn = 29; @@ -1229,6 +1229,12 @@ message ProductAttributes { // The list of sustainability incentive programs. repeated ProductSustainabilityIncentive sustainability_incentives = 138; + + // Optional. A list of video URLs for the item. Use this attribute to provide + // more visuals for your product beyond your image attributes. See the [Help + // Center article](https://support.google.com/merchants/answer/15216925) for + // more information. + repeated string video_links = 169 [(google.api.field_behavior) = OPTIONAL]; } // The ShippingWeight of the product. @@ -1298,6 +1304,10 @@ message ProductInstallment { // Type of installment payments. optional CreditType credit_type = 4; + + // Optional. Annual percentage rate for `credit_type` finance + optional double annual_percentage_rate = 5 + [(google.api.field_behavior) = OPTIONAL]; } // A message that represents loyalty points. From 3738d0f09b791d48069b413a43a7b852f9f4688a Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 22 Apr 2026 02:36:01 +0000 Subject: [PATCH 11/19] chore: generate libraries at Wed Apr 22 01:02:02 UTC 2026 --- gapic-libraries-bom/pom.xml | 2 +- java-spanner/README.md | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/gapic-libraries-bom/pom.xml b/gapic-libraries-bom/pom.xml index 9cbef9e2cdee..5acc011becd1 100644 --- a/gapic-libraries-bom/pom.xml +++ b/gapic-libraries-bom/pom.xml @@ -1259,7 +1259,7 @@ com.google.cloud google-cloud-spanner-bom - 6.116.0 + 6.116.1 pom import diff --git a/java-spanner/README.md b/java-spanner/README.md index b469d404c2e6..850aae5b41ac 100644 --- a/java-spanner/README.md +++ b/java-spanner/README.md @@ -56,13 +56,13 @@ implementation 'com.google.cloud:google-cloud-spanner' If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-cloud-spanner:6.116.0' +implementation 'com.google.cloud:google-cloud-spanner:6.116.1' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.116.0" +libraryDependencies += "com.google.cloud" % "google-cloud-spanner" % "6.116.1" ``` ## Authentication @@ -550,7 +550,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [javadocs]: https://cloud.google.com/java/docs/reference/google-cloud-spanner/latest/history [stability-image]: https://img.shields.io/badge/stability-stable-green [maven-version-image]: https://img.shields.io/maven-central/v/com.google.cloud/google-cloud-spanner.svg -[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.116.0 +[maven-version-link]: https://central.sonatype.com/artifact/com.google.cloud/google-cloud-spanner/6.116.1 [authentication]: https://github.com/googleapis/google-cloud-java#authentication [auth-scopes]: https://developers.google.com/identity/protocols/oauth2/scopes [predefined-iam-roles]: https://cloud.google.com/iam/docs/understanding-roles#predefined_roles From c69b799dbd64b0691639b59a151f8ea82fd039a2 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 22 Apr 2026 03:01:10 +0000 Subject: [PATCH 12/19] chore: Update generation configuration at Wed Apr 22 03:01:01 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index dd554a6659e3..9cce296f5159 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: a78b5838b801428bfe5b85758727a46d830b7f39 +googleapis_commitish: 939ba3bf8408af83f0f73ae35c76c4b11a8c8c8d libraries_bom_version: 26.80.0 libraries: - api_shortname: accessapproval From 3ba2294265ea001df0ca2ada3b6d8832dfe3a516 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 22 Apr 2026 04:32:34 +0000 Subject: [PATCH 13/19] chore: generate libraries at Wed Apr 22 03:03:56 UTC 2026 --- .../reflect-config.json | 36 + .../v1beta1/SupervisedTuningDataStats.java | 8 +- .../SupervisedTuningDataStatsOrBuilder.java | 2 +- .../cloud/aiplatform/v1beta1/TuningJob.java | 598 +++++++-- .../v1beta1/TuningJobOrBuilder.java | 37 + .../aiplatform/v1beta1/TuningJobProto.java | 192 +-- .../v1beta1/VeoHyperParameters.java | 976 +++++++++++++- .../v1beta1/VeoHyperParametersOrBuilder.java | 109 ++ .../aiplatform/v1beta1/VeoLoraTuningSpec.java | 1138 +++++++++++++++++ .../v1beta1/VeoLoraTuningSpecOrBuilder.java | 131 ++ .../cloud/aiplatform/v1beta1/tuning_job.proto | 64 + 11 files changed, 3059 insertions(+), 232 deletions(-) create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpec.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpecOrBuilder.java 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 d5c26bf9ba99..decbcfb30e3f 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 @@ -28880,6 +28880,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VeoHyperParameters$AdapterSize", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.VeoHyperParameters$Builder", "queryAllDeclaredConstructors": true, @@ -28889,6 +28898,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VeoHyperParameters$TuningSpeed", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.VeoHyperParameters$TuningTask", "queryAllDeclaredConstructors": true, @@ -28898,6 +28916,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.VeoTuningSpec", "queryAllDeclaredConstructors": true, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java index 0533051204ae..be8e51aff2ea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStats.java @@ -129,7 +129,7 @@ public long getTotalTuningCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is - * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -1486,7 +1486,7 @@ public Builder clearTotalTuningCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @return The totalBillableCharacterCount. */ @java.lang.Override @@ -1508,7 +1508,7 @@ public long getTotalBillableCharacterCount() { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @param value The totalBillableCharacterCount to set. * @return This builder for chaining. */ @@ -1534,7 +1534,7 @@ public Builder setTotalBillableCharacterCount(long value) { * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count - * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * is deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java index c6217a369f8a..fbcfb1ccf7e7 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SupervisedTuningDataStatsOrBuilder.java @@ -67,7 +67,7 @@ public interface SupervisedTuningDataStatsOrBuilder * * @deprecated * google.cloud.aiplatform.v1beta1.SupervisedTuningDataStats.total_billable_character_count is - * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=277 + * deprecated. See google/cloud/aiplatform/v1beta1/tuning_job.proto;l=280 * @return The totalBillableCharacterCount. */ @java.lang.Deprecated diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java index 02238b87c024..4c7890c26efe 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJob.java @@ -155,6 +155,7 @@ public enum TuningSpecCase DISTILLATION_SPEC(17), PARTNER_MODEL_TUNING_SPEC(21), VEO_TUNING_SPEC(33), + VEO_LORA_TUNING_SPEC(38), TUNINGSPEC_NOT_SET(0); private final int value; @@ -182,6 +183,8 @@ public static TuningSpecCase forNumber(int value) { return PARTNER_MODEL_TUNING_SPEC; case 33: return VEO_TUNING_SPEC; + case 38: + return VEO_LORA_TUNING_SPEC; case 0: return TUNINGSPEC_NOT_SET; default: @@ -550,6 +553,61 @@ public com.google.cloud.aiplatform.v1beta1.VeoTuningSpecOrBuilder getVeoTuningSp return com.google.cloud.aiplatform.v1beta1.VeoTuningSpec.getDefaultInstance(); } + public static final int VEO_LORA_TUNING_SPEC_FIELD_NUMBER = 38; + + /** + * + * + *
            +   * Tuning Spec for Veo LoRA Tuning.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return Whether the veoLoraTuningSpec field is set. + */ + @java.lang.Override + public boolean hasVeoLoraTuningSpec() { + return tuningSpecCase_ == 38; + } + + /** + * + * + *
            +   * Tuning Spec for Veo LoRA Tuning.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return The veoLoraTuningSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getVeoLoraTuningSpec() { + if (tuningSpecCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + + /** + * + * + *
            +   * Tuning Spec for Veo LoRA Tuning.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder + getVeoLoraTuningSpecOrBuilder() { + if (tuningSpecCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + public static final int NAME_FIELD_NUMBER = 1; @SuppressWarnings("serial") @@ -1854,6 +1912,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (tuningSpecCase_ == 33) { output.writeMessage(33, (com.google.cloud.aiplatform.v1beta1.VeoTuningSpec) tuningSpec_); } + if (tuningSpecCase_ == 38) { + output.writeMessage(38, (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_); + } getUnknownFields().writeTo(output); } @@ -1956,6 +2017,11 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 33, (com.google.cloud.aiplatform.v1beta1.VeoTuningSpec) tuningSpec_); } + if (tuningSpecCase_ == 38) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 38, (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2040,6 +2106,9 @@ public boolean equals(final java.lang.Object obj) { case 33: if (!getVeoTuningSpec().equals(other.getVeoTuningSpec())) return false; break; + case 38: + if (!getVeoLoraTuningSpec().equals(other.getVeoLoraTuningSpec())) return false; + break; case 0: default: } @@ -2141,6 +2210,10 @@ public int hashCode() { hash = (37 * hash) + VEO_TUNING_SPEC_FIELD_NUMBER; hash = (53 * hash) + getVeoTuningSpec().hashCode(); break; + case 38: + hash = (37 * hash) + VEO_LORA_TUNING_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getVeoLoraTuningSpec().hashCode(); + break; case 0: default: } @@ -2338,6 +2411,9 @@ public Builder clear() { if (veoTuningSpecBuilder_ != null) { veoTuningSpecBuilder_.clear(); } + if (veoLoraTuningSpecBuilder_ != null) { + veoLoraTuningSpecBuilder_.clear(); + } name_ = ""; tunedModelDisplayName_ = ""; description_ = ""; @@ -2394,7 +2470,7 @@ public Builder clear() { evaluateDatasetRuns_ = null; evaluateDatasetRunsBuilder_.clear(); } - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); sourceModelCase_ = 0; sourceModel_ = null; tuningSpecCase_ = 0; @@ -2437,9 +2513,9 @@ public com.google.cloud.aiplatform.v1beta1.TuningJob buildPartial() { private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.TuningJob result) { if (evaluateDatasetRunsBuilder_ == null) { - if (((bitField0_ & 0x01000000) != 0)) { + if (((bitField0_ & 0x02000000) != 0)) { evaluateDatasetRuns_ = java.util.Collections.unmodifiableList(evaluateDatasetRuns_); - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); } result.evaluateDatasetRuns_ = evaluateDatasetRuns_; } else { @@ -2449,70 +2525,70 @@ private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.Tuni private void buildPartial0(com.google.cloud.aiplatform.v1beta1.TuningJob result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000040) != 0)) { + if (((from_bitField0_ & 0x00000080) != 0)) { result.name_ = name_; } - if (((from_bitField0_ & 0x00000080) != 0)) { + if (((from_bitField0_ & 0x00000100) != 0)) { result.tunedModelDisplayName_ = tunedModelDisplayName_; } - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { result.description_ = description_; } - if (((from_bitField0_ & 0x00000200) != 0)) { + if (((from_bitField0_ & 0x00000400) != 0)) { result.customBaseModel_ = customBaseModel_; } - if (((from_bitField0_ & 0x00000400) != 0)) { + if (((from_bitField0_ & 0x00000800) != 0)) { result.state_ = state_; } int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000800) != 0)) { + if (((from_bitField0_ & 0x00001000) != 0)) { result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00001000) != 0)) { + if (((from_bitField0_ & 0x00002000) != 0)) { result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00002000) != 0)) { + if (((from_bitField0_ & 0x00004000) != 0)) { result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.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.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000010; } - if (((from_bitField0_ & 0x00010000) != 0)) { + if (((from_bitField0_ & 0x00020000) != 0)) { result.labels_ = internalGetLabels(); result.labels_.makeImmutable(); } - if (((from_bitField0_ & 0x00020000) != 0)) { + if (((from_bitField0_ & 0x00040000) != 0)) { result.experiment_ = experiment_; } - if (((from_bitField0_ & 0x00040000) != 0)) { + if (((from_bitField0_ & 0x00080000) != 0)) { result.tunedModel_ = tunedModelBuilder_ == null ? tunedModel_ : tunedModelBuilder_.build(); to_bitField0_ |= 0x00000020; } - if (((from_bitField0_ & 0x00080000) != 0)) { + if (((from_bitField0_ & 0x00100000) != 0)) { result.tuningDataStats_ = tuningDataStatsBuilder_ == null ? tuningDataStats_ : tuningDataStatsBuilder_.build(); to_bitField0_ |= 0x00000040; } - if (((from_bitField0_ & 0x00100000) != 0)) { + if (((from_bitField0_ & 0x00200000) != 0)) { result.pipelineJob_ = pipelineJob_; } - if (((from_bitField0_ & 0x00200000) != 0)) { + if (((from_bitField0_ & 0x00400000) != 0)) { result.encryptionSpec_ = encryptionSpecBuilder_ == null ? encryptionSpec_ : encryptionSpecBuilder_.build(); to_bitField0_ |= 0x00000080; } - if (((from_bitField0_ & 0x00400000) != 0)) { + if (((from_bitField0_ & 0x00800000) != 0)) { result.serviceAccount_ = serviceAccount_; } - if (((from_bitField0_ & 0x00800000) != 0)) { + if (((from_bitField0_ & 0x01000000) != 0)) { result.outputUri_ = outputUri_; } result.bitField0_ |= to_bitField0_; @@ -2538,6 +2614,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.TuningJob re if (tuningSpecCase_ == 33 && veoTuningSpecBuilder_ != null) { result.tuningSpec_ = veoTuningSpecBuilder_.build(); } + if (tuningSpecCase_ == 38 && veoLoraTuningSpecBuilder_ != null) { + result.tuningSpec_ = veoLoraTuningSpecBuilder_.build(); + } } @java.lang.Override @@ -2554,22 +2633,22 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { if (other == com.google.cloud.aiplatform.v1beta1.TuningJob.getDefaultInstance()) return this; if (!other.getName().isEmpty()) { name_ = other.name_; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); } if (!other.getTunedModelDisplayName().isEmpty()) { tunedModelDisplayName_ = other.tunedModelDisplayName_; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); } if (!other.getDescription().isEmpty()) { description_ = other.description_; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); } if (!other.getCustomBaseModel().isEmpty()) { customBaseModel_ = other.customBaseModel_; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); } if (other.state_ != 0) { @@ -2591,10 +2670,10 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { mergeError(other.getError()); } internalGetMutableLabels().mergeFrom(other.internalGetLabels()); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; if (!other.getExperiment().isEmpty()) { experiment_ = other.experiment_; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); } if (other.hasTunedModel()) { @@ -2605,7 +2684,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { } if (!other.getPipelineJob().isEmpty()) { pipelineJob_ = other.pipelineJob_; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); } if (other.hasEncryptionSpec()) { @@ -2613,19 +2692,19 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { } if (!other.getServiceAccount().isEmpty()) { serviceAccount_ = other.serviceAccount_; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); } if (!other.getOutputUri().isEmpty()) { outputUri_ = other.outputUri_; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); } if (evaluateDatasetRunsBuilder_ == null) { if (!other.evaluateDatasetRuns_.isEmpty()) { if (evaluateDatasetRuns_.isEmpty()) { evaluateDatasetRuns_ = other.evaluateDatasetRuns_; - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); } else { ensureEvaluateDatasetRunsIsMutable(); evaluateDatasetRuns_.addAll(other.evaluateDatasetRuns_); @@ -2638,7 +2717,7 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { evaluateDatasetRunsBuilder_.dispose(); evaluateDatasetRunsBuilder_ = null; evaluateDatasetRuns_ = other.evaluateDatasetRuns_; - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); evaluateDatasetRunsBuilder_ = com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? internalGetEvaluateDatasetRunsFieldBuilder() @@ -2687,6 +2766,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.TuningJob other) { mergeVeoTuningSpec(other.getVeoTuningSpec()); break; } + case VEO_LORA_TUNING_SPEC: + { + mergeVeoLoraTuningSpec(other.getVeoLoraTuningSpec()); + break; + } case TUNINGSPEC_NOT_SET: { break; @@ -2721,19 +2805,19 @@ public Builder mergeFrom( case 10: { name_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 10 case 18: { tunedModelDisplayName_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 18 case 26: { description_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; break; } // case 26 case 34: @@ -2753,40 +2837,40 @@ public Builder mergeFrom( case 48: { state_ = input.readEnum(); - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; break; } // case 48 case 58: { input.readMessage( internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; break; } // case 58 case 66: { input.readMessage( internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; break; } // case 66 case 74: { input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; break; } // case 74 case 82: { input.readMessage( internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; break; } // case 82 case 90: { input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; break; } // case 90 case 98: @@ -2798,34 +2882,34 @@ public Builder mergeFrom( internalGetMutableLabels() .getMutableMap() .put(labels__.getKey(), labels__.getValue()); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; break; } // case 98 case 106: { experiment_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; break; } // case 106 case 114: { input.readMessage( internalGetTunedModelFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; break; } // case 114 case 122: { input.readMessage( internalGetTuningDataStatsFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; break; } // case 122 case 130: { input.readMessage( internalGetEncryptionSpecFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; break; } // case 130 case 138: @@ -2838,7 +2922,7 @@ public Builder mergeFrom( case 146: { pipelineJob_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; break; } // case 146 case 170: @@ -2852,19 +2936,19 @@ public Builder mergeFrom( case 178: { serviceAccount_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; break; } // case 178 case 202: { outputUri_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; break; } // case 202 case 210: { customBaseModel_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; break; } // case 210 case 250: @@ -2895,6 +2979,13 @@ public Builder mergeFrom( tuningSpecCase_ = 33; break; } // case 266 + case 306: + { + input.readMessage( + internalGetVeoLoraTuningSpecFieldBuilder().getBuilder(), extensionRegistry); + tuningSpecCase_ = 38; + break; + } // case 306 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -4214,6 +4305,229 @@ public com.google.cloud.aiplatform.v1beta1.VeoTuningSpecOrBuilder getVeoTuningSp return veoTuningSpecBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder> + veoLoraTuningSpecBuilder_; + + /** + * + * + *
            +     * Tuning Spec for Veo LoRA Tuning.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return Whether the veoLoraTuningSpec field is set. + */ + @java.lang.Override + public boolean hasVeoLoraTuningSpec() { + return tuningSpecCase_ == 38; + } + + /** + * + * + *
            +     * Tuning Spec for Veo LoRA Tuning.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return The veoLoraTuningSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getVeoLoraTuningSpec() { + if (veoLoraTuningSpecBuilder_ == null) { + if (tuningSpecCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } else { + if (tuningSpecCase_ == 38) { + return veoLoraTuningSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Tuning Spec for Veo LoRA Tuning.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public Builder setVeoLoraTuningSpec( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec value) { + if (veoLoraTuningSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + tuningSpec_ = value; + onChanged(); + } else { + veoLoraTuningSpecBuilder_.setMessage(value); + } + tuningSpecCase_ = 38; + return this; + } + + /** + * + * + *
            +     * Tuning Spec for Veo LoRA Tuning.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public Builder setVeoLoraTuningSpec( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder builderForValue) { + if (veoLoraTuningSpecBuilder_ == null) { + tuningSpec_ = builderForValue.build(); + onChanged(); + } else { + veoLoraTuningSpecBuilder_.setMessage(builderForValue.build()); + } + tuningSpecCase_ = 38; + return this; + } + + /** + * + * + *
            +     * Tuning Spec for Veo LoRA Tuning.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public Builder mergeVeoLoraTuningSpec( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec value) { + if (veoLoraTuningSpecBuilder_ == null) { + if (tuningSpecCase_ == 38 + && tuningSpec_ + != com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance()) { + tuningSpec_ = + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + tuningSpec_ = value; + } + onChanged(); + } else { + if (tuningSpecCase_ == 38) { + veoLoraTuningSpecBuilder_.mergeFrom(value); + } else { + veoLoraTuningSpecBuilder_.setMessage(value); + } + } + tuningSpecCase_ = 38; + return this; + } + + /** + * + * + *
            +     * Tuning Spec for Veo LoRA Tuning.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public Builder clearVeoLoraTuningSpec() { + if (veoLoraTuningSpecBuilder_ == null) { + if (tuningSpecCase_ == 38) { + tuningSpecCase_ = 0; + tuningSpec_ = null; + onChanged(); + } + } else { + if (tuningSpecCase_ == 38) { + tuningSpecCase_ = 0; + tuningSpec_ = null; + } + veoLoraTuningSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Tuning Spec for Veo LoRA Tuning.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder + getVeoLoraTuningSpecBuilder() { + return internalGetVeoLoraTuningSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Tuning Spec for Veo LoRA Tuning.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder + getVeoLoraTuningSpecOrBuilder() { + if ((tuningSpecCase_ == 38) && (veoLoraTuningSpecBuilder_ != null)) { + return veoLoraTuningSpecBuilder_.getMessageOrBuilder(); + } else { + if (tuningSpecCase_ == 38) { + return (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_; + } + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Tuning Spec for Veo LoRA Tuning.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder> + internalGetVeoLoraTuningSpecFieldBuilder() { + if (veoLoraTuningSpecBuilder_ == null) { + if (!(tuningSpecCase_ == 38)) { + tuningSpec_ = com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + veoLoraTuningSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) tuningSpec_, + getParentForChildren(), + isClean()); + tuningSpec_ = null; + } + tuningSpecCase_ = 38; + onChanged(); + return veoLoraTuningSpecBuilder_; + } + private java.lang.Object name_ = ""; /** @@ -4288,7 +4602,7 @@ public Builder setName(java.lang.String value) { throw new NullPointerException(); } name_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4309,7 +4623,7 @@ public Builder setName(java.lang.String value) { */ public Builder clearName() { name_ = getDefaultInstance().getName(); - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); onChanged(); return this; } @@ -4335,7 +4649,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); name_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -4411,7 +4725,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) { throw new NullPointerException(); } tunedModelDisplayName_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4431,7 +4745,7 @@ public Builder setTunedModelDisplayName(java.lang.String value) { */ public Builder clearTunedModelDisplayName() { tunedModelDisplayName_ = getDefaultInstance().getTunedModelDisplayName(); - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); onChanged(); return this; } @@ -4456,7 +4770,7 @@ public Builder setTunedModelDisplayNameBytes(com.google.protobuf.ByteString valu } checkByteStringIsUtf8(value); tunedModelDisplayName_ = value; - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -4529,7 +4843,7 @@ public Builder setDescription(java.lang.String value) { throw new NullPointerException(); } description_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4548,7 +4862,7 @@ public Builder setDescription(java.lang.String value) { */ public Builder clearDescription() { description_ = getDefaultInstance().getDescription(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -4572,7 +4886,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); description_ = value; - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; onChanged(); return this; } @@ -4657,7 +4971,7 @@ public Builder setCustomBaseModel(java.lang.String value) { throw new NullPointerException(); } customBaseModel_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4680,7 +4994,7 @@ public Builder setCustomBaseModel(java.lang.String value) { */ public Builder clearCustomBaseModel() { customBaseModel_ = getDefaultInstance().getCustomBaseModel(); - bitField0_ = (bitField0_ & ~0x00000200); + bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } @@ -4708,7 +5022,7 @@ public Builder setCustomBaseModelBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); customBaseModel_ = value; - bitField0_ |= 0x00000200; + bitField0_ |= 0x00000400; onChanged(); return this; } @@ -4749,7 +5063,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; onChanged(); return this; } @@ -4792,7 +5106,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000400; + bitField0_ |= 0x00000800; state_ = value.getNumber(); onChanged(); return this; @@ -4812,7 +5126,7 @@ public Builder setState(com.google.cloud.aiplatform.v1beta1.JobState value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000400); + bitField0_ = (bitField0_ & ~0x00000800); state_ = 0; onChanged(); return this; @@ -4840,7 +5154,7 @@ public Builder clearState() { * @return Whether the createTime field is set. */ public boolean hasCreateTime() { - return ((bitField0_ & 0x00000800) != 0); + return ((bitField0_ & 0x00001000) != 0); } /** @@ -4888,7 +5202,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { } else { createTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4911,7 +5225,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { createTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return this; } @@ -4930,7 +5244,7 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { - if (((bitField0_ & 0x00000800) != 0) + if (((bitField0_ & 0x00001000) != 0) && createTime_ != null && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getCreateTimeBuilder().mergeFrom(value); @@ -4941,7 +5255,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { createTimeBuilder_.mergeFrom(value); } if (createTime_ != null) { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); } return this; @@ -4960,7 +5274,7 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * */ public Builder clearCreateTime() { - bitField0_ = (bitField0_ & ~0x00000800); + bitField0_ = (bitField0_ & ~0x00001000); createTime_ = null; if (createTimeBuilder_ != null) { createTimeBuilder_.dispose(); @@ -4983,7 +5297,7 @@ public Builder clearCreateTime() { * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { - bitField0_ |= 0x00000800; + bitField0_ |= 0x00001000; onChanged(); return internalGetCreateTimeFieldBuilder().getBuilder(); } @@ -5061,7 +5375,7 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return ((bitField0_ & 0x00001000) != 0); + return ((bitField0_ & 0x00002000) != 0); } /** @@ -5107,7 +5421,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5130,7 +5444,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu } else { startTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return this; } @@ -5149,7 +5463,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00001000) != 0) + if (((bitField0_ & 0x00002000) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); @@ -5160,7 +5474,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { startTimeBuilder_.mergeFrom(value); } if (startTime_ != null) { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); } return this; @@ -5179,7 +5493,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { * */ public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00001000); + bitField0_ = (bitField0_ & ~0x00002000); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); @@ -5202,7 +5516,7 @@ public Builder clearStartTime() { * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - bitField0_ |= 0x00001000; + bitField0_ |= 0x00002000; onChanged(); return internalGetStartTimeFieldBuilder().getBuilder(); } @@ -5278,7 +5592,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return ((bitField0_ & 0x00002000) != 0); + return ((bitField0_ & 0x00004000) != 0); } /** @@ -5324,7 +5638,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5347,7 +5661,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return this; } @@ -5366,7 +5680,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00002000) != 0) + if (((bitField0_ & 0x00004000) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); @@ -5377,7 +5691,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { endTimeBuilder_.mergeFrom(value); } if (endTime_ != null) { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); } return this; @@ -5396,7 +5710,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00002000); + bitField0_ = (bitField0_ & ~0x00004000); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); @@ -5419,7 +5733,7 @@ public Builder clearEndTime() { * */ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00002000; + bitField0_ |= 0x00004000; onChanged(); return internalGetEndTimeFieldBuilder().getBuilder(); } @@ -5496,7 +5810,7 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { * @return Whether the updateTime field is set. */ public boolean hasUpdateTime() { - return ((bitField0_ & 0x00004000) != 0); + return ((bitField0_ & 0x00008000) != 0); } /** @@ -5546,7 +5860,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp value) { } else { updateTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5570,7 +5884,7 @@ public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForVal } else { updateTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return this; } @@ -5590,7 +5904,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); @@ -5601,7 +5915,7 @@ public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { updateTimeBuilder_.mergeFrom(value); } if (updateTime_ != null) { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); } return this; @@ -5621,7 +5935,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(); @@ -5645,7 +5959,7 @@ public Builder clearUpdateTime() { * */ public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { - bitField0_ |= 0x00004000; + bitField0_ |= 0x00008000; onChanged(); return internalGetUpdateTimeFieldBuilder().getBuilder(); } @@ -5721,7 +6035,7 @@ public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00008000) != 0); + return ((bitField0_ & 0x00010000) != 0); } /** @@ -5763,7 +6077,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5784,7 +6098,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return this; } @@ -5801,7 +6115,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00008000) != 0) + if (((bitField0_ & 0x00010000) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -5812,7 +6126,7 @@ public Builder mergeError(com.google.rpc.Status value) { errorBuilder_.mergeFrom(value); } if (error_ != null) { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); } return this; @@ -5829,7 +6143,7 @@ public Builder mergeError(com.google.rpc.Status value) { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00008000); + bitField0_ = (bitField0_ & ~0x00010000); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -5850,7 +6164,7 @@ public Builder clearError() { * .google.rpc.Status error = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00008000; + bitField0_ |= 0x00010000; onChanged(); return internalGetErrorFieldBuilder().getBuilder(); } @@ -5914,7 +6228,7 @@ private com.google.protobuf.MapField interna if (!labels_.isMutable()) { labels_ = labels_.copy(); } - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; onChanged(); return labels_; } @@ -6040,7 +6354,7 @@ public java.lang.String getLabelsOrThrow(java.lang.String key) { } public Builder clearLabels() { - bitField0_ = (bitField0_ & ~0x00010000); + bitField0_ = (bitField0_ & ~0x00020000); internalGetMutableLabels().getMutableMap().clear(); return this; } @@ -6074,7 +6388,7 @@ public Builder removeLabels(java.lang.String key) { /** Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableLabels() { - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return internalGetMutableLabels().getMutableMap(); } @@ -6104,7 +6418,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { throw new NullPointerException("map value"); } internalGetMutableLabels().getMutableMap().put(key, value); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return this; } @@ -6128,7 +6442,7 @@ public Builder putLabels(java.lang.String key, java.lang.String value) { */ public Builder putAllLabels(java.util.Map values) { internalGetMutableLabels().getMutableMap().putAll(values); - bitField0_ |= 0x00010000; + bitField0_ |= 0x00020000; return this; } @@ -6206,7 +6520,7 @@ public Builder setExperiment(java.lang.String value) { throw new NullPointerException(); } experiment_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6227,7 +6541,7 @@ public Builder setExperiment(java.lang.String value) { */ public Builder clearExperiment() { experiment_ = getDefaultInstance().getExperiment(); - bitField0_ = (bitField0_ & ~0x00020000); + bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } @@ -6253,7 +6567,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); experiment_ = value; - bitField0_ |= 0x00020000; + bitField0_ |= 0x00040000; onChanged(); return this; } @@ -6280,7 +6594,7 @@ public Builder setExperimentBytes(com.google.protobuf.ByteString value) { * @return Whether the tunedModel field is set. */ public boolean hasTunedModel() { - return ((bitField0_ & 0x00040000) != 0); + return ((bitField0_ & 0x00080000) != 0); } /** @@ -6328,7 +6642,7 @@ public Builder setTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel valu } else { tunedModelBuilder_.setMessage(value); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6352,7 +6666,7 @@ public Builder setTunedModel( } else { tunedModelBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return this; } @@ -6371,7 +6685,7 @@ public Builder setTunedModel( */ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel value) { if (tunedModelBuilder_ == null) { - if (((bitField0_ & 0x00040000) != 0) + if (((bitField0_ & 0x00080000) != 0) && tunedModel_ != null && tunedModel_ != com.google.cloud.aiplatform.v1beta1.TunedModel.getDefaultInstance()) { getTunedModelBuilder().mergeFrom(value); @@ -6382,7 +6696,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va tunedModelBuilder_.mergeFrom(value); } if (tunedModel_ != null) { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); } return this; @@ -6401,7 +6715,7 @@ public Builder mergeTunedModel(com.google.cloud.aiplatform.v1beta1.TunedModel va * */ public Builder clearTunedModel() { - bitField0_ = (bitField0_ & ~0x00040000); + bitField0_ = (bitField0_ & ~0x00080000); tunedModel_ = null; if (tunedModelBuilder_ != null) { tunedModelBuilder_.dispose(); @@ -6424,7 +6738,7 @@ public Builder clearTunedModel() { * */ public com.google.cloud.aiplatform.v1beta1.TunedModel.Builder getTunedModelBuilder() { - bitField0_ |= 0x00040000; + bitField0_ |= 0x00080000; onChanged(); return internalGetTunedModelFieldBuilder().getBuilder(); } @@ -6502,7 +6816,7 @@ public com.google.cloud.aiplatform.v1beta1.TunedModelOrBuilder getTunedModelOrBu * @return Whether the tuningDataStats field is set. */ public boolean hasTuningDataStats() { - return ((bitField0_ & 0x00080000) != 0); + return ((bitField0_ & 0x00100000) != 0); } /** @@ -6550,7 +6864,7 @@ public Builder setTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningData } else { tuningDataStatsBuilder_.setMessage(value); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6574,7 +6888,7 @@ public Builder setTuningDataStats( } else { tuningDataStatsBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return this; } @@ -6593,7 +6907,7 @@ public Builder setTuningDataStats( */ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDataStats value) { if (tuningDataStatsBuilder_ == null) { - if (((bitField0_ & 0x00080000) != 0) + if (((bitField0_ & 0x00100000) != 0) && tuningDataStats_ != null && tuningDataStats_ != com.google.cloud.aiplatform.v1beta1.TuningDataStats.getDefaultInstance()) { @@ -6605,7 +6919,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa tuningDataStatsBuilder_.mergeFrom(value); } if (tuningDataStats_ != null) { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); } return this; @@ -6624,7 +6938,7 @@ public Builder mergeTuningDataStats(com.google.cloud.aiplatform.v1beta1.TuningDa * */ public Builder clearTuningDataStats() { - bitField0_ = (bitField0_ & ~0x00080000); + bitField0_ = (bitField0_ & ~0x00100000); tuningDataStats_ = null; if (tuningDataStatsBuilder_ != null) { tuningDataStatsBuilder_.dispose(); @@ -6647,7 +6961,7 @@ public Builder clearTuningDataStats() { * */ public com.google.cloud.aiplatform.v1beta1.TuningDataStats.Builder getTuningDataStatsBuilder() { - bitField0_ |= 0x00080000; + bitField0_ |= 0x00100000; onChanged(); return internalGetTuningDataStatsFieldBuilder().getBuilder(); } @@ -6781,7 +7095,7 @@ public Builder setPipelineJob(java.lang.String value) { throw new NullPointerException(); } pipelineJob_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6803,7 +7117,7 @@ public Builder setPipelineJob(java.lang.String value) { */ public Builder clearPipelineJob() { pipelineJob_ = getDefaultInstance().getPipelineJob(); - bitField0_ = (bitField0_ & ~0x00100000); + bitField0_ = (bitField0_ & ~0x00200000); onChanged(); return this; } @@ -6830,7 +7144,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); pipelineJob_ = value; - bitField0_ |= 0x00100000; + bitField0_ |= 0x00200000; onChanged(); return this; } @@ -6856,7 +7170,7 @@ public Builder setPipelineJobBytes(com.google.protobuf.ByteString value) { * @return Whether the encryptionSpec field is set. */ public boolean hasEncryptionSpec() { - return ((bitField0_ & 0x00200000) != 0); + return ((bitField0_ & 0x00400000) != 0); } /** @@ -6902,7 +7216,7 @@ public Builder setEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionS } else { encryptionSpecBuilder_.setMessage(value); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6925,7 +7239,7 @@ public Builder setEncryptionSpec( } else { encryptionSpecBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return this; } @@ -6943,7 +7257,7 @@ public Builder setEncryptionSpec( */ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.EncryptionSpec value) { if (encryptionSpecBuilder_ == null) { - if (((bitField0_ & 0x00200000) != 0) + if (((bitField0_ & 0x00400000) != 0) && encryptionSpec_ != null && encryptionSpec_ != com.google.cloud.aiplatform.v1beta1.EncryptionSpec.getDefaultInstance()) { @@ -6955,7 +7269,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio encryptionSpecBuilder_.mergeFrom(value); } if (encryptionSpec_ != null) { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); } return this; @@ -6973,7 +7287,7 @@ public Builder mergeEncryptionSpec(com.google.cloud.aiplatform.v1beta1.Encryptio * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public Builder clearEncryptionSpec() { - bitField0_ = (bitField0_ & ~0x00200000); + bitField0_ = (bitField0_ & ~0x00400000); encryptionSpec_ = null; if (encryptionSpecBuilder_ != null) { encryptionSpecBuilder_.dispose(); @@ -6995,7 +7309,7 @@ public Builder clearEncryptionSpec() { * .google.cloud.aiplatform.v1beta1.EncryptionSpec encryption_spec = 16; */ public com.google.cloud.aiplatform.v1beta1.EncryptionSpec.Builder getEncryptionSpecBuilder() { - bitField0_ |= 0x00200000; + bitField0_ |= 0x00400000; onChanged(); return internalGetEncryptionSpecFieldBuilder().getBuilder(); } @@ -7133,7 +7447,7 @@ public Builder setServiceAccount(java.lang.String value) { throw new NullPointerException(); } serviceAccount_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7157,7 +7471,7 @@ public Builder setServiceAccount(java.lang.String value) { */ public Builder clearServiceAccount() { serviceAccount_ = getDefaultInstance().getServiceAccount(); - bitField0_ = (bitField0_ & ~0x00400000); + bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } @@ -7186,7 +7500,7 @@ public Builder setServiceAccountBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); serviceAccount_ = value; - bitField0_ |= 0x00400000; + bitField0_ |= 0x00800000; onChanged(); return this; } @@ -7262,7 +7576,7 @@ public Builder setOutputUri(java.lang.String value) { throw new NullPointerException(); } outputUri_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7282,7 +7596,7 @@ public Builder setOutputUri(java.lang.String value) { */ public Builder clearOutputUri() { outputUri_ = getDefaultInstance().getOutputUri(); - bitField0_ = (bitField0_ & ~0x00800000); + bitField0_ = (bitField0_ & ~0x01000000); onChanged(); return this; } @@ -7307,7 +7621,7 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); outputUri_ = value; - bitField0_ |= 0x00800000; + bitField0_ |= 0x01000000; onChanged(); return this; } @@ -7316,11 +7630,11 @@ public Builder setOutputUriBytes(com.google.protobuf.ByteString value) { evaluateDatasetRuns_ = java.util.Collections.emptyList(); private void ensureEvaluateDatasetRunsIsMutable() { - if (!((bitField0_ & 0x01000000) != 0)) { + if (!((bitField0_ & 0x02000000) != 0)) { evaluateDatasetRuns_ = new java.util.ArrayList( evaluateDatasetRuns_); - bitField0_ |= 0x01000000; + bitField0_ |= 0x02000000; } } @@ -7574,7 +7888,7 @@ public Builder addAllEvaluateDatasetRuns( public Builder clearEvaluateDatasetRuns() { if (evaluateDatasetRunsBuilder_ == null) { evaluateDatasetRuns_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x01000000); + bitField0_ = (bitField0_ & ~0x02000000); onChanged(); } else { evaluateDatasetRunsBuilder_.clear(); @@ -7723,7 +8037,7 @@ public Builder removeEvaluateDatasetRuns(int index) { com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRun.Builder, com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunOrBuilder>( evaluateDatasetRuns_, - ((bitField0_ & 0x01000000) != 0), + ((bitField0_ & 0x02000000) != 0), getParentForChildren(), isClean()); evaluateDatasetRuns_ = null; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java index 5b2d5919c61a..d5fc1516a121 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobOrBuilder.java @@ -258,6 +258,43 @@ public interface TuningJobOrBuilder */ com.google.cloud.aiplatform.v1beta1.VeoTuningSpecOrBuilder getVeoTuningSpecOrBuilder(); + /** + * + * + *
            +   * Tuning Spec for Veo LoRA Tuning.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return Whether the veoLoraTuningSpec field is set. + */ + boolean hasVeoLoraTuningSpec(); + + /** + * + * + *
            +   * Tuning Spec for Veo LoRA Tuning.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + * + * @return The veoLoraTuningSpec. + */ + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getVeoLoraTuningSpec(); + + /** + * + * + *
            +   * Tuning Spec for Veo LoRA Tuning.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec veo_lora_tuning_spec = 38; + */ + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder getVeoLoraTuningSpecOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java index 655a7bb5b832..d874bc544b38 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/TuningJobProto.java @@ -120,6 +120,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_VeoTuningSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_VeoTuningSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -153,7 +157,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "valuation_service.proto\032/google/cloud/ai" + "platform/v1beta1/job_state.proto\032\034google" + "/protobuf/struct.proto\032\037google/protobuf/" - + "timestamp.proto\032\027google/rpc/status.proto\"\200\r\n" + + "timestamp.proto\032\027google/rpc/status.proto\"\324\r\n" + "\tTuningJob\022\024\n\n" + "base_model\030\004 \001(\tH\000\022I\n" + "\017pre_tuned_model\030\037" @@ -165,7 +169,9 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\031partner_model_tuning_spec\030\025 \001(\01327.go" + "ogle.cloud.aiplatform.v1beta1.PartnerModelTuningSpecH\001\022I\n" + "\017veo_tuning_spec\030! \001(\0132" - + "..google.cloud.aiplatform.v1beta1.VeoTuningSpecH\001\022\024\n" + + "..google.cloud.aiplatform.v1beta1.VeoTuningSpecH\001\022R\n" + + "\024veo_lora_tuning_spec\030& \001(\0132" + + "2.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecH\001\022\024\n" + "\004name\030\001 \001(\tB\006\340A\010\340A\003\022%\n" + "\030tuned_model_display_name\030\002 \001(\tB\003\340A\001\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022\036\n" @@ -179,28 +185,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013update_time\030\n" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022&\n" + "\005error\030\013 \001(\0132\022.google.rpc.StatusB\003\340A\003\022K\n" - + "\006labels\030\014 \003(\01326.google.cloud.aipla" - + "tform.v1beta1.TuningJob.LabelsEntryB\003\340A\001\022=\n\n" + + "\006labels\030\014 \003(\01326.google.cloud.a" + + "iplatform.v1beta1.TuningJob.LabelsEntryB\003\340A\001\022=\n\n" + "experiment\030\r" + " \001(\tB)\340A\003\372A#\n" + "!aiplatform.googleapis.com/Context\022E\n" + "\013tuned_model\030\016" + " \001(\0132+.google.cloud.aiplatform.v1beta1.TunedModelB\003\340A\003\022P\n" - + "\021tuning_data_stats\030\017 \001(" - + "\01320.google.cloud.aiplatform.v1beta1.TuningDataStatsB\003\340A\003\022C\n" + + "\021tuning_data_stats\030\017" + + " \001(\01320.google.cloud.aiplatform.v1beta1.TuningDataStatsB\003\340A\003\022C\n" + "\014pipeline_job\030\022 \001(\tB-\340A\003\372A\'\n" + "%aiplatform.googleapis.com/PipelineJob\022H\n" - + "\017encryption_spec\030\020 \001(\0132/.google." - + "cloud.aiplatform.v1beta1.EncryptionSpec\022\027\n" + + "\017encryption_spec\030\020 \001(\0132/.goo" + + "gle.cloud.aiplatform.v1beta1.EncryptionSpec\022\027\n" + "\017service_account\030\026 \001(\t\022\027\n\n" + "output_uri\030\031 \001(\tB\003\340A\001\022W\n" - + "\025evaluate_dataset_runs\030 \003(\013" - + "23.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunB\003\340A\003\032-\n" + + "\025evaluate_dataset_runs\030 " + + " \003(\01323.google.cloud.aiplatform.v1beta1.EvaluateDatasetRunB\003\340A\003\032-\n" + "\013LabelsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" + "\005value\030\002 \001(\t:\0028\001:\200\001\352A}\n" - + "#aiplatform.googleapis.com/TuningJob\022?projects/{" - + "project}/locations/{location}/tuningJobs/{tuning_job}*\n" + + "#aiplatform.googleapis.com/TuningJob\022?projec" + + "ts/{project}/locations/{location}/tuningJobs/{tuning_job}*\n" + "tuningJobs2\ttuningJobB\016\n" + "\014source_modelB\r\n" + "\013tuning_spec\"\323\001\n\n" @@ -209,8 +215,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037aiplatform.googleapis.com/Model\022<\n" + "\010endpoint\030\002 \001(\tB*\340A\003\372A$\n" + "\"aiplatform.googleapis.com/Endpoint\022O\n" - + "\013checkpoints\030\003 \003(\01325.google.cloud.aip" - + "latform.v1beta1.TunedModelCheckpointB\003\340A\003\"\367\002\n" + + "\013checkpoints\030\003 \003(\01325.google.cloud" + + ".aiplatform.v1beta1.TunedModelCheckpointB\003\340A\003\"\367\002\n" + "#SupervisedTuningDatasetDistribution\022\020\n" + "\003sum\030\001 \001(\003B\003\340A\003\022\031\n" + "\014billable_sum\030\t \001(\003B\003\340A\003\022\020\n" @@ -220,8 +226,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006median\030\005 \001(\001B\003\340A\003\022\017\n" + "\002p5\030\006 \001(\001B\003\340A\003\022\020\n" + "\003p95\030\007 \001(\001B\003\340A\003\022h\n" - + "\007buckets\030\010 \003(\0132R.google.cloud.aiplatform" - + ".v1beta1.SupervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r" + + "\007buckets\030\010 \003(\0132R.google.cloud.aiplat" + + "form.v1beta1.SupervisedTuningDatasetDistribution.DatasetBucketB\003\340A\003\032J\n\r" + "DatasetBucket\022\022\n" + "\005count\030\001 \001(\001B\003\340A\003\022\021\n" + "\004left\030\002 \001(\001B\003\340A\003\022\022\n" @@ -232,14 +238,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\036total_billable_character_count\030\003 \001(\003B\005\030\001\340A\003\022\'\n" + "\032total_billable_token_count\030\t \001(\003B\003\340A\003\022\036\n" + "\021tuning_step_count\030\004 \001(\003B\003\340A\003\022p\n" - + "\035user_input_token_distribution\030\005 \001(\0132D.google.cloud.aiplatform" - + ".v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022q\n" - + "\036user_output_token_distribution\030\006 \001(\0132D.google.cloud.aiplatform.v1be" - + "ta1.SupervisedTuningDatasetDistributionB\003\340A\003\022x\n" - + "%user_message_per_example_distribution\030\007 \001(\0132D.google.cloud.aiplatform.v1" - + "beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022L\n" - + "\025user_dataset_examples\030\010 \003(\0132(." - + "google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022*\n" + + "\035user_input_token_distribution\030\005 \001(\0132D.google.cloud.aiplat" + + "form.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022q\n" + + "\036user_output_token_distribution\030\006 \001(\0132D.google.cloud.aiplatform." + + "v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022x\n" + + "%user_message_per_example_distribution\030\007 \001(\0132D.google.cloud.aiplatfor" + + "m.v1beta1.SupervisedTuningDatasetDistributionB\003\340A\003\022L\n" + + "\025user_dataset_examples\030\010 \003(" + + "\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003\022*\n" + "\035total_truncated_example_count\030\n" + " \001(\003B\003\340A\003\022&\n" + "\031truncated_example_indices\030\013 \003(\003B\003\340A\003\022$\n" @@ -252,8 +258,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006median\030\005 \001(\001B\003\340A\003\022\017\n" + "\002p5\030\006 \001(\001B\003\340A\003\022\020\n" + "\003p95\030\007 \001(\001B\003\340A\003\022]\n" - + "\007buckets\030\010 \003(\0132G.google.cloud.aiplatfo" - + "rm.v1beta1.DatasetDistribution.DistributionBucketB\003\340A\003\032O\n" + + "\007buckets\030\010 \003(\0132G.google.cloud.aipl" + + "atform.v1beta1.DatasetDistribution.DistributionBucketB\003\340A\003\032O\n" + "\022DistributionBucket\022\022\n" + "\005count\030\001 \001(\003B\003\340A\003\022\021\n" + "\004left\030\002 \001(\001B\003\340A\003\022\022\n" @@ -263,30 +269,30 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034total_tuning_character_count\030\002 \001(\003B\003\340A\003\022+\n" + "\036total_billable_character_count\030\003 \001(\003B\003\340A\003\022\036\n" + "\021tuning_step_count\030\004 \001(\003B\003\340A\003\022`\n" - + "\035user_input_token_distribution\030\005 \001(\01324.goo" - + "gle.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022f\n" - + "\036user_output_token_distribution\030\006" - + " \001(\01324.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003H\000\210\001\001\022h\n" + + "\035user_input_token_distribution\030\005 \001(\01324" + + ".google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022f\n" + + "\036user_output_token_distribution\030\006 \001(\01324.google.cloud.aiplatf" + + "orm.v1beta1.DatasetDistributionB\003\340A\003H\000\210\001\001\022h\n" + "%user_message_per_example_distribution\030\007" + " \001(\01324.google.cloud.aiplatform.v1beta1.DatasetDistributionB\003\340A\003\022L\n" + "\025user_dataset_examples\030\010" + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\003B!\n" + "\037_user_output_token_distribution\"k\n" + "\025DistillationDataStats\022R\n" - + "\026training_dataset_stats\030\001 \001(\0132-.goog" - + "le.cloud.aiplatform.v1beta1.DatasetStatsB\003\340A\003\"\352\001\n" + + "\026training_dataset_stats\030\001 \001(\0132-." + + "google.cloud.aiplatform.v1beta1.DatasetStatsB\003\340A\003\"\352\001\n" + "\017TuningDataStats\022b\n" - + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.cloud.a" - + "iplatform.v1beta1.SupervisedTuningDataStatsH\000\022^\n" - + "\027distillation_data_stats\030\003 \001(\01326" - + ".google.cloud.aiplatform.v1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n" + + "\034supervised_tuning_data_stats\030\001 \001(\0132:.google.clo" + + "ud.aiplatform.v1beta1.SupervisedTuningDataStatsH\000\022^\n" + + "\027distillation_data_stats\030\003 \001" + + "(\01326.google.cloud.aiplatform.v1beta1.DistillationDataStatsB\003\340A\003H\000B\023\n" + "\021tuning_data_stats\"\264\003\n" + "\031SupervisedHyperParameters\022\030\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022\032\n\r" + "learning_rate\030\006 \001(\001B\003\340A\001\022a\n" - + "\014adapter_size\030\003 \001(\0162F.google.clo" - + "ud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\022\027\n\n" + + "\014adapter_size\030\003 \001(\0162F.google" + + ".cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001\022\027\n\n" + "batch_size\030\005 \001(\003B\003\340A\001\"\275\001\n" + "\013AdapterSize\022\034\n" + "\030ADAPTER_SIZE_UNSPECIFIED\020\000\022\024\n" @@ -302,10 +308,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\020hyper_parameters\030\003" + " \001(\0132:.google.cloud.aiplatform.v1beta1.SupervisedHyperParametersB\003\340A\001\022(\n" + "\033export_last_checkpoint_only\030\006 \001(\010B\003\340A\001\022Q\n" - + "\021evaluation_config\030\005" - + " \001(\01321.google.cloud.aiplatform.v1beta1.EvaluationConfigB\003\340A\001\022U\n" - + "\013tuning_mode\030\007 \001(\0162@.google.cloud.aiplatfor" - + "m.v1beta1.SupervisedTuningSpec.TuningMode\"]\n\n" + + "\021evaluation_config\030\005 \001(\01321.google.cloud.ai" + + "platform.v1beta1.EvaluationConfigB\003\340A\001\022U\n" + + "\013tuning_mode\030\007 \001(\0162@.google.cloud.aipla" + + "tform.v1beta1.SupervisedTuningSpec.TuningMode\"]\n\n" + "TuningMode\022\033\n" + "\027TUNING_MODE_UNSPECIFIED\020\000\022\024\n" + "\020TUNING_MODE_FULL\020\001\022\034\n" @@ -317,7 +323,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022(\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001H\001\210\001\001\022[\n" + "\020hyper_parameters\030\003" - + " \001(\0132<.google.cloud.aiplatform.v1beta1.DistillationHyperParametersB\003\340A\001\022\025\n\r" + + " \001(\0132<.google.cloud.aiplatform.v1beta1.DistillationHyperParametersB\003\340A\001\022\025\n" + + "\r" + "student_model\030\004 \001(\t\022$\n" + "\027pipeline_root_directory\030\007 \001(\tB\003\340A\002B\017\n\r" + "teacher_modelB\031\n" @@ -325,18 +332,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033DistillationHyperParameters\022\035\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001H\000\210\001\001\022*\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001H\001\210\001\001\022a\n" - + "\014adapter_size\030\003 \001(\0162F.google.clo" - + "ud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001B\016\n" + + "\014adapter_size\030\003 \001(\0162F.google" + + ".cloud.aiplatform.v1beta1.SupervisedHyperParameters.AdapterSizeB\003\340A\001B\016\n" + "\014_epoch_countB\033\n" + "\031_learning_rate_multiplier\"\230\002\n" + "\026PartnerModelTuningSpec\022!\n" + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022f\n" - + "\020hyper_parameters\030\003 \003(\0132L.goo" - + "gle.cloud.aiplatform.v1beta1.PartnerModelTuningSpec.HyperParametersEntry\032N\n" + + "\020hyper_parameters\030\003 \003(\0132L" + + ".google.cloud.aiplatform.v1beta1.PartnerModelTuningSpec.HyperParametersEntry\032N\n" + "\024HyperParametersEntry\022\013\n" + "\003key\030\001 \001(\t\022%\n" - + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\343\001\n\r" + + "\005value\030\002 \001(\0132\026.google.protobuf.Value:\0028\001\"\343\001\n" + + "\r" + "TunedModelRef\022;\n" + "\013tuned_model\030\001 \001(\tB$\372A!\n" + "\037aiplatform.googleapis.com/ModelH\000\022>\n\n" @@ -344,36 +352,58 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "#aiplatform.googleapis.com/TuningJobH\000\022B\n" + "\014pipeline_job\030\003 \001(\tB*\372A\'\n" + "%aiplatform.googleapis.com/PipelineJobH\000B\021\n" - + "\017tuned_model_ref\"\204\002\n" + + "\017tuned_model_ref\"\347\005\n" + "\022VeoHyperParameters\022\030\n" + "\013epoch_count\030\001 \001(\003B\003\340A\001\022%\n" + "\030learning_rate_multiplier\030\002 \001(\001B\003\340A\001\022X\n" - + "\013tuning_task\030\003 \001(\0162>.google.cloud.aiplatform.v1" - + "beta1.VeoHyperParameters.TuningTaskB\003\340A\001\"S\n\n" + + "\013tuning_task\030\003 \001(\0162>.google.cloud.aiplatfor" + + "m.v1beta1.VeoHyperParameters.TuningTaskB\003\340A\001\022(\n" + + "\026veo_data_mixture_ratio\030\004 \001(\001B\003\340A\001H\000\210\001\001\022Z\n" + + "\014tuning_speed\030\005 \001(\0162?.google.cl" + + "oud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeedH\001\210\001\001\022Z\n" + + "\014adapter_size\030\006 \001(\016" + + "2?.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSizeB\003\340A\001\"h\n\n" + "TuningTask\022\033\n" + "\027TUNING_TASK_UNSPECIFIED\020\000\022\023\n" + "\017TUNING_TASK_I2V\020\001\022\023\n" - + "\017TUNING_TASK_T2V\020\002\"\253\001\n\r" + + "\017TUNING_TASK_T2V\020\002\022\023\n" + + "\017TUNING_TASK_R2V\020\003\"B\n" + + "\013TuningSpeed\022\034\n" + + "\030TUNING_SPEED_UNSPECIFIED\020\000\022\013\n" + + "\007REGULAR\020\001\022\010\n" + + "\004FAST\020\002\"z\n" + + "\013AdapterSize\022\034\n" + + "\030ADAPTER_SIZE_UNSPECIFIED\020\000\022\026\n" + + "\022ADAPTER_SIZE_EIGHT\020\010\022\030\n" + + "\024ADAPTER_SIZE_SIXTEEN\020\020\022\033\n" + + "\027ADAPTER_SIZE_THIRTY_TWO\020 B\031\n" + + "\027_veo_data_mixture_ratioB\017\n\r" + + "_tuning_speed\"\253\001\n\r" + "VeoTuningSpec\022!\n" + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022R\n" - + "\020hyper_parameters\030\003 \001(" - + "\01323.google.cloud.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\312\002\n" + + "\020hyper_parameters\030\003" + + " \001(\01323.google.cloud.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\257\001\n" + + "\021VeoLoraTuningSpec\022!\n" + + "\024training_dataset_uri\030\001 \001(\tB\003\340A\002\022#\n" + + "\026validation_dataset_uri\030\002 \001(\tB\003\340A\001\022R\n" + + "\020hyper_parameters\030\003 \001(\01323.google.clou" + + "d.aiplatform.v1beta1.VeoHyperParametersB\003\340A\001\"\312\002\n" + "\020EvaluationConfig\022=\n" - + "\007metrics\030\001" - + " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" - + "output_config\030\002" - + " \001(\0132-.google.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" - + "\020autorater_config\030\003" - + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\022[\n" - + "\033inference_generation_config\030\005" - + " \001(\01321.google.cloud.aiplatform.v1beta1.GenerationConfigB\003\340A\001\"\364\001\n" + + "\007metrics\030\001 \003" + + "(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" + + "output_config\030\002 \001(\0132-.google" + + ".cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" + + "\020autorater_config\030\003 \001(\01320.google.c" + + "loud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\022[\n" + + "\033inference_generation_config\030\005 \001(" + + "\01321.google.cloud.aiplatform.v1beta1.GenerationConfigB\003\340A\001\"\364\001\n" + "\022EvaluateDatasetRun\022\033\n" + "\016operation_name\030\001 \001(\tB\003\340A\003\022\033\n" + "\016evaluation_run\030\005 \001(\tB\003\340A\003\022\032\n\r" + "checkpoint_id\030\002 \001(\tB\003\340A\003\022`\n" - + "\031evaluate_dataset_response\030\003 \001(\01328.google.cloud.aiplatfo" - + "rm.v1beta1.EvaluateDatasetResponseB\003\340A\003\022&\n" + + "\031evaluate_dataset_response\030\003 \001(" + + "\01328.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponseB\003\340A\003\022&\n" + "\005error\030\004 \001(\0132\022.google.rpc.StatusB\003\340A\003\"\\\n" + "\024TunedModelCheckpoint\022\025\n\r" + "checkpoint_id\030\001 \001(\t\022\r\n" @@ -385,11 +415,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037aiplatform.googleapis.com/Model\022\032\n\r" + "checkpoint_id\030\002 \001(\tB\003\340A\001\022\027\n\n" + "base_model\030\003 \001(\tB\003\340A\003B\345\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\016TuningJobP" - + "rotoP\001ZCcloud.google.com/go/aiplatform/a" - + "piv1beta1/aiplatformpb;aiplatformpb\252\002\037Go" - + "ogle.Cloud.AIPlatform.V1Beta1\312\002\037Google\\C" - + "loud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + + "#com.google.cloud.aiplatform.v1beta1B\016TuningJobProtoP\001ZCcloud.g" + + "oogle.com/go/aiplatform/apiv1beta1/aipla" + + "tformpb;aiplatformpb\252\002\037Google.Cloud.AIPl" + + "atform.V1Beta1\312\002\037Google\\Cloud\\AIPlatform" + + "\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -417,6 +447,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "DistillationSpec", "PartnerModelTuningSpec", "VeoTuningSpec", + "VeoLoraTuningSpec", "Name", "TunedModelDisplayName", "Description", @@ -614,7 +645,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_VeoHyperParameters_descriptor, new java.lang.String[] { - "EpochCount", "LearningRateMultiplier", "TuningTask", + "EpochCount", + "LearningRateMultiplier", + "TuningTask", + "VeoDataMixtureRatio", + "TuningSpeed", + "AdapterSize", }); internal_static_google_cloud_aiplatform_v1beta1_VeoTuningSpec_descriptor = getDescriptor().getMessageType(15); @@ -624,8 +660,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters", }); - internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor = getDescriptor().getMessageType(16); + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor, + new java.lang.String[] { + "TrainingDatasetUri", "ValidationDatasetUri", "HyperParameters", + }); + internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_descriptor = + getDescriptor().getMessageType(17); internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_EvaluationConfig_descriptor, @@ -633,7 +677,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Metrics", "OutputConfig", "AutoraterConfig", "InferenceGenerationConfig", }); internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRun_descriptor = - getDescriptor().getMessageType(17); + getDescriptor().getMessageType(18); internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRun_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRun_descriptor, @@ -641,7 +685,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OperationName", "EvaluationRun", "CheckpointId", "EvaluateDatasetResponse", "Error", }); internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor = - getDescriptor().getMessageType(18); + getDescriptor().getMessageType(19); internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_TunedModelCheckpoint_descriptor, @@ -649,7 +693,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "CheckpointId", "Epoch", "Step", "Endpoint", }); internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor = - getDescriptor().getMessageType(19); + getDescriptor().getMessageType(20); internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_aiplatform_v1beta1_PreTunedModel_descriptor, diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParameters.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParameters.java index 50c7b8c0c214..49250ec88e8d 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParameters.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParameters.java @@ -53,6 +53,8 @@ private VeoHyperParameters(com.google.protobuf.GeneratedMessage.Builder build private VeoHyperParameters() { tuningTask_ = 0; + tuningSpeed_ = 0; + adapterSize_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -110,6 +112,16 @@ public enum TuningTask implements com.google.protobuf.ProtocolMessageEnum { * TUNING_TASK_T2V = 2; */ TUNING_TASK_T2V(2), + /** + * + * + *
            +     * Tuning task for reference to video.
            +     * 
            + * + * TUNING_TASK_R2V = 3; + */ + TUNING_TASK_R2V(3), UNRECOGNIZED(-1), ; @@ -156,6 +168,17 @@ public enum TuningTask implements com.google.protobuf.ProtocolMessageEnum { */ public static final int TUNING_TASK_T2V_VALUE = 2; + /** + * + * + *
            +     * Tuning task for reference to video.
            +     * 
            + * + * TUNING_TASK_R2V = 3; + */ + public static final int TUNING_TASK_R2V_VALUE = 3; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -186,6 +209,8 @@ public static TuningTask forNumber(int value) { return TUNING_TASK_I2V; case 2: return TUNING_TASK_T2V; + case 3: + return TUNING_TASK_R2V; default: return null; } @@ -241,6 +266,374 @@ private TuningTask(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask) } + /** + * + * + *
            +   * The speed of the tuning job. Only supported for Veo 3.0 models.
            +   * 
            + * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed} + */ + public enum TuningSpeed implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The default / unset value. For Veo 3.0 models, this defaults to FAST.
            +     * 
            + * + * TUNING_SPEED_UNSPECIFIED = 0; + */ + TUNING_SPEED_UNSPECIFIED(0), + /** + * + * + *
            +     * Regular tuning speed.
            +     * 
            + * + * REGULAR = 1; + */ + REGULAR(1), + /** + * + * + *
            +     * Fast tuning speed.
            +     * 
            + * + * FAST = 2; + */ + FAST(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TuningSpeed"); + } + + /** + * + * + *
            +     * The default / unset value. For Veo 3.0 models, this defaults to FAST.
            +     * 
            + * + * TUNING_SPEED_UNSPECIFIED = 0; + */ + public static final int TUNING_SPEED_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Regular tuning speed.
            +     * 
            + * + * REGULAR = 1; + */ + public static final int REGULAR_VALUE = 1; + + /** + * + * + *
            +     * Fast tuning speed.
            +     * 
            + * + * FAST = 2; + */ + public static final int FAST_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static TuningSpeed valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static TuningSpeed forNumber(int value) { + switch (value) { + case 0: + return TUNING_SPEED_UNSPECIFIED; + case 1: + return REGULAR; + case 2: + return FAST; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public TuningSpeed findValueByNumber(int number) { + return TuningSpeed.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDescriptor() + .getEnumTypes() + .get(1); + } + + private static final TuningSpeed[] VALUES = values(); + + public static TuningSpeed valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private TuningSpeed(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed) + } + + /** + * + * + *
            +   * Adapter size for LoRA tuning.
            +   * 
            + * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize} + */ + public enum AdapterSize implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Adapter size is unspecified.
            +     * 
            + * + * ADAPTER_SIZE_UNSPECIFIED = 0; + */ + ADAPTER_SIZE_UNSPECIFIED(0), + /** + * + * + *
            +     * Adapter size 8.
            +     * This is the default adapter size for Veo LoRA tuning.
            +     * 
            + * + * ADAPTER_SIZE_EIGHT = 8; + */ + ADAPTER_SIZE_EIGHT(8), + /** + * + * + *
            +     * Adapter size 16.
            +     * 
            + * + * ADAPTER_SIZE_SIXTEEN = 16; + */ + ADAPTER_SIZE_SIXTEEN(16), + /** + * + * + *
            +     * Adapter size 32.
            +     * 
            + * + * ADAPTER_SIZE_THIRTY_TWO = 32; + */ + ADAPTER_SIZE_THIRTY_TWO(32), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AdapterSize"); + } + + /** + * + * + *
            +     * Adapter size is unspecified.
            +     * 
            + * + * ADAPTER_SIZE_UNSPECIFIED = 0; + */ + public static final int ADAPTER_SIZE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Adapter size 8.
            +     * This is the default adapter size for Veo LoRA tuning.
            +     * 
            + * + * ADAPTER_SIZE_EIGHT = 8; + */ + public static final int ADAPTER_SIZE_EIGHT_VALUE = 8; + + /** + * + * + *
            +     * Adapter size 16.
            +     * 
            + * + * ADAPTER_SIZE_SIXTEEN = 16; + */ + public static final int ADAPTER_SIZE_SIXTEEN_VALUE = 16; + + /** + * + * + *
            +     * Adapter size 32.
            +     * 
            + * + * ADAPTER_SIZE_THIRTY_TWO = 32; + */ + public static final int ADAPTER_SIZE_THIRTY_TWO_VALUE = 32; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static AdapterSize valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static AdapterSize forNumber(int value) { + switch (value) { + case 0: + return ADAPTER_SIZE_UNSPECIFIED; + case 8: + return ADAPTER_SIZE_EIGHT; + case 16: + return ADAPTER_SIZE_SIXTEEN; + case 32: + return ADAPTER_SIZE_THIRTY_TWO; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public AdapterSize findValueByNumber(int number) { + return AdapterSize.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final AdapterSize[] VALUES = values(); + + public static AdapterSize valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private AdapterSize(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize) + } + + private int bitField0_; public static final int EPOCH_COUNT_FIELD_NUMBER = 1; private long epochCount_ = 0L; @@ -291,35 +684,182 @@ public double getLearningRateMultiplier() { * * * - * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for tuningTask. + */ + @java.lang.Override + public int getTuningTaskValue() { + return tuningTask_; + } + + /** + * + * + *
            +   * Optional. The tuning task. Either I2V or T2V.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The tuningTask. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask getTuningTask() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask.forNumber(tuningTask_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask.UNRECOGNIZED + : result; + } + + public static final int VEO_DATA_MIXTURE_RATIO_FIELD_NUMBER = 4; + private double veoDataMixtureRatio_ = 0D; + + /** + * + * + *
            +   * Optional. The ratio of Google internal dataset to use in the training
            +   * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
            +   * dataset and 80% of user dataset will be used for training. If not set, the
            +   * default value is 0.1.
            +   * 
            + * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the veoDataMixtureRatio field is set. + */ + @java.lang.Override + public boolean hasVeoDataMixtureRatio() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The ratio of Google internal dataset to use in the training
            +   * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
            +   * dataset and 80% of user dataset will be used for training. If not set, the
            +   * default value is 0.1.
            +   * 
            + * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The veoDataMixtureRatio. + */ + @java.lang.Override + public double getVeoDataMixtureRatio() { + return veoDataMixtureRatio_; + } + + public static final int TUNING_SPEED_FIELD_NUMBER = 5; + private int tuningSpeed_ = 0; + + /** + * + * + *
            +   * The speed of the tuning job. Only supported for Veo 3.0 models.
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return Whether the tuningSpeed field is set. + */ + @java.lang.Override + public boolean hasTuningSpeed() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * The speed of the tuning job. Only supported for Veo 3.0 models.
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The enum numeric value on the wire for tuningSpeed. + */ + @java.lang.Override + public int getTuningSpeedValue() { + return tuningSpeed_; + } + + /** + * + * + *
            +   * The speed of the tuning job. Only supported for Veo 3.0 models.
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The tuningSpeed. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed getTuningSpeed() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed.forNumber(tuningSpeed_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed.UNRECOGNIZED + : result; + } + + public static final int ADAPTER_SIZE_FIELD_NUMBER = 6; + private int adapterSize_ = 0; + + /** + * + * + *
            +   * Optional. The adapter size for LoRA tuning.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The enum numeric value on the wire for tuningTask. + * @return The enum numeric value on the wire for adapterSize. */ @java.lang.Override - public int getTuningTaskValue() { - return tuningTask_; + public int getAdapterSizeValue() { + return adapterSize_; } /** * * *
            -   * Optional. The tuning task. Either I2V or T2V.
            +   * Optional. The adapter size for LoRA tuning.
                * 
            * * - * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask tuning_task = 3 [(.google.api.field_behavior) = OPTIONAL]; + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; * * - * @return The tuningTask. + * @return The adapterSize. */ @java.lang.Override - public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask getTuningTask() { - com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask result = - com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask.forNumber(tuningTask_); + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize getAdapterSize() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize.forNumber(adapterSize_); return result == null - ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask.UNRECOGNIZED + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize.UNRECOGNIZED : result; } @@ -348,6 +888,18 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(3, tuningTask_); } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeDouble(4, veoDataMixtureRatio_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(5, tuningSpeed_); + } + if (adapterSize_ + != com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize + .ADAPTER_SIZE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, adapterSize_); + } getUnknownFields().writeTo(output); } @@ -368,6 +920,18 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, tuningTask_); } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(4, veoDataMixtureRatio_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, tuningSpeed_); + } + if (adapterSize_ + != com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize + .ADAPTER_SIZE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, adapterSize_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -388,6 +952,16 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Double.doubleToLongBits(getLearningRateMultiplier()) != java.lang.Double.doubleToLongBits(other.getLearningRateMultiplier())) return false; if (tuningTask_ != other.tuningTask_) return false; + if (hasVeoDataMixtureRatio() != other.hasVeoDataMixtureRatio()) return false; + if (hasVeoDataMixtureRatio()) { + if (java.lang.Double.doubleToLongBits(getVeoDataMixtureRatio()) + != java.lang.Double.doubleToLongBits(other.getVeoDataMixtureRatio())) return false; + } + if (hasTuningSpeed() != other.hasTuningSpeed()) return false; + if (hasTuningSpeed()) { + if (tuningSpeed_ != other.tuningSpeed_) return false; + } + if (adapterSize_ != other.adapterSize_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -408,6 +982,19 @@ public int hashCode() { java.lang.Double.doubleToLongBits(getLearningRateMultiplier())); hash = (37 * hash) + TUNING_TASK_FIELD_NUMBER; hash = (53 * hash) + tuningTask_; + if (hasVeoDataMixtureRatio()) { + hash = (37 * hash) + VEO_DATA_MIXTURE_RATIO_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getVeoDataMixtureRatio())); + } + if (hasTuningSpeed()) { + hash = (37 * hash) + TUNING_SPEED_FIELD_NUMBER; + hash = (53 * hash) + tuningSpeed_; + } + hash = (37 * hash) + ADAPTER_SIZE_FIELD_NUMBER; + hash = (53 * hash) + adapterSize_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -552,6 +1139,9 @@ public Builder clear() { epochCount_ = 0L; learningRateMultiplier_ = 0D; tuningTask_ = 0; + veoDataMixtureRatio_ = 0D; + tuningSpeed_ = 0; + adapterSize_ = 0; return this; } @@ -597,6 +1187,19 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.VeoHyperParameter if (((from_bitField0_ & 0x00000004) != 0)) { result.tuningTask_ = tuningTask_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.veoDataMixtureRatio_ = veoDataMixtureRatio_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.tuningSpeed_ = tuningSpeed_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.adapterSize_ = adapterSize_; + } + result.bitField0_ |= to_bitField0_; } @java.lang.Override @@ -621,6 +1224,15 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.VeoHyperParameters if (other.tuningTask_ != 0) { setTuningTaskValue(other.getTuningTaskValue()); } + if (other.hasVeoDataMixtureRatio()) { + setVeoDataMixtureRatio(other.getVeoDataMixtureRatio()); + } + if (other.hasTuningSpeed()) { + setTuningSpeedValue(other.getTuningSpeedValue()); + } + if (other.adapterSize_ != 0) { + setAdapterSizeValue(other.getAdapterSizeValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -665,6 +1277,24 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 24 + case 33: + { + veoDataMixtureRatio_ = input.readDouble(); + bitField0_ |= 0x00000008; + break; + } // case 33 + case 40: + { + tuningSpeed_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 + case 48: + { + adapterSize_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -907,6 +1537,330 @@ public Builder clearTuningTask() { return this; } + private double veoDataMixtureRatio_; + + /** + * + * + *
            +     * Optional. The ratio of Google internal dataset to use in the training
            +     * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
            +     * dataset and 80% of user dataset will be used for training. If not set, the
            +     * default value is 0.1.
            +     * 
            + * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the veoDataMixtureRatio field is set. + */ + @java.lang.Override + public boolean hasVeoDataMixtureRatio() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. The ratio of Google internal dataset to use in the training
            +     * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
            +     * dataset and 80% of user dataset will be used for training. If not set, the
            +     * default value is 0.1.
            +     * 
            + * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The veoDataMixtureRatio. + */ + @java.lang.Override + public double getVeoDataMixtureRatio() { + return veoDataMixtureRatio_; + } + + /** + * + * + *
            +     * Optional. The ratio of Google internal dataset to use in the training
            +     * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
            +     * dataset and 80% of user dataset will be used for training. If not set, the
            +     * default value is 0.1.
            +     * 
            + * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The veoDataMixtureRatio to set. + * @return This builder for chaining. + */ + public Builder setVeoDataMixtureRatio(double value) { + + veoDataMixtureRatio_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The ratio of Google internal dataset to use in the training
            +     * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
            +     * dataset and 80% of user dataset will be used for training. If not set, the
            +     * default value is 0.1.
            +     * 
            + * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearVeoDataMixtureRatio() { + bitField0_ = (bitField0_ & ~0x00000008); + veoDataMixtureRatio_ = 0D; + onChanged(); + return this; + } + + private int tuningSpeed_ = 0; + + /** + * + * + *
            +     * The speed of the tuning job. Only supported for Veo 3.0 models.
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return Whether the tuningSpeed field is set. + */ + @java.lang.Override + public boolean hasTuningSpeed() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * The speed of the tuning job. Only supported for Veo 3.0 models.
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The enum numeric value on the wire for tuningSpeed. + */ + @java.lang.Override + public int getTuningSpeedValue() { + return tuningSpeed_; + } + + /** + * + * + *
            +     * The speed of the tuning job. Only supported for Veo 3.0 models.
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @param value The enum numeric value on the wire for tuningSpeed to set. + * @return This builder for chaining. + */ + public Builder setTuningSpeedValue(int value) { + tuningSpeed_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The speed of the tuning job. Only supported for Veo 3.0 models.
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The tuningSpeed. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed getTuningSpeed() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed.forNumber( + tuningSpeed_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * The speed of the tuning job. Only supported for Veo 3.0 models.
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @param value The tuningSpeed to set. + * @return This builder for chaining. + */ + public Builder setTuningSpeed( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + tuningSpeed_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The speed of the tuning job. Only supported for Veo 3.0 models.
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearTuningSpeed() { + bitField0_ = (bitField0_ & ~0x00000010); + tuningSpeed_ = 0; + onChanged(); + return this; + } + + private int adapterSize_ = 0; + + /** + * + * + *
            +     * Optional. The adapter size for LoRA tuning.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for adapterSize. + */ + @java.lang.Override + public int getAdapterSizeValue() { + return adapterSize_; + } + + /** + * + * + *
            +     * Optional. The adapter size for LoRA tuning.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for adapterSize to set. + * @return This builder for chaining. + */ + public Builder setAdapterSizeValue(int value) { + adapterSize_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The adapter size for LoRA tuning.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The adapterSize. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize getAdapterSize() { + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize result = + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize.forNumber( + adapterSize_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. The adapter size for LoRA tuning.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The adapterSize to set. + * @return This builder for chaining. + */ + public Builder setAdapterSize( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + adapterSize_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The adapter size for LoRA tuning.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearAdapterSize() { + bitField0_ = (bitField0_ & ~0x00000020); + adapterSize_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.VeoHyperParameters) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParametersOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParametersOrBuilder.java index eae48a4437e6..e97170fda55f 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParametersOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoHyperParametersOrBuilder.java @@ -82,4 +82,113 @@ public interface VeoHyperParametersOrBuilder * @return The tuningTask. */ com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningTask getTuningTask(); + + /** + * + * + *
            +   * Optional. The ratio of Google internal dataset to use in the training
            +   * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
            +   * dataset and 80% of user dataset will be used for training. If not set, the
            +   * default value is 0.1.
            +   * 
            + * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the veoDataMixtureRatio field is set. + */ + boolean hasVeoDataMixtureRatio(); + + /** + * + * + *
            +   * Optional. The ratio of Google internal dataset to use in the training
            +   * mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal
            +   * dataset and 80% of user dataset will be used for training. If not set, the
            +   * default value is 0.1.
            +   * 
            + * + * optional double veo_data_mixture_ratio = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The veoDataMixtureRatio. + */ + double getVeoDataMixtureRatio(); + + /** + * + * + *
            +   * The speed of the tuning job. Only supported for Veo 3.0 models.
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return Whether the tuningSpeed field is set. + */ + boolean hasTuningSpeed(); + + /** + * + * + *
            +   * The speed of the tuning job. Only supported for Veo 3.0 models.
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The enum numeric value on the wire for tuningSpeed. + */ + int getTuningSpeedValue(); + + /** + * + * + *
            +   * The speed of the tuning job. Only supported for Veo 3.0 models.
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed tuning_speed = 5; + * + * + * @return The tuningSpeed. + */ + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.TuningSpeed getTuningSpeed(); + + /** + * + * + *
            +   * Optional. The adapter size for LoRA tuning.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for adapterSize. + */ + int getAdapterSizeValue(); + + /** + * + * + *
            +   * Optional. The adapter size for LoRA tuning.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize adapter_size = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The adapterSize. + */ + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.AdapterSize getAdapterSize(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpec.java new file mode 100644 index 000000000000..76684862fcbc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpec.java @@ -0,0 +1,1138 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Tuning Spec for Veo LoRA Model Tuning.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec} + */ +@com.google.protobuf.Generated +public final class VeoLoraTuningSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + VeoLoraTuningSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "VeoLoraTuningSpec"); + } + + // Use VeoLoraTuningSpec.newBuilder() to construct. + private VeoLoraTuningSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private VeoLoraTuningSpec() { + trainingDatasetUri_ = ""; + validationDatasetUri_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.class, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder.class); + } + + private int bitField0_; + public static final int TRAINING_DATASET_URI_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object trainingDatasetUri_ = ""; + + /** + * + * + *
            +   * Required. Training dataset used for tuning. The dataset can be specified as
            +   * either a Cloud Storage path to a JSONL file or as the resource name of a
            +   * Vertex Multimodal Dataset.
            +   * 
            + * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The trainingDatasetUri. + */ + @java.lang.Override + public java.lang.String getTrainingDatasetUri() { + java.lang.Object ref = trainingDatasetUri_; + 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(); + trainingDatasetUri_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Training dataset used for tuning. The dataset can be specified as
            +   * either a Cloud Storage path to a JSONL file or as the resource name of a
            +   * Vertex Multimodal Dataset.
            +   * 
            + * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for trainingDatasetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTrainingDatasetUriBytes() { + java.lang.Object ref = trainingDatasetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trainingDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATION_DATASET_URI_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object validationDatasetUri_ = ""; + + /** + * + * + *
            +   * Optional. Validation dataset used for tuning. The dataset can be specified
            +   * as either a Cloud Storage path to a JSONL file or as the resource name of a
            +   * Vertex Multimodal Dataset.
            +   * 
            + * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validationDatasetUri. + */ + @java.lang.Override + public java.lang.String getValidationDatasetUri() { + java.lang.Object ref = validationDatasetUri_; + 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(); + validationDatasetUri_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Validation dataset used for tuning. The dataset can be specified
            +   * as either a Cloud Storage path to a JSONL file or as the resource name of a
            +   * Vertex Multimodal Dataset.
            +   * 
            + * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for validationDatasetUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getValidationDatasetUriBytes() { + java.lang.Object ref = validationDatasetUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int HYPER_PARAMETERS_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.VeoHyperParameters hyperParameters_; + + /** + * + * + *
            +   * Optional. Hyperparameters for Veo LoRA.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hyperParameters field is set. + */ + @java.lang.Override + public boolean hasHyperParameters() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Hyperparameters for Veo LoRA.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hyperParameters. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters getHyperParameters() { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance() + : hyperParameters_; + } + + /** + * + * + *
            +   * Optional. Hyperparameters for Veo LoRA.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder + getHyperParametersOrBuilder() { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance() + : hyperParameters_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trainingDatasetUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, trainingDatasetUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validationDatasetUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, validationDatasetUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getHyperParameters()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(trainingDatasetUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, trainingDatasetUri_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(validationDatasetUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, validationDatasetUri_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getHyperParameters()); + } + 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.VeoLoraTuningSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec other = + (com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) obj; + + if (!getTrainingDatasetUri().equals(other.getTrainingDatasetUri())) return false; + if (!getValidationDatasetUri().equals(other.getValidationDatasetUri())) return false; + if (hasHyperParameters() != other.hasHyperParameters()) return false; + if (hasHyperParameters()) { + if (!getHyperParameters().equals(other.getHyperParameters())) 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) + TRAINING_DATASET_URI_FIELD_NUMBER; + hash = (53 * hash) + getTrainingDatasetUri().hashCode(); + hash = (37 * hash) + VALIDATION_DATASET_URI_FIELD_NUMBER; + hash = (53 * hash) + getValidationDatasetUri().hashCode(); + if (hasHyperParameters()) { + hash = (37 * hash) + HYPER_PARAMETERS_FIELD_NUMBER; + hash = (53 * hash) + getHyperParameters().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec 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.VeoLoraTuningSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec 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.VeoLoraTuningSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec 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.VeoLoraTuningSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Tuning Spec for Veo LoRA Model Tuning.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.class, + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetHyperParametersFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + trainingDatasetUri_ = ""; + validationDatasetUri_ = ""; + hyperParameters_ = null; + if (hyperParametersBuilder_ != null) { + hyperParametersBuilder_.dispose(); + hyperParametersBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.TuningJobProto + .internal_static_google_cloud_aiplatform_v1beta1_VeoLoraTuningSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec build() { + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec result = + new com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.trainingDatasetUri_ = trainingDatasetUri_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validationDatasetUri_ = validationDatasetUri_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.hyperParameters_ = + hyperParametersBuilder_ == null ? hyperParameters_ : hyperParametersBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec.getDefaultInstance()) + return this; + if (!other.getTrainingDatasetUri().isEmpty()) { + trainingDatasetUri_ = other.trainingDatasetUri_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getValidationDatasetUri().isEmpty()) { + validationDatasetUri_ = other.validationDatasetUri_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasHyperParameters()) { + mergeHyperParameters(other.getHyperParameters()); + } + 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: + { + trainingDatasetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + validationDatasetUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetHyperParametersFieldBuilder().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 trainingDatasetUri_ = ""; + + /** + * + * + *
            +     * Required. Training dataset used for tuning. The dataset can be specified as
            +     * either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The trainingDatasetUri. + */ + public java.lang.String getTrainingDatasetUri() { + java.lang.Object ref = trainingDatasetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + trainingDatasetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Training dataset used for tuning. The dataset can be specified as
            +     * either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for trainingDatasetUri. + */ + public com.google.protobuf.ByteString getTrainingDatasetUriBytes() { + java.lang.Object ref = trainingDatasetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + trainingDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Training dataset used for tuning. The dataset can be specified as
            +     * either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The trainingDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setTrainingDatasetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + trainingDatasetUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Training dataset used for tuning. The dataset can be specified as
            +     * either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTrainingDatasetUri() { + trainingDatasetUri_ = getDefaultInstance().getTrainingDatasetUri(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Training dataset used for tuning. The dataset can be specified as
            +     * either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for trainingDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setTrainingDatasetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + trainingDatasetUri_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object validationDatasetUri_ = ""; + + /** + * + * + *
            +     * Optional. Validation dataset used for tuning. The dataset can be specified
            +     * as either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validationDatasetUri. + */ + public java.lang.String getValidationDatasetUri() { + java.lang.Object ref = validationDatasetUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + validationDatasetUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Validation dataset used for tuning. The dataset can be specified
            +     * as either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for validationDatasetUri. + */ + public com.google.protobuf.ByteString getValidationDatasetUriBytes() { + java.lang.Object ref = validationDatasetUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + validationDatasetUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Validation dataset used for tuning. The dataset can be specified
            +     * as either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validationDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setValidationDatasetUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + validationDatasetUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Validation dataset used for tuning. The dataset can be specified
            +     * as either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidationDatasetUri() { + validationDatasetUri_ = getDefaultInstance().getValidationDatasetUri(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Validation dataset used for tuning. The dataset can be specified
            +     * as either a Cloud Storage path to a JSONL file or as the resource name of a
            +     * Vertex Multimodal Dataset.
            +     * 
            + * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for validationDatasetUri to set. + * @return This builder for chaining. + */ + public Builder setValidationDatasetUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + validationDatasetUri_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.VeoHyperParameters hyperParameters_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters, + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder, + com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder> + hyperParametersBuilder_; + + /** + * + * + *
            +     * Optional. Hyperparameters for Veo LoRA.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hyperParameters field is set. + */ + public boolean hasHyperParameters() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. Hyperparameters for Veo LoRA.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hyperParameters. + */ + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters getHyperParameters() { + if (hyperParametersBuilder_ == null) { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance() + : hyperParameters_; + } else { + return hyperParametersBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Hyperparameters for Veo LoRA.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHyperParameters( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters value) { + if (hyperParametersBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + hyperParameters_ = value; + } else { + hyperParametersBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Hyperparameters for Veo LoRA.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setHyperParameters( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder builderForValue) { + if (hyperParametersBuilder_ == null) { + hyperParameters_ = builderForValue.build(); + } else { + hyperParametersBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Hyperparameters for Veo LoRA.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeHyperParameters( + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters value) { + if (hyperParametersBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && hyperParameters_ != null + && hyperParameters_ + != com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance()) { + getHyperParametersBuilder().mergeFrom(value); + } else { + hyperParameters_ = value; + } + } else { + hyperParametersBuilder_.mergeFrom(value); + } + if (hyperParameters_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Hyperparameters for Veo LoRA.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearHyperParameters() { + bitField0_ = (bitField0_ & ~0x00000004); + hyperParameters_ = null; + if (hyperParametersBuilder_ != null) { + hyperParametersBuilder_.dispose(); + hyperParametersBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Hyperparameters for Veo LoRA.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder + getHyperParametersBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetHyperParametersFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Hyperparameters for Veo LoRA.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder + getHyperParametersOrBuilder() { + if (hyperParametersBuilder_ != null) { + return hyperParametersBuilder_.getMessageOrBuilder(); + } else { + return hyperParameters_ == null + ? com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.getDefaultInstance() + : hyperParameters_; + } + } + + /** + * + * + *
            +     * Optional. Hyperparameters for Veo LoRA.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters, + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder, + com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder> + internalGetHyperParametersFieldBuilder() { + if (hyperParametersBuilder_ == null) { + hyperParametersBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters, + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters.Builder, + com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder>( + getHyperParameters(), getParentForChildren(), isClean()); + hyperParameters_ = null; + } + return hyperParametersBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + private static final com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public VeoLoraTuningSpec 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.VeoLoraTuningSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpecOrBuilder.java new file mode 100644 index 000000000000..3cdfd9daa655 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/VeoLoraTuningSpecOrBuilder.java @@ -0,0 +1,131 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/tuning_job.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface VeoLoraTuningSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.VeoLoraTuningSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Training dataset used for tuning. The dataset can be specified as
            +   * either a Cloud Storage path to a JSONL file or as the resource name of a
            +   * Vertex Multimodal Dataset.
            +   * 
            + * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The trainingDatasetUri. + */ + java.lang.String getTrainingDatasetUri(); + + /** + * + * + *
            +   * Required. Training dataset used for tuning. The dataset can be specified as
            +   * either a Cloud Storage path to a JSONL file or as the resource name of a
            +   * Vertex Multimodal Dataset.
            +   * 
            + * + * string training_dataset_uri = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for trainingDatasetUri. + */ + com.google.protobuf.ByteString getTrainingDatasetUriBytes(); + + /** + * + * + *
            +   * Optional. Validation dataset used for tuning. The dataset can be specified
            +   * as either a Cloud Storage path to a JSONL file or as the resource name of a
            +   * Vertex Multimodal Dataset.
            +   * 
            + * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validationDatasetUri. + */ + java.lang.String getValidationDatasetUri(); + + /** + * + * + *
            +   * Optional. Validation dataset used for tuning. The dataset can be specified
            +   * as either a Cloud Storage path to a JSONL file or as the resource name of a
            +   * Vertex Multimodal Dataset.
            +   * 
            + * + * string validation_dataset_uri = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for validationDatasetUri. + */ + com.google.protobuf.ByteString getValidationDatasetUriBytes(); + + /** + * + * + *
            +   * Optional. Hyperparameters for Veo LoRA.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the hyperParameters field is set. + */ + boolean hasHyperParameters(); + + /** + * + * + *
            +   * Optional. Hyperparameters for Veo LoRA.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The hyperParameters. + */ + com.google.cloud.aiplatform.v1beta1.VeoHyperParameters getHyperParameters(); + + /** + * + * + *
            +   * Optional. Hyperparameters for Veo LoRA.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.VeoHyperParameters hyper_parameters = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.VeoHyperParametersOrBuilder getHyperParametersOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto index b530dc78cb8f..b8bfa47c84eb 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/tuning_job.proto @@ -64,6 +64,9 @@ message TuningJob { // Tuning Spec for Veo Tuning. VeoTuningSpec veo_tuning_spec = 33; + + // Tuning Spec for Veo LoRA Tuning. + VeoLoraTuningSpec veo_lora_tuning_spec = 38; } // Output only. Identifier. Resource name of a TuningJob. Format: @@ -604,6 +607,37 @@ message VeoHyperParameters { // Tuning task for text to video. TUNING_TASK_T2V = 2; + + // Tuning task for reference to video. + TUNING_TASK_R2V = 3; + } + + // The speed of the tuning job. Only supported for Veo 3.0 models. + enum TuningSpeed { + // The default / unset value. For Veo 3.0 models, this defaults to FAST. + TUNING_SPEED_UNSPECIFIED = 0; + + // Regular tuning speed. + REGULAR = 1; + + // Fast tuning speed. + FAST = 2; + } + + // Adapter size for LoRA tuning. + enum AdapterSize { + // Adapter size is unspecified. + ADAPTER_SIZE_UNSPECIFIED = 0; + + // Adapter size 8. + // This is the default adapter size for Veo LoRA tuning. + ADAPTER_SIZE_EIGHT = 8; + + // Adapter size 16. + ADAPTER_SIZE_SIXTEEN = 16; + + // Adapter size 32. + ADAPTER_SIZE_THIRTY_TWO = 32; } // Optional. Number of complete passes the model makes over the entire @@ -615,6 +649,19 @@ message VeoHyperParameters { // Optional. The tuning task. Either I2V or T2V. TuningTask tuning_task = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The ratio of Google internal dataset to use in the training + // mixture, in range of `[0, 1)`. If `0.2`, it means 20% of Google internal + // dataset and 80% of user dataset will be used for training. If not set, the + // default value is 0.1. + optional double veo_data_mixture_ratio = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // The speed of the tuning job. Only supported for Veo 3.0 models. + optional TuningSpeed tuning_speed = 5; + + // Optional. The adapter size for LoRA tuning. + AdapterSize adapter_size = 6 [(google.api.field_behavior) = OPTIONAL]; } // Tuning Spec for Veo Model Tuning. @@ -634,6 +681,23 @@ message VeoTuningSpec { [(google.api.field_behavior) = OPTIONAL]; } +// Tuning Spec for Veo LoRA Model Tuning. +message VeoLoraTuningSpec { + // Required. Training dataset used for tuning. The dataset can be specified as + // either a Cloud Storage path to a JSONL file or as the resource name of a + // Vertex Multimodal Dataset. + string training_dataset_uri = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Validation dataset used for tuning. The dataset can be specified + // as either a Cloud Storage path to a JSONL file or as the resource name of a + // Vertex Multimodal Dataset. + string validation_dataset_uri = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Hyperparameters for Veo LoRA. + VeoHyperParameters hyper_parameters = 3 + [(google.api.field_behavior) = OPTIONAL]; +} + // Evaluation Config for Tuning Job. message EvaluationConfig { // Required. The metrics used for evaluation. From 2a495976465e6a1c91cf1e10107aee0969dd2f42 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Wed, 22 Apr 2026 23:11:06 +0000 Subject: [PATCH 14/19] chore: generate libraries at Wed Apr 22 21:40:20 UTC 2026 --- java-iam-policy/.repo-metadata.json | 1 + java-iam-policy/README.md | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/java-iam-policy/.repo-metadata.json b/java-iam-policy/.repo-metadata.json index bf65bd5c8655..0d797eebf786 100644 --- a/java-iam-policy/.repo-metadata.json +++ b/java-iam-policy/.repo-metadata.json @@ -10,6 +10,7 @@ "repo": "googleapis/google-cloud-java", "repo_short": "java-iam-policy", "distribution_name": "com.google.cloud:google-iam-policy", + "api_id": "iam.googleapis.com", "library_type": "GAPIC_AUTO", "requires_billing": true, "excluded_dependencies": "google-iam-policy", diff --git a/java-iam-policy/README.md b/java-iam-policy/README.md index 4db1575bbc69..05b669204eba 100644 --- a/java-iam-policy/README.md +++ b/java-iam-policy/README.md @@ -188,7 +188,7 @@ Java is a registered trademark of Oracle and/or its affiliates. [code-of-conduct]: https://github.com/googleapis/google-cloud-java/blob/main/CODE_OF_CONDUCT.md#contributor-code-of-conduct [license]: https://github.com/googleapis/google-cloud-java/blob/main/LICENSE [enable-billing]: https://cloud.google.com/apis/docs/getting-started#enabling_billing - +[enable-api]: https://console.cloud.google.com/flows/enableapi?apiid=iam.googleapis.com [libraries-bom]: https://github.com/GoogleCloudPlatform/cloud-opensource-java/wiki/The-Google-Cloud-Platform-Libraries-BOM [shell_img]: https://gstatic.com/cloudssh/images/open-btn.png From eaee46d3de3269a349d2d3509bdebcdbc3a5a77e Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 23 Apr 2026 03:01:00 +0000 Subject: [PATCH 15/19] chore: Update generation configuration at Thu Apr 23 03:00:49 UTC 2026 --- generation_config.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/generation_config.yaml b/generation_config.yaml index 9cce296f5159..4a2eb803a7d9 100644 --- a/generation_config.yaml +++ b/generation_config.yaml @@ -1,4 +1,4 @@ -googleapis_commitish: 939ba3bf8408af83f0f73ae35c76c4b11a8c8c8d +googleapis_commitish: 01aaf5a6b19bc674a65882392ed37f64976790a1 libraries_bom_version: 26.80.0 libraries: - api_shortname: accessapproval From 491dec507e318bd41d00122d3a153e219feae89b Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 23 Apr 2026 04:38:17 +0000 Subject: [PATCH 16/19] chore: generate libraries at Thu Apr 23 03:03:44 UTC 2026 --- .../v1beta1/EvaluationServiceClient.java | 96 + .../v1beta1/EvaluationServiceSettings.java | 13 + .../v1beta1/OnlineEvaluatorServiceClient.java | 2075 ++ .../OnlineEvaluatorServiceSettings.java | 457 + .../aiplatform/v1beta1/gapic_metadata.json | 48 + .../aiplatform/v1beta1/package-info.java | 23 + .../v1beta1/stub/EvaluationServiceStub.java | 7 + .../stub/EvaluationServiceStubSettings.java | 30 + .../stub/GrpcEvaluationServiceStub.java | 43 + ...OnlineEvaluatorServiceCallableFactory.java | 115 + .../stub/GrpcOnlineEvaluatorServiceStub.java | 676 + .../stub/OnlineEvaluatorServiceStub.java | 166 + .../OnlineEvaluatorServiceStubSettings.java | 1028 + .../reflect-config.json | 1194 +- .../v1beta1/EvaluationServiceClientTest.java | 68 + .../v1beta1/MockEvaluationServiceImpl.java | 23 + .../v1beta1/MockOnlineEvaluatorService.java | 59 + .../MockOnlineEvaluatorServiceImpl.java | 215 + .../OnlineEvaluatorServiceClientTest.java | 1046 + .../v1beta1/EvaluationServiceGrpc.java | 165 + .../v1beta1/OnlineEvaluatorServiceGrpc.java | 1256 + ...ivateOnlineEvaluatorOperationMetadata.java | 733 + ...neEvaluatorOperationMetadataOrBuilder.java | 66 + .../ActivateOnlineEvaluatorRequest.java | 629 + ...tivateOnlineEvaluatorRequestOrBuilder.java | 60 + .../cloud/aiplatform/v1beta1/AgentConfig.java | 2133 ++ .../v1beta1/AgentConfigOrBuilder.java | 289 + .../cloud/aiplatform/v1beta1/AgentData.java | 1504 ++ .../v1beta1/AgentDataOrBuilder.java | 187 + .../cloud/aiplatform/v1beta1/AgentEvent.java | 2133 ++ .../v1beta1/AgentEventOrBuilder.java | 267 + .../aiplatform/v1beta1/AggregationResult.java | 357 +- .../v1beta1/AggregationResultOrBuilder.java | 44 + .../aiplatform/v1beta1/AutoraterConfig.java | 322 +- .../v1beta1/AutoraterConfigOrBuilder.java | 43 + .../aiplatform/v1beta1/ConversationTurn.java | 1303 + .../v1beta1/ConversationTurnOrBuilder.java | 148 + ...reateOnlineEvaluatorOperationMetadata.java | 733 + ...neEvaluatorOperationMetadataOrBuilder.java | 66 + .../v1beta1/CreateOnlineEvaluatorRequest.java | 946 + ...CreateOnlineEvaluatorRequestOrBuilder.java | 103 + .../v1beta1/CustomCodeExecutionResult.java | 550 + .../CustomCodeExecutionResultOrBuilder.java | 54 + .../v1beta1/CustomCodeExecutionSpec.java | 951 + .../CustomCodeExecutionSpecOrBuilder.java | 169 + ...eleteOnlineEvaluatorOperationMetadata.java | 733 + ...neEvaluatorOperationMetadataOrBuilder.java | 66 + .../v1beta1/DeleteOnlineEvaluatorRequest.java | 625 + ...DeleteOnlineEvaluatorRequestOrBuilder.java | 60 + .../v1beta1/EvaluateInstancesRequest.java | 1571 +- .../EvaluateInstancesRequestOrBuilder.java | 179 + .../v1beta1/EvaluationAgentDataProto.java | 182 + .../v1beta1/EvaluationInstance.java | 20165 ++++++++++++++++ .../v1beta1/EvaluationInstanceOrBuilder.java | 400 + .../v1beta1/EvaluationParserConfig.java | 2009 ++ .../EvaluationParserConfigOrBuilder.java | 75 + .../v1beta1/EvaluationRubricProto.java | 161 + .../v1beta1/EvaluationServiceProto.java | 1882 +- .../GenerateInstanceRubricsRequest.java | 2295 ++ ...nerateInstanceRubricsRequestOrBuilder.java | 288 + .../GenerateInstanceRubricsResponse.java | 991 + ...erateInstanceRubricsResponseOrBuilder.java | 94 + .../v1beta1/GetOnlineEvaluatorRequest.java | 622 + .../GetOnlineEvaluatorRequestOrBuilder.java | 60 + .../v1beta1/LLMBasedMetricSpec.java | 705 +- .../v1beta1/LLMBasedMetricSpecOrBuilder.java | 82 + .../v1beta1/ListOnlineEvaluatorsRequest.java | 1406 ++ .../ListOnlineEvaluatorsRequestOrBuilder.java | 184 + .../v1beta1/ListOnlineEvaluatorsResponse.java | 1143 + ...ListOnlineEvaluatorsResponseOrBuilder.java | 113 + .../cloud/aiplatform/v1beta1/Metric.java | 680 +- .../aiplatform/v1beta1/MetricMetadata.java | 2342 ++ .../v1beta1/MetricMetadataOrBuilder.java | 139 + .../aiplatform/v1beta1/MetricOrBuilder.java | 87 + .../aiplatform/v1beta1/MetricResult.java | 609 +- .../v1beta1/MetricResultOrBuilder.java | 66 + .../aiplatform/v1beta1/MetricSource.java | 1035 + .../v1beta1/MetricSourceOrBuilder.java | 106 + .../aiplatform/v1beta1/OnlineEvaluator.java | 12680 ++++++++++ .../v1beta1/OnlineEvaluatorName.java | 227 + .../v1beta1/OnlineEvaluatorOrBuilder.java | 516 + .../v1beta1/OnlineEvaluatorProto.java | 279 + .../v1beta1/OnlineEvaluatorServiceProto.java | 344 + .../cloud/aiplatform/v1beta1/Rubric.java | 3002 +++ .../v1beta1/RubricGenerationSpec.java | 1646 ++ .../RubricGenerationSpecOrBuilder.java | 199 + .../cloud/aiplatform/v1beta1/RubricGroup.java | 1321 + .../v1beta1/RubricGroupOrBuilder.java | 142 + .../aiplatform/v1beta1/RubricOrBuilder.java | 183 + .../aiplatform/v1beta1/RubricVerdict.java | 1083 + .../v1beta1/RubricVerdictOrBuilder.java | 133 + ...spendOnlineEvaluatorOperationMetadata.java | 733 + ...neEvaluatorOperationMetadataOrBuilder.java | 66 + .../SuspendOnlineEvaluatorRequest.java | 627 + ...uspendOnlineEvaluatorRequestOrBuilder.java | 60 + ...pdateOnlineEvaluatorOperationMetadata.java | 733 + ...neEvaluatorOperationMetadataOrBuilder.java | 66 + .../v1beta1/UpdateOnlineEvaluatorRequest.java | 1048 + ...UpdateOnlineEvaluatorRequestOrBuilder.java | 117 + .../v1beta1/evaluation_agent_data.proto | 112 + .../v1beta1/evaluation_rubric.proto | 110 + .../v1beta1/evaluation_service.proto | 876 +- .../aiplatform/v1beta1/online_evaluator.proto | 248 + .../v1beta1/online_evaluator_service.proto | 286 + .../AsyncEvaluateInstances.java | 7 + .../SyncEvaluateInstances.java | 7 + .../AsyncGenerateInstanceRubrics.java | 59 + .../SyncGenerateInstanceRubrics.java | 56 + .../AsyncActivateOnlineEvaluator.java | 53 + .../AsyncActivateOnlineEvaluatorLRO.java | 56 + .../SyncActivateOnlineEvaluator.java | 50 + ...ateOnlineEvaluatorOnlineevaluatorname.java | 45 + .../SyncActivateOnlineEvaluatorString.java | 45 + .../SyncCreateSetCredentialsProvider.java | 45 + .../create/SyncCreateSetEndpoint.java | 42 + .../AsyncCreateOnlineEvaluator.java | 53 + .../AsyncCreateOnlineEvaluatorLRO.java | 53 + .../SyncCreateOnlineEvaluator.java | 49 + ...eEvaluatorLocationnameOnlineevaluator.java | 45 + ...eOnlineEvaluatorStringOnlineevaluator.java | 45 + .../AsyncDeleteOnlineEvaluator.java | 53 + .../AsyncDeleteOnlineEvaluatorLRO.java | 54 + .../SyncDeleteOnlineEvaluator.java | 49 + ...eteOnlineEvaluatorOnlineevaluatorname.java | 44 + .../SyncDeleteOnlineEvaluatorString.java | 44 + .../getiampolicy/AsyncGetIamPolicy.java | 56 + .../getiampolicy/SyncGetIamPolicy.java | 52 + .../getlocation/AsyncGetLocation.java | 47 + .../getlocation/SyncGetLocation.java | 43 + .../AsyncGetOnlineEvaluator.java | 53 + .../SyncGetOnlineEvaluator.java | 49 + ...GetOnlineEvaluatorOnlineevaluatorname.java | 44 + .../SyncGetOnlineEvaluatorString.java | 44 + .../listlocations/AsyncListLocations.java | 55 + .../AsyncListLocationsPaged.java | 63 + .../listlocations/SyncListLocations.java | 51 + .../AsyncListOnlineEvaluators.java | 57 + .../AsyncListOnlineEvaluatorsPaged.java | 65 + .../SyncListOnlineEvaluators.java | 54 + .../SyncListOnlineEvaluatorsLocationname.java | 46 + .../SyncListOnlineEvaluatorsString.java | 46 + .../setiampolicy/AsyncSetIamPolicy.java | 57 + .../setiampolicy/SyncSetIamPolicy.java | 53 + .../AsyncSuspendOnlineEvaluator.java | 53 + .../AsyncSuspendOnlineEvaluatorLRO.java | 56 + .../SyncSuspendOnlineEvaluator.java | 50 + ...endOnlineEvaluatorOnlineevaluatorname.java | 45 + .../SyncSuspendOnlineEvaluatorString.java | 45 + .../AsyncTestIamPermissions.java | 56 + .../SyncTestIamPermissions.java | 53 + .../AsyncUpdateOnlineEvaluator.java | 53 + .../AsyncUpdateOnlineEvaluatorLRO.java | 53 + .../SyncUpdateOnlineEvaluator.java | 49 + ...lineEvaluatorOnlineevaluatorFieldmask.java | 47 + .../SyncCreateOnlineEvaluator.java | 54 + .../SyncGetOnlineEvaluator.java | 57 + .../SyncCreateOnlineEvaluator.java | 54 + .../SyncGetOnlineEvaluator.java | 57 + .../v1/AuditClient.java | 40 +- .../v1/CmEnrollmentServiceClient.java | 40 +- .../v1/ConfigClient.java | 381 +- .../v1/DeploymentClient.java | 234 +- .../v1/MonitoringClient.java | 45 +- .../v1/gapic_metadata.json | 14 +- .../v1/package-info.java | 7 +- .../v1/stub/HttpJsonAuditStub.java | 18 + .../stub/HttpJsonCmEnrollmentServiceStub.java | 2 + .../v1/stub/HttpJsonConfigStub.java | 14 + .../v1/stub/HttpJsonDeploymentStub.java | 30 + .../v1/stub/HttpJsonMonitoringStub.java | 4 + .../reflect-config.json | 54 + .../v1/ConfigClientHttpJsonTest.java | 341 +- .../v1/ConfigClientTest.java | 303 +- .../v1/DeploymentClientHttpJsonTest.java | 226 +- .../v1/DeploymentClientTest.java | 216 +- .../v1/CloudControl.java | 56 +- .../v1/CloudControlCategory.java | 92 + .../v1/CloudControlDeployment.java | 28 +- .../v1/CloudControlDeploymentName.java | 165 +- .../v1/CloudControlDeploymentOrBuilder.java | 8 +- .../v1/CloudControlDeploymentReference.java | 28 +- ...udControlDeploymentReferenceOrBuilder.java | 8 +- .../v1/CloudControlDetails.java | 49 +- .../v1/CloudControlDetailsOrBuilder.java | 14 +- .../v1/CloudControlName.java | 143 +- .../v1/CloudControlOrBuilder.java | 16 +- .../v1/CommonProto.java | 229 +- .../v1/ConfigProto.java | 114 +- .../cloudsecuritycompliance/v1/Control.java | 3810 +++ .../v1/ControlOrBuilder.java | 466 + .../v1/CreateCloudControlRequest.java | 42 +- .../CreateCloudControlRequestOrBuilder.java | 12 +- .../v1/CreateFrameworkDeploymentRequest.java | 28 +- ...teFrameworkDeploymentRequestOrBuilder.java | 8 +- .../v1/CreateFrameworkRequest.java | 42 +- .../v1/CreateFrameworkRequestOrBuilder.java | 12 +- .../v1/DeleteCloudControlRequest.java | 56 +- .../DeleteCloudControlRequestOrBuilder.java | 16 +- .../v1/DeleteFrameworkDeploymentRequest.java | 28 +- ...teFrameworkDeploymentRequestOrBuilder.java | 8 +- .../v1/DeleteFrameworkRequest.java | 49 +- .../v1/DeleteFrameworkRequestOrBuilder.java | 14 +- .../v1/DeploymentProto.java | 171 +- .../v1/DeploymentState.java | 23 + ...FetchFrameworkComplianceReportRequest.java | 189 + ...eworkComplianceReportRequestOrBuilder.java | 26 + .../cloudsecuritycompliance/v1/Framework.java | 56 +- .../v1/FrameworkComplianceSummary.java | 413 + .../FrameworkComplianceSummaryOrBuilder.java | 56 + .../v1/FrameworkComplianceSummaryView.java | 205 + .../v1/FrameworkDeployment.java | 28 +- .../v1/FrameworkDeploymentName.java | 160 +- .../v1/FrameworkDeploymentOrBuilder.java | 8 +- .../v1/FrameworkDeploymentReference.java | 52 +- ...FrameworkDeploymentReferenceOrBuilder.java | 14 +- .../v1/FrameworkName.java | 142 +- .../v1/FrameworkOrBuilder.java | 16 +- .../v1/FrameworkReference.java | 40 +- .../v1/FrameworkReferenceOrBuilder.java | 8 +- .../v1/GetCloudControlDeploymentRequest.java | 28 +- ...loudControlDeploymentRequestOrBuilder.java | 8 +- .../v1/GetCloudControlRequest.java | 56 +- .../v1/GetCloudControlRequestOrBuilder.java | 16 +- .../v1/GetFrameworkDeploymentRequest.java | 28 +- ...etFrameworkDeploymentRequestOrBuilder.java | 8 +- .../v1/GetFrameworkRequest.java | 56 +- .../v1/GetFrameworkRequestOrBuilder.java | 16 +- .../ListCloudControlDeploymentsRequest.java | 35 +- ...oudControlDeploymentsRequestOrBuilder.java | 10 +- .../v1/ListCloudControlsRequest.java | 42 +- .../v1/ListCloudControlsRequestOrBuilder.java | 12 +- ...ListControlComplianceSummariesRequest.java | 8 +- ...olComplianceSummariesRequestOrBuilder.java | 4 +- .../v1/ListFindingSummariesRequest.java | 8 +- .../ListFindingSummariesRequestOrBuilder.java | 4 +- ...stFrameworkComplianceSummariesRequest.java | 181 + ...rkComplianceSummariesRequestOrBuilder.java | 30 + .../v1/ListFrameworkDeploymentsRequest.java | 28 +- ...tFrameworkDeploymentsRequestOrBuilder.java | 8 +- .../v1/ListFrameworksRequest.java | 42 +- .../v1/ListFrameworksRequestOrBuilder.java | 12 +- .../v1/MonitoringProto.java | 225 +- .../v1/ParamValue.java | 228 +- .../v1/ParamValueOrBuilder.java | 64 +- .../cloudsecuritycompliance/v1/Trend.java | 807 + .../v1/TrendOrBuilder.java | 82 + .../cloudsecuritycompliance/v1/common.proto | 201 +- .../cloudsecuritycompliance/v1/config.proto | 91 +- .../v1/deployment.proto | 69 +- .../v1/monitoring.proto | 44 +- ...ControlLocationnameCloudcontrolString.java | 44 + ...eFrameworkLocationnameFrameworkString.java | 44 + .../AsyncDeleteCloudControl.java | 4 +- .../SyncDeleteCloudControl.java | 4 +- ...yncDeleteCloudControlCloudcontrolname.java | 3 +- .../SyncDeleteCloudControlString.java | 4 +- .../deleteframework/AsyncDeleteFramework.java | 5 +- .../deleteframework/SyncDeleteFramework.java | 5 +- .../SyncDeleteFrameworkFrameworkname.java | 4 +- .../SyncDeleteFrameworkString.java | 5 +- .../getcloudcontrol/AsyncGetCloudControl.java | 4 +- .../getcloudcontrol/SyncGetCloudControl.java | 4 +- .../SyncGetCloudControlCloudcontrolname.java | 3 +- .../SyncGetCloudControlString.java | 4 +- .../getframework/AsyncGetFramework.java | 5 +- .../config/getframework/SyncGetFramework.java | 5 +- .../SyncGetFrameworkFrameworkname.java | 4 +- .../getframework/SyncGetFrameworkString.java | 5 +- .../SyncListCloudControlsLocationname.java | 44 + .../SyncListFrameworksLocationname.java | 44 + ...LocationnameFrameworkdeploymentString.java | 48 + .../AsyncDeleteFrameworkDeployment.java | 2 +- .../AsyncDeleteFrameworkDeploymentLRO.java | 2 +- .../SyncDeleteFrameworkDeployment.java | 2 +- ...workDeploymentFrameworkdeploymentname.java | 3 +- .../SyncDeleteFrameworkDeploymentString.java | 3 +- .../AsyncGetCloudControlDeployment.java | 2 +- .../SyncGetCloudControlDeployment.java | 2 +- ...lDeploymentCloudcontroldeploymentname.java | 2 +- .../SyncGetCloudControlDeploymentString.java | 2 +- .../AsyncGetFrameworkDeployment.java | 2 +- .../SyncGetFrameworkDeployment.java | 2 +- ...workDeploymentFrameworkdeploymentname.java | 3 +- .../SyncGetFrameworkDeploymentString.java | 3 +- ...stCloudControlDeploymentsLocationname.java | 45 + ...cListFrameworkDeploymentsLocationname.java | 45 + .../AsyncFetchFrameworkComplianceReport.java | 1 + .../SyncFetchFrameworkComplianceReport.java | 1 + ...AsyncListFrameworkComplianceSummaries.java | 2 + ...ListFrameworkComplianceSummariesPaged.java | 2 + .../SyncListFrameworkComplianceSummaries.java | 2 + 291 files changed, 103039 insertions(+), 2205 deletions(-) create mode 100644 java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceCallableFactory.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceStub.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorService.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorServiceImpl.java create mode 100644 java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClientTest.java create mode 100644 java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceGrpc.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfig.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfigOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentData.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentDataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEvent.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEventOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurn.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurnOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResult.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResultOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpec.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpecOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationAgentDataProto.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstance.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstanceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfig.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfigOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationRubricProto.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponse.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponseOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponse.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponseOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSource.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSourceOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluator.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorProto.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceProto.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Rubric.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpec.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpecOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroup.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroupOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdict.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdictOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadata.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadataOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequest.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequestOrBuilder.java create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_rubric.proto create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator.proto create mode 100644 java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator_service.proto create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/AsyncGenerateInstanceRubrics.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/SyncGenerateInstanceRubrics.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluatorLRO.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorOnlineevaluatorname.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorString.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetCredentialsProvider.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetEndpoint.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluatorLRO.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorLocationnameOnlineevaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorStringOnlineevaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluatorLRO.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorOnlineevaluatorname.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorString.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/AsyncGetIamPolicy.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/SyncGetIamPolicy.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/AsyncGetLocation.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/SyncGetLocation.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/AsyncGetOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorOnlineevaluatorname.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorString.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocations.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocationsPaged.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/SyncListLocations.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluators.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluatorsPaged.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluators.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsLocationname.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsString.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/AsyncSetIamPolicy.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/SyncSetIamPolicy.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluatorLRO.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorOnlineevaluatorname.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorString.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/AsyncTestIamPermissions.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/SyncTestIamPermissions.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluatorLRO.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluatorOnlineevaluatorFieldmask.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/createonlineevaluator/SyncCreateOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/getonlineevaluator/SyncGetOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/createonlineevaluator/SyncCreateOnlineEvaluator.java create mode 100644 java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/getonlineevaluator/SyncGetOnlineEvaluator.java create mode 100644 java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Control.java create mode 100644 java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlOrBuilder.java create mode 100644 java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryView.java create mode 100644 java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Trend.java create mode 100644 java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TrendOrBuilder.java create mode 100644 java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/createcloudcontrol/SyncCreateCloudControlLocationnameCloudcontrolString.java create mode 100644 java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/createframework/SyncCreateFrameworkLocationnameFrameworkString.java create mode 100644 java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/listcloudcontrols/SyncListCloudControlsLocationname.java create mode 100644 java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/listframeworks/SyncListFrameworksLocationname.java create mode 100644 java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/createframeworkdeployment/SyncCreateFrameworkDeploymentLocationnameFrameworkdeploymentString.java create mode 100644 java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/listcloudcontroldeployments/SyncListCloudControlDeploymentsLocationname.java create mode 100644 java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/listframeworkdeployments/SyncListFrameworkDeploymentsLocationname.java diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java index 9771ef8c0ed1..0a63c5ffbde5 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceClient.java @@ -63,6 +63,9 @@ * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllMetrics(new ArrayList()) + * .addAllMetricSources(new ArrayList()) + * .setInstance(EvaluationInstance.newBuilder().build()) * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); @@ -110,6 +113,20 @@ * * * + *

            GenerateInstanceRubrics + *

            Generates rubrics for a given prompt. A rubric represents a single testable criterion for evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested rubrics based on provided prompt, which can then be reviewed and used for subsequent evaluations. + * + *

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

            + *
              + *
            • generateInstanceRubrics(GenerateInstanceRubricsRequest request) + *

            + *

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

            + *
              + *
            • generateInstanceRubricsCallable() + *

            + * + * + * *

            ListLocations *

            Lists information about the supported locations for this service. * @@ -303,6 +320,9 @@ public final OperationsClient getOperationsClient() { * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllMetrics(new ArrayList()) + * .addAllMetricSources(new ArrayList()) + * .setInstance(EvaluationInstance.newBuilder().build()) * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); @@ -332,6 +352,9 @@ public final EvaluateInstancesResponse evaluateInstances(EvaluateInstancesReques * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllMetrics(new ArrayList()) + * .addAllMetricSources(new ArrayList()) + * .setInstance(EvaluationInstance.newBuilder().build()) * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * ApiFuture future = @@ -446,6 +469,79 @@ public final UnaryCallable evaluateDatasetCal return stub.evaluateDatasetCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates rubrics for a given prompt. A rubric represents a single testable criterion for + * evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested + * rubrics based on provided prompt, which can then be reviewed and used for subsequent + * evaluations. + * + *

            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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
            +   *   GenerateInstanceRubricsRequest request =
            +   *       GenerateInstanceRubricsRequest.newBuilder()
            +   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .addAllContents(new ArrayList())
            +   *           .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build())
            +   *           .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build())
            +   *           .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build())
            +   *           .build();
            +   *   GenerateInstanceRubricsResponse response =
            +   *       evaluationServiceClient.generateInstanceRubrics(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final GenerateInstanceRubricsResponse generateInstanceRubrics( + GenerateInstanceRubricsRequest request) { + return generateInstanceRubricsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Generates rubrics for a given prompt. A rubric represents a single testable criterion for + * evaluation. One input prompt could have multiple rubrics This RPC allows users to get suggested + * rubrics based on provided prompt, which can then be reviewed and used for subsequent + * evaluations. + * + *

            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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) {
            +   *   GenerateInstanceRubricsRequest request =
            +   *       GenerateInstanceRubricsRequest.newBuilder()
            +   *           .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .addAllContents(new ArrayList())
            +   *           .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build())
            +   *           .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build())
            +   *           .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       evaluationServiceClient.generateInstanceRubricsCallable().futureCall(request);
            +   *   // Do something.
            +   *   GenerateInstanceRubricsResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + generateInstanceRubricsCallable() { + return stub.generateInstanceRubricsCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists information about the supported locations for this service. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java index 509bec6fc624..5a905269909e 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceSettings.java @@ -143,6 +143,12 @@ public UnaryCallSettings evaluateDatasetSetti return ((EvaluationServiceStubSettings) getStubSettings()).evaluateDatasetOperationSettings(); } + /** Returns the object with the settings used for calls to generateInstanceRubrics. */ + public UnaryCallSettings + generateInstanceRubricsSettings() { + return ((EvaluationServiceStubSettings) getStubSettings()).generateInstanceRubricsSettings(); + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -284,6 +290,13 @@ public UnaryCallSettings.Builder evaluateData return getStubSettingsBuilder().evaluateDatasetOperationSettings(); } + /** Returns the builder for the settings used for calls to generateInstanceRubrics. */ + public UnaryCallSettings.Builder< + GenerateInstanceRubricsRequest, GenerateInstanceRubricsResponse> + generateInstanceRubricsSettings() { + return getStubSettingsBuilder().generateInstanceRubricsSettings(); + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java new file mode 100644 index 000000000000..f934acd4ed42 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClient.java @@ -0,0 +1,2075 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.core.ApiFuture; +import com.google.api.core.ApiFutures; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.longrunning.OperationFuture; +import com.google.api.gax.paging.AbstractFixedSizeCollection; +import com.google.api.gax.paging.AbstractPage; +import com.google.api.gax.paging.AbstractPagedListResponse; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStub; +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.util.concurrent.MoreExecutors; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.OperationsClient; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import java.io.IOException; +import java.util.List; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Service Description: This service is used to create and manage Vertex AI OnlineEvaluators. + * + *

            This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *

            {@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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            + *     OnlineEvaluatorServiceClient.create()) {
            + *   OnlineEvaluatorName name =
            + *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
            + *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name);
            + * }
            + * }
            + * + *

            Note: close() needs to be called on the OnlineEvaluatorServiceClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + * + *
            Methods
            MethodDescriptionMethod Variants

            CreateOnlineEvaluator

            Creates an OnlineEvaluator in the given project and location.

            + *

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

            + *
              + *
            • createOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest request) + *

            + *

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

            + *
              + *
            • createOnlineEvaluatorAsync(LocationName parent, OnlineEvaluator onlineEvaluator) + *

            • createOnlineEvaluatorAsync(String parent, OnlineEvaluator onlineEvaluator) + *

            + *

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

            + *
              + *
            • createOnlineEvaluatorOperationCallable() + *

            • createOnlineEvaluatorCallable() + *

            + *

            GetOnlineEvaluator

            Gets details of an OnlineEvaluator.

            + *

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

            + *
              + *
            • getOnlineEvaluator(GetOnlineEvaluatorRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • getOnlineEvaluator(OnlineEvaluatorName name) + *

            • getOnlineEvaluator(String name) + *

            + *

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

            + *
              + *
            • getOnlineEvaluatorCallable() + *

            + *

            UpdateOnlineEvaluator

            Updates the fields of an OnlineEvaluator.

            + *

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

            + *
              + *
            • updateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest request) + *

            + *

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

            + *
              + *
            • updateOnlineEvaluatorAsync(OnlineEvaluator onlineEvaluator, FieldMask updateMask) + *

            + *

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

            + *
              + *
            • updateOnlineEvaluatorOperationCallable() + *

            • updateOnlineEvaluatorCallable() + *

            + *

            DeleteOnlineEvaluator

            Deletes an OnlineEvaluator.

            + *

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

            + *
              + *
            • deleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest request) + *

            + *

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

            + *
              + *
            • deleteOnlineEvaluatorAsync(OnlineEvaluatorName name) + *

            • deleteOnlineEvaluatorAsync(String name) + *

            + *

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

            + *
              + *
            • deleteOnlineEvaluatorOperationCallable() + *

            • deleteOnlineEvaluatorCallable() + *

            + *

            ListOnlineEvaluators

            Lists the OnlineEvaluators for the given project and location.

            + *

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

            + *
              + *
            • listOnlineEvaluators(ListOnlineEvaluatorsRequest request) + *

            + *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            + *
              + *
            • listOnlineEvaluators(LocationName parent) + *

            • listOnlineEvaluators(String parent) + *

            + *

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

            + *
              + *
            • listOnlineEvaluatorsPagedCallable() + *

            • listOnlineEvaluatorsCallable() + *

            + *

            ActivateOnlineEvaluator

            Activates an OnlineEvaluator.

            + *

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

            + *
              + *
            • activateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest request) + *

            + *

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

            + *
              + *
            • activateOnlineEvaluatorAsync(OnlineEvaluatorName name) + *

            • activateOnlineEvaluatorAsync(String name) + *

            + *

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

            + *
              + *
            • activateOnlineEvaluatorOperationCallable() + *

            • activateOnlineEvaluatorCallable() + *

            + *

            SuspendOnlineEvaluator

            Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations until it is activated again.

            + *

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

            + *
              + *
            • suspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest request) + *

            + *

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

            + *
              + *
            • suspendOnlineEvaluatorAsync(OnlineEvaluatorName name) + *

            • suspendOnlineEvaluatorAsync(String name) + *

            + *

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

            + *
              + *
            • suspendOnlineEvaluatorOperationCallable() + *

            • suspendOnlineEvaluatorCallable() + *

            + *

            ListLocations

            Lists information about the supported locations for this service.

            + *

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

            + *
              + *
            • listLocations(ListLocationsRequest request) + *

            + *

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

            + *
              + *
            • listLocationsPagedCallable() + *

            • listLocationsCallable() + *

            + *

            GetLocation

            Gets information about a location.

            + *

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

            + *
              + *
            • getLocation(GetLocationRequest request) + *

            + *

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

            + *
              + *
            • getLocationCallable() + *

            + *

            SetIamPolicy

            Sets the access control policy on the specified resource. Replacesany existing policy. + *

            Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors.

            + *

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

            + *
              + *
            • setIamPolicy(SetIamPolicyRequest request) + *

            + *

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

            + *
              + *
            • setIamPolicyCallable() + *

            + *

            GetIamPolicy

            Gets the access control policy for a resource. Returns an empty policyif the resource exists and does not have a policy set.

            + *

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

            + *
              + *
            • getIamPolicy(GetIamPolicyRequest request) + *

            + *

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

            + *
              + *
            • getIamPolicyCallable() + *

            + *

            TestIamPermissions

            Returns permissions that a caller has on the specified resource. If theresource does not exist, this will return an empty set ofpermissions, not a `NOT_FOUND` error. + *

            Note: This operation is designed to be used for buildingpermission-aware UIs and command-line tools, not for authorizationchecking. This operation may "fail open" without warning.

            + *

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

            + *
              + *
            • testIamPermissions(TestIamPermissionsRequest request) + *

            + *

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

            + *
              + *
            • testIamPermissionsCallable() + *

            + *
            + * + *

            See the individual methods for example code. + * + *

            Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *

            This class can be customized by passing in a custom instance of OnlineEvaluatorServiceSettings + * to create(). For example: + * + *

            To customize credentials: + * + *

            {@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
            + * OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings =
            + *     OnlineEvaluatorServiceSettings.newBuilder()
            + *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
            + *         .build();
            + * OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            + *     OnlineEvaluatorServiceClient.create(onlineEvaluatorServiceSettings);
            + * }
            + * + *

            To customize the endpoint: + * + *

            {@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
            + * OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings =
            + *     OnlineEvaluatorServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
            + * OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            + *     OnlineEvaluatorServiceClient.create(onlineEvaluatorServiceSettings);
            + * }
            + * + *

            Please refer to the GitHub repository's samples for more quickstart code snippets. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class OnlineEvaluatorServiceClient implements BackgroundResource { + private final OnlineEvaluatorServiceSettings settings; + private final OnlineEvaluatorServiceStub stub; + private final OperationsClient operationsClient; + + /** Constructs an instance of OnlineEvaluatorServiceClient with default settings. */ + public static final OnlineEvaluatorServiceClient create() throws IOException { + return create(OnlineEvaluatorServiceSettings.newBuilder().build()); + } + + /** + * Constructs an instance of OnlineEvaluatorServiceClient, using the given settings. The channels + * are created based on the settings passed in, or defaults for any settings that are not set. + */ + public static final OnlineEvaluatorServiceClient create(OnlineEvaluatorServiceSettings settings) + throws IOException { + return new OnlineEvaluatorServiceClient(settings); + } + + /** + * Constructs an instance of OnlineEvaluatorServiceClient, using the given stub for making calls. + * This is for advanced usage - prefer using create(OnlineEvaluatorServiceSettings). + */ + public static final OnlineEvaluatorServiceClient create(OnlineEvaluatorServiceStub stub) { + return new OnlineEvaluatorServiceClient(stub); + } + + /** + * Constructs an instance of OnlineEvaluatorServiceClient, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected OnlineEvaluatorServiceClient(OnlineEvaluatorServiceSettings settings) + throws IOException { + this.settings = settings; + this.stub = ((OnlineEvaluatorServiceStubSettings) settings.getStubSettings()).createStub(); + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + protected OnlineEvaluatorServiceClient(OnlineEvaluatorServiceStub stub) { + this.settings = null; + this.stub = stub; + this.operationsClient = OperationsClient.create(this.stub.getOperationsStub()); + } + + public final OnlineEvaluatorServiceSettings getSettings() { + return settings; + } + + public OnlineEvaluatorServiceStub getStub() { + return stub; + } + + /** + * Returns the OperationsClient that can be used to query the status of a long-running operation + * returned by another API method call. + */ + public final OperationsClient getOperationsClient() { + return operationsClient; + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build();
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(parent, onlineEvaluator).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent resource where the OnlineEvaluator will be created. Format: + * projects/{project}/locations/{location}. + * @param onlineEvaluator Required. The OnlineEvaluator to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createOnlineEvaluatorAsync(LocationName parent, OnlineEvaluator onlineEvaluator) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setOnlineEvaluator(onlineEvaluator) + .build(); + return createOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build();
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(parent, onlineEvaluator).get();
            +   * }
            +   * }
            + * + * @param parent Required. The parent resource where the OnlineEvaluator will be created. Format: + * projects/{project}/locations/{location}. + * @param onlineEvaluator Required. The OnlineEvaluator to create. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createOnlineEvaluatorAsync(String parent, OnlineEvaluator onlineEvaluator) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(parent) + .setOnlineEvaluator(onlineEvaluator) + .build(); + return createOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   CreateOnlineEvaluatorRequest request =
            +   *       CreateOnlineEvaluatorRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
            +   *           .build();
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(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 + createOnlineEvaluatorAsync(CreateOnlineEvaluatorRequest request) { + return createOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   CreateOnlineEvaluatorRequest request =
            +   *       CreateOnlineEvaluatorRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       onlineEvaluatorServiceClient.createOnlineEvaluatorOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   OnlineEvaluator response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationCallable() { + return stub.createOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates an OnlineEvaluator in the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   CreateOnlineEvaluatorRequest request =
            +   *       CreateOnlineEvaluatorRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.createOnlineEvaluatorCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + createOnlineEvaluatorCallable() { + return stub.createOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   OnlineEvaluatorName name =
            +   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
            +   *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name);
            +   * }
            +   * }
            + * + * @param name Required. The name of the OnlineEvaluator to retrieve. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OnlineEvaluator getOnlineEvaluator(OnlineEvaluatorName name) { + GetOnlineEvaluatorRequest request = + GetOnlineEvaluatorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return getOnlineEvaluator(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   String name =
            +   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString();
            +   *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name);
            +   * }
            +   * }
            + * + * @param name Required. The name of the OnlineEvaluator to retrieve. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OnlineEvaluator getOnlineEvaluator(String name) { + GetOnlineEvaluatorRequest request = + GetOnlineEvaluatorRequest.newBuilder().setName(name).build(); + return getOnlineEvaluator(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   GetOnlineEvaluatorRequest request =
            +   *       GetOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OnlineEvaluator getOnlineEvaluator(GetOnlineEvaluatorRequest request) { + return getOnlineEvaluatorCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets details of an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   GetOnlineEvaluatorRequest request =
            +   *       GetOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.getOnlineEvaluatorCallable().futureCall(request);
            +   *   // Do something.
            +   *   OnlineEvaluator response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + getOnlineEvaluatorCallable() { + return stub.getOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the fields of an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build();
            +   *   FieldMask updateMask = FieldMask.newBuilder().build();
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient
            +   *           .updateOnlineEvaluatorAsync(onlineEvaluator, updateMask)
            +   *           .get();
            +   * }
            +   * }
            + * + * @param onlineEvaluator Required. The OnlineEvaluator to update. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @param updateMask Optional. Field mask is used to control which fields get updated. If the mask + * is not present, all fields will be updated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + updateOnlineEvaluatorAsync(OnlineEvaluator onlineEvaluator, FieldMask updateMask) { + UpdateOnlineEvaluatorRequest request = + UpdateOnlineEvaluatorRequest.newBuilder() + .setOnlineEvaluator(onlineEvaluator) + .setUpdateMask(updateMask) + .build(); + return updateOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the fields of an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   UpdateOnlineEvaluatorRequest request =
            +   *       UpdateOnlineEvaluatorRequest.newBuilder()
            +   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.updateOnlineEvaluatorAsync(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 + updateOnlineEvaluatorAsync(UpdateOnlineEvaluatorRequest request) { + return updateOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the fields of an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   UpdateOnlineEvaluatorRequest request =
            +   *       UpdateOnlineEvaluatorRequest.newBuilder()
            +   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       onlineEvaluatorServiceClient.updateOnlineEvaluatorOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   OnlineEvaluator response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationCallable() { + return stub.updateOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Updates the fields of an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   UpdateOnlineEvaluatorRequest request =
            +   *       UpdateOnlineEvaluatorRequest.newBuilder()
            +   *           .setOnlineEvaluator(OnlineEvaluator.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.updateOnlineEvaluatorCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + updateOnlineEvaluatorCallable() { + return stub.updateOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   OnlineEvaluatorName name =
            +   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
            +   *   onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The name of the OnlineEvaluator to delete. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteOnlineEvaluatorAsync(OnlineEvaluatorName name) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return deleteOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   String name =
            +   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString();
            +   *   onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The name of the OnlineEvaluator to delete. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + deleteOnlineEvaluatorAsync(String name) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder().setName(name).build(); + return deleteOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   DeleteOnlineEvaluatorRequest request =
            +   *       DeleteOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(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 + deleteOnlineEvaluatorAsync(DeleteOnlineEvaluatorRequest request) { + return deleteOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   DeleteOnlineEvaluatorRequest request =
            +   *       DeleteOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       onlineEvaluatorServiceClient.deleteOnlineEvaluatorOperationCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationCallable() { + return stub.deleteOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Deletes an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   DeleteOnlineEvaluatorRequest request =
            +   *       DeleteOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.deleteOnlineEvaluatorCallable().futureCall(request);
            +   *   // Do something.
            +   *   future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + deleteOnlineEvaluatorCallable() { + return stub.deleteOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
            +   *   for (OnlineEvaluator element :
            +   *       onlineEvaluatorServiceClient.listOnlineEvaluators(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent resource of the OnlineEvaluators to list. Format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOnlineEvaluatorsPagedResponse listOnlineEvaluators(LocationName parent) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listOnlineEvaluators(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
            +   *   for (OnlineEvaluator element :
            +   *       onlineEvaluatorServiceClient.listOnlineEvaluators(parent).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @param parent Required. The parent resource of the OnlineEvaluators to list. Format: + * projects/{project}/locations/{location}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListOnlineEvaluatorsPagedResponse listOnlineEvaluators(String parent) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder().setParent(parent).build(); + return listOnlineEvaluators(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   ListOnlineEvaluatorsRequest request =
            +   *       ListOnlineEvaluatorsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   for (OnlineEvaluator element :
            +   *       onlineEvaluatorServiceClient.listOnlineEvaluators(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @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 ListOnlineEvaluatorsPagedResponse listOnlineEvaluators( + ListOnlineEvaluatorsRequest request) { + return listOnlineEvaluatorsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   ListOnlineEvaluatorsRequest request =
            +   *       ListOnlineEvaluatorsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.listOnlineEvaluatorsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (OnlineEvaluator element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listOnlineEvaluatorsPagedCallable() { + return stub.listOnlineEvaluatorsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the OnlineEvaluators for the given project and location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   ListOnlineEvaluatorsRequest request =
            +   *       ListOnlineEvaluatorsRequest.newBuilder()
            +   *           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .setFilter("filter-1274492040")
            +   *           .setOrderBy("orderBy-1207110587")
            +   *           .build();
            +   *   while (true) {
            +   *     ListOnlineEvaluatorsResponse response =
            +   *         onlineEvaluatorServiceClient.listOnlineEvaluatorsCallable().call(request);
            +   *     for (OnlineEvaluator element : response.getOnlineEvaluatorsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listOnlineEvaluatorsCallable() { + return stub.listOnlineEvaluatorsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   OnlineEvaluatorName name =
            +   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The name of the OnlineEvaluator to activate. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + activateOnlineEvaluatorAsync(OnlineEvaluatorName name) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return activateOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   String name =
            +   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString();
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The name of the OnlineEvaluator to activate. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + activateOnlineEvaluatorAsync(String name) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder().setName(name).build(); + return activateOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   ActivateOnlineEvaluatorRequest request =
            +   *       ActivateOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(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 + activateOnlineEvaluatorAsync(ActivateOnlineEvaluatorRequest request) { + return activateOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   ActivateOnlineEvaluatorRequest request =
            +   *       ActivateOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       onlineEvaluatorServiceClient
            +   *           .activateOnlineEvaluatorOperationCallable()
            +   *           .futureCall(request);
            +   *   // Do something.
            +   *   OnlineEvaluator response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationCallable() { + return stub.activateOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Activates an OnlineEvaluator. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   ActivateOnlineEvaluatorRequest request =
            +   *       ActivateOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.activateOnlineEvaluatorCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + activateOnlineEvaluatorCallable() { + return stub.activateOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   OnlineEvaluatorName name =
            +   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The name of the OnlineEvaluator to suspend. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + suspendOnlineEvaluatorAsync(OnlineEvaluatorName name) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + return suspendOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   String name =
            +   *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString();
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(name).get();
            +   * }
            +   * }
            + * + * @param name Required. The name of the OnlineEvaluator to suspend. Format: + * projects/{project}/locations/{location}/onlineEvaluators/{id}. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + suspendOnlineEvaluatorAsync(String name) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder().setName(name).build(); + return suspendOnlineEvaluatorAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   SuspendOnlineEvaluatorRequest request =
            +   *       SuspendOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   OnlineEvaluator response =
            +   *       onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(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 + suspendOnlineEvaluatorAsync(SuspendOnlineEvaluatorRequest request) { + return suspendOnlineEvaluatorOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   SuspendOnlineEvaluatorRequest request =
            +   *       SuspendOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   OperationFuture future =
            +   *       onlineEvaluatorServiceClient
            +   *           .suspendOnlineEvaluatorOperationCallable()
            +   *           .futureCall(request);
            +   *   // Do something.
            +   *   OnlineEvaluator response = future.get();
            +   * }
            +   * }
            + */ + public final OperationCallable< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationCallable() { + return stub.suspendOnlineEvaluatorOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't run any evaluations + * until it is activated again. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   SuspendOnlineEvaluatorRequest request =
            +   *       SuspendOnlineEvaluatorRequest.newBuilder()
            +   *           .setName(
            +   *               OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]")
            +   *                   .toString())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.suspendOnlineEvaluatorCallable().futureCall(request);
            +   *   // Do something.
            +   *   Operation response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + suspendOnlineEvaluatorCallable() { + return stub.suspendOnlineEvaluatorCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   for (Location element : onlineEvaluatorServiceClient.listLocations(request).iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + * + * @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 ListLocationsPagedResponse listLocations(ListLocationsRequest request) { + return listLocationsPagedCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.listLocationsPagedCallable().futureCall(request);
            +   *   // Do something.
            +   *   for (Location element : future.get().iterateAll()) {
            +   *     // doThingsWith(element);
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable + listLocationsPagedCallable() { + return stub.listLocationsPagedCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists information about the supported locations for this service. + * + *

            Sample code: + * + *

            {@code
            +   * // This snippet has been automatically generated and should be regarded as a code template only.
            +   * // It will require modifications to work:
            +   * // - It may require correct/in-range values for request initialization.
            +   * // - It may require specifying regional endpoints when creating the service client as shown in
            +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            +   * try (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   ListLocationsRequest request =
            +   *       ListLocationsRequest.newBuilder()
            +   *           .setName("name3373707")
            +   *           .setFilter("filter-1274492040")
            +   *           .setPageSize(883849137)
            +   *           .setPageToken("pageToken873572522")
            +   *           .build();
            +   *   while (true) {
            +   *     ListLocationsResponse response =
            +   *         onlineEvaluatorServiceClient.listLocationsCallable().call(request);
            +   *     for (Location element : response.getLocationsList()) {
            +   *       // doThingsWith(element);
            +   *     }
            +   *     String nextPageToken = response.getNextPageToken();
            +   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
            +   *       request = request.toBuilder().setPageToken(nextPageToken).build();
            +   *     } else {
            +   *       break;
            +   *     }
            +   *   }
            +   * }
            +   * }
            + */ + public final UnaryCallable listLocationsCallable() { + return stub.listLocationsCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
            +   *   Location response = onlineEvaluatorServiceClient.getLocation(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Location getLocation(GetLocationRequest request) { + return getLocationCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets information about a location. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.getLocationCallable().futureCall(request);
            +   *   // Do something.
            +   *   Location response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getLocationCallable() { + return stub.getLocationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

            Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   SetIamPolicyRequest request =
            +   *       SetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointName.ofProjectLocationEndpointName(
            +   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
            +   *                   .toString())
            +   *           .setPolicy(Policy.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   Policy response = onlineEvaluatorServiceClient.setIamPolicy(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy setIamPolicy(SetIamPolicyRequest request) { + return setIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Sets the access control policy on the specified resource. Replacesany existing policy. + * + *

            Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED`errors. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   SetIamPolicyRequest request =
            +   *       SetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointName.ofProjectLocationEndpointName(
            +   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
            +   *                   .toString())
            +   *           .setPolicy(Policy.newBuilder().build())
            +   *           .setUpdateMask(FieldMask.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.setIamPolicyCallable().futureCall(request);
            +   *   // Do something.
            +   *   Policy response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable setIamPolicyCallable() { + return stub.setIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   GetIamPolicyRequest request =
            +   *       GetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointName.ofProjectLocationEndpointName(
            +   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
            +   *                   .toString())
            +   *           .setOptions(GetPolicyOptions.newBuilder().build())
            +   *           .build();
            +   *   Policy response = onlineEvaluatorServiceClient.getIamPolicy(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Policy getIamPolicy(GetIamPolicyRequest request) { + return getIamPolicyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Gets the access control policy for a resource. Returns an empty policyif the resource exists + * and does not have a policy set. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   GetIamPolicyRequest request =
            +   *       GetIamPolicyRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointName.ofProjectLocationEndpointName(
            +   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
            +   *                   .toString())
            +   *           .setOptions(GetPolicyOptions.newBuilder().build())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.getIamPolicyCallable().futureCall(request);
            +   *   // Do something.
            +   *   Policy response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable getIamPolicyCallable() { + return stub.getIamPolicyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

            Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   TestIamPermissionsRequest request =
            +   *       TestIamPermissionsRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointName.ofProjectLocationEndpointName(
            +   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
            +   *                   .toString())
            +   *           .addAllPermissions(new ArrayList())
            +   *           .build();
            +   *   TestIamPermissionsResponse response =
            +   *       onlineEvaluatorServiceClient.testIamPermissions(request);
            +   * }
            +   * }
            + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { + return testIamPermissionsCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Returns permissions that a caller has on the specified resource. If theresource does not exist, + * this will return an empty set ofpermissions, not a `NOT_FOUND` error. + * + *

            Note: This operation is designed to be used for buildingpermission-aware UIs and + * command-line tools, not for authorizationchecking. This operation may "fail open" without + * warning. + * + *

            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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            +   *     OnlineEvaluatorServiceClient.create()) {
            +   *   TestIamPermissionsRequest request =
            +   *       TestIamPermissionsRequest.newBuilder()
            +   *           .setResource(
            +   *               EndpointName.ofProjectLocationEndpointName(
            +   *                       "[PROJECT]", "[LOCATION]", "[ENDPOINT]")
            +   *                   .toString())
            +   *           .addAllPermissions(new ArrayList())
            +   *           .build();
            +   *   ApiFuture future =
            +   *       onlineEvaluatorServiceClient.testIamPermissionsCallable().futureCall(request);
            +   *   // Do something.
            +   *   TestIamPermissionsResponse response = future.get();
            +   * }
            +   * }
            + */ + public final UnaryCallable + testIamPermissionsCallable() { + return stub.testIamPermissionsCallable(); + } + + @Override + public final void close() { + stub.close(); + } + + @Override + public void shutdown() { + stub.shutdown(); + } + + @Override + public boolean isShutdown() { + return stub.isShutdown(); + } + + @Override + public boolean isTerminated() { + return stub.isTerminated(); + } + + @Override + public void shutdownNow() { + stub.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return stub.awaitTermination(duration, unit); + } + + public static class ListOnlineEvaluatorsPagedResponse + extends AbstractPagedListResponse< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + OnlineEvaluator, + ListOnlineEvaluatorsPage, + ListOnlineEvaluatorsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext + context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListOnlineEvaluatorsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListOnlineEvaluatorsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListOnlineEvaluatorsPagedResponse(ListOnlineEvaluatorsPage page) { + super(page, ListOnlineEvaluatorsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListOnlineEvaluatorsPage + extends AbstractPage< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + OnlineEvaluator, + ListOnlineEvaluatorsPage> { + + private ListOnlineEvaluatorsPage( + PageContext + context, + ListOnlineEvaluatorsResponse response) { + super(context, response); + } + + private static ListOnlineEvaluatorsPage createEmptyPage() { + return new ListOnlineEvaluatorsPage(null, null); + } + + @Override + protected ListOnlineEvaluatorsPage createPage( + PageContext + context, + ListOnlineEvaluatorsResponse response) { + return new ListOnlineEvaluatorsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext + context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListOnlineEvaluatorsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + OnlineEvaluator, + ListOnlineEvaluatorsPage, + ListOnlineEvaluatorsFixedSizeCollection> { + + private ListOnlineEvaluatorsFixedSizeCollection( + List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListOnlineEvaluatorsFixedSizeCollection createEmptyCollection() { + return new ListOnlineEvaluatorsFixedSizeCollection(null, 0); + } + + @Override + protected ListOnlineEvaluatorsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListOnlineEvaluatorsFixedSizeCollection(pages, collectionSize); + } + } + + public static class ListLocationsPagedResponse + extends AbstractPagedListResponse< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + public static ApiFuture createAsync( + PageContext context, + ApiFuture futureResponse) { + ApiFuture futurePage = + ListLocationsPage.createEmptyPage().createPageAsync(context, futureResponse); + return ApiFutures.transform( + futurePage, + input -> new ListLocationsPagedResponse(input), + MoreExecutors.directExecutor()); + } + + private ListLocationsPagedResponse(ListLocationsPage page) { + super(page, ListLocationsFixedSizeCollection.createEmptyCollection()); + } + } + + public static class ListLocationsPage + extends AbstractPage< + ListLocationsRequest, ListLocationsResponse, Location, ListLocationsPage> { + + private ListLocationsPage( + PageContext context, + ListLocationsResponse response) { + super(context, response); + } + + private static ListLocationsPage createEmptyPage() { + return new ListLocationsPage(null, null); + } + + @Override + protected ListLocationsPage createPage( + PageContext context, + ListLocationsResponse response) { + return new ListLocationsPage(context, response); + } + + @Override + public ApiFuture createPageAsync( + PageContext context, + ApiFuture futureResponse) { + return super.createPageAsync(context, futureResponse); + } + } + + public static class ListLocationsFixedSizeCollection + extends AbstractFixedSizeCollection< + ListLocationsRequest, + ListLocationsResponse, + Location, + ListLocationsPage, + ListLocationsFixedSizeCollection> { + + private ListLocationsFixedSizeCollection(List pages, int collectionSize) { + super(pages, collectionSize); + } + + private static ListLocationsFixedSizeCollection createEmptyCollection() { + return new ListLocationsFixedSizeCollection(null, 0); + } + + @Override + protected ListLocationsFixedSizeCollection createCollection( + List pages, int collectionSize) { + return new ListLocationsFixedSizeCollection(pages, collectionSize); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java new file mode 100644 index 000000000000..e4ad1ba14695 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceSettings.java @@ -0,0 +1,457 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.BetaApi; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientSettings; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStubSettings; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OnlineEvaluatorServiceClient}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

            For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getOnlineEvaluator: + * + *

            {@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
            + * OnlineEvaluatorServiceSettings.Builder onlineEvaluatorServiceSettingsBuilder =
            + *     OnlineEvaluatorServiceSettings.newBuilder();
            + * onlineEvaluatorServiceSettingsBuilder
            + *     .getOnlineEvaluatorSettings()
            + *     .setRetrySettings(
            + *         onlineEvaluatorServiceSettingsBuilder
            + *             .getOnlineEvaluatorSettings()
            + *             .getRetrySettings()
            + *             .toBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
            + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
            + *             .setMaxAttempts(5)
            + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
            + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
            + *             .setRetryDelayMultiplier(1.3)
            + *             .setRpcTimeoutMultiplier(1.5)
            + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
            + *             .build());
            + * OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings =
            + *     onlineEvaluatorServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createOnlineEvaluator: + * + *

            {@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
            + * OnlineEvaluatorServiceSettings.Builder onlineEvaluatorServiceSettingsBuilder =
            + *     OnlineEvaluatorServiceSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * onlineEvaluatorServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            + */ +@BetaApi +@Generated("by gapic-generator-java") +public class OnlineEvaluatorServiceSettings extends ClientSettings { + + /** Returns the object with the settings used for calls to createOnlineEvaluator. */ + public UnaryCallSettings + createOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).createOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to createOnlineEvaluator. */ + public OperationCallSettings< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .createOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to getOnlineEvaluator. */ + public UnaryCallSettings + getOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).getOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to updateOnlineEvaluator. */ + public UnaryCallSettings + updateOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).updateOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to updateOnlineEvaluator. */ + public OperationCallSettings< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .updateOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to deleteOnlineEvaluator. */ + public UnaryCallSettings + deleteOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).deleteOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to deleteOnlineEvaluator. */ + public OperationCallSettings< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .deleteOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to listOnlineEvaluators. */ + public PagedCallSettings< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).listOnlineEvaluatorsSettings(); + } + + /** Returns the object with the settings used for calls to activateOnlineEvaluator. */ + public UnaryCallSettings + activateOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .activateOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to activateOnlineEvaluator. */ + public OperationCallSettings< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .activateOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to suspendOnlineEvaluator. */ + public UnaryCallSettings + suspendOnlineEvaluatorSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .suspendOnlineEvaluatorSettings(); + } + + /** Returns the object with the settings used for calls to suspendOnlineEvaluator. */ + public OperationCallSettings< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()) + .suspendOnlineEvaluatorOperationSettings(); + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).listLocationsSettings(); + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).getLocationSettings(); + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).setIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).getIamPolicySettings(); + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return ((OnlineEvaluatorServiceStubSettings) getStubSettings()).testIamPermissionsSettings(); + } + + public static final OnlineEvaluatorServiceSettings create(OnlineEvaluatorServiceStubSettings stub) + throws IOException { + return new OnlineEvaluatorServiceSettings.Builder(stub.toBuilder()).build(); + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return OnlineEvaluatorServiceStubSettings.defaultExecutorProviderBuilder(); + } + + /** Returns the default service endpoint. */ + public static String getDefaultEndpoint() { + return OnlineEvaluatorServiceStubSettings.getDefaultEndpoint(); + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return OnlineEvaluatorServiceStubSettings.getDefaultServiceScopes(); + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return OnlineEvaluatorServiceStubSettings.defaultCredentialsProviderBuilder(); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return OnlineEvaluatorServiceStubSettings.defaultGrpcTransportProviderBuilder(); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return OnlineEvaluatorServiceStubSettings.defaultTransportChannelProvider(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return OnlineEvaluatorServiceStubSettings.defaultApiClientHeaderProviderBuilder(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OnlineEvaluatorServiceSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + } + + /** Builder for OnlineEvaluatorServiceSettings. */ + public static class Builder + extends ClientSettings.Builder { + + protected Builder() throws IOException { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(OnlineEvaluatorServiceStubSettings.newBuilder(clientContext)); + } + + protected Builder(OnlineEvaluatorServiceSettings settings) { + super(settings.getStubSettings().toBuilder()); + } + + protected Builder(OnlineEvaluatorServiceStubSettings.Builder stubSettings) { + super(stubSettings); + } + + private static Builder createDefault() { + return new Builder(OnlineEvaluatorServiceStubSettings.newBuilder()); + } + + public OnlineEvaluatorServiceStubSettings.Builder getStubSettingsBuilder() { + return ((OnlineEvaluatorServiceStubSettings.Builder) getStubSettings()); + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods( + getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); + return this; + } + + /** Returns the builder for the settings used for calls to createOnlineEvaluator. */ + public UnaryCallSettings.Builder + createOnlineEvaluatorSettings() { + return getStubSettingsBuilder().createOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to createOnlineEvaluator. */ + public OperationCallSettings.Builder< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().createOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to getOnlineEvaluator. */ + public UnaryCallSettings.Builder + getOnlineEvaluatorSettings() { + return getStubSettingsBuilder().getOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to updateOnlineEvaluator. */ + public UnaryCallSettings.Builder + updateOnlineEvaluatorSettings() { + return getStubSettingsBuilder().updateOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to updateOnlineEvaluator. */ + public OperationCallSettings.Builder< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().updateOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOnlineEvaluator. */ + public UnaryCallSettings.Builder + deleteOnlineEvaluatorSettings() { + return getStubSettingsBuilder().deleteOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to deleteOnlineEvaluator. */ + public OperationCallSettings.Builder< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().deleteOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listOnlineEvaluators. */ + public PagedCallSettings.Builder< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings() { + return getStubSettingsBuilder().listOnlineEvaluatorsSettings(); + } + + /** Returns the builder for the settings used for calls to activateOnlineEvaluator. */ + public UnaryCallSettings.Builder + activateOnlineEvaluatorSettings() { + return getStubSettingsBuilder().activateOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to activateOnlineEvaluator. */ + public OperationCallSettings.Builder< + ActivateOnlineEvaluatorRequest, + OnlineEvaluator, + ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().activateOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to suspendOnlineEvaluator. */ + public UnaryCallSettings.Builder + suspendOnlineEvaluatorSettings() { + return getStubSettingsBuilder().suspendOnlineEvaluatorSettings(); + } + + /** Returns the builder for the settings used for calls to suspendOnlineEvaluator. */ + public OperationCallSettings.Builder< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings() { + return getStubSettingsBuilder().suspendOnlineEvaluatorOperationSettings(); + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return getStubSettingsBuilder().listLocationsSettings(); + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getStubSettingsBuilder().getLocationSettings(); + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return getStubSettingsBuilder().setIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getStubSettingsBuilder().getIamPolicySettings(); + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return getStubSettingsBuilder().testIamPermissionsSettings(); + } + + @Override + public OnlineEvaluatorServiceSettings build() throws IOException { + return new OnlineEvaluatorServiceSettings(this); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json index 075dac119dc8..027a69d71646 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/gapic_metadata.json @@ -202,6 +202,9 @@ "EvaluateInstances": { "methods": ["evaluateInstances", "evaluateInstancesCallable"] }, + "GenerateInstanceRubrics": { + "methods": ["generateInstanceRubrics", "generateInstanceRubricsCallable"] + }, "GetIamPolicy": { "methods": ["getIamPolicy", "getIamPolicyCallable"] }, @@ -1457,6 +1460,51 @@ } } }, + "OnlineEvaluatorService": { + "clients": { + "grpc": { + "libraryClient": "OnlineEvaluatorServiceClient", + "rpcs": { + "ActivateOnlineEvaluator": { + "methods": ["activateOnlineEvaluatorAsync", "activateOnlineEvaluatorAsync", "activateOnlineEvaluatorAsync", "activateOnlineEvaluatorOperationCallable", "activateOnlineEvaluatorCallable"] + }, + "CreateOnlineEvaluator": { + "methods": ["createOnlineEvaluatorAsync", "createOnlineEvaluatorAsync", "createOnlineEvaluatorAsync", "createOnlineEvaluatorOperationCallable", "createOnlineEvaluatorCallable"] + }, + "DeleteOnlineEvaluator": { + "methods": ["deleteOnlineEvaluatorAsync", "deleteOnlineEvaluatorAsync", "deleteOnlineEvaluatorAsync", "deleteOnlineEvaluatorOperationCallable", "deleteOnlineEvaluatorCallable"] + }, + "GetIamPolicy": { + "methods": ["getIamPolicy", "getIamPolicyCallable"] + }, + "GetLocation": { + "methods": ["getLocation", "getLocationCallable"] + }, + "GetOnlineEvaluator": { + "methods": ["getOnlineEvaluator", "getOnlineEvaluator", "getOnlineEvaluator", "getOnlineEvaluatorCallable"] + }, + "ListLocations": { + "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"] + }, + "ListOnlineEvaluators": { + "methods": ["listOnlineEvaluators", "listOnlineEvaluators", "listOnlineEvaluators", "listOnlineEvaluatorsPagedCallable", "listOnlineEvaluatorsCallable"] + }, + "SetIamPolicy": { + "methods": ["setIamPolicy", "setIamPolicyCallable"] + }, + "SuspendOnlineEvaluator": { + "methods": ["suspendOnlineEvaluatorAsync", "suspendOnlineEvaluatorAsync", "suspendOnlineEvaluatorAsync", "suspendOnlineEvaluatorOperationCallable", "suspendOnlineEvaluatorCallable"] + }, + "TestIamPermissions": { + "methods": ["testIamPermissions", "testIamPermissionsCallable"] + }, + "UpdateOnlineEvaluator": { + "methods": ["updateOnlineEvaluatorAsync", "updateOnlineEvaluatorAsync", "updateOnlineEvaluatorOperationCallable", "updateOnlineEvaluatorCallable"] + } + } + } + } + }, "PersistentResourceService": { "clients": { "grpc": { diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java index e1ba2f797fcd..de09de8761bc 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/package-info.java @@ -93,6 +93,9 @@ * EvaluateInstancesRequest request = * EvaluateInstancesRequest.newBuilder() * .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + * .addAllMetrics(new ArrayList()) + * .addAllMetricSources(new ArrayList()) + * .setInstance(EvaluationInstance.newBuilder().build()) * .setAutoraterConfig(AutoraterConfig.newBuilder().build()) * .build(); * EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); @@ -529,6 +532,26 @@ * } * } * + *

            ======================= OnlineEvaluatorServiceClient ======================= + * + *

            Service Description: This service is used to create and manage Vertex AI OnlineEvaluators. + * + *

            Sample for OnlineEvaluatorServiceClient: + * + *

            {@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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient =
            + *     OnlineEvaluatorServiceClient.create()) {
            + *   OnlineEvaluatorName name =
            + *       OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]");
            + *   OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name);
            + * }
            + * }
            + * *

            ======================= PersistentResourceServiceClient ======================= * *

            Service Description: A service for managing Vertex AI's machine learning PersistentResource. diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java index fe666d7a6fa9..7c5355d6a794 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStub.java @@ -27,6 +27,8 @@ import com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -69,6 +71,11 @@ public UnaryCallable evaluateDatasetCallable( throw new UnsupportedOperationException("Not implemented: evaluateDatasetCallable()"); } + public UnaryCallable + generateInstanceRubricsCallable() { + throw new UnsupportedOperationException("Not implemented: generateInstanceRubricsCallable()"); + } + public UnaryCallable listLocationsPagedCallable() { throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java index a3277094c085..a4a51bbd3979 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/EvaluationServiceStubSettings.java @@ -51,6 +51,8 @@ import com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -161,6 +163,8 @@ public class EvaluationServiceStubSettings extends StubSettings evaluateDatasetOperationSettings; + private final UnaryCallSettings + generateInstanceRubricsSettings; private final PagedCallSettings< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -239,6 +243,12 @@ public UnaryCallSettings evaluateDatasetSetti return evaluateDatasetOperationSettings; } + /** Returns the object with the settings used for calls to generateInstanceRubrics. */ + public UnaryCallSettings + generateInstanceRubricsSettings() { + return generateInstanceRubricsSettings; + } + /** Returns the object with the settings used for calls to listLocations. */ public PagedCallSettings listLocationsSettings() { @@ -350,6 +360,7 @@ protected EvaluationServiceStubSettings(Builder settingsBuilder) throws IOExcept evaluateInstancesSettings = settingsBuilder.evaluateInstancesSettings().build(); evaluateDatasetSettings = settingsBuilder.evaluateDatasetSettings().build(); evaluateDatasetOperationSettings = settingsBuilder.evaluateDatasetOperationSettings().build(); + generateInstanceRubricsSettings = settingsBuilder.generateInstanceRubricsSettings().build(); listLocationsSettings = settingsBuilder.listLocationsSettings().build(); getLocationSettings = settingsBuilder.getLocationSettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); @@ -376,6 +387,9 @@ public static class Builder extends StubSettings.Builder evaluateDatasetOperationSettings; + private final UnaryCallSettings.Builder< + GenerateInstanceRubricsRequest, GenerateInstanceRubricsResponse> + generateInstanceRubricsSettings; private final PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> listLocationsSettings; @@ -424,6 +438,7 @@ protected Builder(ClientContext clientContext) { evaluateInstancesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); evaluateDatasetSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); evaluateDatasetOperationSettings = OperationCallSettings.newBuilder(); + generateInstanceRubricsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -434,6 +449,7 @@ protected Builder(ClientContext clientContext) { ImmutableList.>of( evaluateInstancesSettings, evaluateDatasetSettings, + generateInstanceRubricsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -448,6 +464,7 @@ protected Builder(EvaluationServiceStubSettings settings) { evaluateInstancesSettings = settings.evaluateInstancesSettings.toBuilder(); evaluateDatasetSettings = settings.evaluateDatasetSettings.toBuilder(); evaluateDatasetOperationSettings = settings.evaluateDatasetOperationSettings.toBuilder(); + generateInstanceRubricsSettings = settings.generateInstanceRubricsSettings.toBuilder(); listLocationsSettings = settings.listLocationsSettings.toBuilder(); getLocationSettings = settings.getLocationSettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); @@ -458,6 +475,7 @@ protected Builder(EvaluationServiceStubSettings settings) { ImmutableList.>of( evaluateInstancesSettings, evaluateDatasetSettings, + generateInstanceRubricsSettings, listLocationsSettings, getLocationSettings, setIamPolicySettings, @@ -488,6 +506,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder + .generateInstanceRubricsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .listLocationsSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) @@ -574,6 +597,13 @@ public UnaryCallSettings.Builder evaluateData return evaluateDatasetOperationSettings; } + /** Returns the builder for the settings used for calls to generateInstanceRubrics. */ + public UnaryCallSettings.Builder< + GenerateInstanceRubricsRequest, GenerateInstanceRubricsResponse> + generateInstanceRubricsSettings() { + return generateInstanceRubricsSettings; + } + /** Returns the builder for the settings used for calls to listLocations. */ public PagedCallSettings.Builder< ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEvaluationServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEvaluationServiceStub.java index 39b649772905..f244eaae41b3 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEvaluationServiceStub.java +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcEvaluationServiceStub.java @@ -32,6 +32,8 @@ import com.google.cloud.aiplatform.v1beta1.EvaluateDatasetResponse; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; import com.google.cloud.location.GetLocationRequest; import com.google.cloud.location.ListLocationsRequest; import com.google.cloud.location.ListLocationsResponse; @@ -83,6 +85,21 @@ public class GrpcEvaluationServiceStub extends EvaluationServiceStub { .setSampledToLocalTracing(true) .build(); + private static final MethodDescriptor< + GenerateInstanceRubricsRequest, GenerateInstanceRubricsResponse> + generateInstanceRubricsMethodDescriptor = + MethodDescriptor + .newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.EvaluationService/GenerateInstanceRubrics") + .setRequestMarshaller( + ProtoUtils.marshaller(GenerateInstanceRubricsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(GenerateInstanceRubricsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + private static final MethodDescriptor listLocationsMethodDescriptor = MethodDescriptor.newBuilder() @@ -140,6 +157,8 @@ public class GrpcEvaluationServiceStub extends EvaluationServiceStub { private final OperationCallable< EvaluateDatasetRequest, EvaluateDatasetResponse, EvaluateDatasetOperationMetadata> evaluateDatasetOperationCallable; + private final UnaryCallable + generateInstanceRubricsCallable; private final UnaryCallable listLocationsCallable; private final UnaryCallable listLocationsPagedCallable; @@ -216,6 +235,19 @@ protected GrpcEvaluationServiceStub( }) .setResourceNameExtractor(request -> request.getLocation()) .build(); + GrpcCallSettings + generateInstanceRubricsTransportSettings = + GrpcCallSettings + .newBuilder() + .setMethodDescriptor(generateInstanceRubricsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("location", String.valueOf(request.getLocation())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getLocation()) + .build(); GrpcCallSettings listLocationsTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(listLocationsMethodDescriptor) @@ -285,6 +317,11 @@ protected GrpcEvaluationServiceStub( settings.evaluateDatasetOperationSettings(), clientContext, operationsStub); + this.generateInstanceRubricsCallable = + callableFactory.createUnaryCallable( + generateInstanceRubricsTransportSettings, + settings.generateInstanceRubricsSettings(), + clientContext); this.listLocationsCallable = callableFactory.createUnaryCallable( listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); @@ -332,6 +369,12 @@ public UnaryCallable evaluateDatasetCallable( return evaluateDatasetOperationCallable; } + @Override + public UnaryCallable + generateInstanceRubricsCallable() { + return generateInstanceRubricsCallable; + } + @Override public UnaryCallable listLocationsCallable() { return listLocationsCallable; diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceCallableFactory.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceCallableFactory.java new file mode 100644 index 000000000000..248b0b42b394 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceCallableFactory.java @@ -0,0 +1,115 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcCallableFactory; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.BatchingCallSettings; +import com.google.api.gax.rpc.BidiStreamingCallable; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.ClientStreamingCallable; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallSettings; +import com.google.api.gax.rpc.ServerStreamingCallable; +import com.google.api.gax.rpc.StreamingCallSettings; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC callable factory implementation for the OnlineEvaluatorService service API. + * + *

            This class is for advanced usage. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcOnlineEvaluatorServiceCallableFactory implements GrpcStubCallableFactory { + + @Override + public UnaryCallable createUnaryCallable( + GrpcCallSettings grpcCallSettings, + UnaryCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public + UnaryCallable createPagedCallable( + GrpcCallSettings grpcCallSettings, + PagedCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); + } + + @Override + public UnaryCallable createBatchingCallable( + GrpcCallSettings grpcCallSettings, + BatchingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBatchingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + OperationCallable createOperationCallable( + GrpcCallSettings grpcCallSettings, + OperationCallSettings callSettings, + ClientContext clientContext, + OperationsStub operationsStub) { + return GrpcCallableFactory.createOperationCallable( + grpcCallSettings, callSettings, clientContext, operationsStub); + } + + @Override + public + BidiStreamingCallable createBidiStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createBidiStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ServerStreamingCallable createServerStreamingCallable( + GrpcCallSettings grpcCallSettings, + ServerStreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createServerStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } + + @Override + public + ClientStreamingCallable createClientStreamingCallable( + GrpcCallSettings grpcCallSettings, + StreamingCallSettings callSettings, + ClientContext clientContext) { + return GrpcCallableFactory.createClientStreamingCallable( + grpcCallSettings, callSettings, clientContext); + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceStub.java new file mode 100644 index 000000000000..a648166fb4cc --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/GrpcOnlineEvaluatorServiceStub.java @@ -0,0 +1,676 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.core.BackgroundResourceAggregation; +import com.google.api.gax.grpc.GrpcCallSettings; +import com.google.api.gax.grpc.GrpcStubCallableFactory; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.RequestParamsBuilder; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.GrpcOperationsStub; +import com.google.protobuf.Empty; +import io.grpc.MethodDescriptor; +import io.grpc.protobuf.ProtoUtils; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * gRPC stub implementation for the OnlineEvaluatorService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public class GrpcOnlineEvaluatorServiceStub extends OnlineEvaluatorServiceStub { + private static final MethodDescriptor + createOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/CreateOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(CreateOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + getOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/GetOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(GetOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(OnlineEvaluator.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + updateOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/UpdateOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(UpdateOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + deleteOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/DeleteOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(DeleteOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listOnlineEvaluatorsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/ListOnlineEvaluators") + .setRequestMarshaller( + ProtoUtils.marshaller(ListOnlineEvaluatorsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListOnlineEvaluatorsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + activateOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/ActivateOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(ActivateOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + suspendOnlineEvaluatorMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService/SuspendOnlineEvaluator") + .setRequestMarshaller( + ProtoUtils.marshaller(SuspendOnlineEvaluatorRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + listLocationsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/ListLocations") + .setRequestMarshaller( + ProtoUtils.marshaller(ListLocationsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(ListLocationsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getLocationMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.cloud.location.Locations/GetLocation") + .setRequestMarshaller(ProtoUtils.marshaller(GetLocationRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Location.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor setIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/SetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor getIamPolicyMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/GetIamPolicy") + .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private static final MethodDescriptor + testIamPermissionsMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.iam.v1.IAMPolicy/TestIamPermissions") + .setRequestMarshaller( + ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) + .setResponseMarshaller( + ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) + .setSampledToLocalTracing(true) + .build(); + + private final UnaryCallable + createOnlineEvaluatorCallable; + private final OperationCallable< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationCallable; + private final UnaryCallable + getOnlineEvaluatorCallable; + private final UnaryCallable + updateOnlineEvaluatorCallable; + private final OperationCallable< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationCallable; + private final UnaryCallable + deleteOnlineEvaluatorCallable; + private final OperationCallable< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationCallable; + private final UnaryCallable + listOnlineEvaluatorsCallable; + private final UnaryCallable + listOnlineEvaluatorsPagedCallable; + private final UnaryCallable + activateOnlineEvaluatorCallable; + private final OperationCallable< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationCallable; + private final UnaryCallable + suspendOnlineEvaluatorCallable; + private final OperationCallable< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationCallable; + private final UnaryCallable listLocationsCallable; + private final UnaryCallable + listLocationsPagedCallable; + private final UnaryCallable getLocationCallable; + private final UnaryCallable setIamPolicyCallable; + private final UnaryCallable getIamPolicyCallable; + private final UnaryCallable + testIamPermissionsCallable; + + private final BackgroundResource backgroundResources; + private final GrpcOperationsStub operationsStub; + private final GrpcStubCallableFactory callableFactory; + + public static final GrpcOnlineEvaluatorServiceStub create( + OnlineEvaluatorServiceStubSettings settings) throws IOException { + return new GrpcOnlineEvaluatorServiceStub(settings, ClientContext.create(settings)); + } + + public static final GrpcOnlineEvaluatorServiceStub create(ClientContext clientContext) + throws IOException { + return new GrpcOnlineEvaluatorServiceStub( + OnlineEvaluatorServiceStubSettings.newBuilder().build(), clientContext); + } + + public static final GrpcOnlineEvaluatorServiceStub create( + ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { + return new GrpcOnlineEvaluatorServiceStub( + OnlineEvaluatorServiceStubSettings.newBuilder().build(), clientContext, callableFactory); + } + + /** + * Constructs an instance of GrpcOnlineEvaluatorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcOnlineEvaluatorServiceStub( + OnlineEvaluatorServiceStubSettings settings, ClientContext clientContext) throws IOException { + this(settings, clientContext, new GrpcOnlineEvaluatorServiceCallableFactory()); + } + + /** + * Constructs an instance of GrpcOnlineEvaluatorServiceStub, using the given settings. This is + * protected so that it is easy to make a subclass, but otherwise, the static factory methods + * should be preferred. + */ + protected GrpcOnlineEvaluatorServiceStub( + OnlineEvaluatorServiceStubSettings settings, + ClientContext clientContext, + GrpcStubCallableFactory callableFactory) + throws IOException { + this.callableFactory = callableFactory; + this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); + + GrpcCallSettings + createOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(createOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + getOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + updateOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(updateOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add( + "online_evaluator.name", + String.valueOf(request.getOnlineEvaluator().getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings + deleteOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(deleteOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + listOnlineEvaluatorsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listOnlineEvaluatorsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getParent()) + .build(); + GrpcCallSettings + activateOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(activateOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings + suspendOnlineEvaluatorTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(suspendOnlineEvaluatorMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getName()) + .build(); + GrpcCallSettings listLocationsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(listLocationsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings getLocationTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getLocationMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("name", String.valueOf(request.getName())); + return builder.build(); + }) + .build(); + GrpcCallSettings setIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(setIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings getIamPolicyTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(getIamPolicyMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + GrpcCallSettings + testIamPermissionsTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(testIamPermissionsMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("resource", String.valueOf(request.getResource())); + return builder.build(); + }) + .setResourceNameExtractor(request -> request.getResource()) + .build(); + + this.createOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + createOnlineEvaluatorTransportSettings, + settings.createOnlineEvaluatorSettings(), + clientContext); + this.createOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + createOnlineEvaluatorTransportSettings, + settings.createOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.getOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + getOnlineEvaluatorTransportSettings, + settings.getOnlineEvaluatorSettings(), + clientContext); + this.updateOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + updateOnlineEvaluatorTransportSettings, + settings.updateOnlineEvaluatorSettings(), + clientContext); + this.updateOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + updateOnlineEvaluatorTransportSettings, + settings.updateOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.deleteOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + deleteOnlineEvaluatorTransportSettings, + settings.deleteOnlineEvaluatorSettings(), + clientContext); + this.deleteOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + deleteOnlineEvaluatorTransportSettings, + settings.deleteOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.listOnlineEvaluatorsCallable = + callableFactory.createUnaryCallable( + listOnlineEvaluatorsTransportSettings, + settings.listOnlineEvaluatorsSettings(), + clientContext); + this.listOnlineEvaluatorsPagedCallable = + callableFactory.createPagedCallable( + listOnlineEvaluatorsTransportSettings, + settings.listOnlineEvaluatorsSettings(), + clientContext); + this.activateOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + activateOnlineEvaluatorTransportSettings, + settings.activateOnlineEvaluatorSettings(), + clientContext); + this.activateOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + activateOnlineEvaluatorTransportSettings, + settings.activateOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.suspendOnlineEvaluatorCallable = + callableFactory.createUnaryCallable( + suspendOnlineEvaluatorTransportSettings, + settings.suspendOnlineEvaluatorSettings(), + clientContext); + this.suspendOnlineEvaluatorOperationCallable = + callableFactory.createOperationCallable( + suspendOnlineEvaluatorTransportSettings, + settings.suspendOnlineEvaluatorOperationSettings(), + clientContext, + operationsStub); + this.listLocationsCallable = + callableFactory.createUnaryCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.listLocationsPagedCallable = + callableFactory.createPagedCallable( + listLocationsTransportSettings, settings.listLocationsSettings(), clientContext); + this.getLocationCallable = + callableFactory.createUnaryCallable( + getLocationTransportSettings, settings.getLocationSettings(), clientContext); + this.setIamPolicyCallable = + callableFactory.createUnaryCallable( + setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); + this.getIamPolicyCallable = + callableFactory.createUnaryCallable( + getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); + this.testIamPermissionsCallable = + callableFactory.createUnaryCallable( + testIamPermissionsTransportSettings, + settings.testIamPermissionsSettings(), + clientContext); + + this.backgroundResources = + new BackgroundResourceAggregation(clientContext.getBackgroundResources()); + } + + public GrpcOperationsStub getOperationsStub() { + return operationsStub; + } + + @Override + public UnaryCallable createOnlineEvaluatorCallable() { + return createOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationCallable() { + return createOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable getOnlineEvaluatorCallable() { + return getOnlineEvaluatorCallable; + } + + @Override + public UnaryCallable updateOnlineEvaluatorCallable() { + return updateOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationCallable() { + return updateOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable deleteOnlineEvaluatorCallable() { + return deleteOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationCallable() { + return deleteOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable + listOnlineEvaluatorsCallable() { + return listOnlineEvaluatorsCallable; + } + + @Override + public UnaryCallable + listOnlineEvaluatorsPagedCallable() { + return listOnlineEvaluatorsPagedCallable; + } + + @Override + public UnaryCallable + activateOnlineEvaluatorCallable() { + return activateOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationCallable() { + return activateOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable suspendOnlineEvaluatorCallable() { + return suspendOnlineEvaluatorCallable; + } + + @Override + public OperationCallable< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationCallable() { + return suspendOnlineEvaluatorOperationCallable; + } + + @Override + public UnaryCallable listLocationsCallable() { + return listLocationsCallable; + } + + @Override + public UnaryCallable + listLocationsPagedCallable() { + return listLocationsPagedCallable; + } + + @Override + public UnaryCallable getLocationCallable() { + return getLocationCallable; + } + + @Override + public UnaryCallable setIamPolicyCallable() { + return setIamPolicyCallable; + } + + @Override + public UnaryCallable getIamPolicyCallable() { + return getIamPolicyCallable; + } + + @Override + public UnaryCallable + testIamPermissionsCallable() { + return testIamPermissionsCallable; + } + + @Override + public final void close() { + try { + backgroundResources.close(); + } catch (RuntimeException e) { + throw e; + } catch (Exception e) { + throw new IllegalStateException("Failed to close resource", e); + } + } + + @Override + public void shutdown() { + backgroundResources.shutdown(); + } + + @Override + public boolean isShutdown() { + return backgroundResources.isShutdown(); + } + + @Override + public boolean isTerminated() { + return backgroundResources.isTerminated(); + } + + @Override + public void shutdownNow() { + backgroundResources.shutdownNow(); + } + + @Override + public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { + return backgroundResources.awaitTermination(duration, unit); + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java new file mode 100644 index 000000000000..1b11ec216ff2 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStub.java @@ -0,0 +1,166 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.OperationCallable; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.longrunning.stub.OperationsStub; +import com.google.protobuf.Empty; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Base stub class for the OnlineEvaluatorService service API. + * + *

            This class is for advanced usage and reflects the underlying API directly. + */ +@BetaApi +@Generated("by gapic-generator-java") +public abstract class OnlineEvaluatorServiceStub implements BackgroundResource { + + public OperationsStub getOperationsStub() { + throw new UnsupportedOperationException("Not implemented: getOperationsStub()"); + } + + public OperationCallable< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: createOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable createOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: createOnlineEvaluatorCallable()"); + } + + public UnaryCallable getOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: getOnlineEvaluatorCallable()"); + } + + public OperationCallable< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: updateOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable updateOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: updateOnlineEvaluatorCallable()"); + } + + public OperationCallable< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: deleteOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable deleteOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: deleteOnlineEvaluatorCallable()"); + } + + public UnaryCallable + listOnlineEvaluatorsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listOnlineEvaluatorsPagedCallable()"); + } + + public UnaryCallable + listOnlineEvaluatorsCallable() { + throw new UnsupportedOperationException("Not implemented: listOnlineEvaluatorsCallable()"); + } + + public OperationCallable< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: activateOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable + activateOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: activateOnlineEvaluatorCallable()"); + } + + public OperationCallable< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationCallable() { + throw new UnsupportedOperationException( + "Not implemented: suspendOnlineEvaluatorOperationCallable()"); + } + + public UnaryCallable suspendOnlineEvaluatorCallable() { + throw new UnsupportedOperationException("Not implemented: suspendOnlineEvaluatorCallable()"); + } + + public UnaryCallable + listLocationsPagedCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsPagedCallable()"); + } + + public UnaryCallable listLocationsCallable() { + throw new UnsupportedOperationException("Not implemented: listLocationsCallable()"); + } + + public UnaryCallable getLocationCallable() { + throw new UnsupportedOperationException("Not implemented: getLocationCallable()"); + } + + public UnaryCallable setIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); + } + + public UnaryCallable getIamPolicyCallable() { + throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); + } + + public UnaryCallable + testIamPermissionsCallable() { + throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); + } + + @Override + public abstract void close(); +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java new file mode 100644 index 000000000000..928ac07435d9 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/main/java/com/google/cloud/aiplatform/v1beta1/stub/OnlineEvaluatorServiceStubSettings.java @@ -0,0 +1,1028 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.core.ApiFunction; +import com.google.api.core.ApiFuture; +import com.google.api.core.BetaApi; +import com.google.api.core.ObsoleteApi; +import com.google.api.gax.core.GaxProperties; +import com.google.api.gax.core.GoogleCredentialsProvider; +import com.google.api.gax.core.InstantiatingExecutorProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.GrpcTransportChannel; +import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; +import com.google.api.gax.grpc.ProtoOperationTransformers; +import com.google.api.gax.longrunning.OperationSnapshot; +import com.google.api.gax.longrunning.OperationTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.rpc.ApiCallContext; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.ClientContext; +import com.google.api.gax.rpc.LibraryMetadata; +import com.google.api.gax.rpc.OperationCallSettings; +import com.google.api.gax.rpc.PageContext; +import com.google.api.gax.rpc.PagedCallSettings; +import com.google.api.gax.rpc.PagedListDescriptor; +import com.google.api.gax.rpc.PagedListResponseFactory; +import com.google.api.gax.rpc.StatusCode; +import com.google.api.gax.rpc.StubSettings; +import com.google.api.gax.rpc.TransportChannelProvider; +import com.google.api.gax.rpc.UnaryCallSettings; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.ImmutableList; +import com.google.common.collect.ImmutableMap; +import com.google.common.collect.ImmutableSet; +import com.google.common.collect.Lists; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.time.Duration; +import java.util.List; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +/** + * Settings class to configure an instance of {@link OnlineEvaluatorServiceStub}. + * + *

            The default instance has everything set to sensible defaults: + * + *

              + *
            • The default service address (aiplatform.googleapis.com) and default port (443) are used. + *
            • Credentials are acquired automatically through Application Default Credentials. + *
            • Retries are configured for idempotent methods but not for non-idempotent methods. + *
            + * + *

            The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *

            For example, to set the + * [RetrySettings](https://cloud.google.com/java/docs/reference/gax/latest/com.google.api.gax.retrying.RetrySettings) + * of getOnlineEvaluator: + * + *

            {@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
            + * OnlineEvaluatorServiceStubSettings.Builder onlineEvaluatorServiceSettingsBuilder =
            + *     OnlineEvaluatorServiceStubSettings.newBuilder();
            + * onlineEvaluatorServiceSettingsBuilder
            + *     .getOnlineEvaluatorSettings()
            + *     .setRetrySettings(
            + *         onlineEvaluatorServiceSettingsBuilder
            + *             .getOnlineEvaluatorSettings()
            + *             .getRetrySettings()
            + *             .toBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofSeconds(1))
            + *             .setInitialRpcTimeoutDuration(Duration.ofSeconds(5))
            + *             .setMaxAttempts(5)
            + *             .setMaxRetryDelayDuration(Duration.ofSeconds(30))
            + *             .setMaxRpcTimeoutDuration(Duration.ofSeconds(60))
            + *             .setRetryDelayMultiplier(1.3)
            + *             .setRpcTimeoutMultiplier(1.5)
            + *             .setTotalTimeoutDuration(Duration.ofSeconds(300))
            + *             .build());
            + * OnlineEvaluatorServiceStubSettings onlineEvaluatorServiceSettings =
            + *     onlineEvaluatorServiceSettingsBuilder.build();
            + * }
            + * + * Please refer to the [Client Side Retry + * Guide](https://docs.cloud.google.com/java/docs/client-retries) for additional support in setting + * retries. + * + *

            To configure the RetrySettings of a Long Running Operation method, create an + * OperationTimedPollAlgorithm object and update the RPC's polling algorithm. For example, to + * configure the RetrySettings for createOnlineEvaluator: + * + *

            {@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
            + * OnlineEvaluatorServiceStubSettings.Builder onlineEvaluatorServiceSettingsBuilder =
            + *     OnlineEvaluatorServiceStubSettings.newBuilder();
            + * TimedRetryAlgorithm timedRetryAlgorithm =
            + *     OperationalTimedPollAlgorithm.create(
            + *         RetrySettings.newBuilder()
            + *             .setInitialRetryDelayDuration(Duration.ofMillis(500))
            + *             .setRetryDelayMultiplier(1.5)
            + *             .setMaxRetryDelayDuration(Duration.ofMillis(5000))
            + *             .setTotalTimeoutDuration(Duration.ofHours(24))
            + *             .build());
            + * onlineEvaluatorServiceSettingsBuilder
            + *     .createClusterOperationSettings()
            + *     .setPollingAlgorithm(timedRetryAlgorithm)
            + *     .build();
            + * }
            + */ +@BetaApi +@Generated("by gapic-generator-java") +@SuppressWarnings("CanonicalDuration") +public class OnlineEvaluatorServiceStubSettings + extends StubSettings { + /** The default scopes of the service. */ + private static final ImmutableList DEFAULT_SERVICE_SCOPES = + ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); + + private final UnaryCallSettings + createOnlineEvaluatorSettings; + private final OperationCallSettings< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings; + private final UnaryCallSettings + getOnlineEvaluatorSettings; + private final UnaryCallSettings + updateOnlineEvaluatorSettings; + private final OperationCallSettings< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings; + private final UnaryCallSettings + deleteOnlineEvaluatorSettings; + private final OperationCallSettings< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings; + private final PagedCallSettings< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings; + private final UnaryCallSettings + activateOnlineEvaluatorSettings; + private final OperationCallSettings< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings; + private final UnaryCallSettings + suspendOnlineEvaluatorSettings; + private final OperationCallSettings< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings; + private final PagedCallSettings< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings getLocationSettings; + private final UnaryCallSettings setIamPolicySettings; + private final UnaryCallSettings getIamPolicySettings; + private final UnaryCallSettings + testIamPermissionsSettings; + + private static final PagedListDescriptor< + ListOnlineEvaluatorsRequest, ListOnlineEvaluatorsResponse, OnlineEvaluator> + LIST_ONLINE_EVALUATORS_PAGE_STR_DESC = + new PagedListDescriptor< + ListOnlineEvaluatorsRequest, ListOnlineEvaluatorsResponse, OnlineEvaluator>() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListOnlineEvaluatorsRequest injectToken( + ListOnlineEvaluatorsRequest payload, String token) { + return ListOnlineEvaluatorsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListOnlineEvaluatorsRequest injectPageSize( + ListOnlineEvaluatorsRequest payload, int pageSize) { + return ListOnlineEvaluatorsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListOnlineEvaluatorsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListOnlineEvaluatorsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources( + ListOnlineEvaluatorsResponse payload) { + return payload.getOnlineEvaluatorsList(); + } + }; + + private static final PagedListDescriptor + LIST_LOCATIONS_PAGE_STR_DESC = + new PagedListDescriptor() { + @Override + public String emptyToken() { + return ""; + } + + @Override + public ListLocationsRequest injectToken(ListLocationsRequest payload, String token) { + return ListLocationsRequest.newBuilder(payload).setPageToken(token).build(); + } + + @Override + public ListLocationsRequest injectPageSize(ListLocationsRequest payload, int pageSize) { + return ListLocationsRequest.newBuilder(payload).setPageSize(pageSize).build(); + } + + @Override + public Integer extractPageSize(ListLocationsRequest payload) { + return payload.getPageSize(); + } + + @Override + public String extractNextToken(ListLocationsResponse payload) { + return payload.getNextPageToken(); + } + + @Override + public Iterable extractResources(ListLocationsResponse payload) { + return payload.getLocationsList(); + } + }; + + private static final PagedListResponseFactory< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + LIST_ONLINE_EVALUATORS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListOnlineEvaluatorsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext< + ListOnlineEvaluatorsRequest, ListOnlineEvaluatorsResponse, OnlineEvaluator> + pageContext = + PageContext.create( + callable, LIST_ONLINE_EVALUATORS_PAGE_STR_DESC, request, context); + return ListOnlineEvaluatorsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + private static final PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + LIST_LOCATIONS_PAGE_STR_FACT = + new PagedListResponseFactory< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse>() { + @Override + public ApiFuture getFuturePagedResponse( + UnaryCallable callable, + ListLocationsRequest request, + ApiCallContext context, + ApiFuture futureResponse) { + PageContext pageContext = + PageContext.create(callable, LIST_LOCATIONS_PAGE_STR_DESC, request, context); + return ListLocationsPagedResponse.createAsync(pageContext, futureResponse); + } + }; + + /** Returns the object with the settings used for calls to createOnlineEvaluator. */ + public UnaryCallSettings + createOnlineEvaluatorSettings() { + return createOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to createOnlineEvaluator. */ + public OperationCallSettings< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings() { + return createOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to getOnlineEvaluator. */ + public UnaryCallSettings + getOnlineEvaluatorSettings() { + return getOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to updateOnlineEvaluator. */ + public UnaryCallSettings + updateOnlineEvaluatorSettings() { + return updateOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to updateOnlineEvaluator. */ + public OperationCallSettings< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings() { + return updateOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to deleteOnlineEvaluator. */ + public UnaryCallSettings + deleteOnlineEvaluatorSettings() { + return deleteOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to deleteOnlineEvaluator. */ + public OperationCallSettings< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings() { + return deleteOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to listOnlineEvaluators. */ + public PagedCallSettings< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings() { + return listOnlineEvaluatorsSettings; + } + + /** Returns the object with the settings used for calls to activateOnlineEvaluator. */ + public UnaryCallSettings + activateOnlineEvaluatorSettings() { + return activateOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to activateOnlineEvaluator. */ + public OperationCallSettings< + ActivateOnlineEvaluatorRequest, OnlineEvaluator, ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings() { + return activateOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to suspendOnlineEvaluator. */ + public UnaryCallSettings + suspendOnlineEvaluatorSettings() { + return suspendOnlineEvaluatorSettings; + } + + /** Returns the object with the settings used for calls to suspendOnlineEvaluator. */ + public OperationCallSettings< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings() { + return suspendOnlineEvaluatorOperationSettings; + } + + /** Returns the object with the settings used for calls to listLocations. */ + public PagedCallSettings + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the object with the settings used for calls to getLocation. */ + public UnaryCallSettings getLocationSettings() { + return getLocationSettings; + } + + /** Returns the object with the settings used for calls to setIamPolicy. */ + public UnaryCallSettings setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the object with the settings used for calls to getIamPolicy. */ + public UnaryCallSettings getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the object with the settings used for calls to testIamPermissions. */ + public UnaryCallSettings + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + public OnlineEvaluatorServiceStub createStub() throws IOException { + if (getTransportChannelProvider() + .getTransportName() + .equals(GrpcTransportChannel.getGrpcTransportName())) { + return GrpcOnlineEvaluatorServiceStub.create(this); + } + throw new UnsupportedOperationException( + String.format( + "Transport not supported: %s", getTransportChannelProvider().getTransportName())); + } + + /** Returns the default service name. */ + @Override + public String getServiceName() { + return "aiplatform"; + } + + /** Returns a builder for the default ExecutorProvider for this service. */ + public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { + return InstantiatingExecutorProvider.newBuilder(); + } + + /** Returns the default service endpoint. */ + @ObsoleteApi("Use getEndpoint() instead") + public static String getDefaultEndpoint() { + return "aiplatform.googleapis.com:443"; + } + + /** Returns the default mTLS service endpoint. */ + public static String getDefaultMtlsEndpoint() { + return "aiplatform.mtls.googleapis.com:443"; + } + + /** Returns the default service scopes. */ + public static List getDefaultServiceScopes() { + return DEFAULT_SERVICE_SCOPES; + } + + /** Returns a builder for the default credentials for this service. */ + public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { + return GoogleCredentialsProvider.newBuilder() + .setScopesToApply(DEFAULT_SERVICE_SCOPES) + .setUseJwtAccessWithScope(true); + } + + /** Returns a builder for the default ChannelProvider for this service. */ + public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { + return InstantiatingGrpcChannelProvider.newBuilder() + .setMaxInboundMessageSize(Integer.MAX_VALUE); + } + + public static TransportChannelProvider defaultTransportChannelProvider() { + return defaultGrpcTransportProviderBuilder().build(); + } + + public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { + return ApiClientHeaderProvider.newBuilder() + .setGeneratedLibToken( + "gapic", GaxProperties.getLibraryVersion(OnlineEvaluatorServiceStubSettings.class)) + .setTransportToken( + GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder() { + return Builder.createDefault(); + } + + /** Returns a new builder for this class. */ + public static Builder newBuilder(ClientContext clientContext) { + return new Builder(clientContext); + } + + /** Returns a builder containing all the values of this settings class. */ + public Builder toBuilder() { + return new Builder(this); + } + + protected OnlineEvaluatorServiceStubSettings(Builder settingsBuilder) throws IOException { + super(settingsBuilder); + + createOnlineEvaluatorSettings = settingsBuilder.createOnlineEvaluatorSettings().build(); + createOnlineEvaluatorOperationSettings = + settingsBuilder.createOnlineEvaluatorOperationSettings().build(); + getOnlineEvaluatorSettings = settingsBuilder.getOnlineEvaluatorSettings().build(); + updateOnlineEvaluatorSettings = settingsBuilder.updateOnlineEvaluatorSettings().build(); + updateOnlineEvaluatorOperationSettings = + settingsBuilder.updateOnlineEvaluatorOperationSettings().build(); + deleteOnlineEvaluatorSettings = settingsBuilder.deleteOnlineEvaluatorSettings().build(); + deleteOnlineEvaluatorOperationSettings = + settingsBuilder.deleteOnlineEvaluatorOperationSettings().build(); + listOnlineEvaluatorsSettings = settingsBuilder.listOnlineEvaluatorsSettings().build(); + activateOnlineEvaluatorSettings = settingsBuilder.activateOnlineEvaluatorSettings().build(); + activateOnlineEvaluatorOperationSettings = + settingsBuilder.activateOnlineEvaluatorOperationSettings().build(); + suspendOnlineEvaluatorSettings = settingsBuilder.suspendOnlineEvaluatorSettings().build(); + suspendOnlineEvaluatorOperationSettings = + settingsBuilder.suspendOnlineEvaluatorOperationSettings().build(); + listLocationsSettings = settingsBuilder.listLocationsSettings().build(); + getLocationSettings = settingsBuilder.getLocationSettings().build(); + setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); + getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); + testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); + } + + @Override + protected LibraryMetadata getLibraryMetadata() { + return LibraryMetadata.newBuilder() + .setArtifactName("com.google.cloud:google-cloud-aiplatform") + .setRepository("googleapis/google-cloud-java") + .setVersion(Version.VERSION) + .build(); + } + + /** Builder for OnlineEvaluatorServiceStubSettings. */ + public static class Builder + extends StubSettings.Builder { + private final ImmutableList> unaryMethodSettingsBuilders; + private final UnaryCallSettings.Builder + createOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings; + private final UnaryCallSettings.Builder + getOnlineEvaluatorSettings; + private final UnaryCallSettings.Builder + updateOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings; + private final UnaryCallSettings.Builder + deleteOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings; + private final PagedCallSettings.Builder< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings; + private final UnaryCallSettings.Builder + activateOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + ActivateOnlineEvaluatorRequest, + OnlineEvaluator, + ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings; + private final UnaryCallSettings.Builder + suspendOnlineEvaluatorSettings; + private final OperationCallSettings.Builder< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings; + private final PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings; + private final UnaryCallSettings.Builder getLocationSettings; + private final UnaryCallSettings.Builder setIamPolicySettings; + private final UnaryCallSettings.Builder getIamPolicySettings; + private final UnaryCallSettings.Builder + testIamPermissionsSettings; + private static final ImmutableMap> + RETRYABLE_CODE_DEFINITIONS; + + static { + ImmutableMap.Builder> definitions = + ImmutableMap.builder(); + definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); + RETRYABLE_CODE_DEFINITIONS = definitions.build(); + } + + private static final ImmutableMap RETRY_PARAM_DEFINITIONS; + + static { + ImmutableMap.Builder definitions = ImmutableMap.builder(); + RetrySettings settings = null; + settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); + definitions.put("no_retry_params", settings); + RETRY_PARAM_DEFINITIONS = definitions.build(); + } + + protected Builder() { + this(((ClientContext) null)); + } + + protected Builder(ClientContext clientContext) { + super(clientContext); + + createOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + createOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + getOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + updateOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + deleteOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + deleteOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + listOnlineEvaluatorsSettings = + PagedCallSettings.newBuilder(LIST_ONLINE_EVALUATORS_PAGE_STR_FACT); + activateOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + activateOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + suspendOnlineEvaluatorSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + suspendOnlineEvaluatorOperationSettings = OperationCallSettings.newBuilder(); + listLocationsSettings = PagedCallSettings.newBuilder(LIST_LOCATIONS_PAGE_STR_FACT); + getLocationSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createOnlineEvaluatorSettings, + getOnlineEvaluatorSettings, + updateOnlineEvaluatorSettings, + deleteOnlineEvaluatorSettings, + listOnlineEvaluatorsSettings, + activateOnlineEvaluatorSettings, + suspendOnlineEvaluatorSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + initDefaults(this); + } + + protected Builder(OnlineEvaluatorServiceStubSettings settings) { + super(settings); + + createOnlineEvaluatorSettings = settings.createOnlineEvaluatorSettings.toBuilder(); + createOnlineEvaluatorOperationSettings = + settings.createOnlineEvaluatorOperationSettings.toBuilder(); + getOnlineEvaluatorSettings = settings.getOnlineEvaluatorSettings.toBuilder(); + updateOnlineEvaluatorSettings = settings.updateOnlineEvaluatorSettings.toBuilder(); + updateOnlineEvaluatorOperationSettings = + settings.updateOnlineEvaluatorOperationSettings.toBuilder(); + deleteOnlineEvaluatorSettings = settings.deleteOnlineEvaluatorSettings.toBuilder(); + deleteOnlineEvaluatorOperationSettings = + settings.deleteOnlineEvaluatorOperationSettings.toBuilder(); + listOnlineEvaluatorsSettings = settings.listOnlineEvaluatorsSettings.toBuilder(); + activateOnlineEvaluatorSettings = settings.activateOnlineEvaluatorSettings.toBuilder(); + activateOnlineEvaluatorOperationSettings = + settings.activateOnlineEvaluatorOperationSettings.toBuilder(); + suspendOnlineEvaluatorSettings = settings.suspendOnlineEvaluatorSettings.toBuilder(); + suspendOnlineEvaluatorOperationSettings = + settings.suspendOnlineEvaluatorOperationSettings.toBuilder(); + listLocationsSettings = settings.listLocationsSettings.toBuilder(); + getLocationSettings = settings.getLocationSettings.toBuilder(); + setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); + getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); + testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); + + unaryMethodSettingsBuilders = + ImmutableList.>of( + createOnlineEvaluatorSettings, + getOnlineEvaluatorSettings, + updateOnlineEvaluatorSettings, + deleteOnlineEvaluatorSettings, + listOnlineEvaluatorsSettings, + activateOnlineEvaluatorSettings, + suspendOnlineEvaluatorSettings, + listLocationsSettings, + getLocationSettings, + setIamPolicySettings, + getIamPolicySettings, + testIamPermissionsSettings); + } + + private static Builder createDefault() { + Builder builder = new Builder(((ClientContext) null)); + + builder.setTransportChannelProvider(defaultTransportChannelProvider()); + builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); + builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); + builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); + builder.setSwitchToMtlsEndpointAllowed(true); + + return initDefaults(builder); + } + + private static Builder initDefaults(Builder builder) { + builder + .createOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .updateOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .deleteOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listOnlineEvaluatorsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .activateOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .suspendOnlineEvaluatorSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .listLocationsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getLocationSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .setIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .getIamPolicySettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .testIamPermissionsSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + + builder + .createOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OnlineEvaluator.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + CreateOnlineEvaluatorOperationMetadata.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 + .updateOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OnlineEvaluator.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + UpdateOnlineEvaluatorOperationMetadata.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 + .deleteOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Empty.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + DeleteOnlineEvaluatorOperationMetadata.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 + .activateOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OnlineEvaluator.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + ActivateOnlineEvaluatorOperationMetadata.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 + .suspendOnlineEvaluatorOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(OnlineEvaluator.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create( + SuspendOnlineEvaluatorOperationMetadata.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())); + + return builder; + } + + /** + * Applies the given settings updater function to all of the unary API methods in this service. + * + *

            Note: This method does not support applying settings to streaming methods. + */ + public Builder applyToAllUnaryMethods( + ApiFunction, Void> settingsUpdater) { + super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); + return this; + } + + public ImmutableList> unaryMethodSettingsBuilders() { + return unaryMethodSettingsBuilders; + } + + /** Returns the builder for the settings used for calls to createOnlineEvaluator. */ + public UnaryCallSettings.Builder + createOnlineEvaluatorSettings() { + return createOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to createOnlineEvaluator. */ + public OperationCallSettings.Builder< + CreateOnlineEvaluatorRequest, OnlineEvaluator, CreateOnlineEvaluatorOperationMetadata> + createOnlineEvaluatorOperationSettings() { + return createOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to getOnlineEvaluator. */ + public UnaryCallSettings.Builder + getOnlineEvaluatorSettings() { + return getOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to updateOnlineEvaluator. */ + public UnaryCallSettings.Builder + updateOnlineEvaluatorSettings() { + return updateOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to updateOnlineEvaluator. */ + public OperationCallSettings.Builder< + UpdateOnlineEvaluatorRequest, OnlineEvaluator, UpdateOnlineEvaluatorOperationMetadata> + updateOnlineEvaluatorOperationSettings() { + return updateOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to deleteOnlineEvaluator. */ + public UnaryCallSettings.Builder + deleteOnlineEvaluatorSettings() { + return deleteOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to deleteOnlineEvaluator. */ + public OperationCallSettings.Builder< + DeleteOnlineEvaluatorRequest, Empty, DeleteOnlineEvaluatorOperationMetadata> + deleteOnlineEvaluatorOperationSettings() { + return deleteOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to listOnlineEvaluators. */ + public PagedCallSettings.Builder< + ListOnlineEvaluatorsRequest, + ListOnlineEvaluatorsResponse, + ListOnlineEvaluatorsPagedResponse> + listOnlineEvaluatorsSettings() { + return listOnlineEvaluatorsSettings; + } + + /** Returns the builder for the settings used for calls to activateOnlineEvaluator. */ + public UnaryCallSettings.Builder + activateOnlineEvaluatorSettings() { + return activateOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to activateOnlineEvaluator. */ + public OperationCallSettings.Builder< + ActivateOnlineEvaluatorRequest, + OnlineEvaluator, + ActivateOnlineEvaluatorOperationMetadata> + activateOnlineEvaluatorOperationSettings() { + return activateOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to suspendOnlineEvaluator. */ + public UnaryCallSettings.Builder + suspendOnlineEvaluatorSettings() { + return suspendOnlineEvaluatorSettings; + } + + /** Returns the builder for the settings used for calls to suspendOnlineEvaluator. */ + public OperationCallSettings.Builder< + SuspendOnlineEvaluatorRequest, OnlineEvaluator, SuspendOnlineEvaluatorOperationMetadata> + suspendOnlineEvaluatorOperationSettings() { + return suspendOnlineEvaluatorOperationSettings; + } + + /** Returns the builder for the settings used for calls to listLocations. */ + public PagedCallSettings.Builder< + ListLocationsRequest, ListLocationsResponse, ListLocationsPagedResponse> + listLocationsSettings() { + return listLocationsSettings; + } + + /** Returns the builder for the settings used for calls to getLocation. */ + public UnaryCallSettings.Builder getLocationSettings() { + return getLocationSettings; + } + + /** Returns the builder for the settings used for calls to setIamPolicy. */ + public UnaryCallSettings.Builder setIamPolicySettings() { + return setIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to getIamPolicy. */ + public UnaryCallSettings.Builder getIamPolicySettings() { + return getIamPolicySettings; + } + + /** Returns the builder for the settings used for calls to testIamPermissions. */ + public UnaryCallSettings.Builder + testIamPermissionsSettings() { + return testIamPermissionsSettings; + } + + @Override + public OnlineEvaluatorServiceStubSettings build() throws IOException { + return new OnlineEvaluatorServiceStubSettings(this); + } + } +} 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 decbcfb30e3f..d03da68c087f 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 @@ -521,6 +521,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.ActiveLearningConfig", "queryAllDeclaredConstructors": true, @@ -665,6 +701,60 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentData", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentData$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentEvent", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.AgentEvent$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.AggregationOutput", "queryAllDeclaredConstructors": true, @@ -3302,6 +3392,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ConversationTurn", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ConversationTurn$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CopyModelOperationMetadata", "queryAllDeclaredConstructors": true, @@ -4391,6 +4499,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CreatePersistentResourceOperationMetadata", "queryAllDeclaredConstructors": true, @@ -4859,6 +5003,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.CustomJob", "queryAllDeclaredConstructors": true, @@ -5903,6 +6083,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.DeleteOperationMetadata", "queryAllDeclaredConstructors": true, @@ -7353,7 +7569,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Event", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7362,7 +7578,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Event$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7371,7 +7587,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Event$Type", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7380,7 +7596,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.EventActions", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7389,7 +7605,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.EventActions$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentConfig$Tools", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7398,7 +7614,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.EventMetadata", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentConfig$Tools$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7407,7 +7623,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.EventMetadata$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7416,7 +7632,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInput", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$AgentEvent", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7425,7 +7641,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInput$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$AgentEvent$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7434,7 +7650,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInstance", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7443,7 +7659,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInstance$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$ConversationTurn", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7452,7 +7668,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$ConversationTurn$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7461,7 +7677,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Events", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7470,7 +7686,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchResults", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Events$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7479,7 +7695,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchResults$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Tools", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7488,7 +7704,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchSpec", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$DeprecatedAgentData$Tools$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7497,7 +7713,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$InstanceData", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7506,7 +7722,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Example", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$InstanceData$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7515,7 +7731,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Example$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$InstanceData$Contents", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7524,7 +7740,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExampleStore", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$InstanceData$Contents$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7533,7 +7749,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExampleStore$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$MapInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7542,7 +7758,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExampleStoreConfig", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationInstance$MapInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7551,7 +7767,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExampleStoreConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7560,7 +7776,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Examples", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7569,7 +7785,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Examples$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig$CustomCodeParserConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7578,7 +7794,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Examples$ExampleGcsSource", + "name": "com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig$CustomCodeParserConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7587,7 +7803,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Examples$ExampleGcsSource$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.Event", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7596,7 +7812,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Examples$ExampleGcsSource$DataFormat", + "name": "com.google.cloud.aiplatform.v1beta1.Event$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7605,7 +7821,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter", + "name": "com.google.cloud.aiplatform.v1beta1.Event$Type", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7614,7 +7830,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter$ArrayOperator", + "name": "com.google.cloud.aiplatform.v1beta1.EventActions", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7623,7 +7839,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EventActions$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7632,7 +7848,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExamplesOverride", + "name": "com.google.cloud.aiplatform.v1beta1.EventMetadata", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7641,7 +7857,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExamplesOverride$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.EventMetadata$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7650,7 +7866,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExamplesOverride$DataFormat", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInput", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7659,7 +7875,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInput$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7668,7 +7884,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInstance", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7677,7 +7893,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExecutableCode", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchInstance$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7686,7 +7902,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExecutableCode$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7695,7 +7911,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExecutableCode$Language", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchMetricValue$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7704,7 +7920,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExecuteExtensionRequest", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchResults", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7713,7 +7929,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExecuteExtensionRequest$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchResults$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7722,7 +7938,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExecuteExtensionResponse", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7731,7 +7947,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ExecuteExtensionResponse$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ExactMatchSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7740,7 +7956,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Execution", + "name": "com.google.cloud.aiplatform.v1beta1.Example", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -7749,7 +7965,241 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Execution$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.Example$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExampleStore", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExampleStore$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExampleStoreConfig", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExampleStoreConfig$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Examples", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Examples$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Examples$ExampleGcsSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Examples$ExampleGcsSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Examples$ExampleGcsSource$DataFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter$ArrayOperator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExamplesArrayFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExamplesOverride", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExamplesOverride$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExamplesOverride$DataFormat", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExamplesRestrictionsNamespace$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExecutableCode", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExecutableCode$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExecutableCode$Language", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExecuteExtensionRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExecuteExtensionRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExecuteExtensionResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ExecuteExtensionResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Execution", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Execution$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -10592,6 +11042,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.GenerateMemoriesOperationMetadata", "queryAllDeclaredConstructors": true, @@ -11681,6 +12167,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.GetPersistentResourceRequest", "queryAllDeclaredConstructors": true, @@ -14607,7 +15111,43 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest", + "name": "com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14616,7 +15156,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsRequest$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14625,7 +15165,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14634,7 +15174,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNasTrialDetailsResponse$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14643,7 +15183,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14652,7 +15192,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsRequest$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14661,7 +15201,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14670,7 +15210,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookExecutionJobsResponse$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14679,7 +15219,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesRequest", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14688,7 +15228,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesRequest$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14697,7 +15237,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesResponse", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14706,7 +15246,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimeTemplatesResponse$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14715,7 +15255,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesRequest", + "name": "com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14724,7 +15264,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesRequest$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14733,7 +15273,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesResponse", + "name": "com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -14742,7 +15282,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.ListNotebookRuntimesResponse$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -15848,6 +16388,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricMetadata$ScoreRange", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricMetadata$ScoreRange$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.MetricResult", "queryAllDeclaredConstructors": true, @@ -15866,6 +16442,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricSource", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.MetricSource$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.MetricxInput", "queryAllDeclaredConstructors": true, @@ -17901,7 +18495,187 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$NumericFilter$Operator", + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$NumericFilter$Operator", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$Parameters", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$Parameters$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$StringFilter", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$StringFilter$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$ContentValidationStats", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$ContentValidationStats$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$RecordError", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$RecordError$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$RecordError$RecordErrorType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighbors", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighbors$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighbors$Neighbor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighbors$Neighbor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Neighbor", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Neighbor$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NetworkSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NetworkSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.NfsMount", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17910,7 +18684,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$Parameters", + "name": "com.google.cloud.aiplatform.v1beta1.NfsMount$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17919,7 +18693,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$Parameters$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookEucConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17928,7 +18702,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$StringFilter", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookEucConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17937,7 +18711,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborQuery$StringFilter$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17946,7 +18720,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17955,7 +18729,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17964,7 +18738,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$ContentValidationStats", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17973,7 +18747,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$ContentValidationStats$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17982,7 +18756,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$RecordError", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -17991,7 +18765,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$RecordError$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DirectNotebookSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18000,7 +18774,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighborSearchOperationMetadata$RecordError$RecordErrorType", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DirectNotebookSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18009,7 +18783,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighbors", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$GcsNotebookSource", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18018,7 +18792,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighbors$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$GcsNotebookSource$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18027,7 +18801,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighbors$Neighbor", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18036,7 +18810,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NearestNeighbors$Neighbor$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18045,7 +18819,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Neighbor", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18054,7 +18828,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.Neighbor$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18063,7 +18837,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NetworkSpec", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18072,7 +18846,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NetworkSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18081,7 +18855,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NfsMount", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18090,7 +18864,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NfsMount$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$HealthState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18099,7 +18873,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookEucConfig", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$RuntimeState", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18108,7 +18882,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookEucConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18117,7 +18891,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18126,7 +18900,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplateRef", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18135,7 +18909,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplateRef$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18144,7 +18918,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$CustomEnvironmentSpec$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeType", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18153,7 +18927,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18162,7 +18936,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DataformRepositorySource$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18171,7 +18945,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DirectNotebookSource", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18180,7 +18954,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$DirectNotebookSource$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18189,7 +18963,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$GcsNotebookSource", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18198,7 +18972,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$GcsNotebookSource$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18207,7 +18981,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$NumericPredicate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18216,7 +18990,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJob$WorkbenchRuntime$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$NumericPredicate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18225,7 +18999,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookExecutionJobView", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$NumericPredicate$ComparisonOperator", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18234,7 +19008,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$OpenTelemetry", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18243,7 +19017,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookIdleShutdownConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$OpenTelemetry$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18252,7 +19026,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$TraceScope", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18261,7 +19035,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$TraceScope$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18270,7 +19044,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$HealthState", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$TraceScope$Predicate", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18279,7 +19053,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntime$RuntimeState", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$CloudObservability$TraceScope$Predicate$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18288,7 +19062,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Config", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18297,7 +19071,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplate$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Config$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18306,7 +19080,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplateRef", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Config$RandomSampling", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18315,7 +19089,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeTemplateRef$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$Config$RandomSampling$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18324,7 +19098,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookRuntimeType", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$State", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18333,7 +19107,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$StateDetails", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -18342,7 +19116,7 @@ "allPublicClasses": true }, { - "name": "com.google.cloud.aiplatform.v1beta1.NotebookSoftwareConfig$Builder", + "name": "com.google.cloud.aiplatform.v1beta1.OnlineEvaluator$StateDetails$Builder", "queryAllDeclaredConstructors": true, "queryAllPublicConstructors": true, "queryAllDeclaredMethods": true, @@ -23030,6 +23804,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Content", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Content$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Content$Property", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Content$Property$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.Rubric$Importance", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInput", "queryAllDeclaredConstructors": true, @@ -23120,6 +23957,69 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec$RubricContentType", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGroup", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricGroup$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricVerdict", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.RubricVerdict$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.RuntimeArtifact", "queryAllDeclaredConstructors": true, @@ -25667,6 +26567,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.SyncFeatureViewRequest", "queryAllDeclaredConstructors": true, @@ -28151,6 +29087,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.aiplatform.v1beta1.UpdatePersistentResourceOperationMetadata", "queryAllDeclaredConstructors": true, 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 9170af34caae..dfe8f955ec3b 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 @@ -114,6 +114,9 @@ public void evaluateInstancesTest() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllMetrics(new ArrayList()) + .addAllMetricSources(new ArrayList()) + .setInstance(EvaluationInstance.newBuilder().build()) .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); @@ -183,6 +186,9 @@ public void evaluateInstancesTest() throws Exception { request.getRubricBasedInstructionFollowingInput(), actualRequest.getRubricBasedInstructionFollowingInput()); Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); + Assert.assertEquals(request.getMetricsList(), actualRequest.getMetricsList()); + Assert.assertEquals(request.getMetricSourcesList(), actualRequest.getMetricSourcesList()); + Assert.assertEquals(request.getInstance(), actualRequest.getInstance()); Assert.assertEquals(request.getAutoraterConfig(), actualRequest.getAutoraterConfig()); Assert.assertTrue( channelProvider.isHeaderSent( @@ -199,6 +205,9 @@ public void evaluateInstancesExceptionTest() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllMetrics(new ArrayList()) + .addAllMetricSources(new ArrayList()) + .setInstance(EvaluationInstance.newBuilder().build()) .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); client.evaluateInstances(request); @@ -273,6 +282,65 @@ public void evaluateDatasetExceptionTest() throws Exception { } } + @Test + public void generateInstanceRubricsTest() throws Exception { + GenerateInstanceRubricsResponse expectedResponse = + GenerateInstanceRubricsResponse.newBuilder() + .addAllGeneratedRubrics(new ArrayList()) + .build(); + mockEvaluationService.addResponse(expectedResponse); + + GenerateInstanceRubricsRequest request = + GenerateInstanceRubricsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build()) + .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build()) + .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build()) + .build(); + + GenerateInstanceRubricsResponse actualResponse = client.generateInstanceRubrics(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockEvaluationService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GenerateInstanceRubricsRequest actualRequest = + ((GenerateInstanceRubricsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getLocation(), actualRequest.getLocation()); + Assert.assertEquals(request.getContentsList(), actualRequest.getContentsList()); + Assert.assertEquals( + request.getPredefinedRubricGenerationSpec(), + actualRequest.getPredefinedRubricGenerationSpec()); + Assert.assertEquals(request.getRubricGenerationSpec(), actualRequest.getRubricGenerationSpec()); + Assert.assertEquals(request.getAgentConfig(), actualRequest.getAgentConfig()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void generateInstanceRubricsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockEvaluationService.addException(exception); + + try { + GenerateInstanceRubricsRequest request = + GenerateInstanceRubricsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build()) + .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build()) + .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build()) + .build(); + client.generateInstanceRubrics(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + @Test public void listLocationsTest() throws Exception { Location responsesElement = Location.newBuilder().build(); diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEvaluationServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEvaluationServiceImpl.java index e0278b096f25..940506a0a6a4 100644 --- a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEvaluationServiceImpl.java +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockEvaluationServiceImpl.java @@ -101,4 +101,27 @@ public void evaluateDataset( Exception.class.getName()))); } } + + @Override + public void generateInstanceRubrics( + GenerateInstanceRubricsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof GenerateInstanceRubricsResponse) { + requests.add(request); + responseObserver.onNext(((GenerateInstanceRubricsResponse) 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 GenerateInstanceRubrics, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + GenerateInstanceRubricsResponse.class.getName(), + Exception.class.getName()))); + } + } } diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorService.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorService.java new file mode 100644 index 000000000000..b12beaf97e7a --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorService.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.protobuf.AbstractMessage; +import io.grpc.ServerServiceDefinition; +import java.util.List; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockOnlineEvaluatorService implements MockGrpcService { + private final MockOnlineEvaluatorServiceImpl serviceImpl; + + public MockOnlineEvaluatorService() { + serviceImpl = new MockOnlineEvaluatorServiceImpl(); + } + + @Override + public List getRequests() { + return serviceImpl.getRequests(); + } + + @Override + public void addResponse(AbstractMessage response) { + serviceImpl.addResponse(response); + } + + @Override + public void addException(Exception exception) { + serviceImpl.addException(exception); + } + + @Override + public ServerServiceDefinition getServiceDefinition() { + return serviceImpl.bindService(); + } + + @Override + public void reset() { + serviceImpl.reset(); + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorServiceImpl.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorServiceImpl.java new file mode 100644 index 000000000000..559a4c0bf763 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/MockOnlineEvaluatorServiceImpl.java @@ -0,0 +1,215 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceGrpc.OnlineEvaluatorServiceImplBase; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import io.grpc.stub.StreamObserver; +import java.util.ArrayList; +import java.util.LinkedList; +import java.util.List; +import java.util.Queue; +import javax.annotation.Generated; + +@BetaApi +@Generated("by gapic-generator-java") +public class MockOnlineEvaluatorServiceImpl extends OnlineEvaluatorServiceImplBase { + private List requests; + private Queue responses; + + public MockOnlineEvaluatorServiceImpl() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + public List getRequests() { + return requests; + } + + public void addResponse(AbstractMessage response) { + responses.add(response); + } + + public void setResponses(List responses) { + this.responses = new LinkedList(responses); + } + + public void addException(Exception exception) { + responses.add(exception); + } + + public void reset() { + requests = new ArrayList<>(); + responses = new LinkedList<>(); + } + + @Override + public void createOnlineEvaluator( + CreateOnlineEvaluatorRequest 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 CreateOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void getOnlineEvaluator( + GetOnlineEvaluatorRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof OnlineEvaluator) { + requests.add(request); + responseObserver.onNext(((OnlineEvaluator) 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 GetOnlineEvaluator, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + OnlineEvaluator.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void updateOnlineEvaluator( + UpdateOnlineEvaluatorRequest 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 UpdateOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void deleteOnlineEvaluator( + DeleteOnlineEvaluatorRequest 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 DeleteOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void listOnlineEvaluators( + ListOnlineEvaluatorsRequest request, + StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof ListOnlineEvaluatorsResponse) { + requests.add(request); + responseObserver.onNext(((ListOnlineEvaluatorsResponse) 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 ListOnlineEvaluators, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + ListOnlineEvaluatorsResponse.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void activateOnlineEvaluator( + ActivateOnlineEvaluatorRequest 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 ActivateOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + + @Override + public void suspendOnlineEvaluator( + SuspendOnlineEvaluatorRequest 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 SuspendOnlineEvaluator, expected %s or" + + " %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } +} diff --git a/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClientTest.java b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClientTest.java new file mode 100644 index 000000000000..ea5abd098bc5 --- /dev/null +++ b/java-aiplatform/google-cloud-aiplatform/src/test/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceClientTest.java @@ -0,0 +1,1046 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListLocationsPagedResponse; +import static com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient.ListOnlineEvaluatorsPagedResponse; + +import com.google.api.gax.core.NoCredentialsProvider; +import com.google.api.gax.grpc.GaxGrpcProperties; +import com.google.api.gax.grpc.testing.LocalChannelProvider; +import com.google.api.gax.grpc.testing.MockGrpcService; +import com.google.api.gax.grpc.testing.MockServiceHelper; +import com.google.api.gax.rpc.ApiClientHeaderProvider; +import com.google.api.gax.rpc.InvalidArgumentException; +import com.google.api.gax.rpc.StatusCode; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.collect.Lists; +import com.google.iam.v1.AuditConfig; +import com.google.iam.v1.Binding; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.longrunning.Operation; +import com.google.protobuf.AbstractMessage; +import com.google.protobuf.Any; +import com.google.protobuf.ByteString; +import com.google.protobuf.Empty; +import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; +import io.grpc.StatusRuntimeException; +import java.io.IOException; +import java.util.ArrayList; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.UUID; +import java.util.concurrent.ExecutionException; +import javax.annotation.Generated; +import org.junit.After; +import org.junit.AfterClass; +import org.junit.Assert; +import org.junit.Before; +import org.junit.BeforeClass; +import org.junit.Test; + +@Generated("by gapic-generator-java") +public class OnlineEvaluatorServiceClientTest { + private static MockIAMPolicy mockIAMPolicy; + private static MockLocations mockLocations; + private static MockOnlineEvaluatorService mockOnlineEvaluatorService; + private static MockServiceHelper mockServiceHelper; + private LocalChannelProvider channelProvider; + private OnlineEvaluatorServiceClient client; + + @BeforeClass + public static void startStaticServer() { + mockOnlineEvaluatorService = new MockOnlineEvaluatorService(); + mockLocations = new MockLocations(); + mockIAMPolicy = new MockIAMPolicy(); + mockServiceHelper = + new MockServiceHelper( + UUID.randomUUID().toString(), + Arrays.asList( + mockOnlineEvaluatorService, mockLocations, mockIAMPolicy)); + mockServiceHelper.start(); + } + + @AfterClass + public static void stopServer() { + mockServiceHelper.stop(); + } + + @Before + public void setUp() throws IOException { + mockServiceHelper.reset(); + channelProvider = mockServiceHelper.createChannelProvider(); + OnlineEvaluatorServiceSettings settings = + OnlineEvaluatorServiceSettings.newBuilder() + .setTransportChannelProvider(channelProvider) + .setCredentialsProvider(NoCredentialsProvider.create()) + .build(); + client = OnlineEvaluatorServiceClient.create(settings); + } + + @After + public void tearDown() throws Exception { + client.close(); + } + + @Test + public void createOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + + OnlineEvaluator actualResponse = + client.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOnlineEvaluatorRequest actualRequest = + ((CreateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(onlineEvaluator, actualRequest.getOnlineEvaluator()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + client.createOnlineEvaluatorAsync(parent, onlineEvaluator).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 createOnlineEvaluatorTest2() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + String parent = "parent-995424086"; + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + + OnlineEvaluator actualResponse = + client.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateOnlineEvaluatorRequest actualRequest = + ((CreateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(onlineEvaluator, actualRequest.getOnlineEvaluator()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String parent = "parent-995424086"; + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + client.createOnlineEvaluatorAsync(parent, onlineEvaluator).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 getOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockOnlineEvaluatorService.addResponse(expectedResponse); + + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + + OnlineEvaluator actualResponse = client.getOnlineEvaluator(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOnlineEvaluatorRequest actualRequest = ((GetOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + client.getOnlineEvaluator(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getOnlineEvaluatorTest2() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + mockOnlineEvaluatorService.addResponse(expectedResponse); + + String name = "name3373707"; + + OnlineEvaluator actualResponse = client.getOnlineEvaluator(name); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetOnlineEvaluatorRequest actualRequest = ((GetOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String name = "name3373707"; + client.getOnlineEvaluator(name); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void updateOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("updateOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + + OnlineEvaluator actualResponse = + client.updateOnlineEvaluatorAsync(onlineEvaluator, updateMask).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UpdateOnlineEvaluatorRequest actualRequest = + ((UpdateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(onlineEvaluator, actualRequest.getOnlineEvaluator()); + Assert.assertEquals(updateMask, actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void updateOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + client.updateOnlineEvaluatorAsync(onlineEvaluator, updateMask).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 deleteOnlineEvaluatorTest() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + + client.deleteOnlineEvaluatorAsync(name).get(); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOnlineEvaluatorRequest actualRequest = + ((DeleteOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + client.deleteOnlineEvaluatorAsync(name).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 deleteOnlineEvaluatorTest2() throws Exception { + Empty expectedResponse = Empty.newBuilder().build(); + Operation resultOperation = + Operation.newBuilder() + .setName("deleteOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + String name = "name3373707"; + + client.deleteOnlineEvaluatorAsync(name).get(); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + DeleteOnlineEvaluatorRequest actualRequest = + ((DeleteOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void deleteOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String name = "name3373707"; + client.deleteOnlineEvaluatorAsync(name).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 listOnlineEvaluatorsTest() throws Exception { + OnlineEvaluator responsesElement = OnlineEvaluator.newBuilder().build(); + ListOnlineEvaluatorsResponse expectedResponse = + ListOnlineEvaluatorsResponse.newBuilder() + .setNextPageToken("") + .addAllOnlineEvaluators(Arrays.asList(responsesElement)) + .build(); + mockOnlineEvaluatorService.addResponse(expectedResponse); + + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + + ListOnlineEvaluatorsPagedResponse pagedListResponse = client.listOnlineEvaluators(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOnlineEvaluatorsList().get(0), resources.get(0)); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOnlineEvaluatorsRequest actualRequest = + ((ListOnlineEvaluatorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOnlineEvaluatorsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + client.listOnlineEvaluators(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listOnlineEvaluatorsTest2() throws Exception { + OnlineEvaluator responsesElement = OnlineEvaluator.newBuilder().build(); + ListOnlineEvaluatorsResponse expectedResponse = + ListOnlineEvaluatorsResponse.newBuilder() + .setNextPageToken("") + .addAllOnlineEvaluators(Arrays.asList(responsesElement)) + .build(); + mockOnlineEvaluatorService.addResponse(expectedResponse); + + String parent = "parent-995424086"; + + ListOnlineEvaluatorsPagedResponse pagedListResponse = client.listOnlineEvaluators(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getOnlineEvaluatorsList().get(0), resources.get(0)); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListOnlineEvaluatorsRequest actualRequest = + ((ListOnlineEvaluatorsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listOnlineEvaluatorsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String parent = "parent-995424086"; + client.listOnlineEvaluators(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void activateOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("activateOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + + OnlineEvaluator actualResponse = client.activateOnlineEvaluatorAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ActivateOnlineEvaluatorRequest actualRequest = + ((ActivateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void activateOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + client.activateOnlineEvaluatorAsync(name).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 activateOnlineEvaluatorTest2() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("activateOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + String name = "name3373707"; + + OnlineEvaluator actualResponse = client.activateOnlineEvaluatorAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ActivateOnlineEvaluatorRequest actualRequest = + ((ActivateOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void activateOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String name = "name3373707"; + client.activateOnlineEvaluatorAsync(name).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 suspendOnlineEvaluatorTest() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("suspendOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + + OnlineEvaluator actualResponse = client.suspendOnlineEvaluatorAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SuspendOnlineEvaluatorRequest actualRequest = + ((SuspendOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void suspendOnlineEvaluatorExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + client.suspendOnlineEvaluatorAsync(name).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 suspendOnlineEvaluatorTest2() throws Exception { + OnlineEvaluator expectedResponse = + OnlineEvaluator.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString()) + .setAgentResource("agentResource1282446899") + .addAllMetricSources(new ArrayList()) + .setConfig(OnlineEvaluator.Config.newBuilder().build()) + .addAllStateDetails(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setDisplayName("displayName1714148973") + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("suspendOnlineEvaluatorTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockOnlineEvaluatorService.addResponse(resultOperation); + + String name = "name3373707"; + + OnlineEvaluator actualResponse = client.suspendOnlineEvaluatorAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockOnlineEvaluatorService.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SuspendOnlineEvaluatorRequest actualRequest = + ((SuspendOnlineEvaluatorRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void suspendOnlineEvaluatorExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockOnlineEvaluatorService.addException(exception); + + try { + String name = "name3373707"; + client.suspendOnlineEvaluatorAsync(name).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 listLocationsTest() throws Exception { + Location responsesElement = Location.newBuilder().build(); + ListLocationsResponse expectedResponse = + ListLocationsResponse.newBuilder() + .setNextPageToken("") + .addAllLocations(Arrays.asList(responsesElement)) + .build(); + mockLocations.addResponse(expectedResponse); + + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + + ListLocationsPagedResponse pagedListResponse = client.listLocations(request); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getLocationsList().get(0), resources.get(0)); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListLocationsRequest actualRequest = ((ListLocationsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertEquals(request.getFilter(), actualRequest.getFilter()); + Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); + Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listLocationsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + client.listLocations(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getLocationTest() throws Exception { + Location expectedResponse = + Location.newBuilder() + .setName("name3373707") + .setLocationId("locationId1541836720") + .setDisplayName("displayName1714148973") + .putAllLabels(new HashMap()) + .setMetadata(Any.newBuilder().build()) + .build(); + mockLocations.addResponse(expectedResponse); + + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + + Location actualResponse = client.getLocation(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockLocations.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetLocationRequest actualRequest = ((GetLocationRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getName(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getLocationExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockLocations.addException(exception); + + try { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + client.getLocation(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void setIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + + Policy actualResponse = client.setIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPolicy(), actualRequest.getPolicy()); + Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void setIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + client.setIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void getIamPolicyTest() throws Exception { + Policy expectedResponse = + Policy.newBuilder() + .setVersion(351608024) + .addAllBindings(new ArrayList()) + .addAllAuditConfigs(new ArrayList()) + .setEtag(ByteString.EMPTY) + .build(); + mockIAMPolicy.addResponse(expectedResponse); + + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + + Policy actualResponse = client.getIamPolicy(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getOptions(), actualRequest.getOptions()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void getIamPolicyExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + client.getIamPolicy(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void testIamPermissionsTest() throws Exception { + TestIamPermissionsResponse expectedResponse = + TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); + mockIAMPolicy.addResponse(expectedResponse); + + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName("[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + + TestIamPermissionsResponse actualResponse = client.testIamPermissions(request); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockIAMPolicy.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); + + Assert.assertEquals(request.getResource(), actualRequest.getResource()); + Assert.assertEquals(request.getPermissionsList(), actualRequest.getPermissionsList()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void testIamPermissionsExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockIAMPolicy.addException(exception); + + try { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + client.testIamPermissions(request); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } +} diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java index 5639874a9da4..b88922e7b20a 100644 --- a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationServiceGrpc.java @@ -127,6 +127,57 @@ private EvaluationServiceGrpc() {} return getEvaluateDatasetMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + getGenerateInstanceRubricsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GenerateInstanceRubrics", + requestType = com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + getGenerateInstanceRubricsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + getGenerateInstanceRubricsMethod; + if ((getGenerateInstanceRubricsMethod = EvaluationServiceGrpc.getGenerateInstanceRubricsMethod) + == null) { + synchronized (EvaluationServiceGrpc.class) { + if ((getGenerateInstanceRubricsMethod = + EvaluationServiceGrpc.getGenerateInstanceRubricsMethod) + == null) { + EvaluationServiceGrpc.getGenerateInstanceRubricsMethod = + getGenerateInstanceRubricsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "GenerateInstanceRubrics")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new EvaluationServiceMethodDescriptorSupplier("GenerateInstanceRubrics")) + .build(); + } + } + } + return getGenerateInstanceRubricsMethod; + } + /** Creates a new async stub that supports all call types for the service */ public static EvaluationServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = @@ -218,6 +269,26 @@ default void evaluateDataset( io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( getEvaluateDatasetMethod(), responseObserver); } + + /** + * + * + *
            +     * Generates rubrics for a given prompt.
            +     * A rubric represents a single testable criterion for evaluation.
            +     * One input prompt could have multiple rubrics
            +     * This RPC allows users to get suggested rubrics based on provided prompt,
            +     * which can then be reviewed and used for subsequent evaluations.
            +     * 
            + */ + default void generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGenerateInstanceRubricsMethod(), responseObserver); + } } /** @@ -287,6 +358,28 @@ public void evaluateDataset( request, responseObserver); } + + /** + * + * + *
            +     * Generates rubrics for a given prompt.
            +     * A rubric represents a single testable criterion for evaluation.
            +     * One input prompt could have multiple rubrics
            +     * This RPC allows users to get suggested rubrics based on provided prompt,
            +     * which can then be reviewed and used for subsequent evaluations.
            +     * 
            + */ + public void generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGenerateInstanceRubricsMethod(), getCallOptions()), + request, + responseObserver); + } } /** @@ -336,6 +429,25 @@ public com.google.longrunning.Operation evaluateDataset( return io.grpc.stub.ClientCalls.blockingV2UnaryCall( getChannel(), getEvaluateDatasetMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Generates rubrics for a given prompt.
            +     * A rubric represents a single testable criterion for evaluation.
            +     * One input prompt could have multiple rubrics
            +     * This RPC allows users to get suggested rubrics based on provided prompt,
            +     * which can then be reviewed and used for subsequent evaluations.
            +     * 
            + */ + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGenerateInstanceRubricsMethod(), getCallOptions(), request); + } } /** @@ -383,6 +495,24 @@ public com.google.longrunning.Operation evaluateDataset( return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getEvaluateDatasetMethod(), getCallOptions(), request); } + + /** + * + * + *
            +     * Generates rubrics for a given prompt.
            +     * A rubric represents a single testable criterion for evaluation.
            +     * One input prompt could have multiple rubrics
            +     * This RPC allows users to get suggested rubrics based on provided prompt,
            +     * which can then be reviewed and used for subsequent evaluations.
            +     * 
            + */ + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGenerateInstanceRubricsMethod(), getCallOptions(), request); + } } /** @@ -430,10 +560,30 @@ protected EvaluationServiceFutureStub build( return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getEvaluateDatasetMethod(), getCallOptions()), request); } + + /** + * + * + *
            +     * Generates rubrics for a given prompt.
            +     * A rubric represents a single testable criterion for evaluation.
            +     * One input prompt could have multiple rubrics
            +     * This RPC allows users to get suggested rubrics based on provided prompt,
            +     * which can then be reviewed and used for subsequent evaluations.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse> + generateInstanceRubrics( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGenerateInstanceRubricsMethod(), getCallOptions()), request); + } } private static final int METHODID_EVALUATE_INSTANCES = 0; private static final int METHODID_EVALUATE_DATASET = 1; + private static final int METHODID_GENERATE_INSTANCE_RUBRICS = 2; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -464,6 +614,13 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_GENERATE_INSTANCE_RUBRICS: + serviceImpl.generateInstanceRubrics( + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse>) + responseObserver); + break; default: throw new AssertionError(); } @@ -495,6 +652,13 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.cloud.aiplatform.v1beta1.EvaluateDatasetRequest, com.google.longrunning.Operation>(service, METHODID_EVALUATE_DATASET))) + .addMethod( + getGenerateInstanceRubricsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse>( + service, METHODID_GENERATE_INSTANCE_RUBRICS))) .build(); } @@ -548,6 +712,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .setSchemaDescriptor(new EvaluationServiceFileDescriptorSupplier()) .addMethod(getEvaluateInstancesMethod()) .addMethod(getEvaluateDatasetMethod()) + .addMethod(getGenerateInstanceRubricsMethod()) .build(); } } diff --git a/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceGrpc.java b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceGrpc.java new file mode 100644 index 000000000000..31e6513354d1 --- /dev/null +++ b/java-aiplatform/grpc-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceGrpc.java @@ -0,0 +1,1256 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.aiplatform.v1beta1; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
            + * This service is used to create and manage Vertex AI OnlineEvaluators.
            + * 
            + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class OnlineEvaluatorServiceGrpc { + + private OnlineEvaluatorServiceGrpc() {} + + public static final java.lang.String SERVICE_NAME = + "google.cloud.aiplatform.v1beta1.OnlineEvaluatorService"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getCreateOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getCreateOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getCreateOnlineEvaluatorMethod; + if ((getCreateOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getCreateOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getCreateOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getCreateOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getCreateOnlineEvaluatorMethod = + getCreateOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "CreateOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "CreateOnlineEvaluator")) + .build(); + } + } + } + return getCreateOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator> + getGetOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator> + getGetOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator> + getGetOnlineEvaluatorMethod; + if ((getGetOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getGetOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getGetOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getGetOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getGetOnlineEvaluatorMethod = + getGetOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator + .getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier("GetOnlineEvaluator")) + .build(); + } + } + } + return getGetOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getUpdateOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getUpdateOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getUpdateOnlineEvaluatorMethod; + if ((getUpdateOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getUpdateOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getUpdateOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getUpdateOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getUpdateOnlineEvaluatorMethod = + getUpdateOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "UpdateOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "UpdateOnlineEvaluator")) + .build(); + } + } + } + return getUpdateOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getDeleteOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getDeleteOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getDeleteOnlineEvaluatorMethod; + if ((getDeleteOnlineEvaluatorMethod = OnlineEvaluatorServiceGrpc.getDeleteOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getDeleteOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getDeleteOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getDeleteOnlineEvaluatorMethod = + getDeleteOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DeleteOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "DeleteOnlineEvaluator")) + .build(); + } + } + } + return getDeleteOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + getListOnlineEvaluatorsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListOnlineEvaluators", + requestType = com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.class, + responseType = com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + getListOnlineEvaluatorsMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + getListOnlineEvaluatorsMethod; + if ((getListOnlineEvaluatorsMethod = OnlineEvaluatorServiceGrpc.getListOnlineEvaluatorsMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getListOnlineEvaluatorsMethod = + OnlineEvaluatorServiceGrpc.getListOnlineEvaluatorsMethod) + == null) { + OnlineEvaluatorServiceGrpc.getListOnlineEvaluatorsMethod = + getListOnlineEvaluatorsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ListOnlineEvaluators")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "ListOnlineEvaluators")) + .build(); + } + } + } + return getListOnlineEvaluatorsMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getActivateOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ActivateOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getActivateOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getActivateOnlineEvaluatorMethod; + if ((getActivateOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getActivateOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getActivateOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getActivateOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getActivateOnlineEvaluatorMethod = + getActivateOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "ActivateOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "ActivateOnlineEvaluator")) + .build(); + } + } + } + return getActivateOnlineEvaluatorMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getSuspendOnlineEvaluatorMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SuspendOnlineEvaluator", + requestType = com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getSuspendOnlineEvaluatorMethod() { + io.grpc.MethodDescriptor< + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest, + com.google.longrunning.Operation> + getSuspendOnlineEvaluatorMethod; + if ((getSuspendOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getSuspendOnlineEvaluatorMethod) + == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + if ((getSuspendOnlineEvaluatorMethod = + OnlineEvaluatorServiceGrpc.getSuspendOnlineEvaluatorMethod) + == null) { + OnlineEvaluatorServiceGrpc.getSuspendOnlineEvaluatorMethod = + getSuspendOnlineEvaluatorMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SuspendOnlineEvaluator")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new OnlineEvaluatorServiceMethodDescriptorSupplier( + "SuspendOnlineEvaluator")) + .build(); + } + } + } + return getSuspendOnlineEvaluatorMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static OnlineEvaluatorServiceStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OnlineEvaluatorServiceStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceStub(channel, callOptions); + } + }; + return OnlineEvaluatorServiceStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static OnlineEvaluatorServiceBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OnlineEvaluatorServiceBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceBlockingV2Stub(channel, callOptions); + } + }; + return OnlineEvaluatorServiceBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static OnlineEvaluatorServiceBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OnlineEvaluatorServiceBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceBlockingStub(channel, callOptions); + } + }; + return OnlineEvaluatorServiceBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static OnlineEvaluatorServiceFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public OnlineEvaluatorServiceFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceFutureStub(channel, callOptions); + } + }; + return OnlineEvaluatorServiceFutureStub.newStub(factory, channel); + } + + /** + * + * + *
            +   * This service is used to create and manage Vertex AI OnlineEvaluators.
            +   * 
            + */ + public interface AsyncService { + + /** + * + * + *
            +     * Creates an OnlineEvaluator in the given project and location.
            +     * 
            + */ + default void createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
            +     * Gets details of an OnlineEvaluator.
            +     * 
            + */ + default void getOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
            +     * Updates the fields of an OnlineEvaluator.
            +     * 
            + */ + default void updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
            +     * Deletes an OnlineEvaluator.
            +     * 
            + */ + default void deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
            +     * Lists the OnlineEvaluators for the given project and location.
            +     * 
            + */ + default void listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListOnlineEvaluatorsMethod(), responseObserver); + } + + /** + * + * + *
            +     * Activates an OnlineEvaluator.
            +     * 
            + */ + default void activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getActivateOnlineEvaluatorMethod(), responseObserver); + } + + /** + * + * + *
            +     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
            +     * run any evaluations until it is activated again.
            +     * 
            + */ + default void suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSuspendOnlineEvaluatorMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service OnlineEvaluatorService. + * + *
            +   * This service is used to create and manage Vertex AI OnlineEvaluators.
            +   * 
            + */ + public abstract static class OnlineEvaluatorServiceImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return OnlineEvaluatorServiceGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service OnlineEvaluatorService. + * + *
            +   * This service is used to create and manage Vertex AI OnlineEvaluators.
            +   * 
            + */ + public static final class OnlineEvaluatorServiceStub + extends io.grpc.stub.AbstractAsyncStub { + private OnlineEvaluatorServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OnlineEvaluatorServiceStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates an OnlineEvaluator in the given project and location.
            +     * 
            + */ + public void createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Gets details of an OnlineEvaluator.
            +     * 
            + */ + public void getOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Updates the fields of an OnlineEvaluator.
            +     * 
            + */ + public void updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Deletes an OnlineEvaluator.
            +     * 
            + */ + public void deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Lists the OnlineEvaluators for the given project and location.
            +     * 
            + */ + public void listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request, + io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListOnlineEvaluatorsMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Activates an OnlineEvaluator.
            +     * 
            + */ + public void activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getActivateOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
            +     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
            +     * run any evaluations until it is activated again.
            +     * 
            + */ + public void suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSuspendOnlineEvaluatorMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service OnlineEvaluatorService. + * + *
            +   * This service is used to create and manage Vertex AI OnlineEvaluators.
            +   * 
            + */ + public static final class OnlineEvaluatorServiceBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private OnlineEvaluatorServiceBlockingV2Stub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OnlineEvaluatorServiceBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates an OnlineEvaluator in the given project and location.
            +     * 
            + */ + public com.google.longrunning.Operation createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of an OnlineEvaluator.
            +     * 
            + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the fields of an OnlineEvaluator.
            +     * 
            + */ + public com.google.longrunning.Operation updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes an OnlineEvaluator.
            +     * 
            + */ + public com.google.longrunning.Operation deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists the OnlineEvaluators for the given project and location.
            +     * 
            + */ + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListOnlineEvaluatorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Activates an OnlineEvaluator.
            +     * 
            + */ + public com.google.longrunning.Operation activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getActivateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
            +     * run any evaluations until it is activated again.
            +     * 
            + */ + public com.google.longrunning.Operation suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSuspendOnlineEvaluatorMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service OnlineEvaluatorService. + * + *
            +   * This service is used to create and manage Vertex AI OnlineEvaluators.
            +   * 
            + */ + public static final class OnlineEvaluatorServiceBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private OnlineEvaluatorServiceBlockingStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OnlineEvaluatorServiceBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceBlockingStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates an OnlineEvaluator in the given project and location.
            +     * 
            + */ + public com.google.longrunning.Operation createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Gets details of an OnlineEvaluator.
            +     * 
            + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Updates the fields of an OnlineEvaluator.
            +     * 
            + */ + public com.google.longrunning.Operation updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Deletes an OnlineEvaluator.
            +     * 
            + */ + public com.google.longrunning.Operation deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Lists the OnlineEvaluators for the given project and location.
            +     * 
            + */ + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListOnlineEvaluatorsMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Activates an OnlineEvaluator.
            +     * 
            + */ + public com.google.longrunning.Operation activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getActivateOnlineEvaluatorMethod(), getCallOptions(), request); + } + + /** + * + * + *
            +     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
            +     * run any evaluations until it is activated again.
            +     * 
            + */ + public com.google.longrunning.Operation suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSuspendOnlineEvaluatorMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service + * OnlineEvaluatorService. + * + *
            +   * This service is used to create and manage Vertex AI OnlineEvaluators.
            +   * 
            + */ + public static final class OnlineEvaluatorServiceFutureStub + extends io.grpc.stub.AbstractFutureStub { + private OnlineEvaluatorServiceFutureStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected OnlineEvaluatorServiceFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new OnlineEvaluatorServiceFutureStub(channel, callOptions); + } + + /** + * + * + *
            +     * Creates an OnlineEvaluator in the given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + createOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Gets details of an OnlineEvaluator.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator> + getOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Updates the fields of an OnlineEvaluator.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + updateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Deletes an OnlineEvaluator.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + deleteOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Lists the OnlineEvaluators for the given project and location.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse> + listOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListOnlineEvaluatorsMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Activates an OnlineEvaluator.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + activateOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getActivateOnlineEvaluatorMethod(), getCallOptions()), request); + } + + /** + * + * + *
            +     * Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't
            +     * run any evaluations until it is activated again.
            +     * 
            + */ + public com.google.common.util.concurrent.ListenableFuture + suspendOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSuspendOnlineEvaluatorMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_ONLINE_EVALUATOR = 0; + private static final int METHODID_GET_ONLINE_EVALUATOR = 1; + private static final int METHODID_UPDATE_ONLINE_EVALUATOR = 2; + private static final int METHODID_DELETE_ONLINE_EVALUATOR = 3; + private static final int METHODID_LIST_ONLINE_EVALUATORS = 4; + private static final int METHODID_ACTIVATE_ONLINE_EVALUATOR = 5; + private static final int METHODID_SUSPEND_ONLINE_EVALUATOR = 6; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_ONLINE_EVALUATOR: + serviceImpl.createOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ONLINE_EVALUATOR: + serviceImpl.getOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_UPDATE_ONLINE_EVALUATOR: + serviceImpl.updateOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ONLINE_EVALUATOR: + serviceImpl.deleteOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ONLINE_EVALUATORS: + serviceImpl.listOnlineEvaluators( + (com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse>) + responseObserver); + break; + case METHODID_ACTIVATE_ONLINE_EVALUATOR: + serviceImpl.activateOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_SUSPEND_ONLINE_EVALUATOR: + serviceImpl.suspendOnlineEvaluator( + (com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ONLINE_EVALUATOR))) + .addMethod( + getGetOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator>( + service, METHODID_GET_ONLINE_EVALUATOR))) + .addMethod( + getUpdateOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ONLINE_EVALUATOR))) + .addMethod( + getDeleteOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ONLINE_EVALUATOR))) + .addMethod( + getListOnlineEvaluatorsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse>( + service, METHODID_LIST_ONLINE_EVALUATORS))) + .addMethod( + getActivateOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_ACTIVATE_ONLINE_EVALUATOR))) + .addMethod( + getSuspendOnlineEvaluatorMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest, + com.google.longrunning.Operation>(service, METHODID_SUSPEND_ONLINE_EVALUATOR))) + .build(); + } + + private abstract static class OnlineEvaluatorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + OnlineEvaluatorServiceBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("OnlineEvaluatorService"); + } + } + + private static final class OnlineEvaluatorServiceFileDescriptorSupplier + extends OnlineEvaluatorServiceBaseDescriptorSupplier { + OnlineEvaluatorServiceFileDescriptorSupplier() {} + } + + private static final class OnlineEvaluatorServiceMethodDescriptorSupplier + extends OnlineEvaluatorServiceBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + OnlineEvaluatorServiceMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (OnlineEvaluatorServiceGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new OnlineEvaluatorServiceFileDescriptorSupplier()) + .addMethod(getCreateOnlineEvaluatorMethod()) + .addMethod(getGetOnlineEvaluatorMethod()) + .addMethod(getUpdateOnlineEvaluatorMethod()) + .addMethod(getDeleteOnlineEvaluatorMethod()) + .addMethod(getListOnlineEvaluatorsMethod()) + .addMethod(getActivateOnlineEvaluatorMethod()) + .addMethod(getSuspendOnlineEvaluatorMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..5111beb82dc1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Metadata for the ActivateOnlineEvaluator operation.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class ActivateOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + ActivateOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ActivateOnlineEvaluatorOperationMetadata"); + } + + // Use ActivateOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private ActivateOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ActivateOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + 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.ActivateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + 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.ActivateOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + 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.ActivateOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata for the ActivateOnlineEvaluator operation.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @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.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + .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( + internalGetGenericMetadataFieldBuilder().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.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActivateOnlineEvaluatorOperationMetadata 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.ActivateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..3967bd8d710c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ActivateOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..a58f7e62b527 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequest.java @@ -0,0 +1,629 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Request message for ActivateOnlineEvaluator.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class ActivateOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + ActivateOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ActivateOnlineEvaluatorRequest"); + } + + // Use ActivateOnlineEvaluatorRequest.newBuilder() to construct. + private ActivateOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ActivateOnlineEvaluatorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to activate.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to activate.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.ActivateOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest 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.ActivateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest 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.ActivateOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest 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.ActivateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for ActivateOnlineEvaluator.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + .getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to activate.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to activate.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to activate.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to activate.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to activate.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ActivateOnlineEvaluatorRequest 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.ActivateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..d79c6afbe470 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ActivateOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ActivateOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to activate.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to activate.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfig.java new file mode 100644 index 000000000000..450014e7cb18 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfig.java @@ -0,0 +1,2133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Represents configuration for an Agent.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentConfig} + */ +@com.google.protobuf.Generated +public final class AgentConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AgentConfig) + AgentConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentConfig"); + } + + // Use AgentConfig.newBuilder() to construct. + private AgentConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentConfig() { + agentId_ = ""; + agentType_ = ""; + description_ = ""; + instruction_ = ""; + tools_ = java.util.Collections.emptyList(); + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentConfig.class, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder.class); + } + + private int bitField0_; + public static final int AGENT_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentId_ = ""; + + /** + * + * + *
            +   * Required. Unique identifier of the agent.
            +   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +   * the `sub_agents` field. It must be unique within the `agents` map.
            +   * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agentId field is set. + */ + @java.lang.Override + public boolean hasAgentId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. Unique identifier of the agent.
            +   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +   * the `sub_agents` field. It must be unique within the `agents` map.
            +   * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentId. + */ + @java.lang.Override + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + 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(); + agentId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Unique identifier of the agent.
            +   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +   * the `sub_agents` field. It must be unique within the `agents` map.
            +   * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_TYPE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentType_ = ""; + + /** + * + * + *
            +   * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
            +   * "ToolUseAgent"). Useful for the autorater to understand the expected
            +   * behavior of the agent.
            +   * 
            + * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + @java.lang.Override + public java.lang.String getAgentType() { + java.lang.Object ref = agentType_; + 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(); + agentType_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
            +   * "ToolUseAgent"). Useful for the autorater to understand the expected
            +   * behavior of the agent.
            +   * 
            + * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentTypeBytes() { + java.lang.Object ref = agentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +   * Optional. A high-level description of the agent's role and
            +   * responsibilities. Critical for evaluating if the agent is routing tasks
            +   * correctly.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A high-level description of the agent's role and
            +   * responsibilities. Critical for evaluating if the agent is routing tasks
            +   * correctly.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int INSTRUCTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object instruction_ = ""; + + /** + * + * + *
            +   * Optional. Provides instructions for the LLM model, guiding the agent's
            +   * behavior. Can be static or dynamic. Dynamic instructions can contain
            +   * placeholders like {variable_name} that will be resolved at runtime using
            +   * the `AgentEvent.state_delta` field.
            +   * 
            + * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + @java.lang.Override + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + 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(); + instruction_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Provides instructions for the LLM model, guiding the agent's
            +   * behavior. Can be static or dynamic. Dynamic instructions can contain
            +   * placeholders like {variable_name} that will be resolved at runtime using
            +   * the `AgentEvent.state_delta` field.
            +   * 
            + * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List tools_; + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolsList() { + return tools_; + } + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolsOrBuilderList() { + return tools_; + } + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolsCount() { + return tools_.size(); + } + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool getTools(int index) { + return tools_.get(index); + } + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) { + return tools_.get(index); + } + + public static final int SUB_AGENTS_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. The list of valid agent IDs that this agent can delegate to.
            +   * This defines the directed edges in the multi-agent system graph topology.
            +   * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + public com.google.protobuf.ProtocolStringList getSubAgentsList() { + return subAgents_; + } + + /** + * + * + *
            +   * Optional. The list of valid agent IDs that this agent can delegate to.
            +   * This defines the directed edges in the multi-agent system graph topology.
            +   * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + public int getSubAgentsCount() { + return subAgents_.size(); + } + + /** + * + * + *
            +   * Optional. The list of valid agent IDs that this agent can delegate to.
            +   * This defines the directed edges in the multi-agent system graph topology.
            +   * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + public java.lang.String getSubAgents(int index) { + return subAgents_.get(index); + } + + /** + * + * + *
            +   * Optional. The list of valid agent IDs that this agent can delegate to.
            +   * This defines the directed edges in the multi-agent system graph topology.
            +   * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + public com.google.protobuf.ByteString getSubAgentsBytes(int index) { + return subAgents_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, agentType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instruction_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, instruction_); + } + for (int i = 0; i < tools_.size(); i++) { + output.writeMessage(5, tools_.get(i)); + } + for (int i = 0; i < subAgents_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, subAgents_.getRaw(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.GeneratedMessage.computeStringSize(1, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agentType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, description_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(instruction_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, instruction_); + } + for (int i = 0; i < tools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, tools_.get(i)); + } + { + int dataSize = 0; + for (int i = 0; i < subAgents_.size(); i++) { + dataSize += computeStringSizeNoTag(subAgents_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubAgentsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.AgentConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AgentConfig other = + (com.google.cloud.aiplatform.v1beta1.AgentConfig) obj; + + if (hasAgentId() != other.hasAgentId()) return false; + if (hasAgentId()) { + if (!getAgentId().equals(other.getAgentId())) return false; + } + if (!getAgentType().equals(other.getAgentType())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getInstruction().equals(other.getInstruction())) return false; + if (!getToolsList().equals(other.getToolsList())) return false; + if (!getSubAgentsList().equals(other.getSubAgentsList())) 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 (hasAgentId()) { + hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentId().hashCode(); + } + hash = (37 * hash) + AGENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAgentType().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getInstruction().hashCode(); + if (getToolsCount() > 0) { + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getToolsList().hashCode(); + } + if (getSubAgentsCount() > 0) { + hash = (37 * hash) + SUB_AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getSubAgentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig 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.AgentConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig 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.AgentConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig 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.AgentConfig parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.AgentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents configuration for an Agent.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AgentConfig) + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentConfig.class, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AgentConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + agentId_ = ""; + agentType_ = ""; + description_ = ""; + instruction_ = ""; + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + } else { + tools_ = null; + toolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AgentConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig build() { + com.google.cloud.aiplatform.v1beta1.AgentConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.AgentConfig result = + new com.google.cloud.aiplatform.v1beta1.AgentConfig(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.AgentConfig result) { + if (toolsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + tools_ = java.util.Collections.unmodifiableList(tools_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.tools_ = tools_; + } else { + result.tools_ = toolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AgentConfig result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agentId_ = agentId_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.agentType_ = agentType_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.instruction_ = instruction_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + subAgents_.makeImmutable(); + result.subAgents_ = subAgents_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AgentConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AgentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AgentConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.AgentConfig.getDefaultInstance()) + return this; + if (other.hasAgentId()) { + agentId_ = other.agentId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAgentType().isEmpty()) { + agentType_ = other.agentType_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getInstruction().isEmpty()) { + instruction_ = other.instruction_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (toolsBuilder_ == null) { + if (!other.tools_.isEmpty()) { + if (tools_.isEmpty()) { + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureToolsIsMutable(); + tools_.addAll(other.tools_); + } + onChanged(); + } + } else { + if (!other.tools_.isEmpty()) { + if (toolsBuilder_.isEmpty()) { + toolsBuilder_.dispose(); + toolsBuilder_ = null; + tools_ = other.tools_; + bitField0_ = (bitField0_ & ~0x00000010); + toolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolsFieldBuilder() + : null; + } else { + toolsBuilder_.addAllMessages(other.tools_); + } + } + } + if (!other.subAgents_.isEmpty()) { + if (subAgents_.isEmpty()) { + subAgents_ = other.subAgents_; + bitField0_ |= 0x00000020; + } else { + ensureSubAgentsIsMutable(); + subAgents_.addAll(other.subAgents_); + } + 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: + { + agentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + agentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + instruction_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.aiplatform.v1beta1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(m); + } else { + toolsBuilder_.addMessage(m); + } + break; + } // case 42 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubAgentsIsMutable(); + subAgents_.add(s); + break; + } // case 50 + 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 agentId_ = ""; + + /** + * + * + *
            +     * Required. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agentId field is set. + */ + public boolean hasAgentId() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentId. + */ + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentId. + */ + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAgentId() { + agentId_ = getDefaultInstance().getAgentId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object agentType_ = ""; + + /** + * + * + *
            +     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
            +     * "ToolUseAgent"). Useful for the autorater to understand the expected
            +     * behavior of the agent.
            +     * 
            + * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + public java.lang.String getAgentType() { + java.lang.Object ref = agentType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
            +     * "ToolUseAgent"). Useful for the autorater to understand the expected
            +     * behavior of the agent.
            +     * 
            + * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + public com.google.protobuf.ByteString getAgentTypeBytes() { + java.lang.Object ref = agentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
            +     * "ToolUseAgent"). Useful for the autorater to understand the expected
            +     * behavior of the agent.
            +     * 
            + * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
            +     * "ToolUseAgent"). Useful for the autorater to understand the expected
            +     * behavior of the agent.
            +     * 
            + * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentType() { + agentType_ = getDefaultInstance().getAgentType(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
            +     * "ToolUseAgent"). Useful for the autorater to understand the expected
            +     * behavior of the agent.
            +     * 
            + * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentType_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. A high-level description of the agent's role and
            +     * responsibilities. Critical for evaluating if the agent is routing tasks
            +     * correctly.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. A high-level description of the agent's role and
            +     * responsibilities. Critical for evaluating if the agent is routing tasks
            +     * correctly.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. A high-level description of the agent's role and
            +     * responsibilities. Critical for evaluating if the agent is routing tasks
            +     * correctly.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A high-level description of the agent's role and
            +     * responsibilities. Critical for evaluating if the agent is routing tasks
            +     * correctly.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A high-level description of the agent's role and
            +     * responsibilities. Critical for evaluating if the agent is routing tasks
            +     * correctly.
            +     * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object instruction_ = ""; + + /** + * + * + *
            +     * Optional. Provides instructions for the LLM model, guiding the agent's
            +     * behavior. Can be static or dynamic. Dynamic instructions can contain
            +     * placeholders like {variable_name} that will be resolved at runtime using
            +     * the `AgentEvent.state_delta` field.
            +     * 
            + * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + public java.lang.String getInstruction() { + java.lang.Object ref = instruction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + instruction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Provides instructions for the LLM model, guiding the agent's
            +     * behavior. Can be static or dynamic. Dynamic instructions can contain
            +     * placeholders like {variable_name} that will be resolved at runtime using
            +     * the `AgentEvent.state_delta` field.
            +     * 
            + * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + public com.google.protobuf.ByteString getInstructionBytes() { + java.lang.Object ref = instruction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + instruction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Provides instructions for the LLM model, guiding the agent's
            +     * behavior. Can be static or dynamic. Dynamic instructions can contain
            +     * placeholders like {variable_name} that will be resolved at runtime using
            +     * the `AgentEvent.state_delta` field.
            +     * 
            + * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The instruction to set. + * @return This builder for chaining. + */ + public Builder setInstruction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + instruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Provides instructions for the LLM model, guiding the agent's
            +     * behavior. Can be static or dynamic. Dynamic instructions can contain
            +     * placeholders like {variable_name} that will be resolved at runtime using
            +     * the `AgentEvent.state_delta` field.
            +     * 
            + * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearInstruction() { + instruction_ = getDefaultInstance().getInstruction(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Provides instructions for the LLM model, guiding the agent's
            +     * behavior. Can be static or dynamic. Dynamic instructions can contain
            +     * placeholders like {variable_name} that will be resolved at runtime using
            +     * the `AgentEvent.state_delta` field.
            +     * 
            + * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for instruction to set. + * @return This builder for chaining. + */ + public Builder setInstructionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + instruction_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.util.List tools_ = + java.util.Collections.emptyList(); + + private void ensureToolsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + tools_ = new java.util.ArrayList(tools_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + toolsBuilder_; + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsList() { + if (toolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(tools_); + } else { + return toolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolsCount() { + if (toolsBuilder_ == null) { + return tools_.size(); + } else { + return toolsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool getTools(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.set(index, value); + onChanged(); + } else { + toolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.set(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(value); + onChanged(); + } else { + toolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolsIsMutable(); + tools_.add(index, value); + onChanged(); + } else { + toolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools(com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.add(index, builderForValue.build()); + onChanged(); + } else { + toolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTools( + java.lang.Iterable values) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tools_); + onChanged(); + } else { + toolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + tools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTools(int index) { + if (toolsBuilder_ == null) { + ensureToolsIsMutable(); + tools_.remove(index); + onChanged(); + } else { + toolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getToolsBuilder(int index) { + return internalGetToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index) { + if (toolsBuilder_ == null) { + return tools_.get(index); + } else { + return toolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolsOrBuilderList() { + if (toolsBuilder_ != null) { + return toolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tools_); + } + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder() { + return internalGetToolsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolsBuilder(int index) { + return internalGetToolsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of tools available to this agent.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolsBuilderList() { + return internalGetToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + toolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + tools_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + tools_ = null; + } + return toolsBuilder_; + } + + private com.google.protobuf.LazyStringArrayList subAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSubAgentsIsMutable() { + if (!subAgents_.isModifiable()) { + subAgents_ = new com.google.protobuf.LazyStringArrayList(subAgents_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs that this agent can delegate to.
            +     * This defines the directed edges in the multi-agent system graph topology.
            +     * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + public com.google.protobuf.ProtocolStringList getSubAgentsList() { + subAgents_.makeImmutable(); + return subAgents_; + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs that this agent can delegate to.
            +     * This defines the directed edges in the multi-agent system graph topology.
            +     * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + public int getSubAgentsCount() { + return subAgents_.size(); + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs that this agent can delegate to.
            +     * This defines the directed edges in the multi-agent system graph topology.
            +     * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + public java.lang.String getSubAgents(int index) { + return subAgents_.get(index); + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs that this agent can delegate to.
            +     * This defines the directed edges in the multi-agent system graph topology.
            +     * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + public com.google.protobuf.ByteString getSubAgentsBytes(int index) { + return subAgents_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs that this agent can delegate to.
            +     * This defines the directed edges in the multi-agent system graph topology.
            +     * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The subAgents to set. + * @return This builder for chaining. + */ + public Builder setSubAgents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubAgentsIsMutable(); + subAgents_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs that this agent can delegate to.
            +     * This defines the directed edges in the multi-agent system graph topology.
            +     * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subAgents to add. + * @return This builder for chaining. + */ + public Builder addSubAgents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubAgentsIsMutable(); + subAgents_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs that this agent can delegate to.
            +     * This defines the directed edges in the multi-agent system graph topology.
            +     * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The subAgents to add. + * @return This builder for chaining. + */ + public Builder addAllSubAgents(java.lang.Iterable values) { + ensureSubAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subAgents_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs that this agent can delegate to.
            +     * This defines the directed edges in the multi-agent system graph topology.
            +     * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubAgents() { + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs that this agent can delegate to.
            +     * This defines the directed edges in the multi-agent system graph topology.
            +     * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the subAgents to add. + * @return This builder for chaining. + */ + public Builder addSubAgentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubAgentsIsMutable(); + subAgents_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AgentConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AgentConfig) + private static final com.google.cloud.aiplatform.v1beta1.AgentConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AgentConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentConfig 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.AgentConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfigOrBuilder.java new file mode 100644 index 000000000000..ad8a8b31312d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentConfigOrBuilder.java @@ -0,0 +1,289 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AgentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AgentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Unique identifier of the agent.
            +   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +   * the `sub_agents` field. It must be unique within the `agents` map.
            +   * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the agentId field is set. + */ + boolean hasAgentId(); + + /** + * + * + *
            +   * Required. Unique identifier of the agent.
            +   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +   * the `sub_agents` field. It must be unique within the `agents` map.
            +   * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The agentId. + */ + java.lang.String getAgentId(); + + /** + * + * + *
            +   * Required. Unique identifier of the agent.
            +   * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +   * the `sub_agents` field. It must be unique within the `agents` map.
            +   * 
            + * + * optional string agent_id = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for agentId. + */ + com.google.protobuf.ByteString getAgentIdBytes(); + + /** + * + * + *
            +   * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
            +   * "ToolUseAgent"). Useful for the autorater to understand the expected
            +   * behavior of the agent.
            +   * 
            + * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + java.lang.String getAgentType(); + + /** + * + * + *
            +   * Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent",
            +   * "ToolUseAgent"). Useful for the autorater to understand the expected
            +   * behavior of the agent.
            +   * 
            + * + * string agent_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + com.google.protobuf.ByteString getAgentTypeBytes(); + + /** + * + * + *
            +   * Optional. A high-level description of the agent's role and
            +   * responsibilities. Critical for evaluating if the agent is routing tasks
            +   * correctly.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +   * Optional. A high-level description of the agent's role and
            +   * responsibilities. Critical for evaluating if the agent is routing tasks
            +   * correctly.
            +   * 
            + * + * string description = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +   * Optional. Provides instructions for the LLM model, guiding the agent's
            +   * behavior. Can be static or dynamic. Dynamic instructions can contain
            +   * placeholders like {variable_name} that will be resolved at runtime using
            +   * the `AgentEvent.state_delta` field.
            +   * 
            + * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The instruction. + */ + java.lang.String getInstruction(); + + /** + * + * + *
            +   * Optional. Provides instructions for the LLM model, guiding the agent's
            +   * behavior. Can be static or dynamic. Dynamic instructions can contain
            +   * placeholders like {variable_name} that will be resolved at runtime using
            +   * the `AgentEvent.state_delta` field.
            +   * 
            + * + * string instruction = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for instruction. + */ + com.google.protobuf.ByteString getInstructionBytes(); + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolsList(); + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool getTools(int index); + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolsCount(); + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolsOrBuilderList(); + + /** + * + * + *
            +   * Optional. The list of tools available to this agent.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolsOrBuilder(int index); + + /** + * + * + *
            +   * Optional. The list of valid agent IDs that this agent can delegate to.
            +   * This defines the directed edges in the multi-agent system graph topology.
            +   * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + java.util.List getSubAgentsList(); + + /** + * + * + *
            +   * Optional. The list of valid agent IDs that this agent can delegate to.
            +   * This defines the directed edges in the multi-agent system graph topology.
            +   * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + int getSubAgentsCount(); + + /** + * + * + *
            +   * Optional. The list of valid agent IDs that this agent can delegate to.
            +   * This defines the directed edges in the multi-agent system graph topology.
            +   * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + java.lang.String getSubAgents(int index); + + /** + * + * + *
            +   * Optional. The list of valid agent IDs that this agent can delegate to.
            +   * This defines the directed edges in the multi-agent system graph topology.
            +   * 
            + * + * repeated string sub_agents = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + com.google.protobuf.ByteString getSubAgentsBytes(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentData.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentData.java new file mode 100644 index 000000000000..0156f1edb2e9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentData.java @@ -0,0 +1,1504 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Represents data specific to multi-turn agent evaluations.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentData} + */ +@com.google.protobuf.Generated +public final class AgentData extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AgentData) + AgentDataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentData"); + } + + // Use AgentData.newBuilder() to construct. + private AgentData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentData() { + turns_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentData.class, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder.class); + } + + public static final int AGENTS_FIELD_NUMBER = 1; + + private static final class AgentsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.AgentConfig.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + agents_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + internalGetAgents() { + if (agents_ == null) { + return com.google.protobuf.MapField.emptyMapField(AgentsDefaultEntryHolder.defaultEntry); + } + return agents_; + } + + public int getAgentsCount() { + return internalGetAgents().getMap().size(); + } + + /** + * + * + *
            +   * Optional. A map containing the static configurations for each agent in the
            +   * system. Key: agent_id (matches the `author` field in events). Value: The
            +   * static configuration of the agent.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAgents().getMap().containsKey(key); + } + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getAgents() { + return getAgentsMap(); + } + + /** + * + * + *
            +   * Optional. A map containing the static configurations for each agent in the
            +   * system. Key: agent_id (matches the `author` field in events). Value: The
            +   * static configuration of the agent.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getAgentsMap() { + return internalGetAgents().getMap(); + } + + /** + * + * + *
            +   * Optional. A map containing the static configurations for each agent in the
            +   * system. Key: agent_id (matches the `author` field in events). Value: The
            +   * static configuration of the agent.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.AgentConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAgents().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. A map containing the static configurations for each agent in the
            +   * system. Key: agent_id (matches the `author` field in events). Value: The
            +   * static configuration of the agent.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetAgents().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TURNS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List turns_; + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getTurnsList() { + return turns_; + } + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getTurnsOrBuilderList() { + return turns_; + } + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTurnsCount() { + return turns_.size(); + } + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurn getTurns(int index) { + return turns_.get(index); + } + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder getTurnsOrBuilder( + int index) { + return turns_.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 { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAgents(), AgentsDefaultEntryHolder.defaultEntry, 1); + for (int i = 0; i < turns_.size(); i++) { + output.writeMessage(2, turns_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry + entry : internalGetAgents().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + agents__ = + AgentsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, agents__); + } + for (int i = 0; i < turns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, turns_.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.AgentData)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AgentData other = + (com.google.cloud.aiplatform.v1beta1.AgentData) obj; + + if (!internalGetAgents().equals(other.internalGetAgents())) return false; + if (!getTurnsList().equals(other.getTurnsList())) 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 (!internalGetAgents().getMap().isEmpty()) { + hash = (37 * hash) + AGENTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAgents().hashCode(); + } + if (getTurnsCount() > 0) { + hash = (37 * hash) + TURNS_FIELD_NUMBER; + hash = (53 * hash) + getTurnsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData 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.AgentData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData 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.AgentData parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData 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.AgentData parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.AgentData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents data specific to multi-turn agent evaluations.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AgentData) + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentData.class, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AgentData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableAgents().clear(); + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + } else { + turns_ = null; + turnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentData getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentData build() { + com.google.cloud.aiplatform.v1beta1.AgentData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentData buildPartial() { + com.google.cloud.aiplatform.v1beta1.AgentData result = + new com.google.cloud.aiplatform.v1beta1.AgentData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.AgentData result) { + if (turnsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + turns_ = java.util.Collections.unmodifiableList(turns_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.turns_ = turns_; + } else { + result.turns_ = turnsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AgentData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.agents_ = internalGetAgents().build(AgentsDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AgentData) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AgentData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AgentData other) { + if (other == com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance()) return this; + internalGetMutableAgents().mergeFrom(other.internalGetAgents()); + bitField0_ |= 0x00000001; + if (turnsBuilder_ == null) { + if (!other.turns_.isEmpty()) { + if (turns_.isEmpty()) { + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureTurnsIsMutable(); + turns_.addAll(other.turns_); + } + onChanged(); + } + } else { + if (!other.turns_.isEmpty()) { + if (turnsBuilder_.isEmpty()) { + turnsBuilder_.dispose(); + turnsBuilder_ = null; + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000002); + turnsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTurnsFieldBuilder() + : null; + } else { + turnsBuilder_.addAllMessages(other.turns_); + } + } + } + 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.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + agents__ = + input.readMessage( + AgentsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAgents() + .ensureBuilderMap() + .put(agents__.getKey(), agents__.getValue()); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.ConversationTurn m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.ConversationTurn.parser(), + extensionRegistry); + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(m); + } else { + turnsBuilder_.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 static final class AgentsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.AgentConfig> { + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig build( + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder val) { + if (val instanceof com.google.cloud.aiplatform.v1beta1.AgentConfig) { + return (com.google.cloud.aiplatform.v1beta1.AgentConfig) val; + } + return ((com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.AgentConfig> + defaultEntry() { + return AgentsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final AgentsConverter agentsConverter = new AgentsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.AgentConfig, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder> + agents_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.AgentConfig, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder> + internalGetAgents() { + if (agents_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(agentsConverter); + } + return agents_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.AgentConfig, + com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder> + internalGetMutableAgents() { + if (agents_ == null) { + agents_ = new com.google.protobuf.MapFieldBuilder<>(agentsConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return agents_; + } + + public int getAgentsCount() { + return internalGetAgents().ensureBuilderMap().size(); + } + + /** + * + * + *
            +     * Optional. A map containing the static configurations for each agent in the
            +     * system. Key: agent_id (matches the `author` field in events). Value: The
            +     * static configuration of the agent.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAgents().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getAgents() { + return getAgentsMap(); + } + + /** + * + * + *
            +     * Optional. A map containing the static configurations for each agent in the
            +     * system. Key: agent_id (matches the `author` field in events). Value: The
            +     * static configuration of the agent.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getAgentsMap() { + return internalGetAgents().getImmutableMap(); + } + + /** + * + * + *
            +     * Optional. A map containing the static configurations for each agent in the
            +     * system. Key: agent_id (matches the `author` field in events). Value: The
            +     * static configuration of the agent.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.AgentConfig defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableAgents().ensureBuilderMap(); + return map.containsKey(key) ? agentsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +     * Optional. A map containing the static configurations for each agent in the
            +     * system. Key: agent_id (matches the `author` field in events). Value: The
            +     * static configuration of the agent.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableAgents().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return agentsConverter.build(map.get(key)); + } + + public Builder clearAgents() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableAgents().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. A map containing the static configurations for each agent in the
            +     * system. Key: agent_id (matches the `author` field in events). Value: The
            +     * static configuration of the agent.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAgents().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableAgents() { + bitField0_ |= 0x00000001; + return internalGetMutableAgents().ensureMessageMap(); + } + + /** + * + * + *
            +     * Optional. A map containing the static configurations for each agent in the
            +     * system. Key: agent_id (matches the `author` field in events). Value: The
            +     * static configuration of the agent.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAgents( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.AgentConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAgents().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
            +     * Optional. A map containing the static configurations for each agent in the
            +     * system. Key: agent_id (matches the `author` field in events). Value: The
            +     * static configuration of the agent.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAgents( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableAgents().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
            +     * Optional. A map containing the static configurations for each agent in the
            +     * system. Key: agent_id (matches the `author` field in events). Value: The
            +     * static configuration of the agent.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder putAgentsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableAgents().ensureBuilderMap(); + com.google.cloud.aiplatform.v1beta1.AgentConfigOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.aiplatform.v1beta1.AgentConfig.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.aiplatform.v1beta1.AgentConfig) { + entry = ((com.google.cloud.aiplatform.v1beta1.AgentConfig) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.aiplatform.v1beta1.AgentConfig.Builder) entry; + } + + private java.util.List turns_ = + java.util.Collections.emptyList(); + + private void ensureTurnsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + turns_ = + new java.util.ArrayList(turns_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ConversationTurn, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder> + turnsBuilder_; + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getTurnsList() { + if (turnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(turns_); + } else { + return turnsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTurnsCount() { + if (turnsBuilder_ == null) { + return turns_.size(); + } else { + return turnsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurn getTurns(int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurns(int index, com.google.cloud.aiplatform.v1beta1.ConversationTurn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.set(index, value); + onChanged(); + } else { + turnsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurns( + int index, com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.set(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns(com.google.cloud.aiplatform.v1beta1.ConversationTurn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(value); + onChanged(); + } else { + turnsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns(int index, com.google.cloud.aiplatform.v1beta1.ConversationTurn value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(index, value); + onChanged(); + } else { + turnsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + int index, com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTurns( + java.lang.Iterable values) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, turns_); + onChanged(); + } else { + turnsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTurns() { + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + turnsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTurns(int index) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.remove(index); + onChanged(); + } else { + turnsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder getTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder getTurnsOrBuilder( + int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTurnsOrBuilderList() { + if (turnsBuilder_ != null) { + return turnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(turns_); + } + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder addTurnsBuilder() { + return internalGetTurnsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.ConversationTurn.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder addTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.ConversationTurn.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. A chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getTurnsBuilderList() { + return internalGetTurnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ConversationTurn, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder> + internalGetTurnsFieldBuilder() { + if (turnsBuilder_ == null) { + turnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.ConversationTurn, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder>( + turns_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + turns_ = null; + } + return turnsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AgentData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AgentData) + private static final com.google.cloud.aiplatform.v1beta1.AgentData DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AgentData(); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentData getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentData 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.AgentData getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentDataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentDataOrBuilder.java new file mode 100644 index 000000000000..01d59e942a84 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentDataOrBuilder.java @@ -0,0 +1,187 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AgentDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AgentData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. A map containing the static configurations for each agent in the
            +   * system. Key: agent_id (matches the `author` field in events). Value: The
            +   * static configuration of the agent.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAgentsCount(); + + /** + * + * + *
            +   * Optional. A map containing the static configurations for each agent in the
            +   * system. Key: agent_id (matches the `author` field in events). Value: The
            +   * static configuration of the agent.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAgents(java.lang.String key); + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAgents(); + + /** + * + * + *
            +   * Optional. A map containing the static configurations for each agent in the
            +   * system. Key: agent_id (matches the `author` field in events). Value: The
            +   * static configuration of the agent.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAgentsMap(); + + /** + * + * + *
            +   * Optional. A map containing the static configurations for each agent in the
            +   * system. Key: agent_id (matches the `author` field in events). Value: The
            +   * static configuration of the agent.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.AgentConfig defaultValue); + + /** + * + * + *
            +   * Optional. A map containing the static configurations for each agent in the
            +   * system. Key: agent_id (matches the `author` field in events). Value: The
            +   * static configuration of the agent.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.AgentConfig> agents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AgentConfig getAgentsOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getTurnsList(); + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ConversationTurn getTurns(int index); + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTurnsCount(); + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getTurnsOrBuilderList(); + + /** + * + * + *
            +   * Optional. A chronological list of conversation turns.
            +   * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +   * Response).
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.ConversationTurn turns = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder getTurnsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEvent.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEvent.java new file mode 100644 index 000000000000..45ee0c3db1fd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEvent.java @@ -0,0 +1,2133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Represents a single event in the execution trace.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentEvent} + */ +@com.google.protobuf.Generated +public final class AgentEvent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.AgentEvent) + AgentEventOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentEvent"); + } + + // Use AgentEvent.newBuilder() to construct. + private AgentEvent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentEvent() { + author_ = ""; + activeTools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentEvent.class, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder.class); + } + + private int bitField0_; + public static final int AUTHOR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
            +   * Required. The ID of the agent or entity that generated this event.
            +   * Use "user" to denote events generated by the end-user.
            +   * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + @java.lang.Override + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The ID of the agent or entity that generated this event.
            +   * Use "user" to denote events generated by the end-user.
            +   * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + 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(); + author_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The ID of the agent or entity that generated this event.
            +   * Use "user" to denote events generated by the end-user.
            +   * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Content content_; + + /** + * + * + *
            +   * Required. The content of the event (e.g., text response, tool call, tool
            +   * response).
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Required. The content of the event (e.g., text response, tool call, tool
            +   * response).
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + /** + * + * + *
            +   * Required. The content of the event (e.g., text response, tool call, tool
            +   * response).
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + public static final int EVENT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp eventTime_; + + /** + * + * + *
            +   * Optional. The timestamp when the event occurred.
            +   * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. The timestamp when the event occurred.
            +   * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + /** + * + * + *
            +   * Optional. The timestamp when the event occurred.
            +   * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int STATE_DELTA_FIELD_NUMBER = 4; + private com.google.protobuf.Struct stateDelta_; + + /** + * + * + *
            +   * Optional. The change in the session state caused by this event. This is a
            +   * key-value map of fields that were modified or added by the event.
            +   * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the stateDelta field is set. + */ + @java.lang.Override + public boolean hasStateDelta() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. The change in the session state caused by this event. This is a
            +   * key-value map of fields that were modified or added by the event.
            +   * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stateDelta. + */ + @java.lang.Override + public com.google.protobuf.Struct getStateDelta() { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + + /** + * + * + *
            +   * Optional. The change in the session state caused by this event. This is a
            +   * key-value map of fields that were modified or added by the event.
            +   * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder() { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + + public static final int ACTIVE_TOOLS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List activeTools_; + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getActiveToolsList() { + return activeTools_; + } + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getActiveToolsOrBuilderList() { + return activeTools_; + } + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getActiveToolsCount() { + return activeTools_.size(); + } + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index) { + return activeTools_.get(index); + } + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index) { + return activeTools_.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)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, author_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEventTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getStateDelta()); + } + for (int i = 0; i < activeTools_.size(); i++) { + output.writeMessage(5, activeTools_.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.GeneratedMessage.computeStringSize(1, author_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStateDelta()); + } + for (int i = 0; i < activeTools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, activeTools_.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.AgentEvent)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.AgentEvent other = + (com.google.cloud.aiplatform.v1beta1.AgentEvent) obj; + + if (hasAuthor() != other.hasAuthor()) return false; + if (hasAuthor()) { + if (!getAuthor().equals(other.getAuthor())) return false; + } + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (hasStateDelta() != other.hasStateDelta()) return false; + if (hasStateDelta()) { + if (!getStateDelta().equals(other.getStateDelta())) return false; + } + if (!getActiveToolsList().equals(other.getActiveToolsList())) 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 (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (hasStateDelta()) { + hash = (37 * hash) + STATE_DELTA_FIELD_NUMBER; + hash = (53 * hash) + getStateDelta().hashCode(); + } + if (getActiveToolsCount() > 0) { + hash = (37 * hash) + ACTIVE_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getActiveToolsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent 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.AgentEvent parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent 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.AgentEvent parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent 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.AgentEvent parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.AgentEvent prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a single event in the execution trace.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.AgentEvent} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.AgentEvent) + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.AgentEvent.class, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.AgentEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + internalGetEventTimeFieldBuilder(); + internalGetStateDeltaFieldBuilder(); + internalGetActiveToolsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + author_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + stateDelta_ = null; + if (stateDeltaBuilder_ != null) { + stateDeltaBuilder_.dispose(); + stateDeltaBuilder_ = null; + } + if (activeToolsBuilder_ == null) { + activeTools_ = java.util.Collections.emptyList(); + } else { + activeTools_ = null; + activeToolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEvent getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.AgentEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEvent build() { + com.google.cloud.aiplatform.v1beta1.AgentEvent result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEvent buildPartial() { + com.google.cloud.aiplatform.v1beta1.AgentEvent result = + new com.google.cloud.aiplatform.v1beta1.AgentEvent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.cloud.aiplatform.v1beta1.AgentEvent result) { + if (activeToolsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + activeTools_ = java.util.Collections.unmodifiableList(activeTools_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.activeTools_ = activeTools_; + } else { + result.activeTools_ = activeToolsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AgentEvent result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.author_ = author_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.stateDelta_ = stateDeltaBuilder_ == null ? stateDelta_ : stateDeltaBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.AgentEvent) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.AgentEvent) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AgentEvent other) { + if (other == com.google.cloud.aiplatform.v1beta1.AgentEvent.getDefaultInstance()) return this; + if (other.hasAuthor()) { + author_ = other.author_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.hasStateDelta()) { + mergeStateDelta(other.getStateDelta()); + } + if (activeToolsBuilder_ == null) { + if (!other.activeTools_.isEmpty()) { + if (activeTools_.isEmpty()) { + activeTools_ = other.activeTools_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureActiveToolsIsMutable(); + activeTools_.addAll(other.activeTools_); + } + onChanged(); + } + } else { + if (!other.activeTools_.isEmpty()) { + if (activeToolsBuilder_.isEmpty()) { + activeToolsBuilder_.dispose(); + activeToolsBuilder_ = null; + activeTools_ = other.activeTools_; + bitField0_ = (bitField0_ & ~0x00000010); + activeToolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetActiveToolsFieldBuilder() + : null; + } else { + activeToolsBuilder_.addAllMessages(other.activeTools_); + } + } + } + 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: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetStateDeltaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.aiplatform.v1beta1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(m); + } else { + activeToolsBuilder_.addMessage(m); + } + break; + } // case 42 + 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 author_ = ""; + + /** + * + * + *
            +     * Required. The ID of the agent or entity that generated this event.
            +     * Use "user" to denote events generated by the end-user.
            +     * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The ID of the agent or entity that generated this event.
            +     * Use "user" to denote events generated by the end-user.
            +     * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The ID of the agent or entity that generated this event.
            +     * Use "user" to denote events generated by the end-user.
            +     * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The ID of the agent or entity that generated this event.
            +     * Use "user" to denote events generated by the end-user.
            +     * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID of the agent or entity that generated this event.
            +     * Use "user" to denote events generated by the end-user.
            +     * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The ID of the agent or entity that generated this event.
            +     * Use "user" to denote events generated by the end-user.
            +     * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Content content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentBuilder_; + + /** + * + * + *
            +     * Required. The content of the event (e.g., text response, tool call, tool
            +     * response).
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The content of the event (e.g., text response, tool call, tool
            +     * response).
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The content of the event (e.g., text response, tool call, tool
            +     * response).
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The content of the event (e.g., text response, tool call, tool
            +     * response).
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The content of the event (e.g., text response, tool call, tool
            +     * response).
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The content of the event (e.g., text response, tool call, tool
            +     * response).
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The content of the event (e.g., text response, tool call, tool
            +     * response).
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The content of the event (e.g., text response, tool call, tool
            +     * response).
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + } + + /** + * + * + *
            +     * Required. The content of the event (e.g., text response, tool call, tool
            +     * response).
            +     * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + + /** + * + * + *
            +     * Optional. The timestamp when the event occurred.
            +     * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. The timestamp when the event occurred.
            +     * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The timestamp when the event occurred.
            +     * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The timestamp when the event occurred.
            +     * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The timestamp when the event occurred.
            +     * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The timestamp when the event occurred.
            +     * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The timestamp when the event occurred.
            +     * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEventTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The timestamp when the event occurred.
            +     * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + } + + /** + * + * + *
            +     * Optional. The timestamp when the event occurred.
            +     * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.protobuf.Struct stateDelta_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + stateDeltaBuilder_; + + /** + * + * + *
            +     * Optional. The change in the session state caused by this event. This is a
            +     * key-value map of fields that were modified or added by the event.
            +     * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stateDelta field is set. + */ + public boolean hasStateDelta() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. The change in the session state caused by this event. This is a
            +     * key-value map of fields that were modified or added by the event.
            +     * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stateDelta. + */ + public com.google.protobuf.Struct getStateDelta() { + if (stateDeltaBuilder_ == null) { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } else { + return stateDeltaBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The change in the session state caused by this event. This is a
            +     * key-value map of fields that were modified or added by the event.
            +     * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStateDelta(com.google.protobuf.Struct value) { + if (stateDeltaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateDelta_ = value; + } else { + stateDeltaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The change in the session state caused by this event. This is a
            +     * key-value map of fields that were modified or added by the event.
            +     * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStateDelta(com.google.protobuf.Struct.Builder builderForValue) { + if (stateDeltaBuilder_ == null) { + stateDelta_ = builderForValue.build(); + } else { + stateDeltaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The change in the session state caused by this event. This is a
            +     * key-value map of fields that were modified or added by the event.
            +     * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStateDelta(com.google.protobuf.Struct value) { + if (stateDeltaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && stateDelta_ != null + && stateDelta_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStateDeltaBuilder().mergeFrom(value); + } else { + stateDelta_ = value; + } + } else { + stateDeltaBuilder_.mergeFrom(value); + } + if (stateDelta_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The change in the session state caused by this event. This is a
            +     * key-value map of fields that were modified or added by the event.
            +     * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStateDelta() { + bitField0_ = (bitField0_ & ~0x00000008); + stateDelta_ = null; + if (stateDeltaBuilder_ != null) { + stateDeltaBuilder_.dispose(); + stateDeltaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The change in the session state caused by this event. This is a
            +     * key-value map of fields that were modified or added by the event.
            +     * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getStateDeltaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetStateDeltaFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The change in the session state caused by this event. This is a
            +     * key-value map of fields that were modified or added by the event.
            +     * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder() { + if (stateDeltaBuilder_ != null) { + return stateDeltaBuilder_.getMessageOrBuilder(); + } else { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + } + + /** + * + * + *
            +     * Optional. The change in the session state caused by this event. This is a
            +     * key-value map of fields that were modified or added by the event.
            +     * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetStateDeltaFieldBuilder() { + if (stateDeltaBuilder_ == null) { + stateDeltaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStateDelta(), getParentForChildren(), isClean()); + stateDelta_ = null; + } + return stateDeltaBuilder_; + } + + private java.util.List activeTools_ = + java.util.Collections.emptyList(); + + private void ensureActiveToolsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + activeTools_ = + new java.util.ArrayList(activeTools_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + activeToolsBuilder_; + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getActiveToolsList() { + if (activeToolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(activeTools_); + } else { + return activeToolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getActiveToolsCount() { + if (activeToolsBuilder_ == null) { + return activeTools_.size(); + } else { + return activeToolsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index) { + if (activeToolsBuilder_ == null) { + return activeTools_.get(index); + } else { + return activeToolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActiveTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.set(index, value); + onChanged(); + } else { + activeToolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActiveTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.set(index, builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.add(value); + onChanged(); + } else { + activeToolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.add(index, value); + onChanged(); + } else { + activeToolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools( + com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(index, builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllActiveTools( + java.lang.Iterable values) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activeTools_); + onChanged(); + } else { + activeToolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearActiveTools() { + if (activeToolsBuilder_ == null) { + activeTools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + activeToolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeActiveTools(int index) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.remove(index); + onChanged(); + } else { + activeToolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getActiveToolsBuilder(int index) { + return internalGetActiveToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index) { + if (activeToolsBuilder_ == null) { + return activeTools_.get(index); + } else { + return activeToolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getActiveToolsOrBuilderList() { + if (activeToolsBuilder_ != null) { + return activeToolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activeTools_); + } + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addActiveToolsBuilder() { + return internalGetActiveToolsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addActiveToolsBuilder(int index) { + return internalGetActiveToolsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of tools that were active/available to the agent at the
            +     * time of this event. This overrides the `AgentConfig.tools` if set.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getActiveToolsBuilderList() { + return internalGetActiveToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetActiveToolsFieldBuilder() { + if (activeToolsBuilder_ == null) { + activeToolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + activeTools_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + activeTools_ = null; + } + return activeToolsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AgentEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.AgentEvent) + private static final com.google.cloud.aiplatform.v1beta1.AgentEvent DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.AgentEvent(); + } + + public static com.google.cloud.aiplatform.v1beta1.AgentEvent getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentEvent 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.AgentEvent getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEventOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEventOrBuilder.java new file mode 100644 index 000000000000..f0586c6624d1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AgentEventOrBuilder.java @@ -0,0 +1,267 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface AgentEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.AgentEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The ID of the agent or entity that generated this event.
            +   * Use "user" to denote events generated by the end-user.
            +   * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + boolean hasAuthor(); + + /** + * + * + *
            +   * Required. The ID of the agent or entity that generated this event.
            +   * Use "user" to denote events generated by the end-user.
            +   * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
            +   * Required. The ID of the agent or entity that generated this event.
            +   * Use "user" to denote events generated by the end-user.
            +   * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
            +   * Required. The content of the event (e.g., text response, tool call, tool
            +   * response).
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
            +   * Required. The content of the event (e.g., text response, tool call, tool
            +   * response).
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + com.google.cloud.aiplatform.v1beta1.Content getContent(); + + /** + * + * + *
            +   * Required. The content of the event (e.g., text response, tool call, tool
            +   * response).
            +   * 
            + * + * + * optional .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
            +   * Optional. The timestamp when the event occurred.
            +   * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + + /** + * + * + *
            +   * Optional. The timestamp when the event occurred.
            +   * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + + /** + * + * + *
            +   * Optional. The timestamp when the event occurred.
            +   * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
            +   * Optional. The change in the session state caused by this event. This is a
            +   * key-value map of fields that were modified or added by the event.
            +   * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the stateDelta field is set. + */ + boolean hasStateDelta(); + + /** + * + * + *
            +   * Optional. The change in the session state caused by this event. This is a
            +   * key-value map of fields that were modified or added by the event.
            +   * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The stateDelta. + */ + com.google.protobuf.Struct getStateDelta(); + + /** + * + * + *
            +   * Optional. The change in the session state caused by this event. This is a
            +   * key-value map of fields that were modified or added by the event.
            +   * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + */ + com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder(); + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getActiveToolsList(); + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index); + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getActiveToolsCount(); + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getActiveToolsOrBuilderList(); + + /** + * + * + *
            +   * Optional. The list of tools that were active/available to the agent at the
            +   * time of this event. This overrides the `AgentConfig.tools` if set.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java index d5ebfeeb06ff..aa3c64ac4822 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResult.java @@ -84,6 +84,7 @@ public enum AggregationResultCase EXACT_MATCH_METRIC_VALUE(7), BLEU_METRIC_VALUE(8), ROUGE_METRIC_VALUE(9), + CUSTOM_CODE_EXECUTION_RESULT(10), AGGREGATIONRESULT_NOT_SET(0); private final int value; @@ -113,6 +114,8 @@ public static AggregationResultCase forNumber(int value) { return BLEU_METRIC_VALUE; case 9: return ROUGE_METRIC_VALUE; + case 10: + return CUSTOM_CODE_EXECUTION_RESULT; case 0: return AGGREGATIONRESULT_NOT_SET; default: @@ -410,6 +413,68 @@ public com.google.cloud.aiplatform.v1beta1.RougeMetricValue getRougeMetricValue( return com.google.cloud.aiplatform.v1beta1.RougeMetricValue.getDefaultInstance(); } + public static final int CUSTOM_CODE_EXECUTION_RESULT_FIELD_NUMBER = 10; + + /** + * + * + *
            +   * Result for code execution metric.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return Whether the customCodeExecutionResult field is set. + */ + @java.lang.Override + public boolean hasCustomCodeExecutionResult() { + return aggregationResultCase_ == 10; + } + + /** + * + * + *
            +   * Result for code execution metric.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return The customCodeExecutionResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + getCustomCodeExecutionResult() { + if (aggregationResultCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + + /** + * + * + *
            +   * Result for code execution metric.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder + getCustomCodeExecutionResultOrBuilder() { + if (aggregationResultCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + public static final int AGGREGATION_METRIC_FIELD_NUMBER = 4; private int aggregationMetric_ = 0; @@ -489,6 +554,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 9, (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_); } + if (aggregationResultCase_ == 10) { + output.writeMessage( + 10, (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_); + } getUnknownFields().writeTo(output); } @@ -529,6 +598,12 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 9, (com.google.cloud.aiplatform.v1beta1.RougeMetricValue) aggregationResult_); } + if (aggregationResultCase_ == 10) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 10, + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -563,6 +638,10 @@ public boolean equals(final java.lang.Object obj) { case 9: if (!getRougeMetricValue().equals(other.getRougeMetricValue())) return false; break; + case 10: + if (!getCustomCodeExecutionResult().equals(other.getCustomCodeExecutionResult())) + return false; + break; case 0: default: } @@ -600,6 +679,10 @@ public int hashCode() { hash = (37 * hash) + ROUGE_METRIC_VALUE_FIELD_NUMBER; hash = (53 * hash) + getRougeMetricValue().hashCode(); break; + case 10: + hash = (37 * hash) + CUSTOM_CODE_EXECUTION_RESULT_FIELD_NUMBER; + hash = (53 * hash) + getCustomCodeExecutionResult().hashCode(); + break; case 0: default: } @@ -759,6 +842,9 @@ public Builder clear() { if (rougeMetricValueBuilder_ != null) { rougeMetricValueBuilder_.clear(); } + if (customCodeExecutionResultBuilder_ != null) { + customCodeExecutionResultBuilder_.clear(); + } aggregationMetric_ = 0; aggregationResultCase_ = 0; aggregationResult_ = null; @@ -799,7 +885,7 @@ public com.google.cloud.aiplatform.v1beta1.AggregationResult buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AggregationResult result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.aggregationMetric_ = aggregationMetric_; } } @@ -822,6 +908,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.AggregationR if (aggregationResultCase_ == 9 && rougeMetricValueBuilder_ != null) { result.aggregationResult_ = rougeMetricValueBuilder_.build(); } + if (aggregationResultCase_ == 10 && customCodeExecutionResultBuilder_ != null) { + result.aggregationResult_ = customCodeExecutionResultBuilder_.build(); + } } @java.lang.Override @@ -866,6 +955,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AggregationResult o mergeRougeMetricValue(other.getRougeMetricValue()); break; } + case CUSTOM_CODE_EXECUTION_RESULT: + { + mergeCustomCodeExecutionResult(other.getCustomCodeExecutionResult()); + break; + } case AGGREGATIONRESULT_NOT_SET: { break; @@ -900,7 +994,7 @@ public Builder mergeFrom( case 32: { aggregationMetric_ = input.readEnum(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 32 case 42: @@ -938,6 +1032,14 @@ public Builder mergeFrom( aggregationResultCase_ = 9; break; } // case 74 + case 82: + { + input.readMessage( + internalGetCustomCodeExecutionResultFieldBuilder().getBuilder(), + extensionRegistry); + aggregationResultCase_ = 10; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2116,6 +2218,251 @@ public Builder clearRougeMetricValue() { return rougeMetricValueBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder> + customCodeExecutionResultBuilder_; + + /** + * + * + *
            +     * Result for code execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return Whether the customCodeExecutionResult field is set. + */ + @java.lang.Override + public boolean hasCustomCodeExecutionResult() { + return aggregationResultCase_ == 10; + } + + /** + * + * + *
            +     * Result for code execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return The customCodeExecutionResult. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + getCustomCodeExecutionResult() { + if (customCodeExecutionResultBuilder_ == null) { + if (aggregationResultCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } else { + if (aggregationResultCase_ == 10) { + return customCodeExecutionResultBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Result for code execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public Builder setCustomCodeExecutionResult( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult value) { + if (customCodeExecutionResultBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + aggregationResult_ = value; + onChanged(); + } else { + customCodeExecutionResultBuilder_.setMessage(value); + } + aggregationResultCase_ = 10; + return this; + } + + /** + * + * + *
            +     * Result for code execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public Builder setCustomCodeExecutionResult( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder builderForValue) { + if (customCodeExecutionResultBuilder_ == null) { + aggregationResult_ = builderForValue.build(); + onChanged(); + } else { + customCodeExecutionResultBuilder_.setMessage(builderForValue.build()); + } + aggregationResultCase_ = 10; + return this; + } + + /** + * + * + *
            +     * Result for code execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public Builder mergeCustomCodeExecutionResult( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult value) { + if (customCodeExecutionResultBuilder_ == null) { + if (aggregationResultCase_ == 10 + && aggregationResult_ + != com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + .getDefaultInstance()) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + aggregationResult_) + .mergeFrom(value) + .buildPartial(); + } else { + aggregationResult_ = value; + } + onChanged(); + } else { + if (aggregationResultCase_ == 10) { + customCodeExecutionResultBuilder_.mergeFrom(value); + } else { + customCodeExecutionResultBuilder_.setMessage(value); + } + } + aggregationResultCase_ = 10; + return this; + } + + /** + * + * + *
            +     * Result for code execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public Builder clearCustomCodeExecutionResult() { + if (customCodeExecutionResultBuilder_ == null) { + if (aggregationResultCase_ == 10) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + onChanged(); + } + } else { + if (aggregationResultCase_ == 10) { + aggregationResultCase_ = 0; + aggregationResult_ = null; + } + customCodeExecutionResultBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Result for code execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder + getCustomCodeExecutionResultBuilder() { + return internalGetCustomCodeExecutionResultFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Result for code execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder + getCustomCodeExecutionResultOrBuilder() { + if ((aggregationResultCase_ == 10) && (customCodeExecutionResultBuilder_ != null)) { + return customCodeExecutionResultBuilder_.getMessageOrBuilder(); + } else { + if (aggregationResultCase_ == 10) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Result for code execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder> + internalGetCustomCodeExecutionResultFieldBuilder() { + if (customCodeExecutionResultBuilder_ == null) { + if (!(aggregationResultCase_ == 10)) { + aggregationResult_ = + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + customCodeExecutionResultBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) aggregationResult_, + getParentForChildren(), + isClean()); + aggregationResult_ = null; + } + aggregationResultCase_ = 10; + onChanged(); + return customCodeExecutionResultBuilder_; + } + private int aggregationMetric_ = 0; /** @@ -2150,7 +2497,7 @@ public int getAggregationMetricValue() { */ public Builder setAggregationMetricValue(int value) { aggregationMetric_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2195,7 +2542,7 @@ public Builder setAggregationMetric( if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; aggregationMetric_ = value.getNumber(); onChanged(); return this; @@ -2214,7 +2561,7 @@ public Builder setAggregationMetric( * @return This builder for chaining. */ public Builder clearAggregationMetric() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); aggregationMetric_ = 0; onChanged(); return this; diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java index 65912ecb542f..f8adeb3d2888 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AggregationResultOrBuilder.java @@ -220,6 +220,50 @@ public interface AggregationResultOrBuilder */ com.google.cloud.aiplatform.v1beta1.RougeMetricValueOrBuilder getRougeMetricValueOrBuilder(); + /** + * + * + *
            +   * Result for code execution metric.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return Whether the customCodeExecutionResult field is set. + */ + boolean hasCustomCodeExecutionResult(); + + /** + * + * + *
            +   * Result for code execution metric.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + * + * @return The customCodeExecutionResult. + */ + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult getCustomCodeExecutionResult(); + + /** + * + * + *
            +   * Result for code execution metric.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult custom_code_execution_result = 10; + * + */ + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder + getCustomCodeExecutionResultOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java index 66dcdb441cb6..0f4734d135ea 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfig.java @@ -223,6 +223,66 @@ public com.google.protobuf.ByteString getAutoraterModelBytes() { } } + public static final int GENERATION_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.GenerationConfig generationConfig_; + + /** + * + * + *
            +   * Optional. Configuration options for model generation and outputs.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + @java.lang.Override + public boolean hasGenerationConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. Configuration options for model generation and outputs.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerationConfig getGenerationConfig() { + return generationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + + /** + * + * + *
            +   * Optional. Configuration options for model generation and outputs.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder + getGenerationConfigOrBuilder() { + return generationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -246,6 +306,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoraterModel_)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, autoraterModel_); } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getGenerationConfig()); + } getUnknownFields().writeTo(output); } @@ -264,6 +327,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(autoraterModel_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, autoraterModel_); } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getGenerationConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -289,6 +355,10 @@ public boolean equals(final java.lang.Object obj) { if (getFlipEnabled() != other.getFlipEnabled()) return false; } if (!getAutoraterModel().equals(other.getAutoraterModel())) return false; + if (hasGenerationConfig() != other.hasGenerationConfig()) return false; + if (hasGenerationConfig()) { + if (!getGenerationConfig().equals(other.getGenerationConfig())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -310,6 +380,10 @@ public int hashCode() { } hash = (37 * hash) + AUTORATER_MODEL_FIELD_NUMBER; hash = (53 * hash) + getAutoraterModel().hashCode(); + if (hasGenerationConfig()) { + hash = (37 * hash) + GENERATION_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getGenerationConfig().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -441,10 +515,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1beta1.AutoraterConfig.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenerationConfigFieldBuilder(); + } } @java.lang.Override @@ -454,6 +537,11 @@ public Builder clear() { samplingCount_ = 0; flipEnabled_ = false; autoraterModel_ = ""; + generationConfig_ = null; + if (generationConfigBuilder_ != null) { + generationConfigBuilder_.dispose(); + generationConfigBuilder_ = null; + } return this; } @@ -502,6 +590,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.AutoraterConfig r if (((from_bitField0_ & 0x00000004) != 0)) { result.autoraterModel_ = autoraterModel_; } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.generationConfig_ = + generationConfigBuilder_ == null ? generationConfig_ : generationConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } result.bitField0_ |= to_bitField0_; } @@ -529,6 +622,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.AutoraterConfig oth bitField0_ |= 0x00000004; onChanged(); } + if (other.hasGenerationConfig()) { + mergeGenerationConfig(other.getGenerationConfig()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -573,6 +669,13 @@ public Builder mergeFrom( bitField0_ |= 0x00000004; break; } // case 26 + case 34: + { + input.readMessage( + internalGetGenerationConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -910,6 +1013,223 @@ public Builder setAutoraterModelBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.cloud.aiplatform.v1beta1.GenerationConfig generationConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenerationConfig, + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder> + generationConfigBuilder_; + + /** + * + * + *
            +     * Optional. Configuration options for model generation and outputs.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + public boolean hasGenerationConfig() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Configuration options for model generation and outputs.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + public com.google.cloud.aiplatform.v1beta1.GenerationConfig getGenerationConfig() { + if (generationConfigBuilder_ == null) { + return generationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance() + : generationConfig_; + } else { + return generationConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Configuration options for model generation and outputs.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationConfig(com.google.cloud.aiplatform.v1beta1.GenerationConfig value) { + if (generationConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + generationConfig_ = value; + } else { + generationConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration options for model generation and outputs.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setGenerationConfig( + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder builderForValue) { + if (generationConfigBuilder_ == null) { + generationConfig_ = builderForValue.build(); + } else { + generationConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration options for model generation and outputs.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeGenerationConfig( + com.google.cloud.aiplatform.v1beta1.GenerationConfig value) { + if (generationConfigBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && generationConfig_ != null + && generationConfig_ + != com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance()) { + getGenerationConfigBuilder().mergeFrom(value); + } else { + generationConfig_ = value; + } + } else { + generationConfigBuilder_.mergeFrom(value); + } + if (generationConfig_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Configuration options for model generation and outputs.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearGenerationConfig() { + bitField0_ = (bitField0_ & ~0x00000008); + generationConfig_ = null; + if (generationConfigBuilder_ != null) { + generationConfigBuilder_.dispose(); + generationConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Configuration options for model generation and outputs.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder + getGenerationConfigBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetGenerationConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Configuration options for model generation and outputs.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder + getGenerationConfigOrBuilder() { + if (generationConfigBuilder_ != null) { + return generationConfigBuilder_.getMessageOrBuilder(); + } else { + return generationConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.GenerationConfig.getDefaultInstance() + : generationConfig_; + } + } + + /** + * + * + *
            +     * Optional. Configuration options for model generation and outputs.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenerationConfig, + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder> + internalGetGenerationConfigFieldBuilder() { + if (generationConfigBuilder_ == null) { + generationConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenerationConfig, + com.google.cloud.aiplatform.v1beta1.GenerationConfig.Builder, + com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder>( + getGenerationConfig(), getParentForChildren(), isClean()); + generationConfig_ = null; + } + return generationConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.AutoraterConfig) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java index a54dfbdd5702..74b46a2c8198 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/AutoraterConfigOrBuilder.java @@ -131,4 +131,47 @@ public interface AutoraterConfigOrBuilder * @return The bytes for autoraterModel. */ com.google.protobuf.ByteString getAutoraterModelBytes(); + + /** + * + * + *
            +   * Optional. Configuration options for model generation and outputs.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the generationConfig field is set. + */ + boolean hasGenerationConfig(); + + /** + * + * + *
            +   * Optional. Configuration options for model generation and outputs.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The generationConfig. + */ + com.google.cloud.aiplatform.v1beta1.GenerationConfig getGenerationConfig(); + + /** + * + * + *
            +   * Optional. Configuration options for model generation and outputs.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.GenerationConfig generation_config = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.GenerationConfigOrBuilder getGenerationConfigOrBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurn.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurn.java new file mode 100644 index 000000000000..f6a40b9920d9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurn.java @@ -0,0 +1,1303 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Represents a single turn/invocation in the conversation.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ConversationTurn} + */ +@com.google.protobuf.Generated +public final class ConversationTurn extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ConversationTurn) + ConversationTurnOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConversationTurn"); + } + + // Use ConversationTurn.newBuilder() to construct. + private ConversationTurn(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConversationTurn() { + turnId_ = ""; + events_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ConversationTurn.class, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder.class); + } + + private int bitField0_; + public static final int TURN_INDEX_FIELD_NUMBER = 1; + private int turnIndex_ = 0; + + /** + * + * + *
            +   * Required. The 0-based index of the turn in the conversation sequence.
            +   * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + @java.lang.Override + public boolean hasTurnIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The 0-based index of the turn in the conversation sequence.
            +   * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + public static final int TURN_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object turnId_ = ""; + + /** + * + * + *
            +   * Optional. A unique identifier for the turn.
            +   * Useful for referencing specific turns across systems.
            +   * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + @java.lang.Override + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + 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(); + turnId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A unique identifier for the turn.
            +   * Useful for referencing specific turns across systems.
            +   * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List events_; + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getEventsList() { + return events_; + } + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getEventsOrBuilderList() { + return events_; + } + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getEventsCount() { + return events_.size(); + } + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEvent getEvents(int index) { + return events_.get(index); + } + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder getEventsOrBuilder(int index) { + return events_.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.writeInt32(1, turnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, turnId_); + } + for (int i = 0; i < events_.size(); i++) { + output.writeMessage(3, events_.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.computeInt32Size(1, turnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, turnId_); + } + for (int i = 0; i < events_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, events_.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.ConversationTurn)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ConversationTurn other = + (com.google.cloud.aiplatform.v1beta1.ConversationTurn) obj; + + if (hasTurnIndex() != other.hasTurnIndex()) return false; + if (hasTurnIndex()) { + if (getTurnIndex() != other.getTurnIndex()) return false; + } + if (!getTurnId().equals(other.getTurnId())) return false; + if (!getEventsList().equals(other.getEventsList())) 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 (hasTurnIndex()) { + hash = (37 * hash) + TURN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTurnIndex(); + } + hash = (37 * hash) + TURN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTurnId().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn 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.ConversationTurn parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn 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.ConversationTurn parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn 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.ConversationTurn parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.ConversationTurn prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents a single turn/invocation in the conversation.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ConversationTurn} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ConversationTurn) + com.google.cloud.aiplatform.v1beta1.ConversationTurnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ConversationTurn.class, + com.google.cloud.aiplatform.v1beta1.ConversationTurn.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ConversationTurn.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + turnIndex_ = 0; + turnId_ = ""; + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + } else { + events_ = null; + eventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationAgentDataProto + .internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurn getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ConversationTurn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurn build() { + com.google.cloud.aiplatform.v1beta1.ConversationTurn result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ConversationTurn buildPartial() { + com.google.cloud.aiplatform.v1beta1.ConversationTurn result = + new com.google.cloud.aiplatform.v1beta1.ConversationTurn(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ConversationTurn result) { + if (eventsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.events_ = events_; + } else { + result.events_ = eventsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.ConversationTurn result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.turnIndex_ = turnIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.turnId_ = turnId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ConversationTurn) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ConversationTurn) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.ConversationTurn other) { + if (other == com.google.cloud.aiplatform.v1beta1.ConversationTurn.getDefaultInstance()) + return this; + if (other.hasTurnIndex()) { + setTurnIndex(other.getTurnIndex()); + } + if (!other.getTurnId().isEmpty()) { + turnId_ = other.turnId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (eventsBuilder_ == null) { + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + } else { + if (!other.events_.isEmpty()) { + if (eventsBuilder_.isEmpty()) { + eventsBuilder_.dispose(); + eventsBuilder_ = null; + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + eventsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEventsFieldBuilder() + : null; + } else { + eventsBuilder_.addAllMessages(other.events_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + turnIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + turnId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.AgentEvent m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.AgentEvent.parser(), extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + 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 int turnIndex_; + + /** + * + * + *
            +     * Required. The 0-based index of the turn in the conversation sequence.
            +     * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + @java.lang.Override + public boolean hasTurnIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The 0-based index of the turn in the conversation sequence.
            +     * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + /** + * + * + *
            +     * Required. The 0-based index of the turn in the conversation sequence.
            +     * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The turnIndex to set. + * @return This builder for chaining. + */ + public Builder setTurnIndex(int value) { + + turnIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The 0-based index of the turn in the conversation sequence.
            +     * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTurnIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + turnIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object turnId_ = ""; + + /** + * + * + *
            +     * Optional. A unique identifier for the turn.
            +     * Useful for referencing specific turns across systems.
            +     * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. A unique identifier for the turn.
            +     * Useful for referencing specific turns across systems.
            +     * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. A unique identifier for the turn.
            +     * Useful for referencing specific turns across systems.
            +     * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A unique identifier for the turn.
            +     * Useful for referencing specific turns across systems.
            +     * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTurnId() { + turnId_ = getDefaultInstance().getTurnId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A unique identifier for the turn.
            +     * Useful for referencing specific turns across systems.
            +     * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List events_ = + java.util.Collections.emptyList(); + + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + events_ = new java.util.ArrayList(events_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentEvent, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder> + eventsBuilder_; + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getEventsList() { + if (eventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(events_); + } else { + return eventsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getEventsCount() { + if (eventsBuilder_ == null) { + return events_.size(); + } else { + return eventsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEvent getEvents(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvents(int index, com.google.cloud.aiplatform.v1beta1.AgentEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + } else { + eventsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvents( + int index, com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.set(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents(com.google.cloud.aiplatform.v1beta1.AgentEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + } else { + eventsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents(int index, com.google.cloud.aiplatform.v1beta1.AgentEvent value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(index, value); + onChanged(); + } else { + eventsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + int index, com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllEvents( + java.lang.Iterable values) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + onChanged(); + } else { + eventsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + eventsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeEvents(int index) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.remove(index); + onChanged(); + } else { + eventsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder getEventsBuilder(int index) { + return internalGetEventsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder getEventsOrBuilder(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEventsOrBuilderList() { + if (eventsBuilder_ != null) { + return eventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(events_); + } + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder addEventsBuilder() { + return internalGetEventsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.AgentEvent.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder addEventsBuilder(int index) { + return internalGetEventsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.AgentEvent.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The list of events that occurred during this turn.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEventsBuilderList() { + return internalGetEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentEvent, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder> + internalGetEventsFieldBuilder() { + if (eventsBuilder_ == null) { + eventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentEvent, + com.google.cloud.aiplatform.v1beta1.AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder>( + events_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + events_ = null; + } + return eventsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ConversationTurn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ConversationTurn) + private static final com.google.cloud.aiplatform.v1beta1.ConversationTurn DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ConversationTurn(); + } + + public static com.google.cloud.aiplatform.v1beta1.ConversationTurn getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationTurn 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.ConversationTurn getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurnOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurnOrBuilder.java new file mode 100644 index 000000000000..9a3c544cf1a6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ConversationTurnOrBuilder.java @@ -0,0 +1,148 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ConversationTurnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ConversationTurn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The 0-based index of the turn in the conversation sequence.
            +   * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + boolean hasTurnIndex(); + + /** + * + * + *
            +   * Required. The 0-based index of the turn in the conversation sequence.
            +   * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + int getTurnIndex(); + + /** + * + * + *
            +   * Optional. A unique identifier for the turn.
            +   * Useful for referencing specific turns across systems.
            +   * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + java.lang.String getTurnId(); + + /** + * + * + *
            +   * Optional. A unique identifier for the turn.
            +   * Useful for referencing specific turns across systems.
            +   * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + com.google.protobuf.ByteString getTurnIdBytes(); + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getEventsList(); + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AgentEvent getEvents(int index); + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getEventsCount(); + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getEventsOrBuilderList(); + + /** + * + * + *
            +   * Optional. The list of events that occurred during this turn.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AgentEventOrBuilder getEventsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..6d71c27b5314 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Metadata for the CreateOnlineEvaluator operation.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class CreateOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + CreateOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateOnlineEvaluatorOperationMetadata"); + } + + // Use CreateOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private CreateOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + 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.CreateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + 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.CreateOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + 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.CreateOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata for the CreateOnlineEvaluator operation.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @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.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + .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( + internalGetGenericMetadataFieldBuilder().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.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOnlineEvaluatorOperationMetadata 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.CreateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..50b331142d30 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface CreateOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..aa91c84fd335 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequest.java @@ -0,0 +1,946 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Request message for CreateOnlineEvaluator.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class CreateOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + CreateOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateOnlineEvaluatorRequest"); + } + + // Use CreateOnlineEvaluatorRequest.newBuilder() to construct. + private CreateOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateOnlineEvaluatorRequest() { + parent_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent resource where the OnlineEvaluator will be created.
            +   * Format: projects/{project}/locations/{location}.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent resource where the OnlineEvaluator will be created.
            +   * Format: projects/{project}/locations/{location}.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ONLINE_EVALUATOR_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator onlineEvaluator_; + + /** + * + * + *
            +   * Required. The OnlineEvaluator to create.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + @java.lang.Override + public boolean hasOnlineEvaluator() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The OnlineEvaluator to create.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator() { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + + /** + * + * + *
            +   * Required. The OnlineEvaluator to create.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorOrBuilder() { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getOnlineEvaluator()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getOnlineEvaluator()); + } + 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.CreateOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (hasOnlineEvaluator() != other.hasOnlineEvaluator()) return false; + if (hasOnlineEvaluator()) { + if (!getOnlineEvaluator().equals(other.getOnlineEvaluator())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + if (hasOnlineEvaluator()) { + hash = (37 * hash) + ONLINE_EVALUATOR_FIELD_NUMBER; + hash = (53 * hash) + getOnlineEvaluator().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest 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.CreateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest 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.CreateOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest 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.CreateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for CreateOnlineEvaluator.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOnlineEvaluatorFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + onlineEvaluator_ = null; + if (onlineEvaluatorBuilder_ != null) { + onlineEvaluatorBuilder_.dispose(); + onlineEvaluatorBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.onlineEvaluator_ = + onlineEvaluatorBuilder_ == null ? onlineEvaluator_ : onlineEvaluatorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasOnlineEvaluator()) { + mergeOnlineEvaluator(other.getOnlineEvaluator()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetOnlineEvaluatorFieldBuilder().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 java.lang.Object parent_ = ""; + + /** + * + * + *
            +     * Required. The parent resource where the OnlineEvaluator will be created.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource where the OnlineEvaluator will be created.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource where the OnlineEvaluator will be created.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource where the OnlineEvaluator will be created.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource where the OnlineEvaluator will be created.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator onlineEvaluator_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + onlineEvaluatorBuilder_; + + /** + * + * + *
            +     * Required. The OnlineEvaluator to create.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + public boolean hasOnlineEvaluator() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to create.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator() { + if (onlineEvaluatorBuilder_ == null) { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } else { + return onlineEvaluatorBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to create.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + onlineEvaluator_ = value; + } else { + onlineEvaluatorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to create.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorBuilder_ == null) { + onlineEvaluator_ = builderForValue.build(); + } else { + onlineEvaluatorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to create.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && onlineEvaluator_ != null + && onlineEvaluator_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()) { + getOnlineEvaluatorBuilder().mergeFrom(value); + } else { + onlineEvaluator_ = value; + } + } else { + onlineEvaluatorBuilder_.mergeFrom(value); + } + if (onlineEvaluator_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to create.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOnlineEvaluator() { + bitField0_ = (bitField0_ & ~0x00000002); + onlineEvaluator_ = null; + if (onlineEvaluatorBuilder_ != null) { + onlineEvaluatorBuilder_.dispose(); + onlineEvaluatorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to create.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder getOnlineEvaluatorBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetOnlineEvaluatorFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to create.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorOrBuilder() { + if (onlineEvaluatorBuilder_ != null) { + return onlineEvaluatorBuilder_.getMessageOrBuilder(); + } else { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to create.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + internalGetOnlineEvaluatorFieldBuilder() { + if (onlineEvaluatorBuilder_ == null) { + onlineEvaluatorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder>( + getOnlineEvaluator(), getParentForChildren(), isClean()); + onlineEvaluator_ = null; + } + return onlineEvaluatorBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateOnlineEvaluatorRequest 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.CreateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..8c967ff545b1 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CreateOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,103 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface CreateOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent resource where the OnlineEvaluator will be created.
            +   * Format: projects/{project}/locations/{location}.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent resource where the OnlineEvaluator will be created.
            +   * Format: projects/{project}/locations/{location}.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Required. The OnlineEvaluator to create.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + boolean hasOnlineEvaluator(); + + /** + * + * + *
            +   * Required. The OnlineEvaluator to create.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator(); + + /** + * + * + *
            +   * Required. The OnlineEvaluator to create.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder getOnlineEvaluatorOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResult.java new file mode 100644 index 000000000000..14627fe91c38 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResult.java @@ -0,0 +1,550 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Result for custom code execution metric.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult} + */ +@com.google.protobuf.Generated +public final class CustomCodeExecutionResult extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + CustomCodeExecutionResultOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomCodeExecutionResult"); + } + + // Use CustomCodeExecutionResult.newBuilder() to construct. + private CustomCodeExecutionResult(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomCodeExecutionResult() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.class, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder.class); + } + + private int bitField0_; + public static final int SCORE_FIELD_NUMBER = 1; + private float score_ = 0F; + + /** + * + * + *
            +   * Output only. Custom code execution 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. Custom code execution 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.CustomCodeExecutionResult)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult other = + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) 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.CustomCodeExecutionResult parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult 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.CustomCodeExecutionResult parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult 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.CustomCodeExecutionResult parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult 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.CustomCodeExecutionResult parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Result for custom code execution metric.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.class, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.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_CustomCodeExecutionResult_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult build() { + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult buildPartial() { + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult result = + new com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult 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 mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult other) { + if (other + == com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult.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. Custom code execution 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. Custom code execution score.
            +     * 
            + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The score. + */ + @java.lang.Override + public float getScore() { + return score_; + } + + /** + * + * + *
            +     * Output only. Custom code execution 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. Custom code execution 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; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + private static final com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult(); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomCodeExecutionResult 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.CustomCodeExecutionResult getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResultOrBuilder.java new file mode 100644 index 000000000000..5215e0fe0113 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionResultOrBuilder.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface CustomCodeExecutionResultOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CustomCodeExecutionResult) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. Custom code execution score.
            +   * 
            + * + * optional float score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return Whether the score field is set. + */ + boolean hasScore(); + + /** + * + * + *
            +   * Output only. Custom code execution 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/CustomCodeExecutionSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpec.java new file mode 100644 index 000000000000..c71abb780cbc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpec.java @@ -0,0 +1,951 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Specificies a metric that is populated by evaluating user-defined Python
            + * code.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec} + */ +@com.google.protobuf.Generated +public final class CustomCodeExecutionSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + CustomCodeExecutionSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomCodeExecutionSpec"); + } + + // Use CustomCodeExecutionSpec.newBuilder() to construct. + private CustomCodeExecutionSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomCodeExecutionSpec() { + evaluationFunction_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.class, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder.class); + } + + private int bitField0_; + public static final int EVALUATION_FUNCTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object evaluationFunction_ = ""; + + /** + * + * + *
            +   * Required. Python function.
            +   * Expected user to define the following function, e.g.:
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * Please include this function signature in the code snippet.
            +   * Instance is the evaluation instance, any fields populated in the instance
            +   * are available to the function as instance[field_name].
            +   *
            +   * Example:
            +   * Example input:
            +   * ```
            +   * instance= EvaluationInstance(
            +   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +   * reference=EvaluationInstance.InstanceData(text="4")
            +   * )
            +   * ```
            +   *
            +   * Example converted input:
            +   * ```
            +   * {
            +   * 'response': {'text': 'The answer is 4.'},
            +   * 'reference': {'text': '4'}
            +   * }
            +   * ```
            +   *
            +   * Example python function:
            +   * ```
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * if instance['response']['text'] == instance['reference']['text']:
            +   * return 1.0
            +   * return 0.0
            +   * ```
            +   *
            +   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +   * converted to dict[str, Any] and passed to the evaluation function.
            +   * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the evaluationFunction field is set. + */ + @java.lang.Override + public boolean hasEvaluationFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. Python function.
            +   * Expected user to define the following function, e.g.:
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * Please include this function signature in the code snippet.
            +   * Instance is the evaluation instance, any fields populated in the instance
            +   * are available to the function as instance[field_name].
            +   *
            +   * Example:
            +   * Example input:
            +   * ```
            +   * instance= EvaluationInstance(
            +   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +   * reference=EvaluationInstance.InstanceData(text="4")
            +   * )
            +   * ```
            +   *
            +   * Example converted input:
            +   * ```
            +   * {
            +   * 'response': {'text': 'The answer is 4.'},
            +   * 'reference': {'text': '4'}
            +   * }
            +   * ```
            +   *
            +   * Example python function:
            +   * ```
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * if instance['response']['text'] == instance['reference']['text']:
            +   * return 1.0
            +   * return 0.0
            +   * ```
            +   *
            +   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +   * converted to dict[str, Any] and passed to the evaluation function.
            +   * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The evaluationFunction. + */ + @java.lang.Override + public java.lang.String getEvaluationFunction() { + java.lang.Object ref = evaluationFunction_; + 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(); + evaluationFunction_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Python function.
            +   * Expected user to define the following function, e.g.:
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * Please include this function signature in the code snippet.
            +   * Instance is the evaluation instance, any fields populated in the instance
            +   * are available to the function as instance[field_name].
            +   *
            +   * Example:
            +   * Example input:
            +   * ```
            +   * instance= EvaluationInstance(
            +   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +   * reference=EvaluationInstance.InstanceData(text="4")
            +   * )
            +   * ```
            +   *
            +   * Example converted input:
            +   * ```
            +   * {
            +   * 'response': {'text': 'The answer is 4.'},
            +   * 'reference': {'text': '4'}
            +   * }
            +   * ```
            +   *
            +   * Example python function:
            +   * ```
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * if instance['response']['text'] == instance['reference']['text']:
            +   * return 1.0
            +   * return 0.0
            +   * ```
            +   *
            +   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +   * converted to dict[str, Any] and passed to the evaluation function.
            +   * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for evaluationFunction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEvaluationFunctionBytes() { + java.lang.Object ref = evaluationFunction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluationFunction_ = 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.GeneratedMessage.writeString(output, 1, evaluationFunction_); + } + 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.GeneratedMessage.computeStringSize(1, evaluationFunction_); + } + 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.CustomCodeExecutionSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec other = + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) obj; + + if (hasEvaluationFunction() != other.hasEvaluationFunction()) return false; + if (hasEvaluationFunction()) { + if (!getEvaluationFunction().equals(other.getEvaluationFunction())) 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 (hasEvaluationFunction()) { + hash = (37 * hash) + EVALUATION_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getEvaluationFunction().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec 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.CustomCodeExecutionSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec 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.CustomCodeExecutionSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec 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.CustomCodeExecutionSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Specificies a metric that is populated by evaluating user-defined Python
            +   * code.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.class, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluationFunction_ = ""; + 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_CustomCodeExecutionSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec build() { + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec result = + new com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.evaluationFunction_ = evaluationFunction_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance()) + return this; + if (other.hasEvaluationFunction()) { + evaluationFunction_ = other.evaluationFunction_; + 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: + { + evaluationFunction_ = 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 evaluationFunction_ = ""; + + /** + * + * + *
            +     * Required. Python function.
            +     * Expected user to define the following function, e.g.:
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * Please include this function signature in the code snippet.
            +     * Instance is the evaluation instance, any fields populated in the instance
            +     * are available to the function as instance[field_name].
            +     *
            +     * Example:
            +     * Example input:
            +     * ```
            +     * instance= EvaluationInstance(
            +     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +     * reference=EvaluationInstance.InstanceData(text="4")
            +     * )
            +     * ```
            +     *
            +     * Example converted input:
            +     * ```
            +     * {
            +     * 'response': {'text': 'The answer is 4.'},
            +     * 'reference': {'text': '4'}
            +     * }
            +     * ```
            +     *
            +     * Example python function:
            +     * ```
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * if instance['response']['text'] == instance['reference']['text']:
            +     * return 1.0
            +     * return 0.0
            +     * ```
            +     *
            +     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +     * converted to dict[str, Any] and passed to the evaluation function.
            +     * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the evaluationFunction field is set. + */ + public boolean hasEvaluationFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. Python function.
            +     * Expected user to define the following function, e.g.:
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * Please include this function signature in the code snippet.
            +     * Instance is the evaluation instance, any fields populated in the instance
            +     * are available to the function as instance[field_name].
            +     *
            +     * Example:
            +     * Example input:
            +     * ```
            +     * instance= EvaluationInstance(
            +     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +     * reference=EvaluationInstance.InstanceData(text="4")
            +     * )
            +     * ```
            +     *
            +     * Example converted input:
            +     * ```
            +     * {
            +     * 'response': {'text': 'The answer is 4.'},
            +     * 'reference': {'text': '4'}
            +     * }
            +     * ```
            +     *
            +     * Example python function:
            +     * ```
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * if instance['response']['text'] == instance['reference']['text']:
            +     * return 1.0
            +     * return 0.0
            +     * ```
            +     *
            +     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +     * converted to dict[str, Any] and passed to the evaluation function.
            +     * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The evaluationFunction. + */ + public java.lang.String getEvaluationFunction() { + java.lang.Object ref = evaluationFunction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + evaluationFunction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Python function.
            +     * Expected user to define the following function, e.g.:
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * Please include this function signature in the code snippet.
            +     * Instance is the evaluation instance, any fields populated in the instance
            +     * are available to the function as instance[field_name].
            +     *
            +     * Example:
            +     * Example input:
            +     * ```
            +     * instance= EvaluationInstance(
            +     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +     * reference=EvaluationInstance.InstanceData(text="4")
            +     * )
            +     * ```
            +     *
            +     * Example converted input:
            +     * ```
            +     * {
            +     * 'response': {'text': 'The answer is 4.'},
            +     * 'reference': {'text': '4'}
            +     * }
            +     * ```
            +     *
            +     * Example python function:
            +     * ```
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * if instance['response']['text'] == instance['reference']['text']:
            +     * return 1.0
            +     * return 0.0
            +     * ```
            +     *
            +     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +     * converted to dict[str, Any] and passed to the evaluation function.
            +     * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for evaluationFunction. + */ + public com.google.protobuf.ByteString getEvaluationFunctionBytes() { + java.lang.Object ref = evaluationFunction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + evaluationFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Python function.
            +     * Expected user to define the following function, e.g.:
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * Please include this function signature in the code snippet.
            +     * Instance is the evaluation instance, any fields populated in the instance
            +     * are available to the function as instance[field_name].
            +     *
            +     * Example:
            +     * Example input:
            +     * ```
            +     * instance= EvaluationInstance(
            +     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +     * reference=EvaluationInstance.InstanceData(text="4")
            +     * )
            +     * ```
            +     *
            +     * Example converted input:
            +     * ```
            +     * {
            +     * 'response': {'text': 'The answer is 4.'},
            +     * 'reference': {'text': '4'}
            +     * }
            +     * ```
            +     *
            +     * Example python function:
            +     * ```
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * if instance['response']['text'] == instance['reference']['text']:
            +     * return 1.0
            +     * return 0.0
            +     * ```
            +     *
            +     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +     * converted to dict[str, Any] and passed to the evaluation function.
            +     * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The evaluationFunction to set. + * @return This builder for chaining. + */ + public Builder setEvaluationFunction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + evaluationFunction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Python function.
            +     * Expected user to define the following function, e.g.:
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * Please include this function signature in the code snippet.
            +     * Instance is the evaluation instance, any fields populated in the instance
            +     * are available to the function as instance[field_name].
            +     *
            +     * Example:
            +     * Example input:
            +     * ```
            +     * instance= EvaluationInstance(
            +     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +     * reference=EvaluationInstance.InstanceData(text="4")
            +     * )
            +     * ```
            +     *
            +     * Example converted input:
            +     * ```
            +     * {
            +     * 'response': {'text': 'The answer is 4.'},
            +     * 'reference': {'text': '4'}
            +     * }
            +     * ```
            +     *
            +     * Example python function:
            +     * ```
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * if instance['response']['text'] == instance['reference']['text']:
            +     * return 1.0
            +     * return 0.0
            +     * ```
            +     *
            +     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +     * converted to dict[str, Any] and passed to the evaluation function.
            +     * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEvaluationFunction() { + evaluationFunction_ = getDefaultInstance().getEvaluationFunction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Python function.
            +     * Expected user to define the following function, e.g.:
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * Please include this function signature in the code snippet.
            +     * Instance is the evaluation instance, any fields populated in the instance
            +     * are available to the function as instance[field_name].
            +     *
            +     * Example:
            +     * Example input:
            +     * ```
            +     * instance= EvaluationInstance(
            +     * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +     * reference=EvaluationInstance.InstanceData(text="4")
            +     * )
            +     * ```
            +     *
            +     * Example converted input:
            +     * ```
            +     * {
            +     * 'response': {'text': 'The answer is 4.'},
            +     * 'reference': {'text': '4'}
            +     * }
            +     * ```
            +     *
            +     * Example python function:
            +     * ```
            +     * def evaluate(instance: dict[str, Any]) -> float:
            +     * if instance['response']['text'] == instance['reference']['text']:
            +     * return 1.0
            +     * return 0.0
            +     * ```
            +     *
            +     * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +     * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +     * converted to dict[str, Any] and passed to the evaluation function.
            +     * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for evaluationFunction to set. + * @return This builder for chaining. + */ + public Builder setEvaluationFunctionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + evaluationFunction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + private static final com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomCodeExecutionSpec 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.CustomCodeExecutionSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpecOrBuilder.java new file mode 100644 index 000000000000..0958e5c21823 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/CustomCodeExecutionSpecOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface CustomCodeExecutionSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. Python function.
            +   * Expected user to define the following function, e.g.:
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * Please include this function signature in the code snippet.
            +   * Instance is the evaluation instance, any fields populated in the instance
            +   * are available to the function as instance[field_name].
            +   *
            +   * Example:
            +   * Example input:
            +   * ```
            +   * instance= EvaluationInstance(
            +   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +   * reference=EvaluationInstance.InstanceData(text="4")
            +   * )
            +   * ```
            +   *
            +   * Example converted input:
            +   * ```
            +   * {
            +   * 'response': {'text': 'The answer is 4.'},
            +   * 'reference': {'text': '4'}
            +   * }
            +   * ```
            +   *
            +   * Example python function:
            +   * ```
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * if instance['response']['text'] == instance['reference']['text']:
            +   * return 1.0
            +   * return 0.0
            +   * ```
            +   *
            +   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +   * converted to dict[str, Any] and passed to the evaluation function.
            +   * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the evaluationFunction field is set. + */ + boolean hasEvaluationFunction(); + + /** + * + * + *
            +   * Required. Python function.
            +   * Expected user to define the following function, e.g.:
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * Please include this function signature in the code snippet.
            +   * Instance is the evaluation instance, any fields populated in the instance
            +   * are available to the function as instance[field_name].
            +   *
            +   * Example:
            +   * Example input:
            +   * ```
            +   * instance= EvaluationInstance(
            +   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +   * reference=EvaluationInstance.InstanceData(text="4")
            +   * )
            +   * ```
            +   *
            +   * Example converted input:
            +   * ```
            +   * {
            +   * 'response': {'text': 'The answer is 4.'},
            +   * 'reference': {'text': '4'}
            +   * }
            +   * ```
            +   *
            +   * Example python function:
            +   * ```
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * if instance['response']['text'] == instance['reference']['text']:
            +   * return 1.0
            +   * return 0.0
            +   * ```
            +   *
            +   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +   * converted to dict[str, Any] and passed to the evaluation function.
            +   * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The evaluationFunction. + */ + java.lang.String getEvaluationFunction(); + + /** + * + * + *
            +   * Required. Python function.
            +   * Expected user to define the following function, e.g.:
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * Please include this function signature in the code snippet.
            +   * Instance is the evaluation instance, any fields populated in the instance
            +   * are available to the function as instance[field_name].
            +   *
            +   * Example:
            +   * Example input:
            +   * ```
            +   * instance= EvaluationInstance(
            +   * response=EvaluationInstance.InstanceData(text="The answer is 4."),
            +   * reference=EvaluationInstance.InstanceData(text="4")
            +   * )
            +   * ```
            +   *
            +   * Example converted input:
            +   * ```
            +   * {
            +   * 'response': {'text': 'The answer is 4.'},
            +   * 'reference': {'text': '4'}
            +   * }
            +   * ```
            +   *
            +   * Example python function:
            +   * ```
            +   * def evaluate(instance: dict[str, Any]) -> float:
            +   * if instance['response']['text'] == instance['reference']['text']:
            +   * return 1.0
            +   * return 0.0
            +   * ```
            +   *
            +   * CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset
            +   * RPC) and Tuning Evaluation. Each line in the input jsonl file will be
            +   * converted to dict[str, Any] and passed to the evaluation function.
            +   * 
            + * + * optional string evaluation_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for evaluationFunction. + */ + com.google.protobuf.ByteString getEvaluationFunctionBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..caa8ad846bf9 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Metadata for the DeleteOnlineEvaluator operation.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class DeleteOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + DeleteOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteOnlineEvaluatorOperationMetadata"); + } + + // Use DeleteOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private DeleteOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + 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.DeleteOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + 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.DeleteOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + 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.DeleteOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata for the DeleteOnlineEvaluator operation.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @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.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + .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( + internalGetGenericMetadataFieldBuilder().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.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOnlineEvaluatorOperationMetadata 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.DeleteOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..fce2405e409c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..1e6e2b541b06 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequest.java @@ -0,0 +1,625 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Request message for DeleteOnlineEvaluator.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class DeleteOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + DeleteOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteOnlineEvaluatorRequest"); + } + + // Use DeleteOnlineEvaluatorRequest.newBuilder() to construct. + private DeleteOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteOnlineEvaluatorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to delete.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to delete.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.DeleteOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest 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.DeleteOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest 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.DeleteOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest 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.DeleteOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for DeleteOnlineEvaluator.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to delete.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to delete.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to delete.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to delete.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to delete.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteOnlineEvaluatorRequest 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.DeleteOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..7ee7dcef610d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/DeleteOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface DeleteOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to delete.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to delete.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} 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 8652387eb488..55e4a4943c74 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 @@ -53,6 +53,8 @@ private EvaluateInstancesRequest(com.google.protobuf.GeneratedMessage.Builder private EvaluateInstancesRequest() { location_ = ""; + metrics_ = java.util.Collections.emptyList(); + metricSources_ = java.util.Collections.emptyList(); } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -2180,6 +2182,242 @@ public com.google.protobuf.ByteString getLocationBytes() { } } + public static final int METRICS_FIELD_NUMBER = 49; + + @SuppressWarnings("serial") + private java.util.List metrics_; + + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public java.util.List getMetricsList() { + return metrics_; + } + + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public java.util.List + getMetricsOrBuilderList() { + return metrics_; + } + + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public int getMetricsCount() { + return metrics_.size(); + } + + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Metric getMetrics(int index) { + return metrics_.get(index); + } + + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricsOrBuilder(int index) { + return metrics_.get(index); + } + + public static final int METRIC_SOURCES_FIELD_NUMBER = 52; + + @SuppressWarnings("serial") + private java.util.List metricSources_; + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getMetricSourcesList() { + return metricSources_; + } + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getMetricSourcesOrBuilderList() { + return metricSources_; + } + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getMetricSourcesCount() { + return metricSources_.size(); + } + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index) { + return metricSources_.get(index); + } + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder( + int index) { + return metricSources_.get(index); + } + + public static final int INSTANCE_FIELD_NUMBER = 50; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance instance_; + + /** + * + * + *
            +   * The instance to be evaluated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return Whether the instance field is set. + */ + @java.lang.Override + public boolean hasInstance() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * The instance to be evaluated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return The instance. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance getInstance() { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance() + : instance_; + } + + /** + * + * + *
            +   * The instance to be evaluated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder getInstanceOrBuilder() { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance() + : instance_; + } + public static final int AUTORATER_CONFIG_FIELD_NUMBER = 30; private com.google.cloud.aiplatform.v1beta1.AutoraterConfig autoraterConfig_; @@ -2198,7 +2436,7 @@ public com.google.protobuf.ByteString getLocationBytes() { */ @java.lang.Override public boolean hasAutoraterConfig() { - return ((bitField0_ & 0x00000001) != 0); + return ((bitField0_ & 0x00000002) != 0); } /** @@ -2346,7 +2584,7 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io output.writeMessage( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(30, getAutoraterConfig()); } if (metricInputsCase_ == 31) { @@ -2384,6 +2622,15 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io 40, (com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInput) metricInputs_); } + for (int i = 0; i < metrics_.size(); i++) { + output.writeMessage(49, metrics_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(50, getInstance()); + } + for (int i = 0; i < metricSources_.size(); i++) { + output.writeMessage(52, metricSources_.get(i)); + } getUnknownFields().writeTo(output); } @@ -2522,7 +2769,7 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 29, (com.google.cloud.aiplatform.v1beta1.PairwiseMetricInput) metricInputs_); } - if (((bitField0_ & 0x00000001) != 0)) { + if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(30, getAutoraterConfig()); } if (metricInputsCase_ == 31) { @@ -2572,6 +2819,15 @@ public int getSerializedSize() { (com.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInput) metricInputs_); } + for (int i = 0; i < metrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(49, metrics_.get(i)); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(50, getInstance()); + } + for (int i = 0; i < metricSources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(52, metricSources_.get(i)); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -2589,6 +2845,12 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest) obj; if (!getLocation().equals(other.getLocation())) return false; + if (!getMetricsList().equals(other.getMetricsList())) return false; + if (!getMetricSourcesList().equals(other.getMetricSourcesList())) return false; + if (hasInstance() != other.hasInstance()) return false; + if (hasInstance()) { + if (!getInstance().equals(other.getInstance())) return false; + } if (hasAutoraterConfig() != other.hasAutoraterConfig()) return false; if (hasAutoraterConfig()) { if (!getAutoraterConfig().equals(other.getAutoraterConfig())) return false; @@ -2724,6 +2986,18 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + LOCATION_FIELD_NUMBER; hash = (53 * hash) + getLocation().hashCode(); + if (getMetricsCount() > 0) { + hash = (37 * hash) + METRICS_FIELD_NUMBER; + hash = (53 * hash) + getMetricsList().hashCode(); + } + if (getMetricSourcesCount() > 0) { + hash = (37 * hash) + METRIC_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getMetricSourcesList().hashCode(); + } + if (hasInstance()) { + hash = (37 * hash) + INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + getInstance().hashCode(); + } if (hasAutoraterConfig()) { hash = (37 * hash) + AUTORATER_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAutoraterConfig().hashCode(); @@ -3002,6 +3276,9 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetricsFieldBuilder(); + internalGetMetricSourcesFieldBuilder(); + internalGetInstanceFieldBuilder(); internalGetAutoraterConfigFieldBuilder(); } } @@ -3108,6 +3385,25 @@ public Builder clear() { rubricBasedInstructionFollowingInputBuilder_.clear(); } location_ = ""; + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + } else { + metrics_ = null; + metricsBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000002); + if (metricSourcesBuilder_ == null) { + metricSources_ = java.util.Collections.emptyList(); + } else { + metricSources_ = null; + metricSourcesBuilder_.clear(); + } + bitField1_ = (bitField1_ & ~0x00000004); + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } autoraterConfig_ = null; if (autoraterConfigBuilder_ != null) { autoraterConfigBuilder_.dispose(); @@ -3143,6 +3439,7 @@ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest build() { public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest buildPartial() { com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result = new com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -3154,6 +3451,28 @@ public com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest buildPartial return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result) { + if (metricsBuilder_ == null) { + if (((bitField1_ & 0x00000002) != 0)) { + metrics_ = java.util.Collections.unmodifiableList(metrics_); + bitField1_ = (bitField1_ & ~0x00000002); + } + result.metrics_ = metrics_; + } else { + result.metrics_ = metricsBuilder_.build(); + } + if (metricSourcesBuilder_ == null) { + if (((bitField1_ & 0x00000004) != 0)) { + metricSources_ = java.util.Collections.unmodifiableList(metricSources_); + bitField1_ = (bitField1_ & ~0x00000004); + } + result.metricSources_ = metricSources_; + } else { + result.metricSources_ = metricSourcesBuilder_.build(); + } + } + private void buildPartial0( com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest result) { int from_bitField0_ = bitField0_; @@ -3166,10 +3485,14 @@ private void buildPartial1( result.location_ = location_; } int to_bitField0_ = 0; - if (((from_bitField1_ & 0x00000002) != 0)) { + if (((from_bitField1_ & 0x00000008) != 0)) { + result.instance_ = instanceBuilder_ == null ? instance_ : instanceBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField1_ & 0x00000010) != 0)) { result.autoraterConfig_ = autoraterConfigBuilder_ == null ? autoraterConfig_ : autoraterConfigBuilder_.build(); - to_bitField0_ |= 0x00000001; + to_bitField0_ |= 0x00000002; } result.bitField0_ |= to_bitField0_; } @@ -3295,6 +3618,63 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRe bitField1_ |= 0x00000001; onChanged(); } + if (metricsBuilder_ == null) { + if (!other.metrics_.isEmpty()) { + if (metrics_.isEmpty()) { + metrics_ = other.metrics_; + bitField1_ = (bitField1_ & ~0x00000002); + } else { + ensureMetricsIsMutable(); + metrics_.addAll(other.metrics_); + } + onChanged(); + } + } else { + if (!other.metrics_.isEmpty()) { + if (metricsBuilder_.isEmpty()) { + metricsBuilder_.dispose(); + metricsBuilder_ = null; + metrics_ = other.metrics_; + bitField1_ = (bitField1_ & ~0x00000002); + metricsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricsFieldBuilder() + : null; + } else { + metricsBuilder_.addAllMessages(other.metrics_); + } + } + } + if (metricSourcesBuilder_ == null) { + if (!other.metricSources_.isEmpty()) { + if (metricSources_.isEmpty()) { + metricSources_ = other.metricSources_; + bitField1_ = (bitField1_ & ~0x00000004); + } else { + ensureMetricSourcesIsMutable(); + metricSources_.addAll(other.metricSources_); + } + onChanged(); + } + } else { + if (!other.metricSources_.isEmpty()) { + if (metricSourcesBuilder_.isEmpty()) { + metricSourcesBuilder_.dispose(); + metricSourcesBuilder_ = null; + metricSources_ = other.metricSources_; + bitField1_ = (bitField1_ & ~0x00000004); + metricSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricSourcesFieldBuilder() + : null; + } else { + metricSourcesBuilder_.addAllMessages(other.metricSources_); + } + } + } + if (other.hasInstance()) { + mergeInstance(other.getInstance()); + } if (other.hasAutoraterConfig()) { mergeAutoraterConfig(other.getAutoraterConfig()); } @@ -3674,7 +4054,7 @@ public Builder mergeFrom( { input.readMessage( internalGetAutoraterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; break; } // case 242 case 250: @@ -3746,6 +4126,40 @@ public Builder mergeFrom( metricInputsCase_ = 40; break; } // case 322 + case 394: + { + com.google.cloud.aiplatform.v1beta1.Metric m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Metric.parser(), extensionRegistry); + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(m); + } else { + metricsBuilder_.addMessage(m); + } + break; + } // case 394 + case 402: + { + input.readMessage( + internalGetInstanceFieldBuilder().getBuilder(), extensionRegistry); + bitField1_ |= 0x00000008; + break; + } // case 402 + case 418: + { + com.google.cloud.aiplatform.v1beta1.MetricSource m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetricSource.parser(), + extensionRegistry); + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(m); + } else { + metricSourcesBuilder_.addMessage(m); + } + break; + } // case 418 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -11529,50 +11943,57 @@ public Builder setLocationBytes(com.google.protobuf.ByteString value) { return this; } - private com.google.cloud.aiplatform.v1beta1.AutoraterConfig autoraterConfig_; - private com.google.protobuf.SingleFieldBuilder< - com.google.cloud.aiplatform.v1beta1.AutoraterConfig, - com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, - com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> - autoraterConfigBuilder_; + private java.util.List metrics_ = + java.util.Collections.emptyList(); + + private void ensureMetricsIsMutable() { + if (!((bitField1_ & 0x00000002) != 0)) { + metrics_ = new java.util.ArrayList(metrics_); + bitField1_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder> + metricsBuilder_; /** * * *
            -     * Optional. Autorater config used for evaluation.
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
                  * 
            * - * - * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return Whether the autoraterConfig field is set. + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; */ - public boolean hasAutoraterConfig() { - return ((bitField1_ & 0x00000002) != 0); + public java.util.List getMetricsList() { + if (metricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(metrics_); + } else { + return metricsBuilder_.getMessageList(); + } } /** * * *
            -     * Optional. Autorater config used for evaluation.
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
                  * 
            * - * - * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; - * - * - * @return The autoraterConfig. + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; */ - public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getAutoraterConfig() { - if (autoraterConfigBuilder_ == null) { - return autoraterConfig_ == null - ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() - : autoraterConfig_; + public int getMetricsCount() { + if (metricsBuilder_ == null) { + return metrics_.size(); } else { - return autoraterConfigBuilder_.getMessage(); + return metricsBuilder_.getCount(); } } @@ -11580,37 +12001,1077 @@ public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getAutoraterConfig() * * *
            -     * Optional. Autorater config used for evaluation.
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
                  * 
            * - * - * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; */ - public Builder setAutoraterConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { - if (autoraterConfigBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - autoraterConfig_ = value; + public com.google.cloud.aiplatform.v1beta1.Metric getMetrics(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); } else { - autoraterConfigBuilder_.setMessage(value); + return metricsBuilder_.getMessage(index); } - bitField1_ |= 0x00000002; - onChanged(); - return this; } /** * * *
            -     * Optional. Autorater config used for evaluation.
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
                  * 
            * - * - * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; - * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder setMetrics(int index, com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.set(index, value); + onChanged(); + } else { + metricsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder setMetrics( + int index, com.google.cloud.aiplatform.v1beta1.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.set(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addMetrics(com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(value); + onChanged(); + } else { + metricsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addMetrics(int index, com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricsIsMutable(); + metrics_.add(index, value); + onChanged(); + } else { + metricsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addMetrics(com.google.cloud.aiplatform.v1beta1.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addMetrics( + int index, com.google.cloud.aiplatform.v1beta1.Metric.Builder builderForValue) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.add(index, builderForValue.build()); + onChanged(); + } else { + metricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder addAllMetrics( + java.lang.Iterable values) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metrics_); + onChanged(); + } else { + metricsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder clearMetrics() { + if (metricsBuilder_ == null) { + metrics_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000002); + onChanged(); + } else { + metricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public Builder removeMetrics(int index) { + if (metricsBuilder_ == null) { + ensureMetricsIsMutable(); + metrics_.remove(index); + onChanged(); + } else { + metricsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public com.google.cloud.aiplatform.v1beta1.Metric.Builder getMetricsBuilder(int index) { + return internalGetMetricsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricsOrBuilder(int index) { + if (metricsBuilder_ == null) { + return metrics_.get(index); + } else { + return metricsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public java.util.List + getMetricsOrBuilderList() { + if (metricsBuilder_ != null) { + return metricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metrics_); + } + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public com.google.cloud.aiplatform.v1beta1.Metric.Builder addMetricsBuilder() { + return internalGetMetricsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance()); + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public com.google.cloud.aiplatform.v1beta1.Metric.Builder addMetricsBuilder(int index) { + return internalGetMetricsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance()); + } + + /** + * + * + *
            +     * The metrics used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + public java.util.List + getMetricsBuilderList() { + return internalGetMetricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder> + internalGetMetricsFieldBuilder() { + if (metricsBuilder_ == null) { + metricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder>( + metrics_, ((bitField1_ & 0x00000002) != 0), getParentForChildren(), isClean()); + metrics_ = null; + } + return metricsBuilder_; + } + + private java.util.List metricSources_ = + java.util.Collections.emptyList(); + + private void ensureMetricSourcesIsMutable() { + if (!((bitField1_ & 0x00000004) != 0)) { + metricSources_ = + new java.util.ArrayList( + metricSources_); + bitField1_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder> + metricSourcesBuilder_; + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getMetricSourcesList() { + if (metricSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricSources_); + } else { + return metricSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getMetricSourcesCount() { + if (metricSourcesBuilder_ == null) { + return metricSources_.size(); + } else { + return metricSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index) { + if (metricSourcesBuilder_ == null) { + return metricSources_.get(index); + } else { + return metricSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.set(index, value); + onChanged(); + } else { + metricSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.set(index, builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetricSources(com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.add(value); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.add(index, value); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetricSources( + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(index, builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllMetricSources( + java.lang.Iterable values) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricSources_); + onChanged(); + } else { + metricSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetricSources() { + if (metricSourcesBuilder_ == null) { + metricSources_ = java.util.Collections.emptyList(); + bitField1_ = (bitField1_ & ~0x00000004); + onChanged(); + } else { + metricSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMetricSources(int index) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.remove(index); + onChanged(); + } else { + metricSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder getMetricSourcesBuilder( + int index) { + return internalGetMetricSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder( + int index) { + if (metricSourcesBuilder_ == null) { + return metricSources_.get(index); + } else { + return metricSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMetricSourcesOrBuilderList() { + if (metricSourcesBuilder_ != null) { + return metricSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricSources_); + } + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder addMetricSourcesBuilder() { + return internalGetMetricSourcesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder addMetricSourcesBuilder( + int index) { + return internalGetMetricSourcesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()); + } + + /** + * + * + *
            +     * Optional. The metrics (either inline or registered) used for evaluation.
            +     * Currently, we only support evaluating a single metric. If multiple metrics
            +     * are provided, only the first one will be evaluated.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getMetricSourcesBuilderList() { + return internalGetMetricSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder> + internalGetMetricSourcesFieldBuilder() { + if (metricSourcesBuilder_ == null) { + metricSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder>( + metricSources_, + ((bitField1_ & 0x00000004) != 0), + getParentForChildren(), + isClean()); + metricSources_ = null; + } + return metricSourcesBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance instance_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder> + instanceBuilder_; + + /** + * + * + *
            +     * The instance to be evaluated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return Whether the instance field is set. + */ + public boolean hasInstance() { + return ((bitField1_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * The instance to be evaluated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return The instance. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance getInstance() { + if (instanceBuilder_ == null) { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance() + : instance_; + } else { + return instanceBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * The instance to be evaluated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public Builder setInstance(com.google.cloud.aiplatform.v1beta1.EvaluationInstance value) { + if (instanceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + instance_ = value; + } else { + instanceBuilder_.setMessage(value); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The instance to be evaluated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public Builder setInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder builderForValue) { + if (instanceBuilder_ == null) { + instance_ = builderForValue.build(); + } else { + instanceBuilder_.setMessage(builderForValue.build()); + } + bitField1_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The instance to be evaluated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public Builder mergeInstance(com.google.cloud.aiplatform.v1beta1.EvaluationInstance value) { + if (instanceBuilder_ == null) { + if (((bitField1_ & 0x00000008) != 0) + && instance_ != null + && instance_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance()) { + getInstanceBuilder().mergeFrom(value); + } else { + instance_ = value; + } + } else { + instanceBuilder_.mergeFrom(value); + } + if (instance_ != null) { + bitField1_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * The instance to be evaluated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public Builder clearInstance() { + bitField1_ = (bitField1_ & ~0x00000008); + instance_ = null; + if (instanceBuilder_ != null) { + instanceBuilder_.dispose(); + instanceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * The instance to be evaluated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder getInstanceBuilder() { + bitField1_ |= 0x00000008; + onChanged(); + return internalGetInstanceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * The instance to be evaluated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder getInstanceOrBuilder() { + if (instanceBuilder_ != null) { + return instanceBuilder_.getMessageOrBuilder(); + } else { + return instance_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance() + : instance_; + } + } + + /** + * + * + *
            +     * The instance to be evaluated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder> + internalGetInstanceFieldBuilder() { + if (instanceBuilder_ == null) { + instanceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder>( + getInstance(), getParentForChildren(), isClean()); + instance_ = null; + } + return instanceBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig autoraterConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + autoraterConfigBuilder_; + + /** + * + * + *
            +     * Optional. Autorater config used for evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the autoraterConfig field is set. + */ + public boolean hasAutoraterConfig() { + return ((bitField1_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. Autorater config used for evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The autoraterConfig. + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getAutoraterConfig() { + if (autoraterConfigBuilder_ == null) { + return autoraterConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : autoraterConfig_; + } else { + return autoraterConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Autorater config used for evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAutoraterConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (autoraterConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + autoraterConfig_ = value; + } else { + autoraterConfigBuilder_.setMessage(value); + } + bitField1_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Autorater config used for evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AutoraterConfig autorater_config = 30 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setAutoraterConfig( com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder builderForValue) { @@ -11619,7 +13080,7 @@ public Builder setAutoraterConfig( } else { autoraterConfigBuilder_.setMessage(builderForValue.build()); } - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); return this; } @@ -11637,7 +13098,7 @@ public Builder setAutoraterConfig( */ public Builder mergeAutoraterConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { if (autoraterConfigBuilder_ == null) { - if (((bitField1_ & 0x00000002) != 0) + if (((bitField1_ & 0x00000010) != 0) && autoraterConfig_ != null && autoraterConfig_ != com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance()) { @@ -11649,7 +13110,7 @@ public Builder mergeAutoraterConfig(com.google.cloud.aiplatform.v1beta1.Autorate autoraterConfigBuilder_.mergeFrom(value); } if (autoraterConfig_ != null) { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); } return this; @@ -11667,7 +13128,7 @@ public Builder mergeAutoraterConfig(com.google.cloud.aiplatform.v1beta1.Autorate * */ public Builder clearAutoraterConfig() { - bitField1_ = (bitField1_ & ~0x00000002); + bitField1_ = (bitField1_ & ~0x00000010); autoraterConfig_ = null; if (autoraterConfigBuilder_ != null) { autoraterConfigBuilder_.dispose(); @@ -11689,7 +13150,7 @@ public Builder clearAutoraterConfig() { * */ public com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder getAutoraterConfigBuilder() { - bitField1_ |= 0x00000002; + bitField1_ |= 0x00000010; onChanged(); return internalGetAutoraterConfigFieldBuilder().getBuilder(); } 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 be4dd0d6b5fd..770329d805fe 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 @@ -1398,6 +1398,185 @@ public interface EvaluateInstancesRequestOrBuilder */ com.google.protobuf.ByteString getLocationBytes(); + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + java.util.List getMetricsList(); + + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + com.google.cloud.aiplatform.v1beta1.Metric getMetrics(int index); + + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + int getMetricsCount(); + + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + java.util.List + getMetricsOrBuilderList(); + + /** + * + * + *
            +   * The metrics used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Metric metrics = 49; + */ + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricsOrBuilder(int index); + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getMetricSourcesList(); + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index); + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMetricSourcesCount(); + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getMetricSourcesOrBuilderList(); + + /** + * + * + *
            +   * Optional. The metrics (either inline or registered) used for evaluation.
            +   * Currently, we only support evaluating a single metric. If multiple metrics
            +   * are provided, only the first one will be evaluated.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 52 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder(int index); + + /** + * + * + *
            +   * The instance to be evaluated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return Whether the instance field is set. + */ + boolean hasInstance(); + + /** + * + * + *
            +   * The instance to be evaluated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + * + * @return The instance. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance getInstance(); + + /** + * + * + *
            +   * The instance to be evaluated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance instance = 50; + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder getInstanceOrBuilder(); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationAgentDataProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationAgentDataProto.java new file mode 100644 index 000000000000..93fc4dabef98 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationAgentDataProto.java @@ -0,0 +1,182 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public final class EvaluationAgentDataProto extends com.google.protobuf.GeneratedFile { + private EvaluationAgentDataProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationAgentDataProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AgentData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ";google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto\022\037google.cloud.aipl" + + "atform.v1beta1\032\037google/api/field_behavio" + + "r.proto\032-google/cloud/aiplatform/v1beta1/content.proto\032*google/cloud/aiplatform/" + + "v1beta1/tool.proto\032\034google/protobuf/stru" + + "ct.proto\032\037google/protobuf/timestamp.proto\"\374\001\n" + + "\tAgentData\022K\n" + + "\006agents\030\001 \003(\01326.google" + + ".cloud.aiplatform.v1beta1.AgentData.AgentsEntryB\003\340A\001\022E\n" + + "\005turns\030\002 \003(\01321.google.clo" + + "ud.aiplatform.v1beta1.ConversationTurnB\003\340A\001\032[\n" + + "\013AgentsEntry\022\013\n" + + "\003key\030\001 \001(\t\022;\n" + + "\005value\030\002" + + " \001(\0132,.google.cloud.aiplatform.v1beta1.AgentConfig:\0028\001\"\327\001\n" + + "\013AgentConfig\022\032\n" + + "\010agent_id\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\027\n\n" + + "agent_type\030\002 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\003 \001(\tB\003\340A\001\022\030\n" + + "\013instruction\030\004 \001(\tB\003\340A\001\0229\n" + + "\005tools\030\005" + + " \003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001\022\027\n\n" + + "sub_agents\030\006 \003(\tB\003\340A\001B\013\n" + + "\t_agent_id\"\227\001\n" + + "\020ConversationTurn\022\034\n\n" + + "turn_index\030\001 \001(\005B\003\340A\002H\000\210\001\001\022\024\n" + + "\007turn_id\030\002 \001(\tB\003\340A\001\022@\n" + + "\006events\030\003 " + + "\003(\0132+.google.cloud.aiplatform.v1beta1.AgentEventB\003\340A\001B\r\n" + + "\013_turn_index\"\254\002\n\n" + + "AgentEvent\022\030\n" + + "\006author\030\001 \001(\tB\003\340A\002H\000\210\001\001\022C\n" + + "\007content\030\002" + + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\002H\001\210\001\001\0223\n\n" + + "event_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0221\n" + + "\013state_delta\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\001\022@\n" + + "\014active_tools\030\005" + + " \003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001B\t\n" + + "\007_authorB\n\n" + + "\010_contentB\357\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\030EvaluationAgentDataProtoP\001Z" + + "Ccloud.google.com/go/aiplatform/apiv1bet" + + "a1/aiplatformpb;aiplatformpb\252\002\037Google.Cl" + + "oud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\AI" + + "Platform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ContentProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.ToolProto.getDescriptor(), + com.google.protobuf.StructProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_aiplatform_v1beta1_AgentData_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor, + new java.lang.String[] { + "Agents", "Turns", + }); + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_AgentData_descriptor.getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AgentData_AgentsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AgentConfig_descriptor, + new java.lang.String[] { + "AgentId", "AgentType", "Description", "Instruction", "Tools", "SubAgents", + }); + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ConversationTurn_descriptor, + new java.lang.String[] { + "TurnIndex", "TurnId", "Events", + }); + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_AgentEvent_descriptor, + new java.lang.String[] { + "Author", "Content", "EventTime", "StateDelta", "ActiveTools", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ContentProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.ToolProto.getDescriptor(); + com.google.protobuf.StructProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstance.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstance.java new file mode 100644 index 000000000000..4e876deda828 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstance.java @@ -0,0 +1,20165 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * A single instance to be evaluated.
            + * Instances are used to specify the input data for evaluation, from
            + * simple string comparisons to complex, multi-turn model evaluations
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance} + */ +@com.google.protobuf.Generated +public final class EvaluationInstance extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance) + EvaluationInstanceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationInstance"); + } + + // Use EvaluationInstance.newBuilder() to construct. + private EvaluationInstance(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EvaluationInstance() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetRubricGroups(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder.class); + } + + public interface InstanceDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Text data.
            +     * 
            + * + * string text = 1; + * + * @return Whether the text field is set. + */ + boolean hasText(); + + /** + * + * + *
            +     * Text data.
            +     * 
            + * + * string text = 1; + * + * @return The text. + */ + java.lang.String getText(); + + /** + * + * + *
            +     * Text data.
            +     * 
            + * + * string text = 1; + * + * @return The bytes for text. + */ + com.google.protobuf.ByteString getTextBytes(); + + /** + * + * + *
            +     * List of Gemini content data.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return Whether the contents field is set. + */ + boolean hasContents(); + + /** + * + * + *
            +     * List of Gemini content data.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return The contents. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents getContents(); + + /** + * + * + *
            +     * List of Gemini content data.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder + getContentsOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.DataCase getDataCase(); + } + + /** + * + * + *
            +   * Instance data used to populate placeholders in a metric prompt template.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData} + */ + public static final class InstanceData extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + InstanceDataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "InstanceData"); + } + + // Use InstanceData.newBuilder() to construct. + private InstanceData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private InstanceData() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder.class); + } + + public interface ContentsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getContentsList(); + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Content getContents(int index); + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getContentsCount(); + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getContentsOrBuilderList(); + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index); + } + + /** + * + * + *
            +     * List of standard Content messages from Gemini API.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents} + */ + public static final class Contents extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + ContentsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Contents"); + } + + // Use Contents.newBuilder() to construct. + private Contents(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Contents() { + contents_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder + .class); + } + + public static final int CONTENTS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List contents_; + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getContentsList() { + return contents_; + } + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getContentsOrBuilderList() { + return contents_; + } + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getContentsCount() { + return contents_.size(); + } + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + return contents_.get(index); + } + + /** + * + * + *
            +       * Optional. Repeated contents.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index) { + return contents_.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 < contents_.size(); i++) { + output.writeMessage(1, contents_.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 < contents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, contents_.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.EvaluationInstance.InstanceData.Contents)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) obj; + + if (!getContentsList().equals(other.getContentsList())) 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 (getContentsCount() > 0) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContentsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + 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.EvaluationInstance.InstanceData.Contents + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + 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.EvaluationInstance.InstanceData.Contents + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + 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.EvaluationInstance.InstanceData.Contents + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * List of standard Content messages from Gemini API.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + } else { + contents_ = null; + contentsBuilder_.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_EvaluationInstance_InstanceData_Contents_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents result) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.contents_ = contents_; + } else { + result.contents_ = contentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance()) return this; + if (contentsBuilder_ == null) { + if (!other.contents_.isEmpty()) { + if (contents_.isEmpty()) { + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureContentsIsMutable(); + contents_.addAll(other.contents_); + } + onChanged(); + } + } else { + if (!other.contents_.isEmpty()) { + if (contentsBuilder_.isEmpty()) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000001); + contentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetContentsFieldBuilder() + : null; + } else { + contentsBuilder_.addAllMessages(other.contents_); + } + } + } + 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.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Content.parser(), + extensionRegistry); + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(m); + } else { + contentsBuilder_.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 contents_ = + java.util.Collections.emptyList(); + + private void ensureContentsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + contents_ = + new java.util.ArrayList(contents_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentsBuilder_; + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getContentsList() { + if (contentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contents_); + } else { + return contentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getContentsCount() { + if (contentsBuilder_ == null) { + return contents_.size(); + } else { + return contentsBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.set(index, value); + onChanged(); + } else { + contentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.set(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(value); + onChanged(); + } else { + contentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(index, value); + onChanged(); + } else { + contentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllContents( + java.lang.Iterable values) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + onChanged(); + } else { + contentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + contentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeContents(int index) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.remove(index); + onChanged(); + } else { + contentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentsBuilder(int index) { + return internalGetContentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder( + int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getContentsOrBuilderList() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contents_); + } + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder() { + return internalGetContentsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(int index) { + return internalGetContentsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. Repeated contents.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getContentsBuilderList() { + return internalGetContentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + contents_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .Contents + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Contents 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.EvaluationInstance.InstanceData.Contents + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int dataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object data_; + + public enum DataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TEXT(1), + CONTENTS(2), + DATA_NOT_SET(0); + private final int value; + + private DataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataCase valueOf(int value) { + return forNumber(value); + } + + public static DataCase forNumber(int value) { + switch (value) { + case 1: + return TEXT; + case 2: + return CONTENTS; + case 0: + return DATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public static final int TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * Text data.
            +     * 
            + * + * string text = 1; + * + * @return Whether the text field is set. + */ + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
            +     * Text data.
            +     * 
            + * + * string text = 1; + * + * @return The text. + */ + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + 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(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } + } + + /** + * + * + *
            +     * Text data.
            +     * 
            + * + * string text = 1; + * + * @return The bytes for text. + */ + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENTS_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * List of Gemini content data.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return Whether the contents field is set. + */ + @java.lang.Override + public boolean hasContents() { + return dataCase_ == 2; + } + + /** + * + * + *
            +     * List of Gemini content data.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return The contents. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + getContents() { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) data_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + + /** + * + * + *
            +     * List of Gemini content data.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder + getContentsOrBuilder() { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) data_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (dataCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, data_); + } + if (dataCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) data_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (dataCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, data_); + } + if (dataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + data_); + } + 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.EvaluationInstance.InstanceData)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) obj; + + if (!getDataCase().equals(other.getDataCase())) return false; + switch (dataCase_) { + case 1: + if (!getText().equals(other.getText())) return false; + break; + case 2: + if (!getContents().equals(other.getContents())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (dataCase_) { + case 1: + hash = (37 * hash) + TEXT_FIELD_NUMBER; + hash = (53 * hash) + getText().hashCode(); + break; + case 2: + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContents().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData 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.EvaluationInstance.InstanceData parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData 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.EvaluationInstance.InstanceData parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData 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.EvaluationInstance.InstanceData parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Instance data used to populate placeholders in a metric prompt template.
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (contentsBuilder_ != null) { + contentsBuilder_.clear(); + } + dataCase_ = 0; + data_ = 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_EvaluationInstance_InstanceData_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData result) { + result.dataCase_ = dataCase_; + result.data_ = this.data_; + if (dataCase_ == 2 && contentsBuilder_ != null) { + result.data_ = contentsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) return this; + switch (other.getDataCase()) { + case TEXT: + { + dataCase_ = 1; + data_ = other.data_; + onChanged(); + break; + } + case CONTENTS: + { + mergeContents(other.getContents()); + break; + } + case DATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + dataCase_ = 1; + data_ = s; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetContentsFieldBuilder().getBuilder(), extensionRegistry); + dataCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int dataCase_ = 0; + private java.lang.Object data_; + + public DataCase getDataCase() { + return DataCase.forNumber(dataCase_); + } + + public Builder clearData() { + dataCase_ = 0; + data_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +       * Text data.
            +       * 
            + * + * string text = 1; + * + * @return Whether the text field is set. + */ + @java.lang.Override + public boolean hasText() { + return dataCase_ == 1; + } + + /** + * + * + *
            +       * Text data.
            +       * 
            + * + * string text = 1; + * + * @return The text. + */ + @java.lang.Override + public java.lang.String getText() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (dataCase_ == 1) { + data_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Text data.
            +       * 
            + * + * string text = 1; + * + * @return The bytes for text. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTextBytes() { + java.lang.Object ref = ""; + if (dataCase_ == 1) { + ref = data_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (dataCase_ == 1) { + data_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Text data.
            +       * 
            + * + * string text = 1; + * + * @param value The text to set. + * @return This builder for chaining. + */ + public Builder setText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Text data.
            +       * 
            + * + * string text = 1; + * + * @return This builder for chaining. + */ + public Builder clearText() { + if (dataCase_ == 1) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Text data.
            +       * 
            + * + * string text = 1; + * + * @param value The bytes for text to set. + * @return This builder for chaining. + */ + public Builder setTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + dataCase_ = 1; + data_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder> + contentsBuilder_; + + /** + * + * + *
            +       * List of Gemini content data.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return Whether the contents field is set. + */ + @java.lang.Override + public boolean hasContents() { + return dataCase_ == 2; + } + + /** + * + * + *
            +       * List of Gemini content data.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + * + * @return The contents. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + getContents() { + if (contentsBuilder_ == null) { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + data_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } else { + if (dataCase_ == 2) { + return contentsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * List of Gemini content data.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public Builder setContents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + data_ = value; + onChanged(); + } else { + contentsBuilder_.setMessage(value); + } + dataCase_ = 2; + return this; + } + + /** + * + * + *
            +       * List of Gemini content data.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public Builder setContents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder + builderForValue) { + if (contentsBuilder_ == null) { + data_ = builderForValue.build(); + onChanged(); + } else { + contentsBuilder_.setMessage(builderForValue.build()); + } + dataCase_ = 2; + return this; + } + + /** + * + * + *
            +       * List of Gemini content data.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public Builder mergeContents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents value) { + if (contentsBuilder_ == null) { + if (dataCase_ == 2 + && data_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance()) { + data_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .Contents) + data_) + .mergeFrom(value) + .buildPartial(); + } else { + data_ = value; + } + onChanged(); + } else { + if (dataCase_ == 2) { + contentsBuilder_.mergeFrom(value); + } else { + contentsBuilder_.setMessage(value); + } + } + dataCase_ = 2; + return this; + } + + /** + * + * + *
            +       * List of Gemini content data.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + onChanged(); + } + } else { + if (dataCase_ == 2) { + dataCase_ = 0; + data_ = null; + } + contentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * List of Gemini content data.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder + getContentsBuilder() { + return internalGetContentsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * List of Gemini content data.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder + getContentsOrBuilder() { + if ((dataCase_ == 2) && (contentsBuilder_ != null)) { + return contentsBuilder_.getMessageOrBuilder(); + } else { + if (dataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + data_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * List of Gemini content data.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents contents = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.ContentsOrBuilder> + internalGetContentsFieldBuilder() { + if (contentsBuilder_ == null) { + if (!(dataCase_ == 2)) { + data_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .getDefaultInstance(); + } + contentsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .ContentsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Contents) + data_, + getParentForChildren(), + isClean()); + data_ = null; + } + dataCase_ = 2; + onChanged(); + return contentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public InstanceData 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.EvaluationInstance.InstanceData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface MapInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Optional. Map of instance data.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getMapInstanceCount(); + + /** + * + * + *
            +     * Optional. Map of instance data.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsMapInstance(java.lang.String key); + + /** Use {@link #getMapInstanceMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstance(); + + /** + * + * + *
            +     * Optional. Map of instance data.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstanceMap(); + + /** + * + * + *
            +     * Optional. Map of instance data.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getMapInstanceOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData defaultValue); + + /** + * + * + *
            +     * Optional. Map of instance data.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getMapInstanceOrThrow( + java.lang.String key); + } + + /** + * + * + *
            +   * Instance data specified as a map.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance} + */ + public static final class MapInstance extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + MapInstanceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MapInstance"); + } + + // Use MapInstance.newBuilder() to construct. + private MapInstance(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MapInstance() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMapInstance(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder.class); + } + + public static final int MAP_INSTANCE_FIELD_NUMBER = 1; + + private static final class MapInstanceDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_MapInstanceEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + mapInstance_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + internalGetMapInstance() { + if (mapInstance_ == null) { + return com.google.protobuf.MapField.emptyMapField( + MapInstanceDefaultEntryHolder.defaultEntry); + } + return mapInstance_; + } + + public int getMapInstanceCount() { + return internalGetMapInstance().getMap().size(); + } + + /** + * + * + *
            +     * Optional. Map of instance data.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsMapInstance(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMapInstance().getMap().containsKey(key); + } + + /** Use {@link #getMapInstanceMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstance() { + return getMapInstanceMap(); + } + + /** + * + * + *
            +     * Optional. Map of instance data.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstanceMap() { + return internalGetMapInstance().getMap(); + } + + /** + * + * + *
            +     * Optional. Map of instance data.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getMapInstanceOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + map = internalGetMapInstance().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Map of instance data.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getMapInstanceOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + map = internalGetMapInstance().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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 { + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetMapInstance(), MapInstanceDefaultEntryHolder.defaultEntry, 1); + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (java.util.Map.Entry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + entry : internalGetMapInstance().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + mapInstance__ = + MapInstanceDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, mapInstance__); + } + 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.EvaluationInstance.MapInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) obj; + + if (!internalGetMapInstance().equals(other.internalGetMapInstance())) 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 (!internalGetMapInstance().getMap().isEmpty()) { + hash = (37 * hash) + MAP_INSTANCE_FIELD_NUMBER; + hash = (53 * hash) + internalGetMapInstance().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance 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.EvaluationInstance.MapInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance 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.EvaluationInstance.MapInstance parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance 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.EvaluationInstance.MapInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Instance data specified as a map.
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMapInstance(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 1: + return internalGetMutableMapInstance(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + internalGetMutableMapInstance().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_EvaluationInstance_MapInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.mapInstance_ = + internalGetMapInstance().build(MapInstanceDefaultEntryHolder.defaultEntry); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance()) return this; + internalGetMutableMapInstance().mergeFrom(other.internalGetMapInstance()); + bitField0_ |= 0x00000001; + 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.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + mapInstance__ = + input.readMessage( + MapInstanceDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableMapInstance() + .ensureBuilderMap() + .put(mapInstance__.getKey(), mapInstance__.getValue()); + 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 static final class MapInstanceConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> { + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData build( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder val) { + if (val instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) val; + } + return ((com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder) val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + defaultEntry() { + return MapInstanceDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final MapInstanceConverter mapInstanceConverter = new MapInstanceConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder> + mapInstance_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder> + internalGetMapInstance() { + if (mapInstance_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(mapInstanceConverter); + } + return mapInstance_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder> + internalGetMutableMapInstance() { + if (mapInstance_ == null) { + mapInstance_ = new com.google.protobuf.MapFieldBuilder<>(mapInstanceConverter); + } + bitField0_ |= 0x00000001; + onChanged(); + return mapInstance_; + } + + public int getMapInstanceCount() { + return internalGetMapInstance().ensureBuilderMap().size(); + } + + /** + * + * + *
            +       * Optional. Map of instance data.
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsMapInstance(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetMapInstance().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getMapInstanceMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstance() { + return getMapInstanceMap(); + } + + /** + * + * + *
            +       * Optional. Map of instance data.
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMapInstanceMap() { + return internalGetMapInstance().getImmutableMap(); + } + + /** + * + * + *
            +       * Optional. Map of instance data.
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getMapInstanceOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + map = internalGetMutableMapInstance().ensureBuilderMap(); + return map.containsKey(key) ? mapInstanceConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +       * Optional. Map of instance data.
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getMapInstanceOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + map = internalGetMutableMapInstance().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return mapInstanceConverter.build(map.get(key)); + } + + public Builder clearMapInstance() { + bitField0_ = (bitField0_ & ~0x00000001); + internalGetMutableMapInstance().clear(); + return this; + } + + /** + * + * + *
            +       * Optional. Map of instance data.
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeMapInstance(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableMapInstance().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + getMutableMapInstance() { + bitField0_ |= 0x00000001; + return internalGetMutableMapInstance().ensureMessageMap(); + } + + /** + * + * + *
            +       * Optional. Map of instance data.
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putMapInstance( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableMapInstance().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
            +       * Optional. Map of instance data.
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllMapInstance( + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableMapInstance().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000001; + return this; + } + + /** + * + * + *
            +       * Optional. Map of instance data.
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData> map_instance = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + putMapInstanceBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + builderMap = internalGetMutableMapInstance().ensureBuilderMap(); + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder entry = + builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) { + entry = + ((com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MapInstance 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.EvaluationInstance.MapInstance + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + @java.lang.Deprecated + public interface DeprecatedAgentDataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return Whether the toolsText field is set. + */ + @java.lang.Deprecated + boolean hasToolsText(); + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The toolsText. + */ + @java.lang.Deprecated + java.lang.String getToolsText(); + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The bytes for toolsText. + */ + @java.lang.Deprecated + com.google.protobuf.ByteString getToolsTextBytes(); + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return Whether the tools field is set. + */ + @java.lang.Deprecated + boolean hasTools(); + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return The tools. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools getTools(); + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ToolsOrBuilder + getToolsOrBuilder(); + + /** + * + * + *
            +     * A list of events.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return Whether the events field is set. + */ + boolean hasEvents(); + + /** + * + * + *
            +     * A list of events.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return The events. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events getEvents(); + + /** + * + * + *
            +     * A list of events.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.EventsOrBuilder + getEventsOrBuilder(); + + /** + * + * + *
            +     * Optional. The static Agent Configuration.
            +     * This map defines the graph structure of the agent system.
            +     * Key: agent_id (matches the `author` field in events).
            +     * Value: The static configuration of the agent (tools, instructions,
            +     * sub-agents).
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAgentsCount(); + + /** + * + * + *
            +     * Optional. The static Agent Configuration.
            +     * This map defines the graph structure of the agent system.
            +     * Key: agent_id (matches the `author` field in events).
            +     * Value: The static configuration of the agent (tools, instructions,
            +     * sub-agents).
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAgents(java.lang.String key); + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Deprecated + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgents(); + + /** + * + * + *
            +     * Optional. The static Agent Configuration.
            +     * This map defines the graph structure of the agent system.
            +     * Key: agent_id (matches the `author` field in events).
            +     * Value: The static configuration of the agent (tools, instructions,
            +     * sub-agents).
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgentsMap(); + + /** + * + * + *
            +     * Optional. The static Agent Configuration.
            +     * This map defines the graph structure of the agent system.
            +     * Key: agent_id (matches the `author` field in events).
            +     * Value: The static configuration of the agent (tools, instructions,
            +     * sub-agents).
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig defaultValue); + + /** + * + * + *
            +     * Optional. The static Agent Configuration.
            +     * This map defines the graph structure of the agent system.
            +     * Key: agent_id (matches the `author` field in events).
            +     * Value: The static configuration of the agent (tools, instructions,
            +     * sub-agents).
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig getAgentsOrThrow( + java.lang.String key); + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + getTurnsList(); + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn + getTurns(int index); + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getTurnsCount(); + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + getTurnsOrBuilderList(); + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder + getTurnsOrBuilder(int index); + + /** + * + * + *
            +     * Optional. Deprecated:  Use `agents.developer_instruction` or
            +     * `turns.events.active_instruction` instead.
            +     * A field containing instructions from the developer for the agent.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return Whether the developerInstruction field is set. + */ + @java.lang.Deprecated + boolean hasDeveloperInstruction(); + + /** + * + * + *
            +     * Optional. Deprecated:  Use `agents.developer_instruction` or
            +     * `turns.events.active_instruction` instead.
            +     * A field containing instructions from the developer for the agent.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return The developerInstruction. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getDeveloperInstruction(); + + /** + * + * + *
            +     * Optional. Deprecated:  Use `agents.developer_instruction` or
            +     * `turns.events.active_instruction` instead.
            +     * A field containing instructions from the developer for the agent.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder(); + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Agent configuration.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + boolean hasAgentConfig(); + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Agent configuration.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig getAgentConfig(); + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Agent configuration.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ToolsDataCase + getToolsDataCase(); + + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.EventsDataCase + getEventsDataCase(); + } + + /** + * + * + *
            +   * Deprecated: Use `agent_eval_data` instead.
            +   * Contains data specific to agent evaluations.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData} + */ + @java.lang.Deprecated + public static final class DeprecatedAgentData extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + DeprecatedAgentDataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeprecatedAgentData"); + } + + // Use DeprecatedAgentData.newBuilder() to construct. + private DeprecatedAgentData(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeprecatedAgentData() { + turns_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder + .class); + } + + public interface ConversationTurnOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. The 0-based index of the turn in the conversation sequence.
            +       * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + boolean hasTurnIndex(); + + /** + * + * + *
            +       * Required. The 0-based index of the turn in the conversation sequence.
            +       * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + int getTurnIndex(); + + /** + * + * + *
            +       * Optional. A unique identifier for the turn.
            +       * Useful for referencing specific turns across systems.
            +       * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + java.lang.String getTurnId(); + + /** + * + * + *
            +       * Optional. A unique identifier for the turn.
            +       * Useful for referencing specific turns across systems.
            +       * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + com.google.protobuf.ByteString getTurnIdBytes(); + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent> + getEventsList(); + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + getEvents(int index); + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getEventsCount(); + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + getEventsOrBuilderList(); + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEventOrBuilder + getEventsOrBuilder(int index); + } + + /** + * + * + *
            +     * Represents a single turn/invocation in the conversation.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn} + */ + public static final class ConversationTurn extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + ConversationTurnOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ConversationTurn"); + } + + // Use ConversationTurn.newBuilder() to construct. + private ConversationTurn(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ConversationTurn() { + turnId_ = ""; + events_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder.class); + } + + private int bitField0_; + public static final int TURN_INDEX_FIELD_NUMBER = 1; + private int turnIndex_ = 0; + + /** + * + * + *
            +       * Required. The 0-based index of the turn in the conversation sequence.
            +       * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + @java.lang.Override + public boolean hasTurnIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Required. The 0-based index of the turn in the conversation sequence.
            +       * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + public static final int TURN_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object turnId_ = ""; + + /** + * + * + *
            +       * Optional. A unique identifier for the turn.
            +       * Useful for referencing specific turns across systems.
            +       * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + @java.lang.Override + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + 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(); + turnId_ = s; + return s; + } + } + + /** + * + * + *
            +       * Optional. A unique identifier for the turn.
            +       * Useful for referencing specific turns across systems.
            +       * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EVENTS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent> + events_; + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent> + getEventsList() { + return events_; + } + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + getEventsOrBuilderList() { + return events_; + } + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getEventsCount() { + return events_.size(); + } + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + getEvents(int index) { + return events_.get(index); + } + + /** + * + * + *
            +       * Optional. The list of events that occurred during this turn.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder + getEventsOrBuilder(int index) { + return events_.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.writeInt32(1, turnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, turnId_); + } + for (int i = 0; i < events_.size(); i++) { + output.writeMessage(3, events_.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.computeInt32Size(1, turnIndex_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(turnId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, turnId_); + } + for (int i = 0; i < events_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, events_.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.EvaluationInstance.DeprecatedAgentData + .ConversationTurn)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn + other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn) + obj; + + if (hasTurnIndex() != other.hasTurnIndex()) return false; + if (hasTurnIndex()) { + if (getTurnIndex() != other.getTurnIndex()) return false; + } + if (!getTurnId().equals(other.getTurnId())) return false; + if (!getEventsList().equals(other.getEventsList())) 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 (hasTurnIndex()) { + hash = (37 * hash) + TURN_INDEX_FIELD_NUMBER; + hash = (53 * hash) + getTurnIndex(); + } + hash = (37 * hash) + TURN_ID_FIELD_NUMBER; + hash = (53 * hash) + getTurnId().hashCode(); + if (getEventsCount() > 0) { + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEventsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + 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.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + 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.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + 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.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Represents a single turn/invocation in the conversation.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + turnIndex_ = 0; + turnId_ = ""; + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + } else { + events_ = null; + eventsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + 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_EvaluationInstance_DeprecatedAgentData_ConversationTurn_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + result) { + if (eventsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + events_ = java.util.Collections.unmodifiableList(events_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.events_ = events_; + } else { + result.events_ = eventsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.turnIndex_ = turnIndex_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.turnId_ = turnId_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.getDefaultInstance()) return this; + if (other.hasTurnIndex()) { + setTurnIndex(other.getTurnIndex()); + } + if (!other.getTurnId().isEmpty()) { + turnId_ = other.turnId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (eventsBuilder_ == null) { + if (!other.events_.isEmpty()) { + if (events_.isEmpty()) { + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureEventsIsMutable(); + events_.addAll(other.events_); + } + onChanged(); + } + } else { + if (!other.events_.isEmpty()) { + if (eventsBuilder_.isEmpty()) { + eventsBuilder_.dispose(); + eventsBuilder_ = null; + events_ = other.events_; + bitField0_ = (bitField0_ & ~0x00000004); + eventsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEventsFieldBuilder() + : null; + } else { + eventsBuilder_.addAllMessages(other.events_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + turnIndex_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 18: + { + turnId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.AgentEvent.parser(), + extensionRegistry); + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(m); + } else { + eventsBuilder_.addMessage(m); + } + 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 int turnIndex_; + + /** + * + * + *
            +         * Required. The 0-based index of the turn in the conversation sequence.
            +         * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the turnIndex field is set. + */ + @java.lang.Override + public boolean hasTurnIndex() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Required. The 0-based index of the turn in the conversation sequence.
            +         * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The turnIndex. + */ + @java.lang.Override + public int getTurnIndex() { + return turnIndex_; + } + + /** + * + * + *
            +         * Required. The 0-based index of the turn in the conversation sequence.
            +         * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The turnIndex to set. + * @return This builder for chaining. + */ + public Builder setTurnIndex(int value) { + + turnIndex_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The 0-based index of the turn in the conversation sequence.
            +         * 
            + * + * optional int32 turn_index = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearTurnIndex() { + bitField0_ = (bitField0_ & ~0x00000001); + turnIndex_ = 0; + onChanged(); + return this; + } + + private java.lang.Object turnId_ = ""; + + /** + * + * + *
            +         * Optional. A unique identifier for the turn.
            +         * Useful for referencing specific turns across systems.
            +         * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The turnId. + */ + public java.lang.String getTurnId() { + java.lang.Object ref = turnId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + turnId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Optional. A unique identifier for the turn.
            +         * Useful for referencing specific turns across systems.
            +         * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for turnId. + */ + public com.google.protobuf.ByteString getTurnIdBytes() { + java.lang.Object ref = turnId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + turnId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Optional. A unique identifier for the turn.
            +         * Useful for referencing specific turns across systems.
            +         * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. A unique identifier for the turn.
            +         * Useful for referencing specific turns across systems.
            +         * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTurnId() { + turnId_ = getDefaultInstance().getTurnId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. A unique identifier for the turn.
            +         * Useful for referencing specific turns across systems.
            +         * 
            + * + * string turn_id = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for turnId to set. + * @return This builder for chaining. + */ + public Builder setTurnIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + turnId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent> + events_ = java.util.Collections.emptyList(); + + private void ensureEventsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + events_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent>(events_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + eventsBuilder_; + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent> + getEventsList() { + if (eventsBuilder_ == null) { + return java.util.Collections.unmodifiableList(events_); + } else { + return eventsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getEventsCount() { + if (eventsBuilder_ == null) { + return events_.size(); + } else { + return eventsBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + getEvents(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvents( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.set(index, value); + onChanged(); + } else { + eventsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvents( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.set(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(value); + onChanged(); + } else { + eventsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventsIsMutable(); + events_.add(index, value); + onChanged(); + } else { + eventsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvents( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + builderForValue) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.add(index, builderForValue.build()); + onChanged(); + } else { + eventsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllEvents( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent> + values) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, events_); + onChanged(); + } else { + eventsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + events_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + eventsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeEvents(int index) { + if (eventsBuilder_ == null) { + ensureEventsIsMutable(); + events_.remove(index); + onChanged(); + } else { + eventsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + getEventsBuilder(int index) { + return internalGetEventsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder + getEventsOrBuilder(int index) { + if (eventsBuilder_ == null) { + return events_.get(index); + } else { + return eventsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + getEventsOrBuilderList() { + if (eventsBuilder_ != null) { + return eventsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(events_); + } + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + addEventsBuilder() { + return internalGetEventsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + .Builder + addEventsBuilder(int index) { + return internalGetEventsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. The list of events that occurred during this turn.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent events = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder> + getEventsBuilderList() { + return internalGetEventsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder> + internalGetEventsFieldBuilder() { + if (eventsBuilder_ == null) { + eventsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder>( + events_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + events_ = null; + } + return eventsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.ConversationTurn + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ConversationTurn 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.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface AgentEventOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. The ID of the agent or entity that generated this event.
            +       * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + boolean hasAuthor(); + + /** + * + * + *
            +       * Required. The ID of the agent or entity that generated this event.
            +       * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + java.lang.String getAuthor(); + + /** + * + * + *
            +       * Required. The ID of the agent or entity that generated this event.
            +       * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + com.google.protobuf.ByteString getAuthorBytes(); + + /** + * + * + *
            +       * Required. The content of the event (e.g., text response, tool call,
            +       * tool response).
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
            +       * Required. The content of the event (e.g., text response, tool call,
            +       * tool response).
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + com.google.cloud.aiplatform.v1beta1.Content getContent(); + + /** + * + * + *
            +       * Required. The content of the event (e.g., text response, tool call,
            +       * tool response).
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
            +       * Optional. The timestamp when the event occurred.
            +       * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + boolean hasEventTime(); + + /** + * + * + *
            +       * Optional. The timestamp when the event occurred.
            +       * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + com.google.protobuf.Timestamp getEventTime(); + + /** + * + * + *
            +       * Optional. The timestamp when the event occurred.
            +       * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder(); + + /** + * + * + *
            +       * Optional. The change in the session state caused by this event. This is
            +       * a key-value map of fields that were modified or added by the event.
            +       * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stateDelta field is set. + */ + boolean hasStateDelta(); + + /** + * + * + *
            +       * Optional. The change in the session state caused by this event. This is
            +       * a key-value map of fields that were modified or added by the event.
            +       * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stateDelta. + */ + com.google.protobuf.Struct getStateDelta(); + + /** + * + * + *
            +       * Optional. The change in the session state caused by this event. This is
            +       * a key-value map of fields that were modified or added by the event.
            +       * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder(); + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getActiveToolsList(); + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index); + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getActiveToolsCount(); + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getActiveToolsOrBuilderList(); + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index); + } + + /** + * + * + *
            +     * A single event in the execution trace.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent} + */ + public static final class AgentEvent extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + AgentEventOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AgentEvent"); + } + + // Use AgentEvent.newBuilder() to construct. + private AgentEvent(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AgentEvent() { + author_ = ""; + activeTools_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder.class); + } + + private int bitField0_; + public static final int AUTHOR_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object author_ = ""; + + /** + * + * + *
            +       * Required. The ID of the agent or entity that generated this event.
            +       * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + @java.lang.Override + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Required. The ID of the agent or entity that generated this event.
            +       * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + @java.lang.Override + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + 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(); + author_ = s; + return s; + } + } + + /** + * + * + *
            +       * Required. The ID of the agent or entity that generated this event.
            +       * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Content content_; + + /** + * + * + *
            +       * Required. The content of the event (e.g., text response, tool call,
            +       * tool response).
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Required. The content of the event (e.g., text response, tool call,
            +       * tool response).
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + /** + * + * + *
            +       * Required. The content of the event (e.g., text response, tool call,
            +       * tool response).
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + + public static final int EVENT_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp eventTime_; + + /** + * + * + *
            +       * Optional. The timestamp when the event occurred.
            +       * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + @java.lang.Override + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Optional. The timestamp when the event occurred.
            +       * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEventTime() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + /** + * + * + *
            +       * Optional. The timestamp when the event occurred.
            +       * 
            + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + return eventTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : eventTime_; + } + + public static final int STATE_DELTA_FIELD_NUMBER = 4; + private com.google.protobuf.Struct stateDelta_; + + /** + * + * + *
            +       * Optional. The change in the session state caused by this event. This is
            +       * a key-value map of fields that were modified or added by the event.
            +       * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stateDelta field is set. + */ + @java.lang.Override + public boolean hasStateDelta() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +       * Optional. The change in the session state caused by this event. This is
            +       * a key-value map of fields that were modified or added by the event.
            +       * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stateDelta. + */ + @java.lang.Override + public com.google.protobuf.Struct getStateDelta() { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + + /** + * + * + *
            +       * Optional. The change in the session state caused by this event. This is
            +       * a key-value map of fields that were modified or added by the event.
            +       * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder() { + return stateDelta_ == null ? com.google.protobuf.Struct.getDefaultInstance() : stateDelta_; + } + + public static final int ACTIVE_TOOLS_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private java.util.List activeTools_; + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getActiveToolsList() { + return activeTools_; + } + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getActiveToolsOrBuilderList() { + return activeTools_; + } + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getActiveToolsCount() { + return activeTools_.size(); + } + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index) { + return activeTools_.get(index); + } + + /** + * + * + *
            +       * Optional. The list of tools that were active/available to the agent at
            +       * the time of this event. This overrides the `AgentConfig.tools` if set.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder(int index) { + return activeTools_.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)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, author_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(3, getEventTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(4, getStateDelta()); + } + for (int i = 0; i < activeTools_.size(); i++) { + output.writeMessage(5, activeTools_.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.GeneratedMessage.computeStringSize(1, author_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEventTime()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getStateDelta()); + } + for (int i = 0; i < activeTools_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, activeTools_.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.EvaluationInstance.DeprecatedAgentData + .AgentEvent)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent) + obj; + + if (hasAuthor() != other.hasAuthor()) return false; + if (hasAuthor()) { + if (!getAuthor().equals(other.getAuthor())) return false; + } + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasEventTime() != other.hasEventTime()) return false; + if (hasEventTime()) { + if (!getEventTime().equals(other.getEventTime())) return false; + } + if (hasStateDelta() != other.hasStateDelta()) return false; + if (hasStateDelta()) { + if (!getStateDelta().equals(other.getStateDelta())) return false; + } + if (!getActiveToolsList().equals(other.getActiveToolsList())) 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 (hasAuthor()) { + hash = (37 * hash) + AUTHOR_FIELD_NUMBER; + hash = (53 * hash) + getAuthor().hashCode(); + } + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasEventTime()) { + hash = (37 * hash) + EVENT_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEventTime().hashCode(); + } + if (hasStateDelta()) { + hash = (37 * hash) + STATE_DELTA_FIELD_NUMBER; + hash = (53 * hash) + getStateDelta().hashCode(); + } + if (getActiveToolsCount() > 0) { + hash = (37 * hash) + ACTIVE_TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getActiveToolsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + 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.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + 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.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + 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.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * A single event in the execution trace.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEventOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + internalGetEventTimeFieldBuilder(); + internalGetStateDeltaFieldBuilder(); + internalGetActiveToolsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + author_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + stateDelta_ = null; + if (stateDeltaBuilder_ != null) { + stateDeltaBuilder_.dispose(); + stateDeltaBuilder_ = null; + } + if (activeToolsBuilder_ == null) { + activeTools_ = java.util.Collections.emptyList(); + } else { + activeTools_ = null; + activeToolsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + 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_EvaluationInstance_DeprecatedAgentData_AgentEvent_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + result) { + if (activeToolsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + activeTools_ = java.util.Collections.unmodifiableList(activeTools_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.activeTools_ = activeTools_; + } else { + result.activeTools_ = activeToolsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.author_ = author_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.eventTime_ = eventTimeBuilder_ == null ? eventTime_ : eventTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.stateDelta_ = + stateDeltaBuilder_ == null ? stateDelta_ : stateDeltaBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent.getDefaultInstance()) return this; + if (other.hasAuthor()) { + author_ = other.author_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasEventTime()) { + mergeEventTime(other.getEventTime()); + } + if (other.hasStateDelta()) { + mergeStateDelta(other.getStateDelta()); + } + if (activeToolsBuilder_ == null) { + if (!other.activeTools_.isEmpty()) { + if (activeTools_.isEmpty()) { + activeTools_ = other.activeTools_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureActiveToolsIsMutable(); + activeTools_.addAll(other.activeTools_); + } + onChanged(); + } + } else { + if (!other.activeTools_.isEmpty()) { + if (activeToolsBuilder_.isEmpty()) { + activeToolsBuilder_.dispose(); + activeToolsBuilder_ = null; + activeTools_ = other.activeTools_; + bitField0_ = (bitField0_ & ~0x00000010); + activeToolsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetActiveToolsFieldBuilder() + : null; + } else { + activeToolsBuilder_.addAllMessages(other.activeTools_); + } + } + } + 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: + { + author_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetEventTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetStateDeltaFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.cloud.aiplatform.v1beta1.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(m); + } else { + activeToolsBuilder_.addMessage(m); + } + break; + } // case 42 + 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 author_ = ""; + + /** + * + * + *
            +         * Required. The ID of the agent or entity that generated this event.
            +         * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the author field is set. + */ + public boolean hasAuthor() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +         * Required. The ID of the agent or entity that generated this event.
            +         * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The author. + */ + public java.lang.String getAuthor() { + java.lang.Object ref = author_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + author_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Required. The ID of the agent or entity that generated this event.
            +         * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for author. + */ + public com.google.protobuf.ByteString getAuthorBytes() { + java.lang.Object ref = author_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + author_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. The ID of the agent or entity that generated this event.
            +         * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The author to set. + * @return This builder for chaining. + */ + public Builder setAuthor(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + author_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The ID of the agent or entity that generated this event.
            +         * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAuthor() { + author_ = getDefaultInstance().getAuthor(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The ID of the agent or entity that generated this event.
            +         * 
            + * + * optional string author = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for author to set. + * @return This builder for chaining. + */ + public Builder setAuthorBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + author_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Content content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentBuilder_; + + /** + * + * + *
            +         * Required. The content of the event (e.g., text response, tool call,
            +         * tool response).
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +         * Required. The content of the event (e.g., text response, tool call,
            +         * tool response).
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1beta1.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Required. The content of the event (e.g., text response, tool call,
            +         * tool response).
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The content of the event (e.g., text response, tool call,
            +         * tool response).
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContent( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The content of the event (e.g., text response, tool call,
            +         * tool response).
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ != com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Required. The content of the event (e.g., text response, tool call,
            +         * tool response).
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The content of the event (e.g., text response, tool call,
            +         * tool response).
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Required. The content of the event (e.g., text response, tool call,
            +         * tool response).
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance() + : content_; + } + } + + /** + * + * + *
            +         * Required. The content of the event (e.g., text response, tool call,
            +         * tool response).
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.Content content = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private com.google.protobuf.Timestamp eventTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + eventTimeBuilder_; + + /** + * + * + *
            +         * Optional. The timestamp when the event occurred.
            +         * 
            + * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the eventTime field is set. + */ + public boolean hasEventTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +         * Optional. The timestamp when the event occurred.
            +         * 
            + * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The eventTime. + */ + public com.google.protobuf.Timestamp getEventTime() { + if (eventTimeBuilder_ == null) { + return eventTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : eventTime_; + } else { + return eventTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Optional. The timestamp when the event occurred.
            +         * 
            + * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventTime_ = value; + } else { + eventTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The timestamp when the event occurred.
            +         * 
            + * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEventTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (eventTimeBuilder_ == null) { + eventTime_ = builderForValue.build(); + } else { + eventTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The timestamp when the event occurred.
            +         * 
            + * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeEventTime(com.google.protobuf.Timestamp value) { + if (eventTimeBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && eventTime_ != null + && eventTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getEventTimeBuilder().mergeFrom(value); + } else { + eventTime_ = value; + } + } else { + eventTimeBuilder_.mergeFrom(value); + } + if (eventTime_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Optional. The timestamp when the event occurred.
            +         * 
            + * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEventTime() { + bitField0_ = (bitField0_ & ~0x00000004); + eventTime_ = null; + if (eventTimeBuilder_ != null) { + eventTimeBuilder_.dispose(); + eventTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The timestamp when the event occurred.
            +         * 
            + * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Timestamp.Builder getEventTimeBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetEventTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Optional. The timestamp when the event occurred.
            +         * 
            + * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder() { + if (eventTimeBuilder_ != null) { + return eventTimeBuilder_.getMessageOrBuilder(); + } else { + return eventTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : eventTime_; + } + } + + /** + * + * + *
            +         * Optional. The timestamp when the event occurred.
            +         * 
            + * + * + * .google.protobuf.Timestamp event_time = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetEventTimeFieldBuilder() { + if (eventTimeBuilder_ == null) { + eventTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEventTime(), getParentForChildren(), isClean()); + eventTime_ = null; + } + return eventTimeBuilder_; + } + + private com.google.protobuf.Struct stateDelta_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + stateDeltaBuilder_; + + /** + * + * + *
            +         * Optional. The change in the session state caused by this event. This is
            +         * a key-value map of fields that were modified or added by the event.
            +         * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the stateDelta field is set. + */ + public boolean hasStateDelta() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +         * Optional. The change in the session state caused by this event. This is
            +         * a key-value map of fields that were modified or added by the event.
            +         * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The stateDelta. + */ + public com.google.protobuf.Struct getStateDelta() { + if (stateDeltaBuilder_ == null) { + return stateDelta_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : stateDelta_; + } else { + return stateDeltaBuilder_.getMessage(); + } + } + + /** + * + * + *
            +         * Optional. The change in the session state caused by this event. This is
            +         * a key-value map of fields that were modified or added by the event.
            +         * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStateDelta(com.google.protobuf.Struct value) { + if (stateDeltaBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + stateDelta_ = value; + } else { + stateDeltaBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The change in the session state caused by this event. This is
            +         * a key-value map of fields that were modified or added by the event.
            +         * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setStateDelta(com.google.protobuf.Struct.Builder builderForValue) { + if (stateDeltaBuilder_ == null) { + stateDelta_ = builderForValue.build(); + } else { + stateDeltaBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The change in the session state caused by this event. This is
            +         * a key-value map of fields that were modified or added by the event.
            +         * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeStateDelta(com.google.protobuf.Struct value) { + if (stateDeltaBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && stateDelta_ != null + && stateDelta_ != com.google.protobuf.Struct.getDefaultInstance()) { + getStateDeltaBuilder().mergeFrom(value); + } else { + stateDelta_ = value; + } + } else { + stateDeltaBuilder_.mergeFrom(value); + } + if (stateDelta_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +         * Optional. The change in the session state caused by this event. This is
            +         * a key-value map of fields that were modified or added by the event.
            +         * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearStateDelta() { + bitField0_ = (bitField0_ & ~0x00000008); + stateDelta_ = null; + if (stateDeltaBuilder_ != null) { + stateDeltaBuilder_.dispose(); + stateDeltaBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +         * Optional. The change in the session state caused by this event. This is
            +         * a key-value map of fields that were modified or added by the event.
            +         * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getStateDeltaBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetStateDeltaFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +         * Optional. The change in the session state caused by this event. This is
            +         * a key-value map of fields that were modified or added by the event.
            +         * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getStateDeltaOrBuilder() { + if (stateDeltaBuilder_ != null) { + return stateDeltaBuilder_.getMessageOrBuilder(); + } else { + return stateDelta_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : stateDelta_; + } + } + + /** + * + * + *
            +         * Optional. The change in the session state caused by this event. This is
            +         * a key-value map of fields that were modified or added by the event.
            +         * 
            + * + * .google.protobuf.Struct state_delta = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetStateDeltaFieldBuilder() { + if (stateDeltaBuilder_ == null) { + stateDeltaBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getStateDelta(), getParentForChildren(), isClean()); + stateDelta_ = null; + } + return stateDeltaBuilder_; + } + + private java.util.List activeTools_ = + java.util.Collections.emptyList(); + + private void ensureActiveToolsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + activeTools_ = + new java.util.ArrayList(activeTools_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + activeToolsBuilder_; + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getActiveToolsList() { + if (activeToolsBuilder_ == null) { + return java.util.Collections.unmodifiableList(activeTools_); + } else { + return activeToolsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getActiveToolsCount() { + if (activeToolsBuilder_ == null) { + return activeTools_.size(); + } else { + return activeToolsBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool getActiveTools(int index) { + if (activeToolsBuilder_ == null) { + return activeTools_.get(index); + } else { + return activeToolsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActiveTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.set(index, value); + onChanged(); + } else { + activeToolsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setActiveTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.set(index, builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.add(value); + onChanged(); + } else { + activeToolsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (activeToolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureActiveToolsIsMutable(); + activeTools_.add(index, value); + onChanged(); + } else { + activeToolsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools( + com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addActiveTools( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.add(index, builderForValue.build()); + onChanged(); + } else { + activeToolsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllActiveTools( + java.lang.Iterable values) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, activeTools_); + onChanged(); + } else { + activeToolsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearActiveTools() { + if (activeToolsBuilder_ == null) { + activeTools_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + activeToolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeActiveTools(int index) { + if (activeToolsBuilder_ == null) { + ensureActiveToolsIsMutable(); + activeTools_.remove(index); + onChanged(); + } else { + activeToolsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getActiveToolsBuilder(int index) { + return internalGetActiveToolsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getActiveToolsOrBuilder( + int index) { + if (activeToolsBuilder_ == null) { + return activeTools_.get(index); + } else { + return activeToolsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getActiveToolsOrBuilderList() { + if (activeToolsBuilder_ != null) { + return activeToolsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(activeTools_); + } + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addActiveToolsBuilder() { + return internalGetActiveToolsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addActiveToolsBuilder(int index) { + return internalGetActiveToolsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. The list of tools that were active/available to the agent at
            +         * the time of this event. This overrides the `AgentConfig.tools` if set.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool active_tools = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getActiveToolsBuilderList() { + return internalGetActiveToolsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetActiveToolsFieldBuilder() { + if (activeToolsBuilder_ == null) { + activeToolsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + activeTools_, + ((bitField0_ & 0x00000010) != 0), + getParentForChildren(), + isClean()); + activeTools_ = null; + } + return activeToolsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEvent) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.AgentEvent + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .AgentEvent + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AgentEvent 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.EvaluationInstance.DeprecatedAgentData.AgentEvent + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ToolsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + java.util.List getToolList(); + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.Tool getTool(int index); + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + int getToolCount(); + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + java.util.List + getToolOrBuilderList(); + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index); + } + + /** + * + * + *
            +     * Deprecated: Use `agent_eval_data` instead. Represents a list of tools for
            +     * an agent.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools} + */ + public static final class Tools extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + ToolsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Tools"); + } + + // Use Tools.newBuilder() to construct. + private Tools(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Tools() { + tool_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder.class); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tool_; + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List getToolList() { + return tool_; + } + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public java.util.List + getToolOrBuilderList() { + return tool_; + } + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public int getToolCount() { + return tool_.size(); + } + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool getTool(int index) { + return tool_.get(index); + } + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index) { + return tool_.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 < tool_.size(); i++) { + output.writeMessage(1, tool_.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 < tool_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tool_.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.EvaluationInstance.DeprecatedAgentData.Tools)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) obj; + + if (!getToolList().equals(other.getToolList())) 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 (getToolCount() > 0) { + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + 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.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + 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.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + 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.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Deprecated: Use `agent_eval_data` instead. Represents a list of tools for
            +       * an agent.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolBuilder_ == null) { + tool_ = java.util.Collections.emptyList(); + } else { + tool_ = null; + toolBuilder_.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_EvaluationInstance_DeprecatedAgentData_Tools_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + result) { + if (toolBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tool_ = java.util.Collections.unmodifiableList(tool_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tool_ = tool_; + } else { + result.tool_ = toolBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance()) return this; + if (toolBuilder_ == null) { + if (!other.tool_.isEmpty()) { + if (tool_.isEmpty()) { + tool_ = other.tool_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolIsMutable(); + tool_.addAll(other.tool_); + } + onChanged(); + } + } else { + if (!other.tool_.isEmpty()) { + if (toolBuilder_.isEmpty()) { + toolBuilder_.dispose(); + toolBuilder_ = null; + tool_ = other.tool_; + bitField0_ = (bitField0_ & ~0x00000001); + toolBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolFieldBuilder() + : null; + } else { + toolBuilder_.addAllMessages(other.tool_); + } + } + } + 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.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(m); + } else { + toolBuilder_.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 tool_ = + java.util.Collections.emptyList(); + + private void ensureToolIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tool_ = new java.util.ArrayList(tool_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + toolBuilder_; + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public java.util.List getToolList() { + if (toolBuilder_ == null) { + return java.util.Collections.unmodifiableList(tool_); + } else { + return toolBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public int getToolCount() { + if (toolBuilder_ == null) { + return tool_.size(); + } else { + return toolBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool getTool(int index) { + if (toolBuilder_ == null) { + return tool_.get(index); + } else { + return toolBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setTool(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.set(index, value); + onChanged(); + } else { + toolBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setTool( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.set(index, builderForValue.build()); + onChanged(); + } else { + toolBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addTool(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.add(value); + onChanged(); + } else { + toolBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addTool(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.add(index, value); + onChanged(); + } else { + toolBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addTool(com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(builderForValue.build()); + onChanged(); + } else { + toolBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addTool( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(index, builderForValue.build()); + onChanged(); + } else { + toolBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder addAllTool( + java.lang.Iterable values) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tool_); + onChanged(); + } else { + toolBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearTool() { + if (toolBuilder_ == null) { + tool_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder removeTool(int index) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.remove(index); + onChanged(); + } else { + toolBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getToolBuilder(int index) { + return internalGetToolFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index) { + if (toolBuilder_ == null) { + return tool_.get(index); + } else { + return toolBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public java.util.List + getToolOrBuilderList() { + if (toolBuilder_ != null) { + return toolBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tool_); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolBuilder() { + return internalGetToolFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolBuilder(int index) { + return internalGetToolFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public java.util.List + getToolBuilderList() { + return internalGetToolFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetToolFieldBuilder() { + if (toolBuilder_ == null) { + toolBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + tool_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tool_ = null; + } + return toolBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.Tools + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tools 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.EvaluationInstance.DeprecatedAgentData.Tools + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface EventsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getEventList(); + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Content getEvent(int index); + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getEventCount(); + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getEventOrBuilderList(); + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getEventOrBuilder(int index); + } + + /** + * + * + *
            +     * Represents a list of events for an agent.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events} + */ + public static final class Events extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + EventsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Events"); + } + + // Use Events.newBuilder() to construct. + private Events(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Events() { + event_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder.class); + } + + public static final int EVENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List event_; + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getEventList() { + return event_; + } + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getEventOrBuilderList() { + return event_; + } + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getEventCount() { + return event_.size(); + } + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getEvent(int index) { + return event_.get(index); + } + + /** + * + * + *
            +       * Optional. A list of events.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getEventOrBuilder(int index) { + return event_.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 < event_.size(); i++) { + output.writeMessage(1, event_.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 < event_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, event_.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.EvaluationInstance.DeprecatedAgentData.Events)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) obj; + + if (!getEventList().equals(other.getEventList())) 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 (getEventCount() > 0) { + hash = (37 * hash) + EVENT_FIELD_NUMBER; + hash = (53 * hash) + getEventList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + 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.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + 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.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + 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.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Represents a list of events for an agent.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (eventBuilder_ == null) { + event_ = java.util.Collections.emptyList(); + } else { + event_ = null; + eventBuilder_.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_EvaluationInstance_DeprecatedAgentData_Events_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + result) { + if (eventBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + event_ = java.util.Collections.unmodifiableList(event_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.event_ = event_; + } else { + result.event_ = eventBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance()) return this; + if (eventBuilder_ == null) { + if (!other.event_.isEmpty()) { + if (event_.isEmpty()) { + event_ = other.event_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureEventIsMutable(); + event_.addAll(other.event_); + } + onChanged(); + } + } else { + if (!other.event_.isEmpty()) { + if (eventBuilder_.isEmpty()) { + eventBuilder_.dispose(); + eventBuilder_ = null; + event_ = other.event_; + bitField0_ = (bitField0_ & ~0x00000001); + eventBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetEventFieldBuilder() + : null; + } else { + eventBuilder_.addAllMessages(other.event_); + } + } + } + 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.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Content.parser(), + extensionRegistry); + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.add(m); + } else { + eventBuilder_.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 event_ = + java.util.Collections.emptyList(); + + private void ensureEventIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + event_ = new java.util.ArrayList(event_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + eventBuilder_; + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getEventList() { + if (eventBuilder_ == null) { + return java.util.Collections.unmodifiableList(event_); + } else { + return eventBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getEventCount() { + if (eventBuilder_ == null) { + return event_.size(); + } else { + return eventBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content getEvent(int index) { + if (eventBuilder_ == null) { + return event_.get(index); + } else { + return eventBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvent(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventIsMutable(); + event_.set(index, value); + onChanged(); + } else { + eventBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setEvent( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.set(index, builderForValue.build()); + onChanged(); + } else { + eventBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvent(com.google.cloud.aiplatform.v1beta1.Content value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventIsMutable(); + event_.add(value); + onChanged(); + } else { + eventBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvent(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (eventBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureEventIsMutable(); + event_.add(index, value); + onChanged(); + } else { + eventBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvent( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.add(builderForValue.build()); + onChanged(); + } else { + eventBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addEvent( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.add(index, builderForValue.build()); + onChanged(); + } else { + eventBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllEvent( + java.lang.Iterable values) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, event_); + onChanged(); + } else { + eventBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearEvent() { + if (eventBuilder_ == null) { + event_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + eventBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeEvent(int index) { + if (eventBuilder_ == null) { + ensureEventIsMutable(); + event_.remove(index); + onChanged(); + } else { + eventBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getEventBuilder(int index) { + return internalGetEventFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getEventOrBuilder(int index) { + if (eventBuilder_ == null) { + return event_.get(index); + } else { + return eventBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEventOrBuilderList() { + if (eventBuilder_ != null) { + return eventBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(event_); + } + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addEventBuilder() { + return internalGetEventFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addEventBuilder(int index) { + return internalGetEventFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. A list of events.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content event = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getEventBuilderList() { + return internalGetEventFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetEventFieldBuilder() { + if (eventBuilder_ == null) { + eventBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + event_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + event_ = null; + } + return eventBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.Events + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Events 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.EvaluationInstance.DeprecatedAgentData.Events + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int toolsDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolsData_; + + public enum ToolsDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + @java.lang.Deprecated + TOOLS_TEXT(1), + @java.lang.Deprecated + TOOLS(2), + TOOLSDATA_NOT_SET(0); + private final int value; + + private ToolsDataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolsDataCase valueOf(int value) { + return forNumber(value); + } + + public static ToolsDataCase forNumber(int value) { + switch (value) { + case 1: + return TOOLS_TEXT; + case 2: + return TOOLS; + case 0: + return TOOLSDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolsDataCase getToolsDataCase() { + return ToolsDataCase.forNumber(toolsDataCase_); + } + + private int eventsDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object eventsData_; + + public enum EventsDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + EVENTS(5), + EVENTSDATA_NOT_SET(0); + private final int value; + + private EventsDataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EventsDataCase valueOf(int value) { + return forNumber(value); + } + + public static EventsDataCase forNumber(int value) { + switch (value) { + case 5: + return EVENTS; + case 0: + return EVENTSDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EventsDataCase getEventsDataCase() { + return EventsDataCase.forNumber(eventsDataCase_); + } + + public static final int TOOLS_TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return Whether the toolsText field is set. + */ + @java.lang.Deprecated + public boolean hasToolsText() { + return toolsDataCase_ == 1; + } + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The toolsText. + */ + @java.lang.Deprecated + public java.lang.String getToolsText() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + 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(); + if (toolsDataCase_ == 1) { + toolsData_ = s; + } + return s; + } + } + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The bytes for toolsText. + */ + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolsTextBytes() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolsDataCase_ == 1) { + toolsData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLS_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return Whether the tools field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasTools() { + return toolsDataCase_ == 2; + } + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return The tools. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + getTools() { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ToolsOrBuilder + getToolsOrBuilder() { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + + public static final int EVENTS_FIELD_NUMBER = 5; + + /** + * + * + *
            +     * A list of events.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return Whether the events field is set. + */ + @java.lang.Override + public boolean hasEvents() { + return eventsDataCase_ == 5; + } + + /** + * + * + *
            +     * A list of events.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return The events. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + getEvents() { + if (eventsDataCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + eventsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + + /** + * + * + *
            +     * A list of events.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder + getEventsOrBuilder() { + if (eventsDataCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + eventsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + + public static final int AGENTS_FIELD_NUMBER = 7; + + private static final class AgentsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + agents_; + + private com.google.protobuf.MapField< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + internalGetAgents() { + if (agents_ == null) { + return com.google.protobuf.MapField.emptyMapField(AgentsDefaultEntryHolder.defaultEntry); + } + return agents_; + } + + public int getAgentsCount() { + return internalGetAgents().getMap().size(); + } + + /** + * + * + *
            +     * Optional. The static Agent Configuration.
            +     * This map defines the graph structure of the agent system.
            +     * Key: agent_id (matches the `author` field in events).
            +     * Value: The static configuration of the agent (tools, instructions,
            +     * sub-agents).
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAgents().getMap().containsKey(key); + } + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgents() { + return getAgentsMap(); + } + + /** + * + * + *
            +     * Optional. The static Agent Configuration.
            +     * This map defines the graph structure of the agent system.
            +     * Key: agent_id (matches the `author` field in events).
            +     * Value: The static configuration of the agent (tools, instructions,
            +     * sub-agents).
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgentsMap() { + return internalGetAgents().getMap(); + } + + /** + * + * + *
            +     * Optional. The static Agent Configuration.
            +     * This map defines the graph structure of the agent system.
            +     * Key: agent_id (matches the `author` field in events).
            +     * Value: The static configuration of the agent (tools, instructions,
            +     * sub-agents).
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig + getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + map = internalGetAgents().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +     * Optional. The static Agent Configuration.
            +     * This map defines the graph structure of the agent system.
            +     * Key: agent_id (matches the `author` field in events).
            +     * Value: The static configuration of the agent (tools, instructions,
            +     * sub-agents).
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + map = internalGetAgents().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int TURNS_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + turns_; + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + getTurnsList() { + return turns_; + } + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + getTurnsOrBuilderList() { + return turns_; + } + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getTurnsCount() { + return turns_.size(); + } + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getTurns(int index) { + return turns_.get(index); + } + + /** + * + * + *
            +     * Optional. The chronological list of conversation turns.
            +     * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +     * Response).
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder + getTurnsOrBuilder(int index) { + return turns_.get(index); + } + + public static final int DEVELOPER_INSTRUCTION_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + developerInstruction_; + + /** + * + * + *
            +     * Optional. Deprecated:  Use `agents.developer_instruction` or
            +     * `turns.events.active_instruction` instead.
            +     * A field containing instructions from the developer for the agent.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return Whether the developerInstruction field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasDeveloperInstruction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Deprecated:  Use `agents.developer_instruction` or
            +     * `turns.events.active_instruction` instead.
            +     * A field containing instructions from the developer for the agent.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return The developerInstruction. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDeveloperInstruction() { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : developerInstruction_; + } + + /** + * + * + *
            +     * Optional. Deprecated:  Use `agents.developer_instruction` or
            +     * `turns.events.active_instruction` instead.
            +     * A field containing instructions from the developer for the agent.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder() { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : developerInstruction_; + } + + public static final int AGENT_CONFIG_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + agentConfig_; + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Agent configuration.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + @java.lang.Override + public boolean hasAgentConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Agent configuration.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentConfig() { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Agent configuration.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder() { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + + 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 (toolsDataCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolsData_); + } + if (toolsDataCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDeveloperInstruction()); + } + if (eventsDataCase_ == 5) { + output.writeMessage( + 5, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + eventsData_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(6, getAgentConfig()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAgents(), AgentsDefaultEntryHolder.defaultEntry, 7); + for (int i = 0; i < turns_.size(); i++) { + output.writeMessage(8, turns_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (toolsDataCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolsData_); + } + if (toolsDataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeveloperInstruction()); + } + if (eventsDataCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events) + eventsData_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAgentConfig()); + } + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + entry : internalGetAgents().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + agents__ = + AgentsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, agents__); + } + for (int i = 0; i < turns_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, turns_.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.EvaluationInstance.DeprecatedAgentData)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) obj; + + if (!internalGetAgents().equals(other.internalGetAgents())) return false; + if (!getTurnsList().equals(other.getTurnsList())) return false; + if (hasDeveloperInstruction() != other.hasDeveloperInstruction()) return false; + if (hasDeveloperInstruction()) { + if (!getDeveloperInstruction().equals(other.getDeveloperInstruction())) return false; + } + if (hasAgentConfig() != other.hasAgentConfig()) return false; + if (hasAgentConfig()) { + if (!getAgentConfig().equals(other.getAgentConfig())) return false; + } + if (!getToolsDataCase().equals(other.getToolsDataCase())) return false; + switch (toolsDataCase_) { + case 1: + if (!getToolsText().equals(other.getToolsText())) return false; + break; + case 2: + if (!getTools().equals(other.getTools())) return false; + break; + case 0: + default: + } + if (!getEventsDataCase().equals(other.getEventsDataCase())) return false; + switch (eventsDataCase_) { + case 5: + if (!getEvents().equals(other.getEvents())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (!internalGetAgents().getMap().isEmpty()) { + hash = (37 * hash) + AGENTS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAgents().hashCode(); + } + if (getTurnsCount() > 0) { + hash = (37 * hash) + TURNS_FIELD_NUMBER; + hash = (53 * hash) + getTurnsList().hashCode(); + } + if (hasDeveloperInstruction()) { + hash = (37 * hash) + DEVELOPER_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperInstruction().hashCode(); + } + if (hasAgentConfig()) { + hash = (37 * hash) + AGENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentConfig().hashCode(); + } + switch (toolsDataCase_) { + case 1: + hash = (37 * hash) + TOOLS_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getToolsText().hashCode(); + break; + case 2: + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getTools().hashCode(); + break; + case 0: + default: + } + switch (eventsDataCase_) { + case 5: + hash = (37 * hash) + EVENTS_FIELD_NUMBER; + hash = (53 * hash) + getEvents().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + 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.EvaluationInstance.DeprecatedAgentData + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + 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.EvaluationInstance.DeprecatedAgentData + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + 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.EvaluationInstance.DeprecatedAgentData + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Deprecated: Use `agent_eval_data` instead.
            +     * Contains data specific to agent evaluations.
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 7: + return internalGetMutableAgents(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetTurnsFieldBuilder(); + internalGetDeveloperInstructionFieldBuilder(); + internalGetAgentConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsBuilder_ != null) { + toolsBuilder_.clear(); + } + if (eventsBuilder_ != null) { + eventsBuilder_.clear(); + } + internalGetMutableAgents().clear(); + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + } else { + turns_ = null; + turnsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000010); + developerInstruction_ = null; + if (developerInstructionBuilder_ != null) { + developerInstructionBuilder_.dispose(); + developerInstructionBuilder_ = null; + } + agentConfig_ = null; + if (agentConfigBuilder_ != null) { + agentConfigBuilder_.dispose(); + agentConfigBuilder_ = null; + } + toolsDataCase_ = 0; + toolsData_ = null; + eventsDataCase_ = 0; + eventsData_ = 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_EvaluationInstance_DeprecatedAgentData_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result) { + if (turnsBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0)) { + turns_ = java.util.Collections.unmodifiableList(turns_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.turns_ = turns_; + } else { + result.turns_ = turnsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000008) != 0)) { + result.agents_ = internalGetAgents().build(AgentsDefaultEntryHolder.defaultEntry); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.developerInstruction_ = + developerInstructionBuilder_ == null + ? developerInstruction_ + : developerInstructionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.agentConfig_ = + agentConfigBuilder_ == null ? agentConfig_ : agentConfigBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData result) { + result.toolsDataCase_ = toolsDataCase_; + result.toolsData_ = this.toolsData_; + if (toolsDataCase_ == 2 && toolsBuilder_ != null) { + result.toolsData_ = toolsBuilder_.build(); + } + result.eventsDataCase_ = eventsDataCase_; + result.eventsData_ = this.eventsData_; + if (eventsDataCase_ == 5 && eventsBuilder_ != null) { + result.eventsData_ = eventsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance()) return this; + internalGetMutableAgents().mergeFrom(other.internalGetAgents()); + bitField0_ |= 0x00000008; + if (turnsBuilder_ == null) { + if (!other.turns_.isEmpty()) { + if (turns_.isEmpty()) { + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureTurnsIsMutable(); + turns_.addAll(other.turns_); + } + onChanged(); + } + } else { + if (!other.turns_.isEmpty()) { + if (turnsBuilder_.isEmpty()) { + turnsBuilder_.dispose(); + turnsBuilder_ = null; + turns_ = other.turns_; + bitField0_ = (bitField0_ & ~0x00000010); + turnsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetTurnsFieldBuilder() + : null; + } else { + turnsBuilder_.addAllMessages(other.turns_); + } + } + } + if (other.hasDeveloperInstruction()) { + mergeDeveloperInstruction(other.getDeveloperInstruction()); + } + if (other.hasAgentConfig()) { + mergeAgentConfig(other.getAgentConfig()); + } + switch (other.getToolsDataCase()) { + case TOOLS_TEXT: + { + toolsDataCase_ = 1; + toolsData_ = other.toolsData_; + onChanged(); + break; + } + case TOOLS: + { + mergeTools(other.getTools()); + break; + } + case TOOLSDATA_NOT_SET: + { + break; + } + } + switch (other.getEventsDataCase()) { + case EVENTS: + { + mergeEvents(other.getEvents()); + break; + } + case EVENTSDATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + toolsDataCase_ = 1; + toolsData_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetToolsFieldBuilder().getBuilder(), extensionRegistry); + toolsDataCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDeveloperInstructionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 26 + case 42: + { + input.readMessage( + internalGetEventsFieldBuilder().getBuilder(), extensionRegistry); + eventsDataCase_ = 5; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetAgentConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 50 + case 58: + { + com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig> + agents__ = + input.readMessage( + AgentsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAgents() + .ensureBuilderMap() + .put(agents__.getKey(), agents__.getValue()); + bitField0_ |= 0x00000008; + break; + } // case 58 + case 66: + { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentData.ConversationTurn.parser(), + extensionRegistry); + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(m); + } else { + turnsBuilder_.addMessage(m); + } + break; + } // case 66 + 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 toolsDataCase_ = 0; + private java.lang.Object toolsData_; + + public ToolsDataCase getToolsDataCase() { + return ToolsDataCase.forNumber(toolsDataCase_); + } + + public Builder clearToolsData() { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + return this; + } + + private int eventsDataCase_ = 0; + private java.lang.Object eventsData_; + + public EventsDataCase getEventsDataCase() { + return EventsDataCase.forNumber(eventsDataCase_); + } + + public Builder clearEventsData() { + eventsDataCase_ = 0; + eventsData_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return Whether the toolsText field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasToolsText() { + return toolsDataCase_ == 1; + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The toolsText. + */ + @java.lang.Override + @java.lang.Deprecated + public java.lang.String getToolsText() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolsDataCase_ == 1) { + toolsData_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return The bytes for toolsText. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.protobuf.ByteString getToolsTextBytes() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolsDataCase_ == 1) { + toolsData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @param value The toolsText to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setToolsText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolsDataCase_ = 1; + toolsData_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder clearToolsText() { + if (toolsDataCase_ == 1) { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1 [deprecated = true]; + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools_text is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=451 + * @param value The bytes for toolsText to set. + * @return This builder for chaining. + */ + @java.lang.Deprecated + public Builder setToolsTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolsDataCase_ = 1; + toolsData_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder> + toolsBuilder_; + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return Whether the tools field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasTools() { + return toolsDataCase_ == 2; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.tools is + * deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=454 + * @return The tools. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + getTools() { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } else { + if (toolsDataCase_ == 2) { + return toolsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolsData_ = value; + onChanged(); + } else { + toolsBuilder_.setMessage(value); + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder setTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools.Builder + builderForValue) { + if (toolsBuilder_ == null) { + toolsData_ = builderForValue.build(); + onChanged(); + } else { + toolsBuilder_.setMessage(builderForValue.build()); + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder mergeTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools value) { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2 + && toolsData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Tools.getDefaultInstance()) { + toolsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Tools) + toolsData_) + .mergeFrom(value) + .buildPartial(); + } else { + toolsData_ = value; + } + onChanged(); + } else { + if (toolsDataCase_ == 2) { + toolsBuilder_.mergeFrom(value); + } else { + toolsBuilder_.setMessage(value); + } + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public Builder clearTools() { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2) { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + } + } else { + if (toolsDataCase_ == 2) { + toolsDataCase_ = 0; + toolsData_ = null; + } + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder + getToolsBuilder() { + return internalGetToolsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder + getToolsOrBuilder() { + if ((toolsDataCase_ == 2) && (toolsBuilder_ != null)) { + return toolsBuilder_.getMessageOrBuilder(); + } else { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools tools = 2 [deprecated = true]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + if (!(toolsDataCase_ == 2)) { + toolsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .getDefaultInstance(); + } + toolsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ToolsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Tools) + toolsData_, + getParentForChildren(), + isClean()); + toolsData_ = null; + } + toolsDataCase_ = 2; + onChanged(); + return toolsBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder> + eventsBuilder_; + + /** + * + * + *
            +       * A list of events.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return Whether the events field is set. + */ + @java.lang.Override + public boolean hasEvents() { + return eventsDataCase_ == 5; + } + + /** + * + * + *
            +       * A list of events.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + * + * @return The events. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + getEvents() { + if (eventsBuilder_ == null) { + if (eventsDataCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events) + eventsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } else { + if (eventsDataCase_ == 5) { + return eventsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A list of events.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public Builder setEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events value) { + if (eventsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + eventsData_ = value; + onChanged(); + } else { + eventsBuilder_.setMessage(value); + } + eventsDataCase_ = 5; + return this; + } + + /** + * + * + *
            +       * A list of events.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public Builder setEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events.Builder + builderForValue) { + if (eventsBuilder_ == null) { + eventsData_ = builderForValue.build(); + onChanged(); + } else { + eventsBuilder_.setMessage(builderForValue.build()); + } + eventsDataCase_ = 5; + return this; + } + + /** + * + * + *
            +       * A list of events.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public Builder mergeEvents( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events value) { + if (eventsBuilder_ == null) { + if (eventsDataCase_ == 5 + && eventsData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events.getDefaultInstance()) { + eventsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events) + eventsData_) + .mergeFrom(value) + .buildPartial(); + } else { + eventsData_ = value; + } + onChanged(); + } else { + if (eventsDataCase_ == 5) { + eventsBuilder_.mergeFrom(value); + } else { + eventsBuilder_.setMessage(value); + } + } + eventsDataCase_ = 5; + return this; + } + + /** + * + * + *
            +       * A list of events.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public Builder clearEvents() { + if (eventsBuilder_ == null) { + if (eventsDataCase_ == 5) { + eventsDataCase_ = 0; + eventsData_ = null; + onChanged(); + } + } else { + if (eventsDataCase_ == 5) { + eventsDataCase_ = 0; + eventsData_ = null; + } + eventsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * A list of events.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder + getEventsBuilder() { + return internalGetEventsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * A list of events.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder + getEventsOrBuilder() { + if ((eventsDataCase_ == 5) && (eventsBuilder_ != null)) { + return eventsBuilder_.getMessageOrBuilder(); + } else { + if (eventsDataCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events) + eventsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * A list of events.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events events = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder> + internalGetEventsFieldBuilder() { + if (eventsBuilder_ == null) { + if (!(eventsDataCase_ == 5)) { + eventsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .getDefaultInstance(); + } + eventsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Events + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .EventsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .Events) + eventsData_, + getParentForChildren(), + isClean()); + eventsData_ = null; + } + eventsDataCase_ = 5; + onChanged(); + return eventsBuilder_; + } + + private static final class AgentsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> { + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig build( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + val) { + if (val + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + val; + } + return ((com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Builder) + val) + .build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + defaultEntry() { + return AgentsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final AgentsConverter agentsConverter = new AgentsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder> + agents_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder> + internalGetAgents() { + if (agents_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(agentsConverter); + } + return agents_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder> + internalGetMutableAgents() { + if (agents_ == null) { + agents_ = new com.google.protobuf.MapFieldBuilder<>(agentsConverter); + } + bitField0_ |= 0x00000008; + onChanged(); + return agents_; + } + + public int getAgentsCount() { + return internalGetAgents().ensureBuilderMap().size(); + } + + /** + * + * + *
            +       * Optional. The static Agent Configuration.
            +       * This map defines the graph structure of the agent system.
            +       * Key: agent_id (matches the `author` field in events).
            +       * Value: The static configuration of the agent (tools, instructions,
            +       * sub-agents).
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAgents().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getAgentsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgents() { + return getAgentsMap(); + } + + /** + * + * + *
            +       * Optional. The static Agent Configuration.
            +       * This map defines the graph structure of the agent system.
            +       * Key: agent_id (matches the `author` field in events).
            +       * Value: The static configuration of the agent (tools, instructions,
            +       * sub-agents).
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getAgentsMap() { + return internalGetAgents().getImmutableMap(); + } + + /** + * + * + *
            +       * Optional. The static Agent Configuration.
            +       * This map defines the graph structure of the agent system.
            +       * Key: agent_id (matches the `author` field in events).
            +       * Value: The static configuration of the agent (tools, instructions,
            +       * sub-agents).
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig + getAgentsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder> + map = internalGetMutableAgents().ensureBuilderMap(); + return map.containsKey(key) ? agentsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +       * Optional. The static Agent Configuration.
            +       * This map defines the graph structure of the agent system.
            +       * Key: agent_id (matches the `author` field in events).
            +       * Value: The static configuration of the agent (tools, instructions,
            +       * sub-agents).
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder> + map = internalGetMutableAgents().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return agentsConverter.build(map.get(key)); + } + + public Builder clearAgents() { + bitField0_ = (bitField0_ & ~0x00000008); + internalGetMutableAgents().clear(); + return this; + } + + /** + * + * + *
            +       * Optional. The static Agent Configuration.
            +       * This map defines the graph structure of the agent system.
            +       * Key: agent_id (matches the `author` field in events).
            +       * Value: The static configuration of the agent (tools, instructions,
            +       * sub-agents).
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAgents(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAgents().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + getMutableAgents() { + bitField0_ |= 0x00000008; + return internalGetMutableAgents().ensureMessageMap(); + } + + /** + * + * + *
            +       * Optional. The static Agent Configuration.
            +       * This map defines the graph structure of the agent system.
            +       * Key: agent_id (matches the `author` field in events).
            +       * Value: The static configuration of the agent (tools, instructions,
            +       * sub-agents).
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAgents( + java.lang.String key, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAgents().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
            +       * Optional. The static Agent Configuration.
            +       * This map defines the graph structure of the agent system.
            +       * Key: agent_id (matches the `author` field in events).
            +       * Value: The static configuration of the agent (tools, instructions,
            +       * sub-agents).
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAgents( + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + values) { + for (java.util.Map.Entry< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableAgents().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000008; + return this; + } + + /** + * + * + *
            +       * Optional. The static Agent Configuration.
            +       * This map defines the graph structure of the agent system.
            +       * Key: agent_id (matches the `author` field in events).
            +       * Value: The static configuration of the agent (tools, instructions,
            +       * sub-agents).
            +       * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig> agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + putAgentsBuilderIfAbsent(java.lang.String key) { + java.util.Map< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder> + builderMap = internalGetMutableAgents().ensureBuilderMap(); + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + entry = builderMap.get(key); + if (entry == null) { + entry = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .newBuilder(); + builderMap.put(key, entry); + } + if (entry + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) { + entry = + ((com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) entry) + .toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Builder) + entry; + } + + private java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + turns_ = java.util.Collections.emptyList(); + + private void ensureTurnsIsMutable() { + if (!((bitField0_ & 0x00000010) != 0)) { + turns_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn>(turns_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + turnsBuilder_; + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + getTurnsList() { + if (turnsBuilder_ == null) { + return java.util.Collections.unmodifiableList(turns_); + } else { + return turnsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getTurnsCount() { + if (turnsBuilder_ == null) { + return turns_.size(); + } else { + return turnsBuilder_.getCount(); + } + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + getTurns(int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurns( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.set(index, value); + onChanged(); + } else { + turnsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTurns( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.set(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(value); + onChanged(); + } else { + turnsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn + value) { + if (turnsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureTurnsIsMutable(); + turns_.add(index, value); + onChanged(); + } else { + turnsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTurns( + int index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + builderForValue) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.add(index, builderForValue.build()); + onChanged(); + } else { + turnsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTurns( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn> + values) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, turns_); + onChanged(); + } else { + turnsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTurns() { + if (turnsBuilder_ == null) { + turns_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + turnsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTurns(int index) { + if (turnsBuilder_ == null) { + ensureTurnsIsMutable(); + turns_.remove(index); + onChanged(); + } else { + turnsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + getTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder + getTurnsOrBuilder(int index) { + if (turnsBuilder_ == null) { + return turns_.get(index); + } else { + return turnsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + getTurnsOrBuilderList() { + if (turnsBuilder_ != null) { + return turnsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(turns_); + } + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + addTurnsBuilder() { + return internalGetTurnsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder + addTurnsBuilder(int index) { + return internalGetTurnsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.getDefaultInstance()); + } + + /** + * + * + *
            +       * Optional. The chronological list of conversation turns.
            +       * Each turn represents a logical execution cycle (e.g., User Input -> Agent
            +       * Response).
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.ConversationTurn turns = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder> + getTurnsBuilderList() { + return internalGetTurnsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder> + internalGetTurnsFieldBuilder() { + if (turnsBuilder_ == null) { + turnsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurn.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .ConversationTurnOrBuilder>( + turns_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); + turns_ = null; + } + return turnsBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + developerInstruction_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + developerInstructionBuilder_; + + /** + * + * + *
            +       * Optional. Deprecated:  Use `agents.developer_instruction` or
            +       * `turns.events.active_instruction` instead.
            +       * A field containing instructions from the developer for the agent.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return Whether the developerInstruction field is set. + */ + @java.lang.Deprecated + public boolean hasDeveloperInstruction() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +       * Optional. Deprecated:  Use `agents.developer_instruction` or
            +       * `turns.events.active_instruction` instead.
            +       * A field containing instructions from the developer for the agent.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.developer_instruction + * is deprecated. See google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=481 + * @return The developerInstruction. + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDeveloperInstruction() { + if (developerInstructionBuilder_ == null) { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : developerInstruction_; + } else { + return developerInstructionBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Deprecated:  Use `agents.developer_instruction` or
            +       * `turns.events.active_instruction` instead.
            +       * A field containing instructions from the developer for the agent.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (developerInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + developerInstruction_ = value; + } else { + developerInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Deprecated:  Use `agents.developer_instruction` or
            +       * `turns.events.active_instruction` instead.
            +       * A field containing instructions from the developer for the agent.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (developerInstructionBuilder_ == null) { + developerInstruction_ = builderForValue.build(); + } else { + developerInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Deprecated:  Use `agents.developer_instruction` or
            +       * `turns.events.active_instruction` instead.
            +       * A field containing instructions from the developer for the agent.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder mergeDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (developerInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && developerInstruction_ != null + && developerInstruction_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getDeveloperInstructionBuilder().mergeFrom(value); + } else { + developerInstruction_ = value; + } + } else { + developerInstructionBuilder_.mergeFrom(value); + } + if (developerInstruction_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Deprecated:  Use `agents.developer_instruction` or
            +       * `turns.events.active_instruction` instead.
            +       * A field containing instructions from the developer for the agent.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearDeveloperInstruction() { + bitField0_ = (bitField0_ & ~0x00000020); + developerInstruction_ = null; + if (developerInstructionBuilder_ != null) { + developerInstructionBuilder_.dispose(); + developerInstructionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Deprecated:  Use `agents.developer_instruction` or
            +       * `turns.events.active_instruction` instead.
            +       * A field containing instructions from the developer for the agent.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getDeveloperInstructionBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetDeveloperInstructionFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Deprecated:  Use `agents.developer_instruction` or
            +       * `turns.events.active_instruction` instead.
            +       * A field containing instructions from the developer for the agent.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder() { + if (developerInstructionBuilder_ != null) { + return developerInstructionBuilder_.getMessageOrBuilder(); + } else { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : developerInstruction_; + } + } + + /** + * + * + *
            +       * Optional. Deprecated:  Use `agents.developer_instruction` or
            +       * `turns.events.active_instruction` instead.
            +       * A field containing instructions from the developer for the agent.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetDeveloperInstructionFieldBuilder() { + if (developerInstructionBuilder_ == null) { + developerInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getDeveloperInstruction(), getParentForChildren(), isClean()); + developerInstruction_ = null; + } + return developerInstructionBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + agentConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder> + agentConfigBuilder_; + + /** + * + * + *
            +       * Optional. Deprecated: Use `agent_eval_data` instead.
            +       * Agent configuration.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + public boolean hasAgentConfig() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +       * Optional. Deprecated: Use `agent_eval_data` instead.
            +       * Agent configuration.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentConfig() { + if (agentConfigBuilder_ == null) { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } else { + return agentConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Deprecated: Use `agent_eval_data` instead.
            +       * Agent configuration.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (agentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentConfig_ = value; + } else { + agentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Deprecated: Use `agent_eval_data` instead.
            +       * Agent configuration.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + builderForValue) { + if (agentConfigBuilder_ == null) { + agentConfig_ = builderForValue.build(); + } else { + agentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Deprecated: Use `agent_eval_data` instead.
            +       * Agent configuration.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (agentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && agentConfig_ != null + && agentConfig_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance()) { + getAgentConfigBuilder().mergeFrom(value); + } else { + agentConfig_ = value; + } + } else { + agentConfigBuilder_.mergeFrom(value); + } + if (agentConfig_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Deprecated: Use `agent_eval_data` instead.
            +       * Agent configuration.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentConfig() { + bitField0_ = (bitField0_ & ~0x00000040); + agentConfig_ = null; + if (agentConfigBuilder_ != null) { + agentConfigBuilder_.dispose(); + agentConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Deprecated: Use `agent_eval_data` instead.
            +       * Agent configuration.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + getAgentConfigBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetAgentConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Deprecated: Use `agent_eval_data` instead.
            +       * Agent configuration.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder() { + if (agentConfigBuilder_ != null) { + return agentConfigBuilder_.getMessageOrBuilder(); + } else { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + } + + /** + * + * + *
            +       * Optional. Deprecated: Use `agent_eval_data` instead.
            +       * Agent configuration.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder> + internalGetAgentConfigFieldBuilder() { + if (agentConfigBuilder_ == null) { + agentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder>( + getAgentConfig(), getParentForChildren(), isClean()); + agentConfig_ = null; + } + return agentConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeprecatedAgentData 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.EvaluationInstance.DeprecatedAgentData + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + @java.lang.Deprecated + public interface DeprecatedAgentConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1; + * + * @return Whether the toolsText field is set. + */ + boolean hasToolsText(); + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1; + * + * @return The toolsText. + */ + java.lang.String getToolsText(); + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1; + * + * @return The bytes for toolsText. + */ + com.google.protobuf.ByteString getToolsTextBytes(); + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return Whether the tools field is set. + */ + boolean hasTools(); + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return The tools. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools getTools(); + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.ToolsOrBuilder + getToolsOrBuilder(); + + /** + * + * + *
            +     * Optional. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + java.lang.String getAgentId(); + + /** + * + * + *
            +     * Optional. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + com.google.protobuf.ByteString getAgentIdBytes(); + + /** + * + * + *
            +     * Optional. The type or class of the agent (e.g., "LlmAgent",
            +     * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
            +     * the expected behavior of the agent.
            +     * 
            + * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + java.lang.String getAgentType(); + + /** + * + * + *
            +     * Optional. The type or class of the agent (e.g., "LlmAgent",
            +     * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
            +     * the expected behavior of the agent.
            +     * 
            + * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + com.google.protobuf.ByteString getAgentTypeBytes(); + + /** + * + * + *
            +     * Optional. A high-level description of the agent's role and
            +     * responsibilities. Critical for evaluating if the agent is routing tasks
            +     * correctly.
            +     * 
            + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +     * Optional. A high-level description of the agent's role and
            +     * responsibilities. Critical for evaluating if the agent is routing tasks
            +     * correctly.
            +     * 
            + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
            +     * Optional. The list of valid agent IDs (names) that this agent can
            +     * delegate to. This defines the directed edges in the agent system graph
            +     * topology.
            +     * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + java.util.List getSubAgentsList(); + + /** + * + * + *
            +     * Optional. The list of valid agent IDs (names) that this agent can
            +     * delegate to. This defines the directed edges in the agent system graph
            +     * topology.
            +     * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + int getSubAgentsCount(); + + /** + * + * + *
            +     * Optional. The list of valid agent IDs (names) that this agent can
            +     * delegate to. This defines the directed edges in the agent system graph
            +     * topology.
            +     * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + java.lang.String getSubAgents(int index); + + /** + * + * + *
            +     * Optional. The list of valid agent IDs (names) that this agent can
            +     * delegate to. This defines the directed edges in the agent system graph
            +     * topology.
            +     * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + com.google.protobuf.ByteString getSubAgentsBytes(int index); + + /** + * + * + *
            +     * Optional. Contains instructions from the developer for the agent. Can be
            +     * static or a dynamic prompt template used with the
            +     * `AgentEvent.state_delta` field.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerInstruction field is set. + */ + boolean hasDeveloperInstruction(); + + /** + * + * + *
            +     * Optional. Contains instructions from the developer for the agent. Can be
            +     * static or a dynamic prompt template used with the
            +     * `AgentEvent.state_delta` field.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerInstruction. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getDeveloperInstruction(); + + /** + * + * + *
            +     * Optional. Contains instructions from the developer for the agent. Can be
            +     * static or a dynamic prompt template used with the
            +     * `AgentEvent.state_delta` field.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.ToolsDataCase + getToolsDataCase(); + } + + /** + * + * + *
            +   * Deprecated: Use `google.cloud.aiplatform.master.AgentConfig` in
            +   * `agent_eval_data` instead.
            +   * Configuration for an Agent.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig} + */ + @java.lang.Deprecated + public static final class DeprecatedAgentConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + DeprecatedAgentConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeprecatedAgentConfig"); + } + + // Use DeprecatedAgentConfig.newBuilder() to construct. + private DeprecatedAgentConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeprecatedAgentConfig() { + agentId_ = ""; + agentType_ = ""; + description_ = ""; + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + .class); + } + + public interface ToolsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List getToolList(); + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.Tool getTool(int index); + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getToolCount(); + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List + getToolOrBuilderList(); + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index); + } + + /** + * + * + *
            +     * Represents a list of tools for an agent.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools} + */ + public static final class Tools extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + ToolsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Tools"); + } + + // Use Tools.newBuilder() to construct. + private Tools(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Tools() { + tool_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder.class); + } + + public static final int TOOL_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List tool_; + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List getToolList() { + return tool_; + } + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List + getToolOrBuilderList() { + return tool_; + } + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getToolCount() { + return tool_.size(); + } + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Tool getTool(int index) { + return tool_.get(index); + } + + /** + * + * + *
            +       * Optional. List of tools: each tool can have multiple function
            +       * declarations.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index) { + return tool_.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 < tool_.size(); i++) { + output.writeMessage(1, tool_.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 < tool_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, tool_.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.EvaluationInstance.DeprecatedAgentConfig.Tools)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + obj; + + if (!getToolList().equals(other.getToolList())) 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 (getToolCount() > 0) { + hash = (37 * hash) + TOOL_FIELD_NUMBER; + hash = (53 * hash) + getToolList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + 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.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + 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.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + 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.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Represents a list of tools for an agent.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolBuilder_ == null) { + tool_ = java.util.Collections.emptyList(); + } else { + tool_ = null; + toolBuilder_.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_EvaluationInstance_DeprecatedAgentConfig_Tools_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + result) { + if (toolBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + tool_ = java.util.Collections.unmodifiableList(tool_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.tool_ = tool_; + } else { + result.tool_ = toolBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance()) return this; + if (toolBuilder_ == null) { + if (!other.tool_.isEmpty()) { + if (tool_.isEmpty()) { + tool_ = other.tool_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureToolIsMutable(); + tool_.addAll(other.tool_); + } + onChanged(); + } + } else { + if (!other.tool_.isEmpty()) { + if (toolBuilder_.isEmpty()) { + toolBuilder_.dispose(); + toolBuilder_ = null; + tool_ = other.tool_; + bitField0_ = (bitField0_ & ~0x00000001); + toolBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetToolFieldBuilder() + : null; + } else { + toolBuilder_.addAllMessages(other.tool_); + } + } + } + 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.Tool m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Tool.parser(), extensionRegistry); + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(m); + } else { + toolBuilder_.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 tool_ = + java.util.Collections.emptyList(); + + private void ensureToolIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + tool_ = new java.util.ArrayList(tool_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + toolBuilder_; + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List getToolList() { + if (toolBuilder_ == null) { + return java.util.Collections.unmodifiableList(tool_); + } else { + return toolBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getToolCount() { + if (toolBuilder_ == null) { + return tool_.size(); + } else { + return toolBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool getTool(int index) { + if (toolBuilder_ == null) { + return tool_.get(index); + } else { + return toolBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTool(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.set(index, value); + onChanged(); + } else { + toolBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setTool( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.set(index, builderForValue.build()); + onChanged(); + } else { + toolBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTool(com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.add(value); + onChanged(); + } else { + toolBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTool(int index, com.google.cloud.aiplatform.v1beta1.Tool value) { + if (toolBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureToolIsMutable(); + tool_.add(index, value); + onChanged(); + } else { + toolBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTool(com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(builderForValue.build()); + onChanged(); + } else { + toolBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addTool( + int index, com.google.cloud.aiplatform.v1beta1.Tool.Builder builderForValue) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.add(index, builderForValue.build()); + onChanged(); + } else { + toolBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllTool( + java.lang.Iterable values) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, tool_); + onChanged(); + } else { + toolBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearTool() { + if (toolBuilder_ == null) { + tool_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + toolBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeTool(int index) { + if (toolBuilder_ == null) { + ensureToolIsMutable(); + tool_.remove(index); + onChanged(); + } else { + toolBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder getToolBuilder(int index) { + return internalGetToolFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ToolOrBuilder getToolOrBuilder(int index) { + if (toolBuilder_ == null) { + return tool_.get(index); + } else { + return toolBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolOrBuilderList() { + if (toolBuilder_ != null) { + return toolBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(tool_); + } + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolBuilder() { + return internalGetToolFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Tool.Builder addToolBuilder(int index) { + return internalGetToolFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Tool.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. List of tools: each tool can have multiple function
            +         * declarations.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Tool tool = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List + getToolBuilderList() { + return internalGetToolFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder> + internalGetToolFieldBuilder() { + if (toolBuilder_ == null) { + toolBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Tool, + com.google.cloud.aiplatform.v1beta1.Tool.Builder, + com.google.cloud.aiplatform.v1beta1.ToolOrBuilder>( + tool_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + tool_ = null; + } + return toolBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig.Tools + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Tools 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.EvaluationInstance.DeprecatedAgentConfig.Tools + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int toolsDataCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object toolsData_; + + public enum ToolsDataCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TOOLS_TEXT(1), + TOOLS(2), + TOOLSDATA_NOT_SET(0); + private final int value; + + private ToolsDataCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ToolsDataCase valueOf(int value) { + return forNumber(value); + } + + public static ToolsDataCase forNumber(int value) { + switch (value) { + case 1: + return TOOLS_TEXT; + case 2: + return TOOLS; + case 0: + return TOOLSDATA_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ToolsDataCase getToolsDataCase() { + return ToolsDataCase.forNumber(toolsDataCase_); + } + + public static final int TOOLS_TEXT_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1; + * + * @return Whether the toolsText field is set. + */ + public boolean hasToolsText() { + return toolsDataCase_ == 1; + } + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1; + * + * @return The toolsText. + */ + public java.lang.String getToolsText() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + 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(); + if (toolsDataCase_ == 1) { + toolsData_ = s; + } + return s; + } + } + + /** + * + * + *
            +     * A JSON string containing a list of tools available to an agent with
            +     * info such as name, description, parameters and required parameters.
            +     * 
            + * + * string tools_text = 1; + * + * @return The bytes for toolsText. + */ + public com.google.protobuf.ByteString getToolsTextBytes() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolsDataCase_ == 1) { + toolsData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TOOLS_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return Whether the tools field is set. + */ + @java.lang.Override + public boolean hasTools() { + return toolsDataCase_ == 2; + } + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return The tools. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + getTools() { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + + /** + * + * + *
            +     * List of tools.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder + getToolsOrBuilder() { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + + public static final int AGENT_ID_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentId_ = ""; + + /** + * + * + *
            +     * Optional. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + @java.lang.Override + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + 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(); + agentId_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. Unique identifier of the agent.
            +     * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +     * the `sub_agents` field. It must be unique within the `agents` map.
            +     * 
            + * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_TYPE_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentType_ = ""; + + /** + * + * + *
            +     * Optional. The type or class of the agent (e.g., "LlmAgent",
            +     * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
            +     * the expected behavior of the agent.
            +     * 
            + * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + @java.lang.Override + public java.lang.String getAgentType() { + java.lang.Object ref = agentType_; + 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(); + agentType_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The type or class of the agent (e.g., "LlmAgent",
            +     * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
            +     * the expected behavior of the agent.
            +     * 
            + * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentTypeBytes() { + java.lang.Object ref = agentType_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. A high-level description of the agent's role and
            +     * responsibilities. Critical for evaluating if the agent is routing tasks
            +     * correctly.
            +     * 
            + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. A high-level description of the agent's role and
            +     * responsibilities. Critical for evaluating if the agent is routing tasks
            +     * correctly.
            +     * 
            + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SUB_AGENTS_FIELD_NUMBER = 7; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList subAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +     * Optional. The list of valid agent IDs (names) that this agent can
            +     * delegate to. This defines the directed edges in the agent system graph
            +     * topology.
            +     * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + public com.google.protobuf.ProtocolStringList getSubAgentsList() { + return subAgents_; + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs (names) that this agent can
            +     * delegate to. This defines the directed edges in the agent system graph
            +     * topology.
            +     * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + public int getSubAgentsCount() { + return subAgents_.size(); + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs (names) that this agent can
            +     * delegate to. This defines the directed edges in the agent system graph
            +     * topology.
            +     * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + public java.lang.String getSubAgents(int index) { + return subAgents_.get(index); + } + + /** + * + * + *
            +     * Optional. The list of valid agent IDs (names) that this agent can
            +     * delegate to. This defines the directed edges in the agent system graph
            +     * topology.
            +     * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + public com.google.protobuf.ByteString getSubAgentsBytes(int index) { + return subAgents_.getByteString(index); + } + + public static final int DEVELOPER_INSTRUCTION_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + developerInstruction_; + + /** + * + * + *
            +     * Optional. Contains instructions from the developer for the agent. Can be
            +     * static or a dynamic prompt template used with the
            +     * `AgentEvent.state_delta` field.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerInstruction field is set. + */ + @java.lang.Override + public boolean hasDeveloperInstruction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Contains instructions from the developer for the agent. Can be
            +     * static or a dynamic prompt template used with the
            +     * `AgentEvent.state_delta` field.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerInstruction. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDeveloperInstruction() { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : developerInstruction_; + } + + /** + * + * + *
            +     * Optional. Contains instructions from the developer for the agent. Can be
            +     * static or a dynamic prompt template used with the
            +     * `AgentEvent.state_delta` field.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder() { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : developerInstruction_; + } + + 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 (toolsDataCase_ == 1) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, toolsData_); + } + if (toolsDataCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + toolsData_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getDeveloperInstruction()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentType_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, agentType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, description_); + } + for (int i = 0; i < subAgents_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 7, subAgents_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (toolsDataCase_ == 1) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, toolsData_); + } + if (toolsDataCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools) + toolsData_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getDeveloperInstruction()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, agentId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentType_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, agentType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, description_); + } + { + int dataSize = 0; + for (int i = 0; i < subAgents_.size(); i++) { + dataSize += computeStringSizeNoTag(subAgents_.getRaw(i)); + } + size += dataSize; + size += 1 * getSubAgentsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) obj; + + if (!getAgentId().equals(other.getAgentId())) return false; + if (!getAgentType().equals(other.getAgentType())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (!getSubAgentsList().equals(other.getSubAgentsList())) return false; + if (hasDeveloperInstruction() != other.hasDeveloperInstruction()) return false; + if (hasDeveloperInstruction()) { + if (!getDeveloperInstruction().equals(other.getDeveloperInstruction())) return false; + } + if (!getToolsDataCase().equals(other.getToolsDataCase())) return false; + switch (toolsDataCase_) { + case 1: + if (!getToolsText().equals(other.getToolsText())) return false; + break; + case 2: + if (!getTools().equals(other.getTools())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + AGENT_ID_FIELD_NUMBER; + hash = (53 * hash) + getAgentId().hashCode(); + hash = (37 * hash) + AGENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + getAgentType().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + if (getSubAgentsCount() > 0) { + hash = (37 * hash) + SUB_AGENTS_FIELD_NUMBER; + hash = (53 * hash) + getSubAgentsList().hashCode(); + } + if (hasDeveloperInstruction()) { + hash = (37 * hash) + DEVELOPER_INSTRUCTION_FIELD_NUMBER; + hash = (53 * hash) + getDeveloperInstruction().hashCode(); + } + switch (toolsDataCase_) { + case 1: + hash = (37 * hash) + TOOLS_TEXT_FIELD_NUMBER; + hash = (53 * hash) + getToolsText().hashCode(); + break; + case 2: + hash = (37 * hash) + TOOLS_FIELD_NUMBER; + hash = (53 * hash) + getTools().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + 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.EvaluationInstance.DeprecatedAgentConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + 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.EvaluationInstance.DeprecatedAgentConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + 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.EvaluationInstance.DeprecatedAgentConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Deprecated: Use `google.cloud.aiplatform.master.AgentConfig` in
            +     * `agent_eval_data` instead.
            +     * Configuration for an Agent.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDeveloperInstructionFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (toolsBuilder_ != null) { + toolsBuilder_.clear(); + } + agentId_ = ""; + agentType_ = ""; + description_ = ""; + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + developerInstruction_ = null; + if (developerInstructionBuilder_ != null) { + developerInstructionBuilder_.dispose(); + developerInstructionBuilder_ = null; + } + toolsDataCase_ = 0; + toolsData_ = 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_EvaluationInstance_DeprecatedAgentConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.agentId_ = agentId_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.agentType_ = agentType_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + subAgents_.makeImmutable(); + result.subAgents_ = subAgents_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000040) != 0)) { + result.developerInstruction_ = + developerInstructionBuilder_ == null + ? developerInstruction_ + : developerInstructionBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig result) { + result.toolsDataCase_ = toolsDataCase_; + result.toolsData_ = this.toolsData_; + if (toolsDataCase_ == 2 && toolsBuilder_ != null) { + result.toolsData_ = toolsBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance()) return this; + if (!other.getAgentId().isEmpty()) { + agentId_ = other.agentId_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getAgentType().isEmpty()) { + agentType_ = other.agentType_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000010; + onChanged(); + } + if (!other.subAgents_.isEmpty()) { + if (subAgents_.isEmpty()) { + subAgents_ = other.subAgents_; + bitField0_ |= 0x00000020; + } else { + ensureSubAgentsIsMutable(); + subAgents_.addAll(other.subAgents_); + } + onChanged(); + } + if (other.hasDeveloperInstruction()) { + mergeDeveloperInstruction(other.getDeveloperInstruction()); + } + switch (other.getToolsDataCase()) { + case TOOLS_TEXT: + { + toolsDataCase_ = 1; + toolsData_ = other.toolsData_; + onChanged(); + break; + } + case TOOLS: + { + mergeTools(other.getTools()); + break; + } + case TOOLSDATA_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + toolsDataCase_ = 1; + toolsData_ = s; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetToolsFieldBuilder().getBuilder(), extensionRegistry); + toolsDataCase_ = 2; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetDeveloperInstructionFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 26 + case 34: + { + agentId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + agentType_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 42 + case 50: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 58: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureSubAgentsIsMutable(); + subAgents_.add(s); + 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 toolsDataCase_ = 0; + private java.lang.Object toolsData_; + + public ToolsDataCase getToolsDataCase() { + return ToolsDataCase.forNumber(toolsDataCase_); + } + + public Builder clearToolsData() { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1; + * + * @return Whether the toolsText field is set. + */ + @java.lang.Override + public boolean hasToolsText() { + return toolsDataCase_ == 1; + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1; + * + * @return The toolsText. + */ + @java.lang.Override + public java.lang.String getToolsText() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (toolsDataCase_ == 1) { + toolsData_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1; + * + * @return The bytes for toolsText. + */ + @java.lang.Override + public com.google.protobuf.ByteString getToolsTextBytes() { + java.lang.Object ref = ""; + if (toolsDataCase_ == 1) { + ref = toolsData_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (toolsDataCase_ == 1) { + toolsData_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1; + * + * @param value The toolsText to set. + * @return This builder for chaining. + */ + public Builder setToolsText(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + toolsDataCase_ = 1; + toolsData_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1; + * + * @return This builder for chaining. + */ + public Builder clearToolsText() { + if (toolsDataCase_ == 1) { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * A JSON string containing a list of tools available to an agent with
            +       * info such as name, description, parameters and required parameters.
            +       * 
            + * + * string tools_text = 1; + * + * @param value The bytes for toolsText to set. + * @return This builder for chaining. + */ + public Builder setToolsTextBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + toolsDataCase_ = 1; + toolsData_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder> + toolsBuilder_; + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return Whether the tools field is set. + */ + @java.lang.Override + public boolean hasTools() { + return toolsDataCase_ == 2; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + * + * @return The tools. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + getTools() { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } else { + if (toolsDataCase_ == 2) { + return toolsBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public Builder setTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + value) { + if (toolsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + toolsData_ = value; + onChanged(); + } else { + toolsBuilder_.setMessage(value); + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public Builder setTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools.Builder + builderForValue) { + if (toolsBuilder_ == null) { + toolsData_ = builderForValue.build(); + onChanged(); + } else { + toolsBuilder_.setMessage(builderForValue.build()); + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public Builder mergeTools( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + value) { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2 + && toolsData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools.getDefaultInstance()) { + toolsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig.Tools) + toolsData_) + .mergeFrom(value) + .buildPartial(); + } else { + toolsData_ = value; + } + onChanged(); + } else { + if (toolsDataCase_ == 2) { + toolsBuilder_.mergeFrom(value); + } else { + toolsBuilder_.setMessage(value); + } + } + toolsDataCase_ = 2; + return this; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public Builder clearTools() { + if (toolsBuilder_ == null) { + if (toolsDataCase_ == 2) { + toolsDataCase_ = 0; + toolsData_ = null; + onChanged(); + } + } else { + if (toolsDataCase_ == 2) { + toolsDataCase_ = 0; + toolsData_ = null; + } + toolsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder + getToolsBuilder() { + return internalGetToolsFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder + getToolsOrBuilder() { + if ((toolsDataCase_ == 2) && (toolsBuilder_ != null)) { + return toolsBuilder_.getMessageOrBuilder(); + } else { + if (toolsDataCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools) + toolsData_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * List of tools.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools tools = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder> + internalGetToolsFieldBuilder() { + if (toolsBuilder_ == null) { + if (!(toolsDataCase_ == 2)) { + toolsData_ = + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .getDefaultInstance(); + } + toolsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Tools + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .ToolsOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Tools) + toolsData_, + getParentForChildren(), + isClean()); + toolsData_ = null; + } + toolsDataCase_ = 2; + onChanged(); + return toolsBuilder_; + } + + private java.lang.Object agentId_ = ""; + + /** + * + * + *
            +       * Optional. Unique identifier of the agent.
            +       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +       * the `sub_agents` field. It must be unique within the `agents` map.
            +       * 
            + * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentId. + */ + public java.lang.String getAgentId() { + java.lang.Object ref = agentId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. Unique identifier of the agent.
            +       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +       * the `sub_agents` field. It must be unique within the `agents` map.
            +       * 
            + * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentId. + */ + public com.google.protobuf.ByteString getAgentIdBytes() { + java.lang.Object ref = agentId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. Unique identifier of the agent.
            +       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +       * the `sub_agents` field. It must be unique within the `agents` map.
            +       * 
            + * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Unique identifier of the agent.
            +       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +       * the `sub_agents` field. It must be unique within the `agents` map.
            +       * 
            + * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentId() { + agentId_ = getDefaultInstance().getAgentId(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Unique identifier of the agent.
            +       * This ID is used to refer to this agent, e.g., in AgentEvent.author, or in
            +       * the `sub_agents` field. It must be unique within the `agents` map.
            +       * 
            + * + * string agent_id = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentId to set. + * @return This builder for chaining. + */ + public Builder setAgentIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentId_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object agentType_ = ""; + + /** + * + * + *
            +       * Optional. The type or class of the agent (e.g., "LlmAgent",
            +       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
            +       * the expected behavior of the agent.
            +       * 
            + * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The agentType. + */ + public java.lang.String getAgentType() { + java.lang.Object ref = agentType_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentType_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The type or class of the agent (e.g., "LlmAgent",
            +       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
            +       * the expected behavior of the agent.
            +       * 
            + * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for agentType. + */ + public com.google.protobuf.ByteString getAgentTypeBytes() { + java.lang.Object ref = agentType_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentType_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The type or class of the agent (e.g., "LlmAgent",
            +       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
            +       * the expected behavior of the agent.
            +       * 
            + * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The type or class of the agent (e.g., "LlmAgent",
            +       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
            +       * the expected behavior of the agent.
            +       * 
            + * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearAgentType() { + agentType_ = getDefaultInstance().getAgentType(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The type or class of the agent (e.g., "LlmAgent",
            +       * "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand
            +       * the expected behavior of the agent.
            +       * 
            + * + * string agent_type = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for agentType to set. + * @return This builder for chaining. + */ + public Builder setAgentTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentType_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +       * Optional. A high-level description of the agent's role and
            +       * responsibilities. Critical for evaluating if the agent is routing tasks
            +       * correctly.
            +       * 
            + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. A high-level description of the agent's role and
            +       * responsibilities. Critical for evaluating if the agent is routing tasks
            +       * correctly.
            +       * 
            + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. A high-level description of the agent's role and
            +       * responsibilities. Critical for evaluating if the agent is routing tasks
            +       * correctly.
            +       * 
            + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. A high-level description of the agent's role and
            +       * responsibilities. Critical for evaluating if the agent is routing tasks
            +       * correctly.
            +       * 
            + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. A high-level description of the agent's role and
            +       * responsibilities. Critical for evaluating if the agent is routing tasks
            +       * correctly.
            +       * 
            + * + * string description = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList subAgents_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureSubAgentsIsMutable() { + if (!subAgents_.isModifiable()) { + subAgents_ = new com.google.protobuf.LazyStringArrayList(subAgents_); + } + bitField0_ |= 0x00000020; + } + + /** + * + * + *
            +       * Optional. The list of valid agent IDs (names) that this agent can
            +       * delegate to. This defines the directed edges in the agent system graph
            +       * topology.
            +       * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the subAgents. + */ + public com.google.protobuf.ProtocolStringList getSubAgentsList() { + subAgents_.makeImmutable(); + return subAgents_; + } + + /** + * + * + *
            +       * Optional. The list of valid agent IDs (names) that this agent can
            +       * delegate to. This defines the directed edges in the agent system graph
            +       * topology.
            +       * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of subAgents. + */ + public int getSubAgentsCount() { + return subAgents_.size(); + } + + /** + * + * + *
            +       * Optional. The list of valid agent IDs (names) that this agent can
            +       * delegate to. This defines the directed edges in the agent system graph
            +       * topology.
            +       * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The subAgents at the given index. + */ + public java.lang.String getSubAgents(int index) { + return subAgents_.get(index); + } + + /** + * + * + *
            +       * Optional. The list of valid agent IDs (names) that this agent can
            +       * delegate to. This defines the directed edges in the agent system graph
            +       * topology.
            +       * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the subAgents at the given index. + */ + public com.google.protobuf.ByteString getSubAgentsBytes(int index) { + return subAgents_.getByteString(index); + } + + /** + * + * + *
            +       * Optional. The list of valid agent IDs (names) that this agent can
            +       * delegate to. This defines the directed edges in the agent system graph
            +       * topology.
            +       * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The subAgents to set. + * @return This builder for chaining. + */ + public Builder setSubAgents(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubAgentsIsMutable(); + subAgents_.set(index, value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of valid agent IDs (names) that this agent can
            +       * delegate to. This defines the directed edges in the agent system graph
            +       * topology.
            +       * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The subAgents to add. + * @return This builder for chaining. + */ + public Builder addSubAgents(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureSubAgentsIsMutable(); + subAgents_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of valid agent IDs (names) that this agent can
            +       * delegate to. This defines the directed edges in the agent system graph
            +       * topology.
            +       * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The subAgents to add. + * @return This builder for chaining. + */ + public Builder addAllSubAgents(java.lang.Iterable values) { + ensureSubAgentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, subAgents_); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of valid agent IDs (names) that this agent can
            +       * delegate to. This defines the directed edges in the agent system graph
            +       * topology.
            +       * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearSubAgents() { + subAgents_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000020); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The list of valid agent IDs (names) that this agent can
            +       * delegate to. This defines the directed edges in the agent system graph
            +       * topology.
            +       * 
            + * + * repeated string sub_agents = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the subAgents to add. + * @return This builder for chaining. + */ + public Builder addSubAgentsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureSubAgentsIsMutable(); + subAgents_.add(value); + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + developerInstruction_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + developerInstructionBuilder_; + + /** + * + * + *
            +       * Optional. Contains instructions from the developer for the agent. Can be
            +       * static or a dynamic prompt template used with the
            +       * `AgentEvent.state_delta` field.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the developerInstruction field is set. + */ + public boolean hasDeveloperInstruction() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +       * Optional. Contains instructions from the developer for the agent. Can be
            +       * static or a dynamic prompt template used with the
            +       * `AgentEvent.state_delta` field.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The developerInstruction. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + getDeveloperInstruction() { + if (developerInstructionBuilder_ == null) { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : developerInstruction_; + } else { + return developerInstructionBuilder_.getMessage(); + } + } + + /** + * + * + *
            +       * Optional. Contains instructions from the developer for the agent. Can be
            +       * static or a dynamic prompt template used with the
            +       * `AgentEvent.state_delta` field.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (developerInstructionBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + developerInstruction_ = value; + } else { + developerInstructionBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Contains instructions from the developer for the agent. Can be
            +       * static or a dynamic prompt template used with the
            +       * `AgentEvent.state_delta` field.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (developerInstructionBuilder_ == null) { + developerInstruction_ = builderForValue.build(); + } else { + developerInstructionBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Contains instructions from the developer for the agent. Can be
            +       * static or a dynamic prompt template used with the
            +       * `AgentEvent.state_delta` field.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDeveloperInstruction( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (developerInstructionBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && developerInstruction_ != null + && developerInstruction_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getDeveloperInstructionBuilder().mergeFrom(value); + } else { + developerInstruction_ = value; + } + } else { + developerInstructionBuilder_.mergeFrom(value); + } + if (developerInstruction_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +       * Optional. Contains instructions from the developer for the agent. Can be
            +       * static or a dynamic prompt template used with the
            +       * `AgentEvent.state_delta` field.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDeveloperInstruction() { + bitField0_ = (bitField0_ & ~0x00000040); + developerInstruction_ = null; + if (developerInstructionBuilder_ != null) { + developerInstructionBuilder_.dispose(); + developerInstructionBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Contains instructions from the developer for the agent. Can be
            +       * static or a dynamic prompt template used with the
            +       * `AgentEvent.state_delta` field.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getDeveloperInstructionBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetDeveloperInstructionFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Optional. Contains instructions from the developer for the agent. Can be
            +       * static or a dynamic prompt template used with the
            +       * `AgentEvent.state_delta` field.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getDeveloperInstructionOrBuilder() { + if (developerInstructionBuilder_ != null) { + return developerInstructionBuilder_.getMessageOrBuilder(); + } else { + return developerInstruction_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : developerInstruction_; + } + } + + /** + * + * + *
            +       * Optional. Contains instructions from the developer for the agent. Can be
            +       * static or a dynamic prompt template used with the
            +       * `AgentEvent.state_delta` field.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData developer_instruction = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetDeveloperInstructionFieldBuilder() { + if (developerInstructionBuilder_ == null) { + developerInstructionBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getDeveloperInstruction(), getParentForChildren(), isClean()); + developerInstruction_ = null; + } + return developerInstructionBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeprecatedAgentConfig 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.EvaluationInstance.DeprecatedAgentConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int PROMPT_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt_; + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the prompt field is set. + */ + @java.lang.Override + public boolean hasPrompt() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The prompt. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getPrompt() { + return prompt_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : prompt_; + } + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getPromptOrBuilder() { + return prompt_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : prompt_; + } + + public static final int RUBRIC_GROUPS_FIELD_NUMBER = 2; + + private static final class RubricGroupsDefaultEntryHolder { + static final com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + defaultEntry = + com.google.protobuf.MapEntry + . + newDefaultInstance( + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_RubricGroupsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.cloud.aiplatform.v1beta1.RubricGroup.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + rubricGroups_; + + private com.google.protobuf.MapField< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + internalGetRubricGroups() { + if (rubricGroups_ == null) { + return com.google.protobuf.MapField.emptyMapField( + RubricGroupsDefaultEntryHolder.defaultEntry); + } + return rubricGroups_; + } + + public int getRubricGroupsCount() { + return internalGetRubricGroups().getMap().size(); + } + + /** + * + * + *
            +   * Optional. Named groups of rubrics associated with the prompt.
            +   * This is used for rubric-based evaluations where rubrics can be referenced
            +   * by a key. The key could represent versions, associated metrics, etc.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRubricGroups(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRubricGroups().getMap().containsKey(key); + } + + /** Use {@link #getRubricGroupsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getRubricGroups() { + return getRubricGroupsMap(); + } + + /** + * + * + *
            +   * Optional. Named groups of rubrics associated with the prompt.
            +   * This is used for rubric-based evaluations where rubrics can be referenced
            +   * by a key. The key could represent versions, associated metrics, etc.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getRubricGroupsMap() { + return internalGetRubricGroups().getMap(); + } + + /** + * + * + *
            +   * Optional. Named groups of rubrics associated with the prompt.
            +   * This is used for rubric-based evaluations where rubrics can be referenced
            +   * by a key. The key could represent versions, associated metrics, etc.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.RubricGroup defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetRubricGroups().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
            +   * Optional. Named groups of rubrics associated with the prompt.
            +   * This is used for rubric-based evaluations where rubrics can be referenced
            +   * by a key. The key could represent versions, associated metrics, etc.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetRubricGroups().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int RESPONSE_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response_; + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `response` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + @java.lang.Override + public boolean hasResponse() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `response` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getResponse() { + return response_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : response_; + } + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `response` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getResponseOrBuilder() { + return response_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : response_; + } + + public static final int REFERENCE_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference_; + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `reference` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reference field is set. + */ + @java.lang.Override + public boolean hasReference() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `reference` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reference. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getReference() { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : reference_; + } + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `reference` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getReferenceOrBuilder() { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.getDefaultInstance() + : reference_; + } + + public static final int OTHER_DATA_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance otherData_; + + /** + * + * + *
            +   * Optional. Other data used to populate placeholders based on their key.
            +   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +   * the value of the field will take precedence over the value in other_data.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherData field is set. + */ + @java.lang.Override + public boolean hasOtherData() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +   * Optional. Other data used to populate placeholders based on their key.
            +   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +   * the value of the field will take precedence over the value in other_data.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherData. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance getOtherData() { + return otherData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.getDefaultInstance() + : otherData_; + } + + /** + * + * + *
            +   * Optional. Other data used to populate placeholders based on their key.
            +   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +   * the value of the field will take precedence over the value in other_data.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder + getOtherDataOrBuilder() { + return otherData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.getDefaultInstance() + : otherData_; + } + + public static final int AGENT_DATA_FIELD_NUMBER = 6; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agentData_; + + /** + * + * + *
            +   * Optional. Deprecated: Use `agent_eval_data` instead.
            +   * Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return Whether the agentData field is set. + */ + @java.lang.Override + @java.lang.Deprecated + public boolean hasAgentData() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Optional. Deprecated: Use `agent_eval_data` instead.
            +   * Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return The agentData. + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData getAgentData() { + return agentData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance() + : agentData_; + } + + /** + * + * + *
            +   * Optional. Deprecated: Use `agent_eval_data` instead.
            +   * Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder + getAgentDataOrBuilder() { + return agentData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance() + : agentData_; + } + + public static final int AGENT_EVAL_DATA_FIELD_NUMBER = 7; + private com.google.cloud.aiplatform.v1beta1.AgentData agentEvalData_; + + /** + * + * + *
            +   * Optional. Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentEvalData field is set. + */ + @java.lang.Override + public boolean hasAgentEvalData() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +   * Optional. Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentEvalData. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentData getAgentEvalData() { + return agentEvalData_ == null + ? com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance() + : agentEvalData_; + } + + /** + * + * + *
            +   * Optional. Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder getAgentEvalDataOrBuilder() { + return agentEvalData_ == null + ? com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance() + : agentEvalData_; + } + + 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, getPrompt()); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetRubricGroups(), RubricGroupsDefaultEntryHolder.defaultEntry, 2); + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getResponse()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(4, getReference()); + } + if (((bitField0_ & 0x00000008) != 0)) { + output.writeMessage(5, getOtherData()); + } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(6, getAgentData()); + } + if (((bitField0_ & 0x00000020) != 0)) { + output.writeMessage(7, getAgentEvalData()); + } + 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, getPrompt()); + } + for (java.util.Map.Entry + entry : internalGetRubricGroups().getMap().entrySet()) { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + rubricGroups__ = + RubricGroupsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rubricGroups__); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getResponse()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getReference()); + } + if (((bitField0_ & 0x00000008) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getOtherData()); + } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getAgentData()); + } + if (((bitField0_ & 0x00000020) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAgentEvalData()); + } + 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.EvaluationInstance)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationInstance other = + (com.google.cloud.aiplatform.v1beta1.EvaluationInstance) obj; + + if (hasPrompt() != other.hasPrompt()) return false; + if (hasPrompt()) { + if (!getPrompt().equals(other.getPrompt())) return false; + } + if (!internalGetRubricGroups().equals(other.internalGetRubricGroups())) return false; + if (hasResponse() != other.hasResponse()) return false; + if (hasResponse()) { + if (!getResponse().equals(other.getResponse())) return false; + } + if (hasReference() != other.hasReference()) return false; + if (hasReference()) { + if (!getReference().equals(other.getReference())) return false; + } + if (hasOtherData() != other.hasOtherData()) return false; + if (hasOtherData()) { + if (!getOtherData().equals(other.getOtherData())) return false; + } + if (hasAgentData() != other.hasAgentData()) return false; + if (hasAgentData()) { + if (!getAgentData().equals(other.getAgentData())) return false; + } + if (hasAgentEvalData() != other.hasAgentEvalData()) return false; + if (hasAgentEvalData()) { + if (!getAgentEvalData().equals(other.getAgentEvalData())) 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 (hasPrompt()) { + hash = (37 * hash) + PROMPT_FIELD_NUMBER; + hash = (53 * hash) + getPrompt().hashCode(); + } + if (!internalGetRubricGroups().getMap().isEmpty()) { + hash = (37 * hash) + RUBRIC_GROUPS_FIELD_NUMBER; + hash = (53 * hash) + internalGetRubricGroups().hashCode(); + } + if (hasResponse()) { + hash = (37 * hash) + RESPONSE_FIELD_NUMBER; + hash = (53 * hash) + getResponse().hashCode(); + } + if (hasReference()) { + hash = (37 * hash) + REFERENCE_FIELD_NUMBER; + hash = (53 * hash) + getReference().hashCode(); + } + if (hasOtherData()) { + hash = (37 * hash) + OTHER_DATA_FIELD_NUMBER; + hash = (53 * hash) + getOtherData().hashCode(); + } + if (hasAgentData()) { + hash = (37 * hash) + AGENT_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAgentData().hashCode(); + } + if (hasAgentEvalData()) { + hash = (37 * hash) + AGENT_EVAL_DATA_FIELD_NUMBER; + hash = (53 * hash) + getAgentEvalData().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance 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.EvaluationInstance parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance 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.EvaluationInstance parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance 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.EvaluationInstance parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * A single instance to be evaluated.
            +   * Instances are used to specify the input data for evaluation, from
            +   * simple string comparisons to complex, multi-turn model evaluations
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationInstance} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationInstance) + com.google.cloud.aiplatform.v1beta1.EvaluationInstanceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetRubricGroups(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 2: + return internalGetMutableRubricGroups(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.class, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.EvaluationInstance.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetPromptFieldBuilder(); + internalGetResponseFieldBuilder(); + internalGetReferenceFieldBuilder(); + internalGetOtherDataFieldBuilder(); + internalGetAgentDataFieldBuilder(); + internalGetAgentEvalDataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + prompt_ = null; + if (promptBuilder_ != null) { + promptBuilder_.dispose(); + promptBuilder_ = null; + } + internalGetMutableRubricGroups().clear(); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + reference_ = null; + if (referenceBuilder_ != null) { + referenceBuilder_.dispose(); + referenceBuilder_ = null; + } + otherData_ = null; + if (otherDataBuilder_ != null) { + otherDataBuilder_.dispose(); + otherDataBuilder_ = null; + } + agentData_ = null; + if (agentDataBuilder_ != null) { + agentDataBuilder_.dispose(); + agentDataBuilder_ = null; + } + agentEvalData_ = null; + if (agentEvalDataBuilder_ != null) { + agentEvalDataBuilder_.dispose(); + agentEvalDataBuilder_ = 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_EvaluationInstance_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance build() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationInstance result = + new com.google.cloud.aiplatform.v1beta1.EvaluationInstance(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EvaluationInstance result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.prompt_ = promptBuilder_ == null ? prompt_ : promptBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.rubricGroups_ = + internalGetRubricGroups().build(RubricGroupsDefaultEntryHolder.defaultEntry); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.response_ = responseBuilder_ == null ? response_ : responseBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.reference_ = referenceBuilder_ == null ? reference_ : referenceBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.otherData_ = otherDataBuilder_ == null ? otherData_ : otherDataBuilder_.build(); + to_bitField0_ |= 0x00000008; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.agentData_ = agentDataBuilder_ == null ? agentData_ : agentDataBuilder_.build(); + to_bitField0_ |= 0x00000010; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.agentEvalData_ = + agentEvalDataBuilder_ == null ? agentEvalData_ : agentEvalDataBuilder_.build(); + to_bitField0_ |= 0x00000020; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EvaluationInstance) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.EvaluationInstance) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluationInstance other) { + if (other == com.google.cloud.aiplatform.v1beta1.EvaluationInstance.getDefaultInstance()) + return this; + if (other.hasPrompt()) { + mergePrompt(other.getPrompt()); + } + internalGetMutableRubricGroups().mergeFrom(other.internalGetRubricGroups()); + bitField0_ |= 0x00000002; + if (other.hasResponse()) { + mergeResponse(other.getResponse()); + } + if (other.hasReference()) { + mergeReference(other.getReference()); + } + if (other.hasOtherData()) { + mergeOtherData(other.getOtherData()); + } + if (other.hasAgentData()) { + mergeAgentData(other.getAgentData()); + } + if (other.hasAgentEvalData()) { + mergeAgentEvalData(other.getAgentEvalData()); + } + 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(internalGetPromptFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + rubricGroups__ = + input.readMessage( + RubricGroupsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableRubricGroups() + .ensureBuilderMap() + .put(rubricGroups__.getKey(), rubricGroups__.getValue()); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetResponseFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetReferenceFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetOtherDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetAgentDataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetAgentEvalDataFieldBuilder().getBuilder(), extensionRegistry); + 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 com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + promptBuilder_; + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the prompt field is set. + */ + public boolean hasPrompt() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The prompt. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getPrompt() { + if (promptBuilder_ == null) { + return prompt_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : prompt_; + } else { + return promptBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrompt( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (promptBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + prompt_ = value; + } else { + promptBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPrompt( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (promptBuilder_ == null) { + prompt_ = builderForValue.build(); + } else { + promptBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePrompt( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (promptBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && prompt_ != null + && prompt_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getPromptBuilder().mergeFrom(value); + } else { + prompt_ = value; + } + } else { + promptBuilder_.mergeFrom(value); + } + if (prompt_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPrompt() { + bitField0_ = (bitField0_ & ~0x00000001); + prompt_ = null; + if (promptBuilder_ != null) { + promptBuilder_.dispose(); + promptBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getPromptBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetPromptFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getPromptOrBuilder() { + if (promptBuilder_ != null) { + return promptBuilder_.getMessageOrBuilder(); + } else { + return prompt_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : prompt_; + } + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetPromptFieldBuilder() { + if (promptBuilder_ == null) { + promptBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getPrompt(), getParentForChildren(), isClean()); + prompt_ = null; + } + return promptBuilder_; + } + + private static final class RubricGroupsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder, + com.google.cloud.aiplatform.v1beta1.RubricGroup> { + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup build( + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder val) { + if (val instanceof com.google.cloud.aiplatform.v1beta1.RubricGroup) { + return (com.google.cloud.aiplatform.v1beta1.RubricGroup) val; + } + return ((com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry< + java.lang.String, com.google.cloud.aiplatform.v1beta1.RubricGroup> + defaultEntry() { + return RubricGroupsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final RubricGroupsConverter rubricGroupsConverter = new RubricGroupsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder, + com.google.cloud.aiplatform.v1beta1.RubricGroup, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder> + rubricGroups_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder, + com.google.cloud.aiplatform.v1beta1.RubricGroup, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder> + internalGetRubricGroups() { + if (rubricGroups_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(rubricGroupsConverter); + } + return rubricGroups_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder, + com.google.cloud.aiplatform.v1beta1.RubricGroup, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder> + internalGetMutableRubricGroups() { + if (rubricGroups_ == null) { + rubricGroups_ = new com.google.protobuf.MapFieldBuilder<>(rubricGroupsConverter); + } + bitField0_ |= 0x00000002; + onChanged(); + return rubricGroups_; + } + + public int getRubricGroupsCount() { + return internalGetRubricGroups().ensureBuilderMap().size(); + } + + /** + * + * + *
            +     * Optional. Named groups of rubrics associated with the prompt.
            +     * This is used for rubric-based evaluations where rubrics can be referenced
            +     * by a key. The key could represent versions, associated metrics, etc.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsRubricGroups(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetRubricGroups().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getRubricGroupsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map + getRubricGroups() { + return getRubricGroupsMap(); + } + + /** + * + * + *
            +     * Optional. Named groups of rubrics associated with the prompt.
            +     * This is used for rubric-based evaluations where rubrics can be referenced
            +     * by a key. The key could represent versions, associated metrics, etc.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map + getRubricGroupsMap() { + return internalGetRubricGroups().getImmutableMap(); + } + + /** + * + * + *
            +     * Optional. Named groups of rubrics associated with the prompt.
            +     * This is used for rubric-based evaluations where rubrics can be referenced
            +     * by a key. The key could represent versions, associated metrics, etc.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.RubricGroup defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableRubricGroups().ensureBuilderMap(); + return map.containsKey(key) ? rubricGroupsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
            +     * Optional. Named groups of rubrics associated with the prompt.
            +     * This is used for rubric-based evaluations where rubrics can be referenced
            +     * by a key. The key could represent versions, associated metrics, etc.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrThrow( + java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map + map = internalGetMutableRubricGroups().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return rubricGroupsConverter.build(map.get(key)); + } + + public Builder clearRubricGroups() { + bitField0_ = (bitField0_ & ~0x00000002); + internalGetMutableRubricGroups().clear(); + return this; + } + + /** + * + * + *
            +     * Optional. Named groups of rubrics associated with the prompt.
            +     * This is used for rubric-based evaluations where rubrics can be referenced
            +     * by a key. The key could represent versions, associated metrics, etc.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeRubricGroups(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableRubricGroups().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map + getMutableRubricGroups() { + bitField0_ |= 0x00000002; + return internalGetMutableRubricGroups().ensureMessageMap(); + } + + /** + * + * + *
            +     * Optional. Named groups of rubrics associated with the prompt.
            +     * This is used for rubric-based evaluations where rubrics can be referenced
            +     * by a key. The key could represent versions, associated metrics, etc.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putRubricGroups( + java.lang.String key, com.google.cloud.aiplatform.v1beta1.RubricGroup value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableRubricGroups().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
            +     * Optional. Named groups of rubrics associated with the prompt.
            +     * This is used for rubric-based evaluations where rubrics can be referenced
            +     * by a key. The key could represent versions, associated metrics, etc.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllRubricGroups( + java.util.Map values) { + for (java.util.Map.Entry + e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableRubricGroups().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000002; + return this; + } + + /** + * + * + *
            +     * Optional. Named groups of rubrics associated with the prompt.
            +     * This is used for rubric-based evaluations where rubrics can be referenced
            +     * by a key. The key could represent versions, associated metrics, etc.
            +     * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder putRubricGroupsBuilderIfAbsent( + java.lang.String key) { + java.util.Map + builderMap = internalGetMutableRubricGroups().ensureBuilderMap(); + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.cloud.aiplatform.v1beta1.RubricGroup.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.cloud.aiplatform.v1beta1.RubricGroup) { + entry = ((com.google.cloud.aiplatform.v1beta1.RubricGroup) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder) entry; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + responseBuilder_; + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `response` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + public boolean hasResponse() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `response` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getResponse() { + if (responseBuilder_ == null) { + return response_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : response_; + } else { + return responseBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `response` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (responseBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + response_ = value; + } else { + responseBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `response` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResponse( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (responseBuilder_ == null) { + response_ = builderForValue.build(); + } else { + responseBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `response` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResponse( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (responseBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && response_ != null + && response_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getResponseBuilder().mergeFrom(value); + } else { + response_ = value; + } + } else { + responseBuilder_.mergeFrom(value); + } + if (response_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `response` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResponse() { + bitField0_ = (bitField0_ & ~0x00000004); + response_ = null; + if (responseBuilder_ != null) { + responseBuilder_.dispose(); + responseBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `response` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getResponseBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetResponseFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `response` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getResponseOrBuilder() { + if (responseBuilder_ != null) { + return responseBuilder_.getMessageOrBuilder(); + } else { + return response_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : response_; + } + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `response` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetResponseFieldBuilder() { + if (responseBuilder_ == null) { + responseBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getResponse(), getParentForChildren(), isClean()); + response_ = null; + } + return responseBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + referenceBuilder_; + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `reference` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reference field is set. + */ + public boolean hasReference() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `reference` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reference. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getReference() { + if (referenceBuilder_ == null) { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : reference_; + } else { + return referenceBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `reference` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReference( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (referenceBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + reference_ = value; + } else { + referenceBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `reference` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setReference( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + builderForValue) { + if (referenceBuilder_ == null) { + reference_ = builderForValue.build(); + } else { + referenceBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `reference` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeReference( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData value) { + if (referenceBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && reference_ != null + && reference_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance()) { + getReferenceBuilder().mergeFrom(value); + } else { + reference_ = value; + } + } else { + referenceBuilder_.mergeFrom(value); + } + if (reference_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `reference` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearReference() { + bitField0_ = (bitField0_ & ~0x00000008); + reference_ = null; + if (referenceBuilder_ != null) { + referenceBuilder_.dispose(); + referenceBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `reference` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder + getReferenceBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetReferenceFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `reference` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getReferenceOrBuilder() { + if (referenceBuilder_ != null) { + return referenceBuilder_.getMessageOrBuilder(); + } else { + return reference_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData + .getDefaultInstance() + : reference_; + } + } + + /** + * + * + *
            +     * Optional. Data used to populate placeholder `reference` in a metric prompt
            +     * template.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder> + internalGetReferenceFieldBuilder() { + if (referenceBuilder_ == null) { + referenceBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder>( + getReference(), getParentForChildren(), isClean()); + reference_ = null; + } + return referenceBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance otherData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder> + otherDataBuilder_; + + /** + * + * + *
            +     * Optional. Other data used to populate placeholders based on their key.
            +     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +     * the value of the field will take precedence over the value in other_data.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherData field is set. + */ + public boolean hasOtherData() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. Other data used to populate placeholders based on their key.
            +     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +     * the value of the field will take precedence over the value in other_data.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherData. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance getOtherData() { + if (otherDataBuilder_ == null) { + return otherData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance() + : otherData_; + } else { + return otherDataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Other data used to populate placeholders based on their key.
            +     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +     * the value of the field will take precedence over the value in other_data.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOtherData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance value) { + if (otherDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + otherData_ = value; + } else { + otherDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Other data used to populate placeholders based on their key.
            +     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +     * the value of the field will take precedence over the value in other_data.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOtherData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder + builderForValue) { + if (otherDataBuilder_ == null) { + otherData_ = builderForValue.build(); + } else { + otherDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Other data used to populate placeholders based on their key.
            +     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +     * the value of the field will take precedence over the value in other_data.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOtherData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance value) { + if (otherDataBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && otherData_ != null + && otherData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance()) { + getOtherDataBuilder().mergeFrom(value); + } else { + otherData_ = value; + } + } else { + otherDataBuilder_.mergeFrom(value); + } + if (otherData_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Other data used to populate placeholders based on their key.
            +     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +     * the value of the field will take precedence over the value in other_data.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOtherData() { + bitField0_ = (bitField0_ & ~0x00000010); + otherData_ = null; + if (otherDataBuilder_ != null) { + otherDataBuilder_.dispose(); + otherDataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Other data used to populate placeholders based on their key.
            +     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +     * the value of the field will take precedence over the value in other_data.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder + getOtherDataBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetOtherDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Other data used to populate placeholders based on their key.
            +     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +     * the value of the field will take precedence over the value in other_data.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder + getOtherDataOrBuilder() { + if (otherDataBuilder_ != null) { + return otherDataBuilder_.getMessageOrBuilder(); + } else { + return otherData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance + .getDefaultInstance() + : otherData_; + } + } + + /** + * + * + *
            +     * Optional. Other data used to populate placeholders based on their key.
            +     * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +     * the value of the field will take precedence over the value in other_data.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder> + internalGetOtherDataFieldBuilder() { + if (otherDataBuilder_ == null) { + otherDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder>( + getOtherData(), getParentForChildren(), isClean()); + otherData_ = null; + } + return otherDataBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agentData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder> + agentDataBuilder_; + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return Whether the agentData field is set. + */ + @java.lang.Deprecated + public boolean hasAgentData() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return The agentData. + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + getAgentData() { + if (agentDataBuilder_ == null) { + return agentData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance() + : agentData_; + } else { + return agentDataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setAgentData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData value) { + if (agentDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentData_ = value; + } else { + agentDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder setAgentData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder + builderForValue) { + if (agentDataBuilder_ == null) { + agentData_ = builderForValue.build(); + } else { + agentDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder mergeAgentData( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData value) { + if (agentDataBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && agentData_ != null + && agentData_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance()) { + getAgentDataBuilder().mergeFrom(value); + } else { + agentData_ = value; + } + } else { + agentDataBuilder_.mergeFrom(value); + } + if (agentData_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public Builder clearAgentData() { + bitField0_ = (bitField0_ & ~0x00000020); + agentData_ = null; + if (agentDataBuilder_ != null) { + agentDataBuilder_.dispose(); + agentDataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder + getAgentDataBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetAgentDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder + getAgentDataOrBuilder() { + if (agentDataBuilder_ != null) { + return agentDataBuilder_.getMessageOrBuilder(); + } else { + return agentData_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData + .getDefaultInstance() + : agentData_; + } + } + + /** + * + * + *
            +     * Optional. Deprecated: Use `agent_eval_data` instead.
            +     * Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder> + internalGetAgentDataFieldBuilder() { + if (agentDataBuilder_ == null) { + agentDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentDataOrBuilder>( + getAgentData(), getParentForChildren(), isClean()); + agentData_ = null; + } + return agentDataBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.AgentData agentEvalData_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentData, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder, + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder> + agentEvalDataBuilder_; + + /** + * + * + *
            +     * Optional. Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentEvalData field is set. + */ + public boolean hasAgentEvalData() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
            +     * Optional. Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentEvalData. + */ + public com.google.cloud.aiplatform.v1beta1.AgentData getAgentEvalData() { + if (agentEvalDataBuilder_ == null) { + return agentEvalData_ == null + ? com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance() + : agentEvalData_; + } else { + return agentEvalDataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentEvalData(com.google.cloud.aiplatform.v1beta1.AgentData value) { + if (agentEvalDataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentEvalData_ = value; + } else { + agentEvalDataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentEvalData( + com.google.cloud.aiplatform.v1beta1.AgentData.Builder builderForValue) { + if (agentEvalDataBuilder_ == null) { + agentEvalData_ = builderForValue.build(); + } else { + agentEvalDataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentEvalData(com.google.cloud.aiplatform.v1beta1.AgentData value) { + if (agentEvalDataBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && agentEvalData_ != null + && agentEvalData_ + != com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance()) { + getAgentEvalDataBuilder().mergeFrom(value); + } else { + agentEvalData_ = value; + } + } else { + agentEvalDataBuilder_.mergeFrom(value); + } + if (agentEvalData_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentEvalData() { + bitField0_ = (bitField0_ & ~0x00000040); + agentEvalData_ = null; + if (agentEvalDataBuilder_ != null) { + agentEvalDataBuilder_.dispose(); + agentEvalDataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentData.Builder getAgentEvalDataBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetAgentEvalDataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder getAgentEvalDataOrBuilder() { + if (agentEvalDataBuilder_ != null) { + return agentEvalDataBuilder_.getMessageOrBuilder(); + } else { + return agentEvalData_ == null + ? com.google.cloud.aiplatform.v1beta1.AgentData.getDefaultInstance() + : agentEvalData_; + } + } + + /** + * + * + *
            +     * Optional. Data used for agent evaluation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentData, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder, + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder> + internalGetAgentEvalDataFieldBuilder() { + if (agentEvalDataBuilder_ == null) { + agentEvalDataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AgentData, + com.google.cloud.aiplatform.v1beta1.AgentData.Builder, + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder>( + getAgentEvalData(), getParentForChildren(), isClean()); + agentEvalData_ = null; + } + return agentEvalDataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationInstance) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationInstance DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EvaluationInstance(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationInstance getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationInstance 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.EvaluationInstance getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstanceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstanceOrBuilder.java new file mode 100644 index 000000000000..ae1febcf5fc5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationInstanceOrBuilder.java @@ -0,0 +1,400 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface EvaluationInstanceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationInstance) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the prompt field is set. + */ + boolean hasPrompt(); + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The prompt. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getPrompt(); + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `prompt` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData prompt = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder getPromptOrBuilder(); + + /** + * + * + *
            +   * Optional. Named groups of rubrics associated with the prompt.
            +   * This is used for rubric-based evaluations where rubrics can be referenced
            +   * by a key. The key could represent versions, associated metrics, etc.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getRubricGroupsCount(); + + /** + * + * + *
            +   * Optional. Named groups of rubrics associated with the prompt.
            +   * This is used for rubric-based evaluations where rubrics can be referenced
            +   * by a key. The key could represent versions, associated metrics, etc.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsRubricGroups(java.lang.String key); + + /** Use {@link #getRubricGroupsMap()} instead. */ + @java.lang.Deprecated + java.util.Map + getRubricGroups(); + + /** + * + * + *
            +   * Optional. Named groups of rubrics associated with the prompt.
            +   * This is used for rubric-based evaluations where rubrics can be referenced
            +   * by a key. The key could represent versions, associated metrics, etc.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map + getRubricGroupsMap(); + + /** + * + * + *
            +   * Optional. Named groups of rubrics associated with the prompt.
            +   * This is used for rubric-based evaluations where rubrics can be referenced
            +   * by a key. The key could represent versions, associated metrics, etc.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrDefault( + java.lang.String key, + /* nullable */ + com.google.cloud.aiplatform.v1beta1.RubricGroup defaultValue); + + /** + * + * + *
            +   * Optional. Named groups of rubrics associated with the prompt.
            +   * This is used for rubric-based evaluations where rubrics can be referenced
            +   * by a key. The key could represent versions, associated metrics, etc.
            +   * 
            + * + * + * map<string, .google.cloud.aiplatform.v1beta1.RubricGroup> rubric_groups = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricGroup getRubricGroupsOrThrow(java.lang.String key); + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `response` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the response field is set. + */ + boolean hasResponse(); + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `response` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The response. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getResponse(); + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `response` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData response = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getResponseOrBuilder(); + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `reference` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the reference field is set. + */ + boolean hasReference(); + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `reference` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The reference. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData getReference(); + + /** + * + * + *
            +   * Optional. Data used to populate placeholder `reference` in a metric prompt
            +   * template.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData reference = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataOrBuilder + getReferenceOrBuilder(); + + /** + * + * + *
            +   * Optional. Other data used to populate placeholders based on their key.
            +   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +   * the value of the field will take precedence over the value in other_data.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherData field is set. + */ + boolean hasOtherData(); + + /** + * + * + *
            +   * Optional. Other data used to populate placeholders based on their key.
            +   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +   * the value of the field will take precedence over the value in other_data.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherData. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance getOtherData(); + + /** + * + * + *
            +   * Optional. Other data used to populate placeholders based on their key.
            +   * If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`),
            +   * the value of the field will take precedence over the value in other_data.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstance other_data = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.MapInstanceOrBuilder + getOtherDataOrBuilder(); + + /** + * + * + *
            +   * Optional. Deprecated: Use `agent_eval_data` instead.
            +   * Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return Whether the agentData field is set. + */ + @java.lang.Deprecated + boolean hasAgentData(); + + /** + * + * + *
            +   * Optional. Deprecated: Use `agent_eval_data` instead.
            +   * Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + * + * @deprecated google.cloud.aiplatform.v1beta1.EvaluationInstance.agent_data is deprecated. See + * google/cloud/aiplatform/v1beta1/evaluation_service.proto;l=565 + * @return The agentData. + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData getAgentData(); + + /** + * + * + *
            +   * Optional. Deprecated: Use `agent_eval_data` instead.
            +   * Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData agent_data = 6 [deprecated = true, (.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Deprecated + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentDataOrBuilder + getAgentDataOrBuilder(); + + /** + * + * + *
            +   * Optional. Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentEvalData field is set. + */ + boolean hasAgentEvalData(); + + /** + * + * + *
            +   * Optional. Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentEvalData. + */ + com.google.cloud.aiplatform.v1beta1.AgentData getAgentEvalData(); + + /** + * + * + *
            +   * Optional. Data used for agent evaluation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.AgentData agent_eval_data = 7 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.AgentDataOrBuilder getAgentEvalDataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfig.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfig.java new file mode 100644 index 000000000000..071f4b9b637c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfig.java @@ -0,0 +1,2009 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Config for parsing LLM responses.
            + * It can be used to parse the LLM response to be evaluated, or the LLM
            + * response from LLM-based metrics/Autoraters.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationParserConfig} + */ +@com.google.protobuf.Generated +public final class EvaluationParserConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + EvaluationParserConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationParserConfig"); + } + + // Use EvaluationParserConfig.newBuilder() to construct. + private EvaluationParserConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private EvaluationParserConfig() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.class, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder.class); + } + + public interface CustomCodeParserConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. Python function for parsing results. The function should be
            +     * defined within this string.
            +     *
            +     * The function takes a list of strings (LLM responses) and should return
            +     * either a list of dictionaries (for rubrics) or a single dictionary
            +     * (for a metric result).
            +     *
            +     * Example function signature:
            +     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +     *
            +     * When parsing rubrics, return a list of dictionaries, where each
            +     * dictionary represents a Rubric.
            +     * Example for rubrics:
            +     * [
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * factual."}},
            +     * "type": "FACTUALITY",
            +     * "importance": "HIGH"
            +     * },
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * fluent."}},
            +     * "type": "FLUENCY",
            +     * "importance": "MEDIUM"
            +     * }
            +     * ]
            +     *
            +     * When parsing critique results, return a dictionary representing a
            +     * MetricResult.
            +     * Example for a metric result:
            +     * {
            +     * "score": 0.8,
            +     * "explanation": "The model followed most instructions.",
            +     * "rubric_verdicts": [...]
            +     * }
            +     *
            +     * ... code for result extraction and aggregation
            +     * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the parsingFunction field is set. + */ + boolean hasParsingFunction(); + + /** + * + * + *
            +     * Required. Python function for parsing results. The function should be
            +     * defined within this string.
            +     *
            +     * The function takes a list of strings (LLM responses) and should return
            +     * either a list of dictionaries (for rubrics) or a single dictionary
            +     * (for a metric result).
            +     *
            +     * Example function signature:
            +     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +     *
            +     * When parsing rubrics, return a list of dictionaries, where each
            +     * dictionary represents a Rubric.
            +     * Example for rubrics:
            +     * [
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * factual."}},
            +     * "type": "FACTUALITY",
            +     * "importance": "HIGH"
            +     * },
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * fluent."}},
            +     * "type": "FLUENCY",
            +     * "importance": "MEDIUM"
            +     * }
            +     * ]
            +     *
            +     * When parsing critique results, return a dictionary representing a
            +     * MetricResult.
            +     * Example for a metric result:
            +     * {
            +     * "score": 0.8,
            +     * "explanation": "The model followed most instructions.",
            +     * "rubric_verdicts": [...]
            +     * }
            +     *
            +     * ... code for result extraction and aggregation
            +     * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parsingFunction. + */ + java.lang.String getParsingFunction(); + + /** + * + * + *
            +     * Required. Python function for parsing results. The function should be
            +     * defined within this string.
            +     *
            +     * The function takes a list of strings (LLM responses) and should return
            +     * either a list of dictionaries (for rubrics) or a single dictionary
            +     * (for a metric result).
            +     *
            +     * Example function signature:
            +     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +     *
            +     * When parsing rubrics, return a list of dictionaries, where each
            +     * dictionary represents a Rubric.
            +     * Example for rubrics:
            +     * [
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * factual."}},
            +     * "type": "FACTUALITY",
            +     * "importance": "HIGH"
            +     * },
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * fluent."}},
            +     * "type": "FLUENCY",
            +     * "importance": "MEDIUM"
            +     * }
            +     * ]
            +     *
            +     * When parsing critique results, return a dictionary representing a
            +     * MetricResult.
            +     * Example for a metric result:
            +     * {
            +     * "score": 0.8,
            +     * "explanation": "The model followed most instructions.",
            +     * "rubric_verdicts": [...]
            +     * }
            +     *
            +     * ... code for result extraction and aggregation
            +     * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parsingFunction. + */ + com.google.protobuf.ByteString getParsingFunctionBytes(); + } + + /** + * + * + *
            +   * Configuration for parsing the LLM response using custom code.
            +   * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig} + */ + public static final class CustomCodeParserConfig extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + CustomCodeParserConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CustomCodeParserConfig"); + } + + // Use CustomCodeParserConfig.newBuilder() to construct. + private CustomCodeParserConfig(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CustomCodeParserConfig() { + parsingFunction_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder.class); + } + + private int bitField0_; + public static final int PARSING_FUNCTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parsingFunction_ = ""; + + /** + * + * + *
            +     * Required. Python function for parsing results. The function should be
            +     * defined within this string.
            +     *
            +     * The function takes a list of strings (LLM responses) and should return
            +     * either a list of dictionaries (for rubrics) or a single dictionary
            +     * (for a metric result).
            +     *
            +     * Example function signature:
            +     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +     *
            +     * When parsing rubrics, return a list of dictionaries, where each
            +     * dictionary represents a Rubric.
            +     * Example for rubrics:
            +     * [
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * factual."}},
            +     * "type": "FACTUALITY",
            +     * "importance": "HIGH"
            +     * },
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * fluent."}},
            +     * "type": "FLUENCY",
            +     * "importance": "MEDIUM"
            +     * }
            +     * ]
            +     *
            +     * When parsing critique results, return a dictionary representing a
            +     * MetricResult.
            +     * Example for a metric result:
            +     * {
            +     * "score": 0.8,
            +     * "explanation": "The model followed most instructions.",
            +     * "rubric_verdicts": [...]
            +     * }
            +     *
            +     * ... code for result extraction and aggregation
            +     * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the parsingFunction field is set. + */ + @java.lang.Override + public boolean hasParsingFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. Python function for parsing results. The function should be
            +     * defined within this string.
            +     *
            +     * The function takes a list of strings (LLM responses) and should return
            +     * either a list of dictionaries (for rubrics) or a single dictionary
            +     * (for a metric result).
            +     *
            +     * Example function signature:
            +     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +     *
            +     * When parsing rubrics, return a list of dictionaries, where each
            +     * dictionary represents a Rubric.
            +     * Example for rubrics:
            +     * [
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * factual."}},
            +     * "type": "FACTUALITY",
            +     * "importance": "HIGH"
            +     * },
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * fluent."}},
            +     * "type": "FLUENCY",
            +     * "importance": "MEDIUM"
            +     * }
            +     * ]
            +     *
            +     * When parsing critique results, return a dictionary representing a
            +     * MetricResult.
            +     * Example for a metric result:
            +     * {
            +     * "score": 0.8,
            +     * "explanation": "The model followed most instructions.",
            +     * "rubric_verdicts": [...]
            +     * }
            +     *
            +     * ... code for result extraction and aggregation
            +     * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The parsingFunction. + */ + @java.lang.Override + public java.lang.String getParsingFunction() { + java.lang.Object ref = parsingFunction_; + 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(); + parsingFunction_ = s; + return s; + } + } + + /** + * + * + *
            +     * Required. Python function for parsing results. The function should be
            +     * defined within this string.
            +     *
            +     * The function takes a list of strings (LLM responses) and should return
            +     * either a list of dictionaries (for rubrics) or a single dictionary
            +     * (for a metric result).
            +     *
            +     * Example function signature:
            +     * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +     *
            +     * When parsing rubrics, return a list of dictionaries, where each
            +     * dictionary represents a Rubric.
            +     * Example for rubrics:
            +     * [
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * factual."}},
            +     * "type": "FACTUALITY",
            +     * "importance": "HIGH"
            +     * },
            +     * {
            +     * "content": {"property": {"description": "The response is
            +     * fluent."}},
            +     * "type": "FLUENCY",
            +     * "importance": "MEDIUM"
            +     * }
            +     * ]
            +     *
            +     * When parsing critique results, return a dictionary representing a
            +     * MetricResult.
            +     * Example for a metric result:
            +     * {
            +     * "score": 0.8,
            +     * "explanation": "The model followed most instructions.",
            +     * "rubric_verdicts": [...]
            +     * }
            +     *
            +     * ... code for result extraction and aggregation
            +     * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for parsingFunction. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParsingFunctionBytes() { + java.lang.Object ref = parsingFunction_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parsingFunction_ = 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.GeneratedMessage.writeString(output, 1, parsingFunction_); + } + 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.GeneratedMessage.computeStringSize(1, parsingFunction_); + } + 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.EvaluationParserConfig.CustomCodeParserConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig other = + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) obj; + + if (hasParsingFunction() != other.hasParsingFunction()) return false; + if (hasParsingFunction()) { + if (!getParsingFunction().equals(other.getParsingFunction())) 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 (hasParsingFunction()) { + hash = (37 * hash) + PARSING_FUNCTION_FIELD_NUMBER; + hash = (53 * hash) + getParsingFunction().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + 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.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + 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.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + 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.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configuration for parsing the LLM response using custom code.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .class, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parsingFunction_ = ""; + 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_EvaluationParserConfig_CustomCodeParserConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + build() { + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig result = + new com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig( + this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parsingFunction_ = parsingFunction_; + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig other) { + if (other + == com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance()) return this; + if (other.hasParsingFunction()) { + parsingFunction_ = other.parsingFunction_; + 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: + { + parsingFunction_ = 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 parsingFunction_ = ""; + + /** + * + * + *
            +       * Required. Python function for parsing results. The function should be
            +       * defined within this string.
            +       *
            +       * The function takes a list of strings (LLM responses) and should return
            +       * either a list of dictionaries (for rubrics) or a single dictionary
            +       * (for a metric result).
            +       *
            +       * Example function signature:
            +       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +       *
            +       * When parsing rubrics, return a list of dictionaries, where each
            +       * dictionary represents a Rubric.
            +       * Example for rubrics:
            +       * [
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * factual."}},
            +       * "type": "FACTUALITY",
            +       * "importance": "HIGH"
            +       * },
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * fluent."}},
            +       * "type": "FLUENCY",
            +       * "importance": "MEDIUM"
            +       * }
            +       * ]
            +       *
            +       * When parsing critique results, return a dictionary representing a
            +       * MetricResult.
            +       * Example for a metric result:
            +       * {
            +       * "score": 0.8,
            +       * "explanation": "The model followed most instructions.",
            +       * "rubric_verdicts": [...]
            +       * }
            +       *
            +       * ... code for result extraction and aggregation
            +       * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the parsingFunction field is set. + */ + public boolean hasParsingFunction() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Required. Python function for parsing results. The function should be
            +       * defined within this string.
            +       *
            +       * The function takes a list of strings (LLM responses) and should return
            +       * either a list of dictionaries (for rubrics) or a single dictionary
            +       * (for a metric result).
            +       *
            +       * Example function signature:
            +       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +       *
            +       * When parsing rubrics, return a list of dictionaries, where each
            +       * dictionary represents a Rubric.
            +       * Example for rubrics:
            +       * [
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * factual."}},
            +       * "type": "FACTUALITY",
            +       * "importance": "HIGH"
            +       * },
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * fluent."}},
            +       * "type": "FLUENCY",
            +       * "importance": "MEDIUM"
            +       * }
            +       * ]
            +       *
            +       * When parsing critique results, return a dictionary representing a
            +       * MetricResult.
            +       * Example for a metric result:
            +       * {
            +       * "score": 0.8,
            +       * "explanation": "The model followed most instructions.",
            +       * "rubric_verdicts": [...]
            +       * }
            +       *
            +       * ... code for result extraction and aggregation
            +       * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The parsingFunction. + */ + public java.lang.String getParsingFunction() { + java.lang.Object ref = parsingFunction_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parsingFunction_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Required. Python function for parsing results. The function should be
            +       * defined within this string.
            +       *
            +       * The function takes a list of strings (LLM responses) and should return
            +       * either a list of dictionaries (for rubrics) or a single dictionary
            +       * (for a metric result).
            +       *
            +       * Example function signature:
            +       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +       *
            +       * When parsing rubrics, return a list of dictionaries, where each
            +       * dictionary represents a Rubric.
            +       * Example for rubrics:
            +       * [
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * factual."}},
            +       * "type": "FACTUALITY",
            +       * "importance": "HIGH"
            +       * },
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * fluent."}},
            +       * "type": "FLUENCY",
            +       * "importance": "MEDIUM"
            +       * }
            +       * ]
            +       *
            +       * When parsing critique results, return a dictionary representing a
            +       * MetricResult.
            +       * Example for a metric result:
            +       * {
            +       * "score": 0.8,
            +       * "explanation": "The model followed most instructions.",
            +       * "rubric_verdicts": [...]
            +       * }
            +       *
            +       * ... code for result extraction and aggregation
            +       * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The bytes for parsingFunction. + */ + public com.google.protobuf.ByteString getParsingFunctionBytes() { + java.lang.Object ref = parsingFunction_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parsingFunction_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Required. Python function for parsing results. The function should be
            +       * defined within this string.
            +       *
            +       * The function takes a list of strings (LLM responses) and should return
            +       * either a list of dictionaries (for rubrics) or a single dictionary
            +       * (for a metric result).
            +       *
            +       * Example function signature:
            +       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +       *
            +       * When parsing rubrics, return a list of dictionaries, where each
            +       * dictionary represents a Rubric.
            +       * Example for rubrics:
            +       * [
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * factual."}},
            +       * "type": "FACTUALITY",
            +       * "importance": "HIGH"
            +       * },
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * fluent."}},
            +       * "type": "FLUENCY",
            +       * "importance": "MEDIUM"
            +       * }
            +       * ]
            +       *
            +       * When parsing critique results, return a dictionary representing a
            +       * MetricResult.
            +       * Example for a metric result:
            +       * {
            +       * "score": 0.8,
            +       * "explanation": "The model followed most instructions.",
            +       * "rubric_verdicts": [...]
            +       * }
            +       *
            +       * ... code for result extraction and aggregation
            +       * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The parsingFunction to set. + * @return This builder for chaining. + */ + public Builder setParsingFunction(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parsingFunction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. Python function for parsing results. The function should be
            +       * defined within this string.
            +       *
            +       * The function takes a list of strings (LLM responses) and should return
            +       * either a list of dictionaries (for rubrics) or a single dictionary
            +       * (for a metric result).
            +       *
            +       * Example function signature:
            +       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +       *
            +       * When parsing rubrics, return a list of dictionaries, where each
            +       * dictionary represents a Rubric.
            +       * Example for rubrics:
            +       * [
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * factual."}},
            +       * "type": "FACTUALITY",
            +       * "importance": "HIGH"
            +       * },
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * fluent."}},
            +       * "type": "FLUENCY",
            +       * "importance": "MEDIUM"
            +       * }
            +       * ]
            +       *
            +       * When parsing critique results, return a dictionary representing a
            +       * MetricResult.
            +       * Example for a metric result:
            +       * {
            +       * "score": 0.8,
            +       * "explanation": "The model followed most instructions.",
            +       * "rubric_verdicts": [...]
            +       * }
            +       *
            +       * ... code for result extraction and aggregation
            +       * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearParsingFunction() { + parsingFunction_ = getDefaultInstance().getParsingFunction(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. Python function for parsing results. The function should be
            +       * defined within this string.
            +       *
            +       * The function takes a list of strings (LLM responses) and should return
            +       * either a list of dictionaries (for rubrics) or a single dictionary
            +       * (for a metric result).
            +       *
            +       * Example function signature:
            +       * def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]:
            +       *
            +       * When parsing rubrics, return a list of dictionaries, where each
            +       * dictionary represents a Rubric.
            +       * Example for rubrics:
            +       * [
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * factual."}},
            +       * "type": "FACTUALITY",
            +       * "importance": "HIGH"
            +       * },
            +       * {
            +       * "content": {"property": {"description": "The response is
            +       * fluent."}},
            +       * "type": "FLUENCY",
            +       * "importance": "MEDIUM"
            +       * }
            +       * ]
            +       *
            +       * When parsing critique results, return a dictionary representing a
            +       * MetricResult.
            +       * Example for a metric result:
            +       * {
            +       * "score": 0.8,
            +       * "explanation": "The model followed most instructions.",
            +       * "rubric_verdicts": [...]
            +       * }
            +       *
            +       * ... code for result extraction and aggregation
            +       * 
            + * + * optional string parsing_function = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The bytes for parsingFunction to set. + * @return This builder for chaining. + */ + public Builder setParsingFunctionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parsingFunction_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfig + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CustomCodeParserConfig 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.EvaluationParserConfig.CustomCodeParserConfig + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int parserCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object parser_; + + public enum ParserCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CUSTOM_CODE_PARSER_CONFIG(2), + PARSER_NOT_SET(0); + private final int value; + + private ParserCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ParserCase valueOf(int value) { + return forNumber(value); + } + + public static ParserCase forNumber(int value) { + switch (value) { + case 2: + return CUSTOM_CODE_PARSER_CONFIG; + case 0: + return PARSER_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ParserCase getParserCase() { + return ParserCase.forNumber(parserCase_); + } + + public static final int CUSTOM_CODE_PARSER_CONFIG_FIELD_NUMBER = 2; + + /** + * + * + *
            +   * Optional. Use custom code to parse the LLM response.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customCodeParserConfig field is set. + */ + @java.lang.Override + public boolean hasCustomCodeParserConfig() { + return parserCase_ == 2; + } + + /** + * + * + *
            +   * Optional. Use custom code to parse the LLM response.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customCodeParserConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getCustomCodeParserConfig() { + if (parserCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + + /** + * + * + *
            +   * Optional. Use custom code to parse the LLM response.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfigOrBuilder + getCustomCodeParserConfigOrBuilder() { + if (parserCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (parserCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (parserCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_); + } + 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.EvaluationParserConfig)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig other = + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig) obj; + + if (!getParserCase().equals(other.getParserCase())) return false; + switch (parserCase_) { + case 2: + if (!getCustomCodeParserConfig().equals(other.getCustomCodeParserConfig())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (parserCase_) { + case 2: + hash = (37 * hash) + CUSTOM_CODE_PARSER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getCustomCodeParserConfig().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig 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.EvaluationParserConfig parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig 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.EvaluationParserConfig parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig 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.EvaluationParserConfig parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Config for parsing LLM responses.
            +   * It can be used to parse the LLM response to be evaluated, or the LLM
            +   * response from LLM-based metrics/Autoraters.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.EvaluationParserConfig} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.class, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (customCodeParserConfigBuilder_ != null) { + customCodeParserConfigBuilder_.clear(); + } + parserCase_ = 0; + parser_ = 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_EvaluationParserConfig_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig build() { + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig buildPartial() { + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig result = + new com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig result) { + result.parserCase_ = parserCase_; + result.parser_ = this.parser_; + if (parserCase_ == 2 && customCodeParserConfigBuilder_ != null) { + result.parser_ = customCodeParserConfigBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig other) { + if (other == com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance()) + return this; + switch (other.getParserCase()) { + case CUSTOM_CODE_PARSER_CONFIG: + { + mergeCustomCodeParserConfig(other.getCustomCodeParserConfig()); + break; + } + case PARSER_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 18: + { + input.readMessage( + internalGetCustomCodeParserConfigFieldBuilder().getBuilder(), + extensionRegistry); + parserCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int parserCase_ = 0; + private java.lang.Object parser_; + + public ParserCase getParserCase() { + return ParserCase.forNumber(parserCase_); + } + + public Builder clearParser() { + parserCase_ = 0; + parser_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfigOrBuilder> + customCodeParserConfigBuilder_; + + /** + * + * + *
            +     * Optional. Use custom code to parse the LLM response.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customCodeParserConfig field is set. + */ + @java.lang.Override + public boolean hasCustomCodeParserConfig() { + return parserCase_ == 2; + } + + /** + * + * + *
            +     * Optional. Use custom code to parse the LLM response.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customCodeParserConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getCustomCodeParserConfig() { + if (customCodeParserConfigBuilder_ == null) { + if (parserCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } else { + if (parserCase_ == 2) { + return customCodeParserConfigBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Use custom code to parse the LLM response.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomCodeParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig value) { + if (customCodeParserConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + parser_ = value; + onChanged(); + } else { + customCodeParserConfigBuilder_.setMessage(value); + } + parserCase_ = 2; + return this; + } + + /** + * + * + *
            +     * Optional. Use custom code to parse the LLM response.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setCustomCodeParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig.Builder + builderForValue) { + if (customCodeParserConfigBuilder_ == null) { + parser_ = builderForValue.build(); + onChanged(); + } else { + customCodeParserConfigBuilder_.setMessage(builderForValue.build()); + } + parserCase_ = 2; + return this; + } + + /** + * + * + *
            +     * Optional. Use custom code to parse the LLM response.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeCustomCodeParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig value) { + if (customCodeParserConfigBuilder_ == null) { + if (parserCase_ == 2 + && parser_ + != com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance()) { + parser_ = + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfig) + parser_) + .mergeFrom(value) + .buildPartial(); + } else { + parser_ = value; + } + onChanged(); + } else { + if (parserCase_ == 2) { + customCodeParserConfigBuilder_.mergeFrom(value); + } else { + customCodeParserConfigBuilder_.setMessage(value); + } + } + parserCase_ = 2; + return this; + } + + /** + * + * + *
            +     * Optional. Use custom code to parse the LLM response.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearCustomCodeParserConfig() { + if (customCodeParserConfigBuilder_ == null) { + if (parserCase_ == 2) { + parserCase_ = 0; + parser_ = null; + onChanged(); + } + } else { + if (parserCase_ == 2) { + parserCase_ = 0; + parser_ = null; + } + customCodeParserConfigBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Use custom code to parse the LLM response.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig.Builder + getCustomCodeParserConfigBuilder() { + return internalGetCustomCodeParserConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Use custom code to parse the LLM response.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfigOrBuilder + getCustomCodeParserConfigOrBuilder() { + if ((parserCase_ == 2) && (customCodeParserConfigBuilder_ != null)) { + return customCodeParserConfigBuilder_.getMessageOrBuilder(); + } else { + if (parserCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_; + } + return com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Optional. Use custom code to parse the LLM response.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfigOrBuilder> + internalGetCustomCodeParserConfigFieldBuilder() { + if (customCodeParserConfigBuilder_ == null) { + if (!(parserCase_ == 2)) { + parser_ = + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .getDefaultInstance(); + } + customCodeParserConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .CustomCodeParserConfigOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig) + parser_, + getParentForChildren(), + isClean()); + parser_ = null; + } + parserCase_ = 2; + onChanged(); + return customCodeParserConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + private static final com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig(); + } + + public static com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EvaluationParserConfig 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.EvaluationParserConfig getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfigOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfigOrBuilder.java new file mode 100644 index 000000000000..b84c21fc4584 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationParserConfigOrBuilder.java @@ -0,0 +1,75 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface EvaluationParserConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.EvaluationParserConfig) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. Use custom code to parse the LLM response.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the customCodeParserConfig field is set. + */ + boolean hasCustomCodeParserConfig(); + + /** + * + * + *
            +   * Optional. Use custom code to parse the LLM response.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The customCodeParserConfig. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig + getCustomCodeParserConfig(); + + /** + * + * + *
            +   * Optional. Use custom code to parse the LLM response.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfig custom_code_parser_config = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.CustomCodeParserConfigOrBuilder + getCustomCodeParserConfigOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.ParserCase getParserCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationRubricProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationRubricProto.java new file mode 100644 index 000000000000..fc2d63b20c4f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/EvaluationRubricProto.java @@ -0,0 +1,161 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public final class EvaluationRubricProto extends com.google.protobuf.GeneratedFile { + private EvaluationRubricProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "EvaluationRubricProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Rubric_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "7google/cloud/aiplatform/v1beta1/evaluation_rubric.proto\022\037google.cloud.aiplatfo" + + "rm.v1beta1\032\037google/api/field_behavior.proto\"\251\003\n" + + "\006Rubric\022\021\n" + + "\trubric_id\030\001 \001(\t\022@\n" + + "\007content\030\002" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.Rubric.Content\022\021\n" + + "\004type\030\003 \001(\tH\000\210\001\001\022K\n\n" + + "importance\030\004" + + " \001(\01622.google.cloud.aiplatform.v1beta1.Rubric.ImportanceH\001\210\001\001\032\210\001\n" + + "\007Content\022L\n" + + "\010property\030\001 \001(\01328.google.cloud" + + ".aiplatform.v1beta1.Rubric.Content.PropertyH\000\032\037\n" + + "\010Property\022\023\n" + + "\013description\030\001 \001(\tB\016\n" + + "\014content_type\"G\n\n" + + "Importance\022\032\n" + + "\026IMPORTANCE_UNSPECIFIED\020\000\022\010\n" + + "\004HIGH\020\001\022\n\n" + + "\006MEDIUM\020\002\022\007\n" + + "\003LOW\020\003B\007\n" + + "\005_typeB\r\n" + + "\013_importance\"o\n" + + "\013RubricGroup\022\020\n" + + "\010group_id\030\001 \001(\t\022\024\n" + + "\014display_name\030\002 \001(\t\0228\n" + + "\007rubrics\030\003 \003(\0132\'.google.cloud.aiplatform.v1beta1.Rubric\"\211\001\n\r" + + "RubricVerdict\022A\n" + + "\020evaluated_rubric\030\001" + + " \001(\0132\'.google.cloud.aiplatform.v1beta1.Rubric\022\017\n" + + "\007verdict\030\002 \001(\010\022\026\n" + + "\treasoning\030\003 \001(\tH\000\210\001\001B\014\n\n" + + "_reasoningB\247\001\n" + + "#com.google.cloud.aiplatform.v1b" + + "eta1B\025EvaluationRubricProtoP\001\252\002\037Google.C" + + "loud.AIPlatform.V1Beta1\312\002\037Google\\Cloud\\A" + + "IPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor, + new java.lang.String[] { + "RubricId", "Content", "Type", "Importance", + }); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor.getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor, + new java.lang.String[] { + "Property", "ContentType", + }); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor.getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor, + new java.lang.String[] { + "Description", + }); + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor, + new java.lang.String[] { + "GroupId", "DisplayName", "Rubrics", + }); + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor, + new java.lang.String[] { + "EvaluatedRubric", "Verdict", "Reasoning", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} 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 ca31e43062ba..2cf6713a106a 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 @@ -41,49 +41,85 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r } static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetOperationMetadata_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesRequest_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetOperationMetadata_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesRequest_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetResponse_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_Metric_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetResponse_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_Metric_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_MetricSource_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_MetricSource_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRequest_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRequest_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_OutputConfig_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_OutputConfig_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_Metric_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_Metric_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_InstanceData_Contents_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluationDataset_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluationDataset_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_MapInstanceEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_MapInstance_MapInstanceEntry_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesRequest_descriptor; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable - internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesRequest_fieldAccessorTable; + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_ConversationTurn_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentEvent_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Tools_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_Events_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentData_AgentsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_DeprecatedAgentConfig_Tools_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_RubricGroupsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationInstance_RubricGroupsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AutoraterConfig_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_EvaluateInstancesResponse_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -92,6 +128,46 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_MetricResult_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_MetricResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OutputConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OutputConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationDataset_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationDataset_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluateDatasetOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OutputInfo_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AggregationOutput_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_AggregationResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_PredefinedMetricSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -104,6 +180,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_LLMBasedMetricSpec_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionSpec_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_ExactMatchInput_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -164,6 +244,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_RougeMetricValue_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_RougeMetricValue_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CustomCodeExecutionResult_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_aiplatform_v1beta1_CoherenceInput_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -704,6 +788,18 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_aiplatform_v1beta1_ContentMap_ValuesEntry_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_aiplatform_v1beta1_ContentMap_ValuesEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_EvaluationParserConfig_CustomCodeParserConfig_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -718,96 +814,12 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "orm.v1beta1\032\034google/api/annotations.prot" + "o\032\027google/api/client.proto\032\037google/api/f" + "ield_behavior.proto\032\031google/api/resource" - + ".proto\032-google/cloud/aiplatform/v1beta1/content.proto\032(google/cloud/aiplatform/v" - + "1beta1/io.proto\032/google/cloud/aiplatform/v1beta1/operation.proto\032#google/longrun" - + "ning/operations.proto\032\034google/protobuf/struct.proto\032\027google/rpc/status.proto\"w\n" - + " EvaluateDatasetOperationMetadata\022S\n" - + "\020generic_metadata\030\001 \001(\01329.google.cloud.aiplat" - + "form.v1beta1.GenericOperationMetadata\"\265\001\n" - + "\027EvaluateDatasetResponse\022S\n" - + "\022aggregation_output\030\001" - + " \001(\01322.google.cloud.aiplatform.v1beta1.AggregationOutputB\003\340A\003\022E\n" - + "\013output_info\030\003" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.OutputInfoB\003\340A\003\"D\n\n" - + "OutputInfo\022#\n" - + "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000B\021\n" - + "\017output_location\"\251\001\n" - + "\021AggregationOutput\022C\n" - + "\007dataset\030\001" - + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDataset\022O\n" - + "\023aggregation_results\030\002" - + " \003(\01322.google.cloud.aiplatform.v1beta1.AggregationResult\"\260\004\n" - + "\021AggregationResult\022Y\n" - + "\027pointwise_metric_result\030\005 \001(\01326" - + ".google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" - + "\026pairwise_metric_result\030\006" - + " \001(\01325.google.cloud.aiplatform.v1beta1.PairwiseMetricResultH\000\022Z\n" - + "\030exact_match_metric_value\030\007" - + " \001(\01326.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueH\000\022M\n" - + "\021bleu_metric_value\030\010" - + " \001(\01320.google.cloud.aiplatform.v1beta1.BleuMetricValueH\000\022O\n" - + "\022rouge_metric_value\030\t" - + " \001(\01321.google.cloud.aiplatform.v1beta1.RougeMetricValueH\000\022U\n" - + "\022aggregation_metric\030\004 \001(\01629.google.cloud" - + ".aiplatform.v1beta1.Metric.AggregationMetricB\024\n" - + "\022aggregation_result\"\372\002\n" - + "\026EvaluateDatasetRequest\022;\n" - + "\010location\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022H\n" - + "\007dataset\030\002" - + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDatasetB\003\340A\002\022=\n" - + "\007metrics\030\003" - + " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" - + "output_config\030\004 \001(\0132-.goo" - + "gle.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" - + "\020autorater_config\030\005 \001(\01320.googl" - + "e.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"i\n" - + "\014OutputConfig\022J\n" - + "\017gcs_destination\030\001" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000B\r\n" - + "\013destination\"\335\007\n" - + "\006Metric\022W\n" - + "\026predefined_metric_spec\030\010 \001(\01325." - + "google.cloud.aiplatform.v1beta1.PredefinedMetricSpecH\000\022d\n" - + "\035computation_based_metric_spec\030\t" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSpecH\000\022T\n" - + "\025llm_based_metric_spec\030\n" - + " \001(\01323.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecH\000\022U\n" - + "\025pointwise_metric_spec\030\002 \001(\01324.goog" - + "le.cloud.aiplatform.v1beta1.PointwiseMetricSpecH\000\022S\n" - + "\024pairwise_metric_spec\030\003 \001(\0132" - + "3.google.cloud.aiplatform.v1beta1.PairwiseMetricSpecH\000\022K\n" - + "\020exact_match_spec\030\004 \001(\013" - + "2/.google.cloud.aiplatform.v1beta1.ExactMatchSpecH\000\022>\n" - + "\tbleu_spec\030\005 \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecH\000\022@\n\n" - + "rouge_spec\030\006 \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecH\000\022[\n" - + "\023aggregation_metrics\030\001" - + " \003(\01629.google.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\003\340A\001\"\326\001\n" - + "\021AggregationMetric\022\"\n" - + "\036AGGREGATION_METRIC_UNSPECIFIED\020\000\022\013\n" - + "\007AVERAGE\020\001\022\010\n" - + "\004MODE\020\002\022\026\n" - + "\022STANDARD_DEVIATION\020\003\022\014\n" - + "\010VARIANCE\020\004\022\013\n" - + "\007MINIMUM\020\005\022\013\n" - + "\007MAXIMUM\020\006\022\n\n" - + "\006MEDIAN\020\007\022\022\n" - + "\016PERCENTILE_P90\020\010\022\022\n" - + "\016PERCENTILE_P95\020\t\022\022\n" - + "\016PERCENTILE_P99\020\n" - + "B\r\n" - + "\013metric_spec\"\253\001\n" - + "\021EvaluationDataset\022@\n\n" - + "gcs_source\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022J\n" - + "\017bigquery_source\030\002" - + " \001(\0132/.google.cloud.aiplatform.v1beta1.BigQuerySourceH\000B\010\n" - + "\006source\"\225\001\n" - + "\017AutoraterConfig\022 \n" - + "\016sampling_count\030\001 \001(\005B\003\340A\001H\000\210\001\001\022\036\n" - + "\014flip_enabled\030\002 \001(\010B\003\340A\001H\001\210\001\001\022\034\n" - + "\017autorater_model\030\003 \001(\tB\003\340A\001B\021\n" - + "\017_sampling_countB\017\n\r" - + "_flip_enabled\"\202\031\n" + + ".proto\032-google/cloud/aiplatform/v1beta1/content.proto\032;google/cloud/aiplatform/v" + + "1beta1/evaluation_agent_data.proto\0327google/cloud/aiplatform/v1beta1/evaluation_r" + + "ubric.proto\032(google/cloud/aiplatform/v1beta1/io.proto\032/google/cloud/aiplatform/v" + + "1beta1/operation.proto\032*google/cloud/aiplatform/v1beta1/tool.proto\032#google/longr" + + "unning/operations.proto\032\034google/protobuf" + + "/struct.proto\032\037google/protobuf/timestamp.proto\032\027google/rpc/status.proto\"\317\032\n" + "\030EvaluateInstancesRequest\022M\n" + "\021exact_match_input\030\002" + " \001(\01320.google.cloud.aiplatform.v1beta1.ExactMatchInputH\000\022@\n\n" @@ -818,150 +830,372 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\0132-.google.cloud.aiplatform.v1beta1.FluencyInputH\000\022J\n" + "\017coherence_input\030\006" + " \001(\0132/.google.cloud.aiplatform.v1beta1.CoherenceInputH\000\022D\n" - + "\014safety_input\030\010" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.SafetyInputH\000\022P\n" - + "\022groundedness_input\030\t \001(\013" - + "22.google.cloud.aiplatform.v1beta1.GroundednessInputH\000\022N\n" - + "\021fulfillment_input\030\014 \001(" - + "\01321.google.cloud.aiplatform.v1beta1.FulfillmentInputH\000\022a\n" + + "\014safety_input\030\010 " + + "\001(\0132,.google.cloud.aiplatform.v1beta1.SafetyInputH\000\022P\n" + + "\022groundedness_input\030\t \001(\0132" + + "2.google.cloud.aiplatform.v1beta1.GroundednessInputH\000\022N\n" + + "\021fulfillment_input\030\014 \001(\013" + + "21.google.cloud.aiplatform.v1beta1.FulfillmentInputH\000\022a\n" + "\033summarization_quality_input\030\007" + " \001(\0132:.google.cloud.aiplatform.v1beta1.SummarizationQualityInputH\000\022r\n" - + "$pairwise_summarization_quality_input\030\027 \001(\0132" - + "B.google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInputH\000\022i\n" - + "\037summarization_helpfulness_input\030\016 \001(\0132>.google." - + "cloud.aiplatform.v1beta1.SummarizationHelpfulnessInputH\000\022e\n" - + "\035summarization_verbosity_input\030\017 \001(\0132<.google.cloud.aiplatfor" - + "m.v1beta1.SummarizationVerbosityInputH\000\022j\n" + + "$pairwise_summarization_quality_input\030\027 \001(\0132B" + + ".google.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInputH\000\022i\n" + + "\037summarization_helpfulness_input\030\016 \001(\0132>.google.c" + + "loud.aiplatform.v1beta1.SummarizationHelpfulnessInputH\000\022e\n" + + "\035summarization_verbosity_input\030\017 \001(\0132<.google.cloud.aiplatform" + + ".v1beta1.SummarizationVerbosityInputH\000\022j\n" + " question_answering_quality_input\030\n" + " \001(\0132>.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInputH\000\022{\n" - + ")pairwise_question_answering_quality_input\030\030 \001(\0132F" - + ".google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInputH\000\022n\n" - + "\"question_answering_relevance_input\030\020 \001(\0132@.g" - + "oogle.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInputH\000\022r\n" - + "$question_answering_helpfulness_input\030\021 \001(\0132B.google." - + "cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInputH\000\022r\n" - + "$question_answering_correctness_input\030\022 \001(\0132B.google.clou" - + "d.aiplatform.v1beta1.QuestionAnsweringCorrectnessInputH\000\022W\n" + + ")pairwise_question_answering_quality_input\030\030 \001(\0132F." + + "google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInputH\000\022n\n" + + "\"question_answering_relevance_input\030\020 \001(\0132@.go" + + "ogle.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceInputH\000\022r\n" + + "$question_answering_helpfulness_input\030\021 \001(\0132B.google.c" + + "loud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInputH\000\022r\n" + + "$question_answering_correctness_input\030\022 \001(\0132B.google.cloud" + + ".aiplatform.v1beta1.QuestionAnsweringCorrectnessInputH\000\022W\n" + "\026pointwise_metric_input\030\034" + " \001(\01325.google.cloud.aiplatform.v1beta1.PointwiseMetricInputH\000\022U\n" + "\025pairwise_metric_input\030\035" + " \001(\01324.google.cloud.aiplatform.v1beta1.PairwiseMetricInputH\000\022T\n" - + "\025tool_call_valid_input\030\023 \001(\01323.google.cloud.a" - + "iplatform.v1beta1.ToolCallValidInputH\000\022T\n" - + "\025tool_name_match_input\030\024 \001(\01323.google.c" - + "loud.aiplatform.v1beta1.ToolNameMatchInputH\000\022e\n" - + "\036tool_parameter_key_match_input\030\025" - + " \001(\0132;.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInputH\000\022c\n" - + "\035tool_parameter_kv_match_input\030\026 \001(\0132:.google.clou" - + "d.aiplatform.v1beta1.ToolParameterKVMatchInputH\000\022B\n" + + "\025tool_call_valid_input\030\023" + + " \001(\01323.google.cloud.aiplatform.v1beta1.ToolCallValidInputH\000\022T\n" + + "\025tool_name_match_input\030\024 \001(\01323.google.cl" + + "oud.aiplatform.v1beta1.ToolNameMatchInputH\000\022e\n" + + "\036tool_parameter_key_match_input\030\025 " + + "\001(\0132;.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInputH\000\022c\n" + + "\035tool_parameter_kv_match_input\030\026 \001(\0132:.google.cloud" + + ".aiplatform.v1beta1.ToolParameterKVMatchInputH\000\022B\n" + "\013comet_input\030\037" + " \001(\0132+.google.cloud.aiplatform.v1beta1.CometInputH\000\022F\n\r" + "metricx_input\030 " + " \001(\0132-.google.cloud.aiplatform.v1beta1.MetricxInputH\000\022b\n" - + "\034trajectory_exact_match_input\030! \001(\0132:.google.clou" - + "d.aiplatform.v1beta1.TrajectoryExactMatchInputH\000\022g\n" + + "\034trajectory_exact_match_input\030! \001(\0132:.google.cloud" + + ".aiplatform.v1beta1.TrajectoryExactMatchInputH\000\022g\n" + "\037trajectory_in_order_match_input\030\"" + " \001(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInputH\000\022i\n" - + " trajectory_any_order_match_input\030# \001(\0132=.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputH\000\022_\n" + + " trajectory_any_order_match_input\030# \001(\0132=.goo" + + "gle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInputH\000\022_\n" + "\032trajectory_precision_input\030%" + " \001(\01329.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInputH\000\022Y\n" - + "\027trajectory_recall_input\030& \001(\01326.google." - + "cloud.aiplatform.v1beta1.TrajectoryRecallInputH\000\022i\n" + + "\027trajectory_recall_input\030& \001(\01326.google.c" + + "loud.aiplatform.v1beta1.TrajectoryRecallInputH\000\022i\n" + " trajectory_single_tool_use_input\030\'" + " \001(\0132=.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInputH\000\022y\n" + "(rubric_based_instruction_following_input\030(" - + " \001(\0132E.google.cloud.aiplatform.v1beta1." - + "RubricBasedInstructionFollowingInputH\000\022;\n" + + " \001(\0132E.google.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInputH\000\022;\n" + "\010location\030\001 \001(\tB)\340A\002\372A#\n" - + "!locations.googleapis.com/Location\022O\n" + + "!locations.googleapis.com/Location\0228\n" + + "\007metrics\0301 \003(\0132\'.google.cloud.aiplatform.v1beta1.Metric\022J\n" + + "\016metric_sources\0304" + + " \003(\0132-.google.cloud.aiplatform.v1beta1.MetricSourceB\003\340A\001\022E\n" + + "\010instance\0302" + + " \001(\01323.google.cloud.aiplatform.v1beta1.EvaluationInstance\022O\n" + "\020autorater_config\030\036" + " \001(\01320.google.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001B\017\n\r" - + "metric_inputs\"\233\031\n" + + "metric_inputs\"\205\t\n" + + "\006Metric\022W\n" + + "\026predefined_metric_spec\030\010" + + " \001(\01325.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecH\000\022d\n" + + "\035computation_based_metric_spec\030\t \001(\0132;.google.cloud.aipl" + + "atform.v1beta1.ComputationBasedMetricSpecH\000\022T\n" + + "\025llm_based_metric_spec\030\n" + + " \001(\01323.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecH\000\022^\n" + + "\032custom_code_execution_spec\030\013" + + " \001(\01328.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecH\000\022U\n" + + "\025pointwise_metric_spec\030\002" + + " \001(\01324.google.cloud.aiplatform.v1beta1.PointwiseMetricSpecH\000\022S\n" + + "\024pairwise_metric_spec\030\003" + + " \001(\01323.google.cloud.aiplatform.v1beta1.PairwiseMetricSpecH\000\022K\n" + + "\020exact_match_spec\030\004" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.ExactMatchSpecH\000\022>\n" + + "\tbleu_spec\030\005 \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecH\000\022@\n\n" + + "rouge_spec\030\006 \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecH\000\022[\n" + + "\023aggregation_metrics\030\001 \003(\01629.goog" + + "le.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\003\340A\001\022F\n" + + "\010metadata\030\r" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.MetricMetadataB\003\340A\001\"\326\001\n" + + "\021AggregationMetric\022\"\n" + + "\036AGGREGATION_METRIC_UNSPECIFIED\020\000\022\013\n" + + "\007AVERAGE\020\001\022\010\n" + + "\004MODE\020\002\022\026\n" + + "\022STANDARD_DEVIATION\020\003\022\014\n" + + "\010VARIANCE\020\004\022\013\n" + + "\007MINIMUM\020\005\022\013\n" + + "\007MAXIMUM\020\006\022\n\n" + + "\006MEDIAN\020\007\022\022\n" + + "\016PERCENTILE_P90\020\010\022\022\n" + + "\016PERCENTILE_P95\020\t\022\022\n" + + "\016PERCENTILE_P99\020\n" + + "B\r\n" + + "\013metric_spec\"\270\002\n" + + "\016MetricMetadata\022\022\n" + + "\005title\030\001 \001(\tB\003\340A\001\022T\n" + + "\013score_range\030\002 \001(\0132:.google.cloud.aip" + + "latform.v1beta1.MetricMetadata.ScoreRangeB\003\340A\001\0224\n" + + "\016other_metadata\030\003" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001\032\205\001\n\n" + + "ScoreRange\022\025\n" + + "\003min\030\001 \001(\001B\003\340A\002H\000\210\001\001\022\025\n" + + "\003max\030\002 \001(\001B\003\340A\002H\001\210\001\001\022\026\n" + + "\004step\030\003 \001(\001B\003\340A\001H\002\210\001\001\022\030\n" + + "\013description\030\004 \001(\tB\003\340A\001B\006\n" + + "\004_minB\006\n" + + "\004_maxB\007\n" + + "\005_step\"z\n" + + "\014MetricSource\0229\n" + + "\006metric\030\001 \001(\0132\'.google.cloud.aiplatform.v1beta1.MetricH\000\022\036\n" + + "\024metric_resource_name\030\002 \001(\tH\000B\017\n\r" + + "metric_source\"\211\030\n" + + "\022EvaluationInstance\022U\n" + + "\006prompt\030\001 \001(\0132" + + "@.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\003\340A\001\022a\n\r" + + "rubric_groups\030\002 \003(\0132E.google.cloud.aiplatform." + + "v1beta1.EvaluationInstance.RubricGroupsEntryB\003\340A\001\022W\n" + + "\010response\030\003 \001(\0132@.google.clo" + + "ud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\003\340A\001\022X\n" + + "\treference\030\004 \001(\0132@." + + "google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\003\340A\001\022X\n\n" + + "other_data\030\005 \001(\0132?.google.cloud.aiplatform.v1bet" + + "a1.EvaluationInstance.MapInstanceB\003\340A\001\022b\n\n" + + "agent_data\030\006 \001(\0132G.google.cloud.aiplat" + + "form.v1beta1.EvaluationInstance.DeprecatedAgentDataB\005\030\001\340A\001\022H\n" + + "\017agent_eval_data\030\007 " + + "\001(\0132*.google.cloud.aiplatform.v1beta1.AgentDataB\003\340A\001\032\322\001\n" + + "\014InstanceData\022\016\n" + + "\004text\030\001 \001(\tH\000\022]\n" + + "\010contents\030\002 \001(\0132I.google.cloud.a" + + "iplatform.v1beta1.EvaluationInstance.InstanceData.ContentsH\000\032K\n" + + "\010Contents\022?\n" + + "\010contents\030\001" + + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001B\006\n" + + "\004data\032\360\001\n" + + "\013MapInstance\022k\n" + + "\014map_instance\030\001 \003(\0132P.google.cloud.a" + + "iplatform.v1beta1.EvaluationInstance.MapInstance.MapInstanceEntryB\003\340A\001\032t\n" + + "\020MapInstanceEntry\022\013\n" + + "\003key\030\001 \001(\t\022O\n" + + "\005value\030\002 \001(\0132@" + + ".google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceData:\0028\001\032\242\013\n" + + "\023DeprecatedAgentData\022\030\n\n" + + "tools_text\030\001 \001(\tB\002\030\001H\000\022b\n" + + "\005tools\030\002 \001(\0132M.google.cloud.aiplatform." + + "v1beta1.EvaluationInstance.DeprecatedAgentData.ToolsB\002\030\001H\000\022`\n" + + "\006events\030\005 \001(\0132N.goo" + + "gle.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.EventsH\001\022h\n" + + "\006agents\030\007 \003(\0132S.google.cloud.aiplatform.v" + + "1beta1.EvaluationInstance.DeprecatedAgentData.AgentsEntryB\003\340A\001\022l\n" + + "\005turns\030\010 \003(\0132X.google.cloud.aiplatform.v1beta1.Evaluati" + + "onInstance.DeprecatedAgentData.ConversationTurnB\003\340A\001\022f\n" + + "\025developer_instruction\030\003 " + + "\001(\0132@.google.cloud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\005\030\001\340A\001\022d\n" + + "\014agent_config\030\006 \001(\0132I.google.cloud.aiplat" + + "form.v1beta1.EvaluationInstance.DeprecatedAgentConfigB\003\340A\001\032\276\001\n" + + "\020ConversationTurn\022\034\n\n" + + "turn_index\030\001 \001(\005B\003\340A\002H\000\210\001\001\022\024\n" + + "\007turn_id\030\002 \001(\tB\003\340A\001\022g\n" + + "\006events\030\003 \003(\0132R.google.clo" + + "ud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentData.AgentEventB\003\340A\001B\r\n" + + "\013_turn_index\032\233\002\n\n" + + "AgentEvent\022\030\n" + + "\006author\030\001 \001(\tB\003\340A\002H\000\210\001\001\022>\n" + + "\007content\030\002" + + " \001(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\002\0223\n\n" + + "event_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\0221\n" + + "\013state_delta\030\004 \001(\0132\027.google.protobuf.StructB\003\340A\001\022@\n" + + "\014active_tools\030\005 \003" + + "(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001B\t\n" + + "\007_author\032C\n" + + "\005Tools\022:\n" + + "\004tool\030\001 \003(\013" + + "2%.google.cloud.aiplatform.v1beta1.ToolB\005\030\001\340A\001\032F\n" + + "\006Events\022<\n" + + "\005event\030\001 \003(\0132(.google" + + ".cloud.aiplatform.v1beta1.ContentB\003\340A\001\032x\n" + + "\013AgentsEntry\022\013\n" + + "\003key\030\001 \001(\t\022X\n" + + "\005value\030\002 \001(\0132I.google.cloud.aiplatform.v1beta1.Eval" + + "uationInstance.DeprecatedAgentConfig:\0028\001:\002\030\001B\014\n\n" + + "tools_dataB\r\n" + + "\013events_data\032\255\003\n" + + "\025DeprecatedAgentConfig\022\024\n\n" + + "tools_text\030\001 \001(\tH\000\022`\n" + + "\005tools\030\002 \001(\0132O.google.cloud.aiplatfo" + + "rm.v1beta1.EvaluationInstance.DeprecatedAgentConfig.ToolsH\000\022\025\n" + + "\010agent_id\030\004 \001(\tB\003\340A\001\022\027\n\n" + + "agent_type\030\005 \001(\tB\003\340A\001\022\030\n" + + "\013description\030\006 \001(\tB\003\340A\001\022\027\n\n" + + "sub_agents\030\007 \003(\tB\003\340A\001\022d\n" + + "\025developer_instruction\030\003 \001(\0132@.google.c" + + "loud.aiplatform.v1beta1.EvaluationInstance.InstanceDataB\003\340A\001\032A\n" + + "\005Tools\0228\n" + + "\004tool\030\001 " + + "\003(\0132%.google.cloud.aiplatform.v1beta1.ToolB\003\340A\001:\002\030\001B\014\n\n" + + "tools_data\032a\n" + + "\021RubricGroupsEntry\022\013\n" + + "\003key\030\001 \001(\t\022;\n" + + "\005value\030\002 \001(\0132,.goo" + + "gle.cloud.aiplatform.v1beta1.RubricGroup:\0028\001\"\350\001\n" + + "\017AutoraterConfig\022 \n" + + "\016sampling_count\030\001 \001(\005B\003\340A\001H\000\210\001\001\022\036\n" + + "\014flip_enabled\030\002 \001(\010B\003\340A\001H\001\210\001\001\022\034\n" + + "\017autorater_model\030\003 \001(\tB\003\340A\001\022Q\n" + + "\021generation_config\030\004 \001(\01321.google.clo" + + "ud.aiplatform.v1beta1.GenerationConfigB\003\340A\001B\021\n" + + "\017_sampling_countB\017\n\r" + + "_flip_enabled\"\233\031\n" + "\031EvaluateInstancesResponse\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.BleuResultsH\000\022F\n\r" - + "rouge_results\030\003 " - + "\001(\0132-.google.cloud.aiplatform.v1beta1.RougeResultsH\000\022H\n" - + "\016fluency_result\030\004 \001(\0132..g" - + "oogle.cloud.aiplatform.v1beta1.FluencyResultH\000\022L\n" - + "\020coherence_result\030\005 \001(\01320.googl" - + "e.cloud.aiplatform.v1beta1.CoherenceResultH\000\022F\n\r" - + "safety_result\030\007" - + " \001(\0132-.google.cloud.aiplatform.v1beta1.SafetyResultH\000\022R\n" - + "\023groundedness_result\030\010 \001(\01323.google.cloud" - + ".aiplatform.v1beta1.GroundednessResultH\000\022P\n" - + "\022fulfillment_result\030\013 \001(\01322.google.cl" - + "oud.aiplatform.v1beta1.FulfillmentResultH\000\022c\n" - + "\034summarization_quality_result\030\006 \001(\013" - + "2;.google.cloud.aiplatform.v1beta1.SummarizationQualityResultH\000\022t\n" - + "%pairwise_summarization_quality_result\030\026 \001(\0132C.google." - + "cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResultH\000\022k\n" + + "rouge_results\030\003" + + " \001(\0132-.google.cloud.aiplatform.v1beta1.RougeResultsH\000\022H\n" + + "\016fluency_result\030\004 \001(\0132." + + ".google.cloud.aiplatform.v1beta1.FluencyResultH\000\022L\n" + + "\020coherence_result\030\005 \001(\01320.goo" + + "gle.cloud.aiplatform.v1beta1.CoherenceResultH\000\022F\n\r" + + "safety_result\030\007 \001(\0132-.google.c" + + "loud.aiplatform.v1beta1.SafetyResultH\000\022R\n" + + "\023groundedness_result\030\010 \001(\01323.google.clo" + + "ud.aiplatform.v1beta1.GroundednessResultH\000\022P\n" + + "\022fulfillment_result\030\013 \001(\01322.google." + + "cloud.aiplatform.v1beta1.FulfillmentResultH\000\022c\n" + + "\034summarization_quality_result\030\006 \001" + + "(\0132;.google.cloud.aiplatform.v1beta1.SummarizationQualityResultH\000\022t\n" + + "%pairwise_summarization_quality_result\030\026 \001(\0132C.googl" + + "e.cloud.aiplatform.v1beta1.PairwiseSummarizationQualityResultH\000\022k\n" + " summarization_helpfulness_result\030\r" - + " \001(\0132?.google.cloud.a" - + "iplatform.v1beta1.SummarizationHelpfulnessResultH\000\022g\n" + + " \001(\0132?.google.cloud" + + ".aiplatform.v1beta1.SummarizationHelpfulnessResultH\000\022g\n" + "\036summarization_verbosity_result\030\016" + " \001(\0132=.google.cloud.aiplatform.v1beta1.SummarizationVerbosityResultH\000\022l\n" - + "!question_answering_quality_result\030\t \001(\0132?" - + ".google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResultH\000\022}\n" - + "*pairwise_question_answering_quality_result\030\027 \001(\0132G." - + "google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResultH\000\022p\n" - + "#question_answering_relevance_result\030\017 \001(\0132A." - + "google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResultH\000\022t\n" - + "%question_answering_helpfulness_result\030\020 \001(\0132C.goog" - + "le.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResultH\000\022t\n" - + "%question_answering_correctness_result\030\021 \001(\0132C.google" - + ".cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultH\000\022Y\n" + + "!question_answering_quality_result\030\t \001(\013" + + "2?.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityResultH\000\022}\n" + + "*pairwise_question_answering_quality_result\030\027 \001(\0132" + + "G.google.cloud.aiplatform.v1beta1.PairwiseQuestionAnsweringQualityResultH\000\022p\n" + + "#question_answering_relevance_result\030\017 \001(\0132" + + "A.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceResultH\000\022t\n" + + "%question_answering_helpfulness_result\030\020 \001(\0132C.go" + + "ogle.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessResultH\000\022t\n" + + "%question_answering_correctness_result\030\021 \001(\0132C.goog" + + "le.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessResultH\000\022Y\n" + "\027pointwise_metric_result\030\033" + " \001(\01326.google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" - + "\026pairwise_metric_result\030\034 \001(\01325.google.cloud" - + ".aiplatform.v1beta1.PairwiseMetricResultH\000\022X\n" - + "\027tool_call_valid_results\030\022 \001(\01325.go" - + "ogle.cloud.aiplatform.v1beta1.ToolCallValidResultsH\000\022X\n" + + "\026pairwise_metric_result\030\034 \001(\01325.google.clo" + + "ud.aiplatform.v1beta1.PairwiseMetricResultH\000\022X\n" + + "\027tool_call_valid_results\030\022 \001(\01325." + + "google.cloud.aiplatform.v1beta1.ToolCallValidResultsH\000\022X\n" + "\027tool_name_match_results\030\023" + " \001(\01325.google.cloud.aiplatform.v1beta1.ToolNameMatchResultsH\000\022i\n" - + " tool_parameter_key_match_results\030\024 \001(\0132=.google.cloud." - + "aiplatform.v1beta1.ToolParameterKeyMatchResultsH\000\022g\n" + + " tool_parameter_key_match_results\030\024 \001(\0132=.google.clou" + + "d.aiplatform.v1beta1.ToolParameterKeyMatchResultsH\000\022g\n" + "\037tool_parameter_kv_match_results\030\025" + " \001(\0132<.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchResultsH\000\022D\n" + "\014comet_result\030\035" + " \001(\0132,.google.cloud.aiplatform.v1beta1.CometResultH\000\022H\n" + "\016metricx_result\030\036" + " \001(\0132..google.cloud.aiplatform.v1beta1.MetricxResultH\000\022f\n" - + "\036trajectory_exact_match_results\030\037 \001(\0132<.google.cloud.aiplat" - + "form.v1beta1.TrajectoryExactMatchResultsH\000\022k\n" + + "\036trajectory_exact_match_results\030\037 \001(\0132<.google.cloud.aipl" + + "atform.v1beta1.TrajectoryExactMatchResultsH\000\022k\n" + "!trajectory_in_order_match_results\030 " + " \001(\0132>.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchResultsH\000\022m\n" - + "\"trajectory_any_order_match_results\030! \001(\0132?.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsH\000\022c\n" - + "\034trajectory_precision_results\030# \001(\0132;.google.cloud.aipl" - + "atform.v1beta1.TrajectoryPrecisionResultsH\000\022]\n" - + "\031trajectory_recall_results\030$ \001(\01328" - + ".google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsH\000\022m\n" - + "\"trajectory_single_tool_use_results\030% \001(\0132?.google.cloud.ai" - + "platform.v1beta1.TrajectorySingleToolUseResultsH\000\022{\n" - + ")rubric_based_instruction_following_result\030& \001(\0132F.google.cloud.aipl" - + "atform.v1beta1.RubricBasedInstructionFollowingResultH\000\022E\n" - + "\016metric_results\030+ \003(\0132-" - + ".google.cloud.aiplatform.v1beta1.MetricResultB\024\n" - + "\022evaluation_results\"\227\001\n" + + "\"trajectory_any_order_match_results\030! \001(\0132?." + + "google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchResultsH\000\022c\n" + + "\034trajectory_precision_results\030# \001(\0132;.google.cloud.ai" + + "platform.v1beta1.TrajectoryPrecisionResultsH\000\022]\n" + + "\031trajectory_recall_results\030$ \001(\013" + + "28.google.cloud.aiplatform.v1beta1.TrajectoryRecallResultsH\000\022m\n" + + "\"trajectory_single_tool_use_results\030% \001(\0132?.google.cloud." + + "aiplatform.v1beta1.TrajectorySingleToolUseResultsH\000\022{\n" + + ")rubric_based_instruction_following_result\030& \001(\0132F.google.cloud.ai" + + "platform.v1beta1.RubricBasedInstructionFollowingResultH\000\022E\n" + + "\016metric_results\030+ \003(\013" + + "2-.google.cloud.aiplatform.v1beta1.MetricResultB\024\n" + + "\022evaluation_results\"\345\001\n" + "\014MetricResult\022\027\n" - + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022\035\n" + + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022L\n" + + "\017rubric_verdicts\030\002" + + " \003(\0132..google.cloud.aiplatform.v1beta1.RubricVerdictB\003\340A\003\022\035\n" + "\013explanation\030\003 \001(\tB\003\340A\003H\001\210\001\001\022+\n" + "\005error\030\004" + " \001(\0132\022.google.rpc.StatusB\003\340A\003H\002\210\001\001B\010\n" + "\006_scoreB\016\n" + "\014_explanationB\010\n" - + "\006_error\"s\n" + + "\006_error\"\307\003\n" + + "\036GenerateInstanceRubricsRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022?\n" + + "\010contents\030\002" + + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\002\022e\n" + + "!predefined_rubric_generation_spec\030\004 \001(\01325.google.cloud" + + ".aiplatform.v1beta1.PredefinedMetricSpecB\003\340A\001\022Z\n" + + "\026rubric_generation_spec\030\003 \001(\01325." + + "google.cloud.aiplatform.v1beta1.RubricGenerationSpecB\003\340A\001\022d\n" + + "\014agent_config\030\005 \001(\0132I.google.cloud.aiplatform.v1beta1.Evalua" + + "tionInstance.DeprecatedAgentConfigB\003\340A\001\"j\n" + + "\037GenerateInstanceRubricsResponse\022G\n" + + "\021generated_rubrics\030\001" + + " \003(\0132\'.google.cloud.aiplatform.v1beta1.RubricB\003\340A\003\"\372\002\n" + + "\026EvaluateDatasetRequest\022;\n" + + "\010location\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022H\n" + + "\007dataset\030\002" + + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDatasetB\003\340A\002\022=\n" + + "\007metrics\030\003" + + " \003(\0132\'.google.cloud.aiplatform.v1beta1.MetricB\003\340A\002\022I\n\r" + + "output_config\030\004 \001(\0132-.go" + + "ogle.cloud.aiplatform.v1beta1.OutputConfigB\003\340A\002\022O\n" + + "\020autorater_config\030\005 \001(\01320.goog" + + "le.cloud.aiplatform.v1beta1.AutoraterConfigB\003\340A\001\"i\n" + + "\014OutputConfig\022J\n" + + "\017gcs_destination\030\001" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.GcsDestinationH\000B\r\n" + + "\013destination\"\253\001\n" + + "\021EvaluationDataset\022@\n\n" + + "gcs_source\030\001 \001(\0132*.google.cloud.aiplatform.v1beta1.GcsSourceH\000\022J\n" + + "\017bigquery_source\030\002 \001(\0132/.google.cl" + + "oud.aiplatform.v1beta1.BigQuerySourceH\000B\010\n" + + "\006source\"\265\001\n" + + "\027EvaluateDatasetResponse\022S\n" + + "\022aggregation_output\030\001 \001(\01322.google.cloud" + + ".aiplatform.v1beta1.AggregationOutputB\003\340A\003\022E\n" + + "\013output_info\030\003" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.OutputInfoB\003\340A\003\"w\n" + + " EvaluateDatasetOperationMetadata\022S\n" + + "\020generic_metadata\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"D\n\n" + + "OutputInfo\022#\n" + + "\024gcs_output_directory\030\001 \001(\tB\003\340A\003H\000B\021\n" + + "\017output_location\"\251\001\n" + + "\021AggregationOutput\022C\n" + + "\007dataset\030\001" + + " \001(\01322.google.cloud.aiplatform.v1beta1.EvaluationDataset\022O\n" + + "\023aggregation_results\030\002" + + " \003(\01322.google.cloud.aiplatform.v1beta1.AggregationResult\"\224\005\n" + + "\021AggregationResult\022Y\n" + + "\027pointwise_metric_result\030\005" + + " \001(\01326.google.cloud.aiplatform.v1beta1.PointwiseMetricResultH\000\022W\n" + + "\026pairwise_metric_result\030\006 \001(\01325.google.cloud.aip" + + "latform.v1beta1.PairwiseMetricResultH\000\022Z\n" + + "\030exact_match_metric_value\030\007 \001(\01326.googl" + + "e.cloud.aiplatform.v1beta1.ExactMatchMetricValueH\000\022M\n" + + "\021bleu_metric_value\030\010 \001(\01320." + + "google.cloud.aiplatform.v1beta1.BleuMetricValueH\000\022O\n" + + "\022rouge_metric_value\030\t \001(\01321." + + "google.cloud.aiplatform.v1beta1.RougeMetricValueH\000\022b\n" + + "\034custom_code_execution_result\030\n" + + " \001(\0132:.google.cloud.aiplatform.v1beta1.CustomCodeExecutionResultH\000\022U\n" + + "\022aggregation_metric\030\004" + + " \001(\01629.google.cloud.aiplatform.v1beta1.Metric.AggregationMetricB\024\n" + + "\022aggregation_result\"s\n" + "\024PredefinedMetricSpec\022\035\n" + "\020metric_spec_name\030\001 \001(\tB\003\340A\002\022<\n" + "\026metric_spec_parameters\030\002" + " \001(\0132\027.google.protobuf.StructB\003\340A\001\"\316\002\n" + "\032ComputationBasedMetricSpec\022n\n" - + "\004type\030\001 \001(\0162V.google.cloud.aiplatform.v1beta1.ComputationBasedMetric" - + "Spec.ComputationBasedMetricTypeB\003\340A\002H\000\210\001\001\0225\n\n" + + "\004type\030\001 \001(\0162V.google.cloud.aiplatform.v1beta1.ComputationBasedMetricSp" + + "ec.ComputationBasedMetricTypeB\003\340A\002H\000\210\001\001\0225\n\n" + "parameters\030\002" + " \001(\0132\027.google.protobuf.StructB\003\340A\001H\001\210\001\001\"q\n" + "\032ComputationBasedMetricType\022-\n" @@ -970,27 +1204,35 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004BLEU\020\002\022\t\n" + "\005ROUGE\020\003B\007\n" + "\005_typeB\r\n" - + "\013_parameters\"\363\003\n" + + "\013_parameters\"\250\005\n" + "\022LLMBasedMetricSpec\022\032\n" - + "\020rubric_group_key\030\004 \001(\tH\000\022b\n" + + "\020rubric_group_key\030\004 \001(\tH\000\022W\n" + + "\026rubric_generation_spec\030\005 \001(\01325.g" + + "oogle.cloud.aiplatform.v1beta1.RubricGenerationSpecH\000\022b\n" + "!predefined_rubric_generation_spec\030\006" + " \001(\01325.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecH\000\022(\n" + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\001\210\001\001\022$\n" + "\022system_instruction\030\002 \001(\tB\003\340A\001H\002\210\001\001\022Z\n" - + "\026judge_autorater_config\030\003 \001(\01320.google.cloud.aiplat" - + "form.v1beta1.AutoraterConfigB\003\340A\001H\003\210\001\001\022<\n" + + "\026judge_autorater_config\030\003 \001(\01320.google.cloud" + + ".aiplatform.v1beta1.AutoraterConfigB\003\340A\001H\003\210\001\001\022<\n" + "\021additional_config\030\007" - + " \001(\0132\027.google.protobuf.StructB\003\340A\001H\004\210\001\001B\020\n" + + " \001(\0132\027.google.protobuf.StructB\003\340A\001H\004\210\001\001\022Z\n" + + "\024result_parser_config\030\010 \001(\01327.google.cloud.aiplatf" + + "orm.v1beta1.EvaluationParserConfigB\003\340A\001B\020\n" + "\016rubrics_sourceB\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instructionB\031\n" + "\027_judge_autorater_configB\024\n" - + "\022_additional_config\"\251\001\n" + + "\022_additional_config\"X\n" + + "\027", + "CustomCodeExecutionSpec\022%\n" + + "\023evaluation_function\030\001 \001(\tB\003\340A\002H\000\210\001\001B\026\n" + + "\024_evaluation_function\"\251\001\n" + "\017ExactMatchInput\022I\n" + "\013metric_spec\030\001" + " \001(\0132/.google.cloud.aiplatform.v1beta1.ExactMatchSpecB\003\340A\002\022K\n" - + "\tinstances\030\002" - + " \003(\01323.google.cloud.aiplatform.v1beta1.ExactMatchInstanceB\003\340A\002\"l\n" + + "\tinstances\030\002 \003(\013" + + "23.google.cloud.aiplatform.v1beta1.ExactMatchInstanceB\003\340A\002\"l\n" + "\022ExactMatchInstance\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" @@ -998,16 +1240,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_reference\"\020\n" + "\016ExactMatchSpec\"s\n" + "\021ExactMatchResults\022^\n" - + "\031exact_match_metric_values\030\001" - + " \003(\01326.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueB\003\340A\003\":\n" + + "\031exact_match_metric_values\030\001 \003" + + "(\01326.google.cloud.aiplatform.v1beta1.ExactMatchMetricValueB\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" + "\tBleuInput\022C\n" - + "\013metric_spec\030\001" - + " \001(\0132).google.cloud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n" - + "\tinstances\030\002 \003(\0132-.g" - + "oogle.cloud.aiplatform.v1beta1.BleuInstanceB\003\340A\002\"f\n" + + "\013metric_spec\030\001 \001(\0132)" + + ".google.cloud.aiplatform.v1beta1.BleuSpecB\003\340A\002\022E\n" + + "\tinstances\030\002" + + " \003(\0132-.google.cloud.aiplatform.v1beta1.BleuInstanceB\003\340A\002\"f\n" + "\014BleuInstance\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" @@ -1016,16 +1258,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010BleuSpec\022 \n" + "\023use_effective_order\030\001 \001(\010B\003\340A\001\"`\n" + "\013BleuResults\022Q\n" - + "\022bleu_metric_values\030\001 \003(" - + "\01320.google.cloud.aiplatform.v1beta1.BleuMetricValueB\003\340A\003\"4\n" + + "\022bleu_metric_values\030\001 \003(\01320.google." + + "cloud.aiplatform.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\n" + "RougeInput\022D\n" + "\013metric_spec\030\001" + " \001(\0132*.google.cloud.aiplatform.v1beta1.RougeSpecB\003\340A\002\022F\n" - + "\tinstances\030\002" - + " \003(\0132..google.cloud.aiplatform.v1beta1.RougeInstanceB\003\340A\002\"g\n\r" + + "\tinstances\030\002 " + + "\003(\0132..google.cloud.aiplatform.v1beta1.RougeInstanceB\003\340A\002\"g\n\r" + "RougeInstance\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" @@ -1036,16 +1278,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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" + + "\023rouge_metric_values\030\001" + + " \003(\01321.google.cloud.aiplatform.v1beta1.RougeMetricValueB\003\340A\003\"5\n" + "\020RougeMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + + "\006_score\">\n" + + "\031CustomCodeExecutionResult\022\027\n" + + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\245\001\n" + "\016CoherenceInput\022H\n" - + "\013metric_spec\030\001" - + " \001(\0132..google.cloud.aiplatform.v1beta1.CoherenceSpecB\003\340A\002\022I\n" - + "\010instance\030\002" - + " \001(\01322.google.cloud.aiplatform.v1beta1.CoherenceInstanceB\003\340A\002\"@\n" + + "\013metric_spec\030\001 \001(\0132..go" + + "ogle.cloud.aiplatform.v1beta1.CoherenceSpecB\003\340A\002\022I\n" + + "\010instance\030\002 \001(\01322.google.clou" + + "d.aiplatform.v1beta1.CoherenceInstanceB\003\340A\002\"@\n" + "\021CoherenceInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n" + "\013_prediction\"%\n\r" @@ -1058,8 +1303,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\237\001\n" + "\014FluencyInput\022F\n" - + "\013metric_spec\030\001" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.FluencySpecB\003\340A\002\022G\n" + + "\013metric_spec\030\001 \001(\0132,.google" + + ".cloud.aiplatform.v1beta1.FluencySpecB\003\340A\002\022G\n" + "\010instance\030\002" + " \001(\01320.google.cloud.aiplatform.v1beta1.FluencyInstanceB\003\340A\002\">\n" + "\017FluencyInstance\022\034\n\n" @@ -1074,10 +1319,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\234\001\n" + "\013SafetyInput\022E\n" - + "\013metric_spec\030\001 " - + "\001(\0132+.google.cloud.aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n" - + "\010instance\030\002 \001(\0132/.google" - + ".cloud.aiplatform.v1beta1.SafetyInstanceB\003\340A\002\"=\n" + + "\013metric_spec\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.SafetySpecB\003\340A\002\022F\n" + + "\010instance\030\002" + + " \001(\0132/.google.cloud.aiplatform.v1beta1.SafetyInstanceB\003\340A\002\"=\n" + "\016SafetyInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001B\r\n" + "\013_prediction\"\"\n\n" @@ -1090,10 +1335,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\256\001\n" + "\021GroundednessInput\022K\n" - + "\013metric_spec\030\001 \001(\01321.google.c" - + "loud.aiplatform.v1beta1.GroundednessSpecB\003\340A\002\022L\n" - + "\010instance\030\002 \001(\01325.google.cloud.a" - + "iplatform.v1beta1.GroundednessInstanceB\003\340A\002\"j\n" + + "\013metric_spec\030\001 \001" + + "(\01321.google.cloud.aiplatform.v1beta1.GroundednessSpecB\003\340A\002\022L\n" + + "\010instance\030\002 \001(\01325.g" + + "oogle.cloud.aiplatform.v1beta1.GroundednessInstanceB\003\340A\002\"j\n" + "\024GroundednessInstance\022\034\n\n" + "prediction\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" @@ -1108,10 +1353,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\253\001\n" + "\020FulfillmentInput\022J\n" - + "\013metric_spec\030\001 " - + "\001(\01320.google.cloud.aiplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K\n" - + "\010instance\030\002 \001(\01324.g" - + "oogle.cloud.aiplatform.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" + + "\013metric_spec\030\001" + + " \001(\01320.google.cloud.aiplatform.v1beta1.FulfillmentSpecB\003\340A\002\022K\n" + + "\010instance\030\002" + + " \001(\01324.google.cloud.aiplatform.v1beta1.FulfillmentInstanceB\003\340A\002\"q\n" + "\023FulfillmentInstance\022\034\n\n" + "prediction\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" @@ -1126,18 +1371,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\306\001\n" + "\031SummarizationQualityInput\022S\n" - + "\013metric_spec\030\001 \001(\01329.google.c" - + "loud.aiplatform.v1beta1.SummarizationQualitySpecB\003\340A\002\022T\n" - + "\010instance\030\002 \001(\0132=.google" - + ".cloud.aiplatform.v1beta1.SummarizationQualityInstanceB\003\340A\002\"\314\001\n" + + "\013metric_spec\030\001 \001" + + "(\01329.google.cloud.aiplatform.v1beta1.SummarizationQualitySpecB\003\340A\002\022T\n" + + "\010instance\030\002" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.SummarizationQualityInstanceB\003\340A\002\"\314\001\n" + "\034SummarizationQualityInstance\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\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_predictionB\014\n\n" - + "_referenceB\n" + + "\013_predictionB\014\n" + "\n" + + "_referenceB\n\n" + "\010_contextB\016\n" + "\014_instruction\"L\n" + "\030SummarizationQualitySpec\022\032\n\r" @@ -1150,10 +1395,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!PairwiseSummarizationQualityInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.cloud.aipl" - + "atform.v1beta1.PairwiseSummarizationQualitySpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E.google." - + "cloud.aiplatform.v1beta1.PairwiseSummarizationQualityInstanceB\003\340A\002\"\223\002\n" + + "\013metric_spec\030\001 \001(\0132A.goog" + + "le.cloud.aiplatform.v1beta1.PairwiseSummarizationQualitySpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google.cloud.aiplatform.v1beta1.Pa" + + "irwiseSummarizationQualityInstanceB\003\340A\002\"\223\002\n" + "$PairwiseSummarizationQualityInstance\022\034\n\n" + "prediction\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" @@ -1169,16 +1414,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\272\001\n" + "\"PairwiseSummarizationQualityResult\022M\n" - + "\017pairwise_choice\030\001" - + " \001(\0162/.google.cloud.aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\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\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" + "\013_confidence\"\322\001\n" + "\035SummarizationHelpfulnessInput\022W\n" - + "\013metric_spec\030\001 \001(\0132=.goo" - + "gle.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpecB\003\340A\002\022X\n" - + "\010instance\030\002 \001(\0132A.google.cloud.aiplatform.v1beta1.Summa", - "rizationHelpfulnessInstanceB\003\340A\002\"\320\001\n" + + "\013metric_spec\030\001" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.SummarizationHelpfulnessSpecB\003\340A\002\022X\n" + + "\010instance\030\002 \001(\0132A.google.cloud.aiplatform." + + "v1beta1.SummarizationHelpfulnessInstanceB\003\340A\002\"\320\001\n" + " SummarizationHelpfulnessInstance\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\001H\001\210\001\001\022\031\n" @@ -1198,15 +1443,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\314\001\n" + "\033SummarizationVerbosityInput\022U\n" - + "\013metric_spec\030\001 \001(\0132" - + ";.google.cloud.aiplatform.v1beta1.SummarizationVerbositySpecB\003\340A\002\022V\n" - + "\010instance\030\002 " - + "\001(\0132?.google.cloud.aiplatform.v1beta1.SummarizationVerbosityInstanceB\003\340A\002\"\316\001\n" + + "\013metric_spec\030\001 \001(\0132;.google.cloud.aiplatform.v" + + "1beta1.SummarizationVerbositySpecB\003\340A\002\022V\n" + + "\010instance\030\002 \001(\0132?.google.cloud.aiplatfo" + + "rm.v1beta1.SummarizationVerbosityInstanceB\003\340A\002\"\316\001\n" + "\036SummarizationVerbosityInstance\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\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" + + "\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" @@ -1221,10 +1467,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\322\001\n" + "\035QuestionAnsweringQualityInput\022W\n" - + "\013metric_spec\030\001 \001(\0132=.g" - + "oogle.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpecB\003\340A\002\022X\n" - + "\010instance\030\002 \001" - + "(\0132A.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualityInstanceB\003\340A\002\"\320\001\n" + + "\013metric_spec\030\001" + + " \001(\0132=.google.cloud.aiplatform.v1beta1.QuestionAnsweringQualitySpecB\003\340A\002\022X\n" + + "\010instance\030\002 \001(\0132A.google.cloud.aiplatfor" + + "m.v1beta1.QuestionAnsweringQualityInstanceB\003\340A\002\"\320\001\n" + " QuestionAnsweringQualityInstance\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\001H\001\210\001\001\022\031\n" @@ -1234,8 +1480,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "_referenceB\n\n" + "\010_contextB\016\n" + "\014_instruction\"P\n" - + "\034QuestionAnsweringQualitySpec\022\032\n" - + "\r" + + "\034QuestionAnsweringQualitySpec\022\032\n\r" + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\212\001\n" + "\036QuestionAnsweringQualityResult\022\027\n" @@ -1245,10 +1490,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\352\001\n" + "%PairwiseQuestionAnsweringQualityInput\022_\n" - + "\013metric_spec\030\001 \001(\0132E.google.cloud.aiplatform.v1" - + "beta1.PairwiseQuestionAnsweringQualitySpecB\003\340A\002\022`\n" - + "\010instance\030\002 \001(\0132I.google.cloud" - + ".aiplatform.v1beta1.PairwiseQuestionAnsweringQualityInstanceB\003\340A\002\"\227\002\n" + + "\013metric_spec\030\001 \001(\0132E.google.cloud." + + "aiplatform.v1beta1.PairwiseQuestionAnsweringQualitySpecB\003\340A\002\022`\n" + + "\010instance\030\002 \001(\0132I.google.cloud.aiplatform.v1beta1.Pairwis" + + "eQuestionAnsweringQualityInstanceB\003\340A\002\"\227\002\n" + "(PairwiseQuestionAnsweringQualityInstance\022\034\n\n" + "prediction\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" @@ -1264,16 +1509,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "use_reference\030\001 \001(\010B\003\340A\001\022\024\n" + "\007version\030\002 \001(\005B\003\340A\001\"\276\001\n" + "&PairwiseQuestionAnsweringQualityResult\022M\n" - + "\017pairwise_choice\030\001 \001(\0162/.google.cloud" - + ".aiplatform.v1beta1.PairwiseChoiceB\003\340A\003\022\030\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\022\034\n\n" + "confidence\030\003 \001(\002B\003\340A\003H\000\210\001\001B\r\n" + "\013_confidence\"\330\001\n" + "\037QuestionAnsweringRelevanceInput\022Y\n" - + "\013metric_spec\030\001" - + " \001(\0132?.google.cloud.aiplatform.v1beta1.QuestionAnsweringRelevanceSpecB\003\340A\002\022Z\n" - + "\010instance\030\002 \001(\0132C.google.cloud.aiplatfor" - + "m.v1beta1.QuestionAnsweringRelevanceInstanceB\003\340A\002\"\322\001\n" + + "\013metric_spec\030\001 \001(\0132?.google.cloud.aipl" + + "atform.v1beta1.QuestionAnsweringRelevanceSpecB\003\340A\002\022Z\n" + + "\010instance\030\002 \001(\0132C.google.cl" + + "oud.aiplatform.v1beta1.QuestionAnsweringRelevanceInstanceB\003\340A\002\"\322\001\n" + "\"QuestionAnsweringRelevanceInstance\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\001H\001\210\001\001\022\031\n" @@ -1293,10 +1538,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\336\001\n" + "!QuestionAnsweringHelpfulnessInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.cl" - + "oud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E" - + ".google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessInstanceB\003\340A\002\"\324\001\n" + + "\013metric_spec\030\001 \001(" + + "\0132A.google.cloud.aiplatform.v1beta1.QuestionAnsweringHelpfulnessSpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google.cloud.aiplatform.v1" + + "beta1.QuestionAnsweringHelpfulnessInstanceB\003\340A\002\"\324\001\n" + "$QuestionAnsweringHelpfulnessInstance\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\001H\001\210\001\001\022\031\n" @@ -1313,13 +1558,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\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\n" + "confidence\030\003 \001(\002B\003\340A\003H\001\210\001\001B\010\n" - + "\006_scoreB\r\n" + + "\006_scoreB\r" + + "\n" + "\013_confidence\"\336\001\n" + "!QuestionAnsweringCorrectnessInput\022[\n" - + "\013metric_spec\030\001 \001(\0132A.google.cloud.aipla" - + "tform.v1beta1.QuestionAnsweringCorrectnessSpecB\003\340A\002\022\\\n" - + "\010instance\030\002 \001(\0132E.google.c" - + "loud.aiplatform.v1beta1.QuestionAnsweringCorrectnessInstanceB\003\340A\002\"\324\001\n" + + "\013metric_spec\030\001 \001(\0132A.googl" + + "e.cloud.aiplatform.v1beta1.QuestionAnsweringCorrectnessSpecB\003\340A\002\022\\\n" + + "\010instance\030\002 \001(\0132E.google.cloud.aiplatform.v1beta1.Que" + + "stionAnsweringCorrectnessInstanceB\003\340A\002\"\324\001\n" + "$QuestionAnsweringCorrectnessInstance\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\001H\001\210\001\001\022\031\n" @@ -1339,20 +1585,20 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006_scoreB\r\n" + "\013_confidence\"\267\001\n" + "\024PointwiseMetricInput\022N\n" - + "\013metric_spec\030\001 \001(\01324." - + "google.cloud.aiplatform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n" - + "\010instance\030\002 \001(\01328.goo" - + "gle.cloud.aiplatform.v1beta1.PointwiseMetricInstanceB\003\340A\002\"\213\001\n" + + "\013metric_spec\030\001" + + " \001(\01324.google.cloud.aiplatform.v1beta1.PointwiseMetricSpecB\003\340A\002\022O\n" + + "\010instance\030\002" + + " \001(\01328.google.cloud.aiplatform.v1beta1.PointwiseMetricInstanceB\003\340A\002\"\213\001\n" + "\027PointwiseMetricInstance\022\027\n\r" + "json_instance\030\001 \001(\tH\000\022K\n" - + "\024content_map_instance\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + + "\024content_map_instance\030\002 \001(\0132+.goog" + + "le.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + "\010instance\"\374\001\n" + "\023PointwiseMetricSpec\022(\n" + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001\022$\n" + "\022system_instruction\030\002 \001(\tB\003\340A\001H\001\210\001\001\022c\n" - + "\033custom_output_format_config\030\003 \001(\01329.google.cloud.aipl" - + "atform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + + "\033custom_output_format_config\030\003 \001(\01329.goog" + + "le.cloud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instruction\"[\n" + "\030CustomOutputFormatConfig\022 \n" @@ -1360,47 +1606,47 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\033custom_output_format_config\"\237\001\n" + "\025PointwiseMetricResult\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\022I\n\r" + + "\013explanation\030\002 \001(\tB\003\340A\003\022I\n" + + "\r" + "custom_output\030\003" + " \001(\0132-.google.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003B\010\n" + "\006_score\"g\n" + "\014CustomOutput\022F\n" - + "\013raw_outputs\030\001" - + " \001(\0132*.google.cloud.aiplatform.v1beta1.RawOutputB\003\340A\003H\000B\017\n" - + "\r" + + "\013raw_outputs\030\001 \001(\0132" + + "*.google.cloud.aiplatform.v1beta1.RawOutputB\003\340A\003H\000B\017\n\r" + "custom_output\"$\n" + "\tRawOutput\022\027\n\n" + "raw_output\030\001 \003(\tB\003\340A\003\"\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.PairwiseMetricInstanceB\003\340A\002\"\212\001\n" + + "\013metric_spec\030\001 \001(\01323.google." + + "cloud.aiplatform.v1beta1.PairwiseMetricSpecB\003\340A\002\022N\n" + + "\010instance\030\002 \001(\01327.google.clou" + + "d.aiplatform.v1beta1.PairwiseMetricInstanceB\003\340A\002\"\212\001\n" + "\026PairwiseMetricInstance\022\027\n\r" + "json_instance\030\001 \001(\tH\000\022K\n" - + "\024content_map_instance\030\002 \001(\0132+." - + "google.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + + "\024content_map_instance\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.ContentMapH\000B\n\n" + "\010instance\"\322\002\n" + "\022PairwiseMetricSpec\022(\n" + "\026metric_prompt_template\030\001 \001(\tB\003\340A\002H\000\210\001\001\022*\n" + "\035candidate_response_field_name\030\002 \001(\tB\003\340A\001\022)\n" + "\034baseline_response_field_name\030\003 \001(\tB\003\340A\001\022$\n" + "\022system_instruction\030\004 \001(\tB\003\340A\001H\001\210\001\001\022c\n" - + "\033custom_output_format_config\030\005 " - + "\001(\01329.google.cloud.aiplatform.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + + "\033custom_output_format_config\030\005 \001(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.CustomOutputFormatConfigB\003\340A\001B\031\n" + "\027_metric_prompt_templateB\025\n" + "\023_system_instruction\"\312\001\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\022I\n\r" - + "custom_output\030\003 \001(\0132-.google." - + "cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003\"\262\001\n" + + "custom_output\030\003 " + + "\001(\0132-.google.cloud.aiplatform.v1beta1.CustomOutputB\003\340A\003\"\262\001\n" + "\022ToolCallValidInput\022L\n" + "\013metric_spec\030\001" + " \001(\01322.google.cloud.aiplatform.v1beta1.ToolCallValidSpecB\003\340A\002\022N\n" - + "\tinstances\030\002 \003" - + "(\01326.google.cloud.aiplatform.v1beta1.ToolCallValidInstanceB\003\340A\002\"\023\n" + + "\tinstances\030\002" + + " \003(\01326.google.cloud.aiplatform.v1beta1.ToolCallValidInstanceB\003\340A\002\"\023\n" + "\021ToolCallValidSpec\"o\n" + "\025ToolCallValidInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1408,16 +1654,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"}\n" + "\024ToolCallValidResults\022e\n" - + "\035tool_call_valid_metric_values\030\001 \003(\01329.google.cloud.aipl" - + "atform.v1beta1.ToolCallValidMetricValueB\003\340A\003\"=\n" + + "\035tool_call_valid_metric_values\030\001 \003(\01329.goog" + + "le.cloud.aiplatform.v1beta1.ToolCallValidMetricValueB\003\340A\003\"=\n" + "\030ToolCallValidMetricValue\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" - + "\013metric_spec\030\001 \001(\01322.google" - + ".cloud.aiplatform.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n" - + "\tinstances\030\002 \003(\01326.google.clo" - + "ud.aiplatform.v1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n" + + "\013metric_spec\030\001" + + " \001(\01322.google.cloud.aiplatform.v1beta1.ToolNameMatchSpecB\003\340A\002\022N\n" + + "\tinstances\030\002 \003(\013" + + "26.google.cloud.aiplatform.v1beta1.ToolNameMatchInstanceB\003\340A\002\"\023\n" + "\021ToolNameMatchSpec\"o\n" + "\025ToolNameMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1425,16 +1671,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"}\n" + "\024ToolNameMatchResults\022e\n" - + "\035tool_name_match_metric_values\030\001" - + " \003(\01329.google.cloud.aiplatform.v1beta1.ToolNameMatchMetricValueB\003\340A\003\"=\n" + + "\035tool_name_match_metric_values\030\001 \003(\01329.google.cloud.aiplat" + + "form.v1beta1.ToolNameMatchMetricValueB\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" + "\032ToolParameterKeyMatchInput\022T\n" - + "\013metric_spec\030\001 \001(\0132:.google.cloud." - + "aiplatform.v1beta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n" - + "\tinstances\030\002 \003(\0132>.google.cl" - + "oud.aiplatform.v1beta1.ToolParameterKeyMatchInstanceB\003\340A\002\"\033\n" + + "\013metric_spec\030\001 \001(\0132:." + + "google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchSpecB\003\340A\002\022V\n" + + "\tinstances\030\002 \003(" + + "\0132>.google.cloud.aiplatform.v1beta1.ToolParameterKeyMatchInstanceB\003\340A\002\"\033\n" + "\031ToolParameterKeyMatchSpec\"w\n" + "\035ToolParameterKeyMatchInstance\022\034\n\n" + "prediction\030\001 \001(\tB\003\340A\002H\000\210\001\001\022\033\n" @@ -1442,17 +1688,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"\226\001\n" + "\034ToolParameterKeyMatchResults\022v\n" - + "&tool_parameter_key_match_metric_values\030\001" - + " \003(\0132A.google.cloud.aiplatform.v1bet" - + "a1.ToolParameterKeyMatchMetricValueB\003\340A\003\"E\n" + + "&tool_parameter_key_match_metric_values\030\001 \003(\0132A.google.cloud.aip" + + "latform.v1beta1.ToolParameterKeyMatchMetricValueB\003\340A\003\"E\n" + " ToolParameterKeyMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\307\001\n" + "\031ToolParameterKVMatchInput\022S\n" - + "\013metric_spec\030\001 \001" - + "(\01329.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchSpecB\003\340A\002\022U\n" - + "\tinstances\030\002" - + " \003(\0132=.google.cloud.aiplatform.v1beta1.ToolParameterKVMatchInstanceB\003\340A\002\"@\n" + + "\013metric_spec\030\001 \001(\01329.google.cloud.aiplatfor" + + "m.v1beta1.ToolParameterKVMatchSpecB\003\340A\002\022U\n" + + "\tinstances\030\002 \003(\0132=.google.cloud.aiplat" + + "form.v1beta1.ToolParameterKVMatchInstanceB\003\340A\002\"@\n" + "\030ToolParameterKVMatchSpec\022$\n" + "\027use_strict_string_match\030\001 \001(\010B\003\340A\001\"v\n" + "\034ToolParameterKVMatchInstance\022\034\n\n" @@ -1461,19 +1706,19 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013_predictionB\014\n\n" + "_reference\"\223\001\n" + "\033ToolParameterKVMatchResults\022t\n" - + "%tool_parameter_kv_match_metric_values\030\001 \003(\0132@.google.cloud.aiplat" - + "form.v1beta1.ToolParameterKVMatchMetricValueB\003\340A\003\"D\n" + + "%tool_parameter_kv_match_metric_values\030\001 \003(\0132@.google" + + ".cloud.aiplatform.v1beta1.ToolParameterKVMatchMetricValueB\003\340A\003\"D\n" + "\037ToolParameterKVMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\231\001\n\n" + "CometInput\022D\n" - + "\013metric_spec\030\001 \001(\0132*.go" - + "ogle.cloud.aiplatform.v1beta1.CometSpecB\003\340A\002\022E\n" - + "\010instance\030\002" - + " \001(\0132..google.cloud.aiplatform.v1beta1.CometInstanceB\003\340A\002\"\354\001\n" + + "\013metric_spec\030\001" + + " \001(\0132*.google.cloud.aiplatform.v1beta1.CometSpecB\003\340A\002\022E\n" + + "\010instance\030\002 \001(\0132..go" + + "ogle.cloud.aiplatform.v1beta1.CometInstanceB\003\340A\002\"\354\001\n" + "\tCometSpec\022R\n" - + "\007version\030\001 \001(\01627.google.clou" - + "d.aiplatform.v1beta1.CometSpec.CometVersionB\003\340A\002H\000\210\001\001\022\034\n" + + "\007version\030\001 \001(\0162" + + "7.google.cloud.aiplatform.v1beta1.CometSpec.CometVersionB\003\340A\002H\000\210\001\001\022\034\n" + "\017source_language\030\002 \001(\tB\003\340A\001\022\034\n" + "\017target_language\030\003 \001(\tB\003\340A\001\"C\n" + "\014CometVersion\022\035\n" @@ -1491,13 +1736,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\237\001\n" + "\014MetricxInput\022F\n" - + "\013metric_spec\030\001" - + " \001(\0132,.google.cloud.aiplatform.v1beta1.MetricxSpecB\003\340A\002\022G\n" - + "\010instance\030\002" - + " \001(\01320.google.cloud.aiplatform.v1beta1.MetricxInstanceB\003\340A\002\"\240\002\n" + + "\013metric_spec\030\001 \001(\0132," + + ".google.cloud.aiplatform.v1beta1.MetricxSpecB\003\340A\002\022G\n" + + "\010instance\030\002 \001(\01320.google.clo" + + "ud.aiplatform.v1beta1.MetricxInstanceB\003\340A\002\"\240\002\n" + "\013MetricxSpec\022V\n" - + "\007version\030\001 \001(\0162;.google.cloud.ai" - + "platform.v1beta1.MetricxSpec.MetricxVersionB\003\340A\002H\000\210\001\001\022\034\n" + + "\007version\030\001 \001(\0162;.go" + + "ogle.cloud.aiplatform.v1beta1.MetricxSpec.MetricxVersionB\003\340A\002H\000\210\001\001\022\034\n" + "\017source_language\030\002 \001(\tB\003\340A\001\022\034\n" + "\017target_language\030\003 \001(\tB\003\340A\001\"q\n" + "\016MetricxVersion\022\037\n" @@ -1509,7 +1754,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\017MetricxInstance\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\001H\001\210\001\001\022\030\n" - + "\006source\030\003 \001(\tB\003\340A\001H\002\210\001\001B\r\n" + + "\006source\030\003 \001(\tB\003\340A\001H\002\210\001\001B\r" + + "\n" + "\013_predictionB\014\n\n" + "_referenceB\t\n" + "\007_source\"2\n\r" @@ -1517,178 +1763,199 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\347\001\n" + "$RubricBasedInstructionFollowingInput\022^\n" - + "\013metric_spec\030\001 \001(\0132D.google.cloud.aipla" - + "tform.v1beta1.RubricBasedInstructionFollowingSpecB\003\340A\002\022_\n" - + "\010instance\030\002 \001(\0132H.googl" - + "e.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingInstanceB\003\340A\002\"S\n" + + "\013metric_spec\030\001 \001(\0132D.googl" + + "e.cloud.aiplatform.v1beta1.RubricBasedInstructionFollowingSpecB\003\340A\002\022_\n" + + "\010instance\030\002 \001(\0132H.google.cloud.aiplatform.v1beta1." + + "RubricBasedInstructionFollowingInstanceB\003\340A\002\"S\n" + "\'RubricBasedInstructionFollowingInstance\022\034\n\r" + "json_instance\030\001 \001(\tB\003\340A\002H\000B\n\n" + "\010instance\"%\n" + "#RubricBasedInstructionFollowingSpec\"\247\001\n" + "%RubricBasedInstructionFollowingResult\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001\022[\n" - + "\027rubric_critique_results\030\002" - + " \003(\01325.google.cloud.aiplatform.v1beta1.RubricCritiqueResultB\003\340A\003B\010\n" + + "\027rubric_critique_results\030\002 \003(\01325.google.cl" + + "oud.aiplatform.v1beta1.RubricCritiqueResultB\003\340A\003B\010\n" + "\006_score\"A\n" + "\024RubricCritiqueResult\022\023\n" + "\006rubric\030\001 \001(\tB\003\340A\003\022\024\n" + "\007verdict\030\002 \001(\010B\003\340A\003\"\307\001\n" + "\031TrajectoryExactMatchInput\022S\n" - + "\013metric_spec\030\001 " - + "\001(\01329.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchSpecB\003\340A\002\022U\n" - + "\tinstances\030\002" - + " \003(\0132=.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchInstanceB\003\340A\002\"\032\n" + + "\013metric_spec\030\001 \001(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.TrajectoryExactMatchSpecB\003\340A\002\022U\n" + + "\tinstances\030\002 \003(\0132=.google.cloud.aipla" + + "tform.v1beta1.TrajectoryExactMatchInstanceB\003\340A\002\"\032\n" + "\030TrajectoryExactMatchSpec\"\372\001\n" + "\034TrajectoryExactMatchInstance\022S\n" - + "\024predicted_trajectory\030\001" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001 \001(\0132+.google.cloud.aiplat", + "form.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002 \001(\0132+.google.cloud.a" + + "iplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\222\001\n" + "\033TrajectoryExactMatchResults\022s\n" - + "$trajectory_exact_match_metric_values\030\001 \003(\0132@.goog" - + "le.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueB\003\340A\003\"D\n" + + "$trajectory_exact_match_metric_values\030\001" + + " \003(\0132@.google.cloud.aiplatform.v1beta1.TrajectoryExactMatchMetricValueB\003\340A\003\"D\n" + "\037TrajectoryExactMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\315\001\n" + "\033TrajectoryInOrderMatchInput\022U\n" - + "\013metric_spec\030\001 \001(\0132;.google.clo" - + "ud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecB\003\340A\002\022W\n" - + "\tinstances\030\002 \003(\0132?.googl" - + "e.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceB\003\340A\002\"\034\n" + + "\013metric_spec\030\001 \001(\013" + + "2;.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchSpecB\003\340A\002\022W\n" + + "\tinstances\030\002" + + " \003(\0132?.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchInstanceB\003\340A\002\"\034\n" + "\032TrajectoryInOrderMatchSpec\"\374\001\n" + "\036TrajectoryInOrderMatchInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132+." - + "google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001" - + "(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\231\001\n" + "\035TrajectoryInOrderMatchResults\022x\n" - + "\'trajectory_in_order_match_metric_values\030\001 \003(\0132B.google." - + "cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueB\003\340A\003\"F\n" + + "\'trajectory_in_order_match_metric_values\030\001 " + + "\003(\0132B.google.cloud.aiplatform.v1beta1.TrajectoryInOrderMatchMetricValueB\003\340A\003\"F\n" + "!TrajectoryInOrderMatchMetricValue\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.c" - + "loud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecB\003\340A\002\022X\n" - + "\tinstances\030\002 \003(\0132@.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchInstanceB\003\340A\002\"\035\n" + + "\013metric_spec\030\001 \001" + + "(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchSpecB\003\340A\002\022X\n" + + "\tinstances\030\002 \003(\0132@.google.cloud.aiplatform.v1bet" + + "a1.TrajectoryAnyOrderMatchInstanceB\003\340A\002\"\035\n" + "\033TrajectoryAnyOrderMatchSpec\"\375\001\n" + "\037TrajectoryAnyOrderMatchInstance\022S\n" - + "\024predicted_trajectory\030\001 " - + "\001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + "\024reference_trajectory\030\002" + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\234\001\n" + "\036TrajectoryAnyOrderMatchResults\022z\n" - + "(trajectory_any_order_match_metric_values\030\001 \003(\0132C" - + ".google.cloud.aiplatform.v1beta1.TrajectoryAnyOrderMatchMetricValueB\003\340A\003\"G\n" + + "(trajectory_any_order_match_metric_values\030\001" + + " \003(\0132C.google.cloud.aiplatform.v1" + + "beta1.TrajectoryAnyOrderMatchMetricValueB\003\340A\003\"G\n" + "\"TrajectoryAnyOrderMatchMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\304\001\n" + "\030TrajectoryPrecisionInput\022R\n" - + "\013metric_spec\030\001 \001(\01328.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecB\003\340A\002\022T\n" - + "\tinstances\030\002 \003(\0132<." - + "google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceB\003\340A\002\"\031\n" + + "\013metric_spec\030\001" + + " \001(\01328.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionSpecB\003\340A\002\022T\n" + + "\tinstances\030\002" + + " \003(\0132<.google.cloud.aiplatform.v1beta1.TrajectoryPrecisionInstanceB\003\340A\002\"\031\n" + "\027TrajectoryPrecisionSpec\"\371\001\n" + "\033TrajectoryPrecisionInstance\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.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + + "\024predicted_trajectory\030\001" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" + "\025_predicted_trajectoryB\027\n" + "\025_reference_trajectory\"\216\001\n" + "\032TrajectoryPrecisionResults\022p\n" - + "\"trajectory_precision_metric_values\030\001 \003(\0132?.google.cloud.aiplat" - + "form.v1beta1.TrajectoryPrecisionMetricValueB\003\340A\003\"C\n" + + "\"trajectory_precision_metric_values\030\001 \003(\0132?.google" + + ".cloud.aiplatform.v1beta1.TrajectoryPrecisionMetricValueB\003\340A\003\"C\n" + "\036TrajectoryPrecisionMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\273\001\n" + "\025TrajectoryRecallInput\022O\n" + "\013metric_spec\030\001" + " \001(\01325.google.cloud.aiplatform.v1beta1.TrajectoryRecallSpecB\003\340A\002\022Q\n" - + "\tinstances\030\002 " - + "\003(\01329.google.cloud.aiplatform.v1beta1.TrajectoryRecallInstanceB\003\340A\002\"\026\n" + + "\tinstances\030\002 \003(\01329.google.cloud.aiplatfo" + + "rm.v1beta1.TrajectoryRecallInstanceB\003\340A\002\"\026\n" + "\024TrajectoryRecallSpec\"\366\001\n" + "\030TrajectoryRecallInstance\022S\n" - + "\024predicted_trajectory\030\001 \001(\0132+.google." - + "cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" - + "\024reference_trajectory\030\002 \001(\0132+.go" - + "ogle.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\027\n" - + "\025_predicted_trajectoryB\027\n" + + "\024predicted_trajectory\030\001 " + + "\001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001\022S\n" + + "\024reference_trajectory\030\002" + + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\001\210\001\001B\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.TrajectoryRecallMetricValueB\003\340A\003\"@\n" + + "\037trajectory_recall_metric_values\030\001 \003(\0132<.google.cloud.ai" + + "platform.v1beta1.TrajectoryRecallMetricValueB\003\340A\003\"@\n" + "\033TrajectoryRecallMetricValue\022\027\n" + "\005score\030\001 \001(\002B\003\340A\003H\000\210\001\001B\010\n" + "\006_score\"\320\001\n" + "\034TrajectorySingleToolUseInput\022V\n" - + "\013metric_spec\030\001 \001(\0132<.g" - + "oogle.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecB\003\340A\002\022X\n" - + "\tinstances\030\002 \003" - + "(\0132@.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseInstanceB\003\340A\002\"H\n" + + "\013metric_spec\030\001" + + " \001(\0132<.google.cloud.aiplatform.v1beta1.TrajectorySingleToolUseSpecB\003\340A\002\022X\n" + + "\tinstances\030\002 \003(\0132@.google.cloud.aiplatfor" + + "m.v1beta1.TrajectorySingleToolUseInstanceB\003\340A\002\"H\n" + "\033TrajectorySingleToolUseSpec\022\033\n" + "\ttool_name\030\001 \001(\tB\003\340A\002H\000\210\001\001B\014\n\n" + "_tool_name\"\217\001\n" + "\037TrajectorySingleToolUseInstance\022S\n" - + "\024predicted_trajectory\030\001" - + " \001(\0132+.google.cloud.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001B\027\n" + + "\024predicted_trajectory\030\001 \001(\0132+.google.clou" + + "d.aiplatform.v1beta1.TrajectoryB\003\340A\002H\000\210\001\001B\027\n" + "\025_predicted_trajectory\"\234\001\n" + "\036TrajectorySingleToolUseResults\022z\n" - + "(trajectory_single_tool_use_metric_values\030\001 \003(\0132C.google.cloud.aiplat" - + "form.v1beta1.TrajectorySingleToolUseMetricValueB\003\340A\003\"G\n" + + "(trajectory_single_tool_use_metric_values\030\001 \003(\0132C.google" + + ".cloud.aiplatform.v1beta1.TrajectorySingleToolUseMetricValueB\003\340A\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\n" + "Trajectory\022B\n\n" - + "tool_calls\030\001 \003(\0132" - + ").google.cloud.aiplatform.v1beta1.ToolCallB\003\340A\002\"b\n" + + "tool_calls\030\001" + + " \003(\0132).google.cloud.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\n" + "tool_input\030\002 \001(\tB\003\340A\001H\001\210\001\001B\014\n\n" + "_tool_nameB\r\n" + "\013_tool_input\"\214\002\n\n" + "ContentMap\022L\n" - + "\006values\030\001 \003(\01327.google.cloud.aiplat" - + "form.v1beta1.ContentMap.ValuesEntryB\003\340A\001\032K\n" + + "\006values\030\001 \003(\01327.google" + + ".cloud.aiplatform.v1beta1.ContentMap.ValuesEntryB\003\340A\001\032K\n" + "\010Contents\022?\n" - + "\010contents\030\001" - + " \003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\032c\n" + + "\010contents\030\001 " + + "\003(\0132(.google.cloud.aiplatform.v1beta1.ContentB\003\340A\001\032c\n" + "\013ValuesEntry\022\013\n" + "\003key\030\001 \001(\t\022C\n" - + "\005value\030\002 \001(\013" - + "24.google.cloud.aiplatform.v1beta1.ContentMap.Contents:\0028\001*W\n" + + "\005value\030\002" + + " \001(\01324.google.cloud.aiplatform.v1beta1.ContentMap.Contents:\0028\001\"\357\001\n" + + "\026EvaluationParserConfig\022x\n" + + "\031custom_code_parser_config\030\002 \001(\0132N.google.cloud.aiplatform." + + "v1beta1.EvaluationParserConfig.CustomCodeParserConfigB\003\340A\001H\000\032Q\n" + + "\026CustomCodeParserConfig\022\"\n" + + "\020parsing_function\030\001 \001(\tB\003\340A\002H\000\210\001\001B\023\n" + + "\021_parsing_functionB\010\n" + + "\006parser\"\221\003\n" + + "\024RubricGenerationSpec\022\027\n" + + "\017prompt_template\030\001 \001(\t\022K\n" + + "\014model_config\030\004 \001(\01320.google.cloud" + + ".aiplatform.v1beta1.AutoraterConfigH\000\210\001\001\022d\n" + + "\023rubric_content_type\030\005 \001(\0162G.google.c" + + "loud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType\022!\n" + + "\024rubric_type_ontology\030\006 \003(\tB\003\340A\001\"y\n" + + "\021RubricContentType\022#\n" + + "\037RUBRIC_CONTENT_TYPE_UNSPECIFIED\020\000\022\014\n" + + "\010PROPERTY\020\001\022\026\n" + + "\022NL_QUESTION_ANSWER\020\002\022\031\n" + + "\025PYTHON_CODE_ASSERTION\020\003B\017\n\r" + + "_model_config*W\n" + "\016PairwiseChoice\022\037\n" + "\033PAIRWISE_CHOICE_UNSPECIFIED\020\000\022\014\n" + "\010BASELINE\020\001\022\r\n" + "\tCANDIDATE\020\002\022\007\n" - + "\003TIE\020\0032\352\004\n" + + "\003TIE\020\0032\377\006\n" + "\021EvaluationService\022\364\001\n" - + "\021EvaluateInstances\0229.google.cloud.aiplatform.v1beta1.EvaluateInstan" - + "cesRequest\032:.google.cloud.aiplatform.v1b" - + "eta1.EvaluateInstancesResponse\"h\202\323\344\223\002b\"<" - + "/v1beta1/{location=projects/*/locations/" - + "*}:evaluateInstances:\001*Z\037\"\032/v1beta1:evaluateInstances:\001*\022\216\002\n" - + "\017EvaluateDataset\0227.google.cloud.aiplatform.v1beta1.EvaluateD" - + "atasetRequest\032\035.google.longrunning.Operation\"\242\001\312A;\n" - + "\027EvaluateDatasetResponse\022 Eva" - + "luateDatasetOperationMetadata\202\323\344\223\002^\":/v1" - + "beta1/{location=projects/*/locations/*}:" - + "evaluateDataset:\001*Z\035\"\030/v1beta1:evaluateD" - + "ataset:\001*\032M\312A\031aiplatform.googleapis.com\322" - + "A.https://www.googleapis.com/auth/cloud-platformB\355\001\n" - + "#com.google.cloud.aiplatform.v1beta1B\026EvaluationServiceProtoP\001ZCclou" - + "d.google.com/go/aiplatform/apiv1beta1/ai" - + "platformpb;aiplatformpb\252\002\037Google.Cloud.A" - + "IPlatform.V1Beta1\312\002\037Google\\Cloud\\AIPlatf" - + "orm\\V1beta1\352\002\"Google::Cloud::AIPlatform:", - ":V1beta1b\006proto3" + + "\021EvaluateInstances\0229.google.cloud.aiplatform.v1b" + + "eta1.EvaluateInstancesRequest\032:.google.cloud.aiplatform.v1beta1.EvaluateInstance" + + "sResponse\"h\202\323\344\223\002b\" + * Request message for EvaluationService.GenerateInstanceRubrics. + * + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest} + */ +@com.google.protobuf.Generated +public final class GenerateInstanceRubricsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + GenerateInstanceRubricsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateInstanceRubricsRequest"); + } + + // Use GenerateInstanceRubricsRequest.newBuilder() to construct. + private GenerateInstanceRubricsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateInstanceRubricsRequest() { + location_ = ""; + contents_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.class, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.Builder.class); + } + + private int bitField0_; + public static final int LOCATION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object location_ = ""; + + /** + * + * + *
            +   * Required. The resource name of the Location to generate rubrics from.
            +   * Format: `projects/{project}/locations/{location}`
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + @java.lang.Override + public java.lang.String getLocation() { + java.lang.Object ref = location_; + 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(); + location_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The resource name of the Location to generate rubrics from.
            +   * Format: `projects/{project}/locations/{location}`
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List contents_; + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getContentsList() { + return contents_; + } + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getContentsOrBuilderList() { + return contents_; + } + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getContentsCount() { + return contents_.size(); + } + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + return contents_.get(index); + } + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index) { + return contents_.get(index); + } + + public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefinedRubricGenerationSpec_; + + /** + * + * + *
            +   * Optional. Specification for using the rubric generation configs of a
            +   * pre-defined metric, e.g. "generic_quality_v1" and
            +   * "instruction_following_v1". Some of the configs may be only used in rubric
            +   * generation and not supporting evaluation, e.g.
            +   * "fully_customized_generic_quality_v1". If this field is set, the
            +   * `rubric_generation_spec` field will be ignored.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the predefinedRubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasPredefinedRubricGenerationSpec() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Specification for using the rubric generation configs of a
            +   * pre-defined metric, e.g. "generic_quality_v1" and
            +   * "instruction_following_v1". Some of the configs may be only used in rubric
            +   * generation and not supporting evaluation, e.g.
            +   * "fully_customized_generic_quality_v1". If this field is set, the
            +   * `rubric_generation_spec` field will be ignored.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The predefinedRubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + getPredefinedRubricGenerationSpec() { + return predefinedRubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance() + : predefinedRubricGenerationSpec_; + } + + /** + * + * + *
            +   * Optional. Specification for using the rubric generation configs of a
            +   * pre-defined metric, e.g. "generic_quality_v1" and
            +   * "instruction_following_v1". Some of the configs may be only used in rubric
            +   * generation and not supporting evaluation, e.g.
            +   * "fully_customized_generic_quality_v1". If this field is set, the
            +   * `rubric_generation_spec` field will be ignored.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedRubricGenerationSpecOrBuilder() { + return predefinedRubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance() + : predefinedRubricGenerationSpec_; + } + + public static final int RUBRIC_GENERATION_SPEC_FIELD_NUMBER = 3; + private com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubricGenerationSpec_; + + /** + * + * + *
            +   * Optional. Specification for how the rubrics should be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasRubricGenerationSpec() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Specification for how the rubrics should be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec() { + return rubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance() + : rubricGenerationSpec_; + } + + /** + * + * + *
            +   * Optional. Specification for how the rubrics should be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder() { + return rubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance() + : rubricGenerationSpec_; + } + + public static final int AGENT_CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agentConfig_; + + /** + * + * + *
            +   * Optional. Agent configuration, required for agent-based rubric generation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + @java.lang.Override + public boolean hasAgentConfig() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. Agent configuration, required for agent-based rubric generation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentConfig() { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + + /** + * + * + *
            +   * Optional. Agent configuration, required for agent-based rubric generation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder() { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, location_); + } + for (int i = 0; i < contents_.size(); i++) { + output.writeMessage(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getRubricGenerationSpec()); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getPredefinedRubricGenerationSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(5, getAgentConfig()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(location_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, location_); + } + for (int i = 0; i < contents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, contents_.get(i)); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(3, getRubricGenerationSpec()); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, getPredefinedRubricGenerationSpec()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getAgentConfig()); + } + 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.GenerateInstanceRubricsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest other = + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) obj; + + if (!getLocation().equals(other.getLocation())) return false; + if (!getContentsList().equals(other.getContentsList())) return false; + if (hasPredefinedRubricGenerationSpec() != other.hasPredefinedRubricGenerationSpec()) + return false; + if (hasPredefinedRubricGenerationSpec()) { + if (!getPredefinedRubricGenerationSpec().equals(other.getPredefinedRubricGenerationSpec())) + return false; + } + if (hasRubricGenerationSpec() != other.hasRubricGenerationSpec()) return false; + if (hasRubricGenerationSpec()) { + if (!getRubricGenerationSpec().equals(other.getRubricGenerationSpec())) return false; + } + if (hasAgentConfig() != other.hasAgentConfig()) return false; + if (hasAgentConfig()) { + if (!getAgentConfig().equals(other.getAgentConfig())) 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) + LOCATION_FIELD_NUMBER; + hash = (53 * hash) + getLocation().hashCode(); + if (getContentsCount() > 0) { + hash = (37 * hash) + CONTENTS_FIELD_NUMBER; + hash = (53 * hash) + getContentsList().hashCode(); + } + if (hasPredefinedRubricGenerationSpec()) { + hash = (37 * hash) + PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getPredefinedRubricGenerationSpec().hashCode(); + } + if (hasRubricGenerationSpec()) { + hash = (37 * hash) + RUBRIC_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getRubricGenerationSpec().hashCode(); + } + if (hasAgentConfig()) { + hash = (37 * hash) + AGENT_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getAgentConfig().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest 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.GenerateInstanceRubricsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest 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.GenerateInstanceRubricsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest 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.GenerateInstanceRubricsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for EvaluationService.GenerateInstanceRubrics.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.class, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentsFieldBuilder(); + internalGetPredefinedRubricGenerationSpecFieldBuilder(); + internalGetRubricGenerationSpecFieldBuilder(); + internalGetAgentConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + location_ = ""; + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + } else { + contents_ = null; + contentsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); + predefinedRubricGenerationSpec_ = null; + if (predefinedRubricGenerationSpecBuilder_ != null) { + predefinedRubricGenerationSpecBuilder_.dispose(); + predefinedRubricGenerationSpecBuilder_ = null; + } + rubricGenerationSpec_ = null; + if (rubricGenerationSpecBuilder_ != null) { + rubricGenerationSpecBuilder_.dispose(); + rubricGenerationSpecBuilder_ = null; + } + agentConfig_ = null; + if (agentConfigBuilder_ != null) { + agentConfigBuilder_.dispose(); + agentConfigBuilder_ = 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_GenerateInstanceRubricsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest build() { + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest result = + new com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest result) { + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.contents_ = contents_; + } else { + result.contents_ = contentsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.location_ = location_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.predefinedRubricGenerationSpec_ = + predefinedRubricGenerationSpecBuilder_ == null + ? predefinedRubricGenerationSpec_ + : predefinedRubricGenerationSpecBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.rubricGenerationSpec_ = + rubricGenerationSpecBuilder_ == null + ? rubricGenerationSpec_ + : rubricGenerationSpecBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.agentConfig_ = + agentConfigBuilder_ == null ? agentConfig_ : agentConfigBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + .getDefaultInstance()) return this; + if (!other.getLocation().isEmpty()) { + location_ = other.location_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (contentsBuilder_ == null) { + if (!other.contents_.isEmpty()) { + if (contents_.isEmpty()) { + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureContentsIsMutable(); + contents_.addAll(other.contents_); + } + onChanged(); + } + } else { + if (!other.contents_.isEmpty()) { + if (contentsBuilder_.isEmpty()) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000002); + contentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetContentsFieldBuilder() + : null; + } else { + contentsBuilder_.addAllMessages(other.contents_); + } + } + } + if (other.hasPredefinedRubricGenerationSpec()) { + mergePredefinedRubricGenerationSpec(other.getPredefinedRubricGenerationSpec()); + } + if (other.hasRubricGenerationSpec()) { + mergeRubricGenerationSpec(other.getRubricGenerationSpec()); + } + if (other.hasAgentConfig()) { + mergeAgentConfig(other.getAgentConfig()); + } + 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: + { + location_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + com.google.cloud.aiplatform.v1beta1.Content m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Content.parser(), extensionRegistry); + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(m); + } else { + contentsBuilder_.addMessage(m); + } + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetRubricGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetPredefinedRubricGenerationSpecFieldBuilder().getBuilder(), + extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 42: + { + input.readMessage( + internalGetAgentConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 location_ = ""; + + /** + * + * + *
            +     * Required. The resource name of the Location to generate rubrics from.
            +     * Format: `projects/{project}/locations/{location}`
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + public java.lang.String getLocation() { + java.lang.Object ref = location_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + location_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The resource name of the Location to generate rubrics from.
            +     * Format: `projects/{project}/locations/{location}`
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + public com.google.protobuf.ByteString getLocationBytes() { + java.lang.Object ref = location_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + location_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The resource name of the Location to generate rubrics from.
            +     * Format: `projects/{project}/locations/{location}`
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The location to set. + * @return This builder for chaining. + */ + public Builder setLocation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The resource name of the Location to generate rubrics from.
            +     * Format: `projects/{project}/locations/{location}`
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearLocation() { + location_ = getDefaultInstance().getLocation(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The resource name of the Location to generate rubrics from.
            +     * Format: `projects/{project}/locations/{location}`
            +     * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for location to set. + * @return This builder for chaining. + */ + public Builder setLocationBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + location_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.util.List contents_ = + java.util.Collections.emptyList(); + + private void ensureContentsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + contents_ = new java.util.ArrayList(contents_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + contentsBuilder_; + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getContentsList() { + if (contentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contents_); + } else { + return contentsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getContentsCount() { + if (contentsBuilder_ == null) { + return contents_.size(); + } else { + return contentsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content getContents(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.set(index, value); + onChanged(); + } else { + contentsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.set(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContents(com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(value); + onChanged(); + } else { + contentsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContents(int index, com.google.cloud.aiplatform.v1beta1.Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(index, value); + onChanged(); + } else { + contentsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContents( + com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addContents( + int index, com.google.cloud.aiplatform.v1beta1.Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllContents( + java.lang.Iterable values) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, contents_); + onChanged(); + } else { + contentsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + contentsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeContents(int index) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.remove(index); + onChanged(); + } else { + contentsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder getContentsBuilder(int index) { + return internalGetContentsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContentsOrBuilderList() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contents_); + } + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder() { + return internalGetContentsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Content.Builder addContentsBuilder(int index) { + return internalGetContentsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Content.getDefaultInstance()); + } + + /** + * + * + *
            +     * Required. The prompt to generate rubrics from.
            +     * For single-turn queries, this is a single instance. For multi-turn queries,
            +     * this is a repeated field that contains conversation history + latest
            +     * request.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getContentsBuilderList() { + return internalGetContentsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder> + internalGetContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Content, + com.google.cloud.aiplatform.v1beta1.Content.Builder, + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder>( + contents_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + predefinedRubricGenerationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder> + predefinedRubricGenerationSpecBuilder_; + + /** + * + * + *
            +     * Optional. Specification for using the rubric generation configs of a
            +     * pre-defined metric, e.g. "generic_quality_v1" and
            +     * "instruction_following_v1". Some of the configs may be only used in rubric
            +     * generation and not supporting evaluation, e.g.
            +     * "fully_customized_generic_quality_v1". If this field is set, the
            +     * `rubric_generation_spec` field will be ignored.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the predefinedRubricGenerationSpec field is set. + */ + public boolean hasPredefinedRubricGenerationSpec() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. Specification for using the rubric generation configs of a
            +     * pre-defined metric, e.g. "generic_quality_v1" and
            +     * "instruction_following_v1". Some of the configs may be only used in rubric
            +     * generation and not supporting evaluation, e.g.
            +     * "fully_customized_generic_quality_v1". If this field is set, the
            +     * `rubric_generation_spec` field will be ignored.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The predefinedRubricGenerationSpec. + */ + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec + getPredefinedRubricGenerationSpec() { + if (predefinedRubricGenerationSpecBuilder_ == null) { + return predefinedRubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance() + : predefinedRubricGenerationSpec_; + } else { + return predefinedRubricGenerationSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Specification for using the rubric generation configs of a
            +     * pre-defined metric, e.g. "generic_quality_v1" and
            +     * "instruction_following_v1". Some of the configs may be only used in rubric
            +     * generation and not supporting evaluation, e.g.
            +     * "fully_customized_generic_quality_v1". If this field is set, the
            +     * `rubric_generation_spec` field will be ignored.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPredefinedRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec value) { + if (predefinedRubricGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predefinedRubricGenerationSpec_ = value; + } else { + predefinedRubricGenerationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification for using the rubric generation configs of a
            +     * pre-defined metric, e.g. "generic_quality_v1" and
            +     * "instruction_following_v1". Some of the configs may be only used in rubric
            +     * generation and not supporting evaluation, e.g.
            +     * "fully_customized_generic_quality_v1". If this field is set, the
            +     * `rubric_generation_spec` field will be ignored.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setPredefinedRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder builderForValue) { + if (predefinedRubricGenerationSpecBuilder_ == null) { + predefinedRubricGenerationSpec_ = builderForValue.build(); + } else { + predefinedRubricGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification for using the rubric generation configs of a
            +     * pre-defined metric, e.g. "generic_quality_v1" and
            +     * "instruction_following_v1". Some of the configs may be only used in rubric
            +     * generation and not supporting evaluation, e.g.
            +     * "fully_customized_generic_quality_v1". If this field is set, the
            +     * `rubric_generation_spec` field will be ignored.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergePredefinedRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec value) { + if (predefinedRubricGenerationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && predefinedRubricGenerationSpec_ != null + && predefinedRubricGenerationSpec_ + != com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance()) { + getPredefinedRubricGenerationSpecBuilder().mergeFrom(value); + } else { + predefinedRubricGenerationSpec_ = value; + } + } else { + predefinedRubricGenerationSpecBuilder_.mergeFrom(value); + } + if (predefinedRubricGenerationSpec_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Specification for using the rubric generation configs of a
            +     * pre-defined metric, e.g. "generic_quality_v1" and
            +     * "instruction_following_v1". Some of the configs may be only used in rubric
            +     * generation and not supporting evaluation, e.g.
            +     * "fully_customized_generic_quality_v1". If this field is set, the
            +     * `rubric_generation_spec` field will be ignored.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearPredefinedRubricGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00000004); + predefinedRubricGenerationSpec_ = null; + if (predefinedRubricGenerationSpecBuilder_ != null) { + predefinedRubricGenerationSpecBuilder_.dispose(); + predefinedRubricGenerationSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification for using the rubric generation configs of a
            +     * pre-defined metric, e.g. "generic_quality_v1" and
            +     * "instruction_following_v1". Some of the configs may be only used in rubric
            +     * generation and not supporting evaluation, e.g.
            +     * "fully_customized_generic_quality_v1". If this field is set, the
            +     * `rubric_generation_spec` field will be ignored.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder + getPredefinedRubricGenerationSpecBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetPredefinedRubricGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Specification for using the rubric generation configs of a
            +     * pre-defined metric, e.g. "generic_quality_v1" and
            +     * "instruction_following_v1". Some of the configs may be only used in rubric
            +     * generation and not supporting evaluation, e.g.
            +     * "fully_customized_generic_quality_v1". If this field is set, the
            +     * `rubric_generation_spec` field will be ignored.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedRubricGenerationSpecOrBuilder() { + if (predefinedRubricGenerationSpecBuilder_ != null) { + return predefinedRubricGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + return predefinedRubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.getDefaultInstance() + : predefinedRubricGenerationSpec_; + } + } + + /** + * + * + *
            +     * Optional. Specification for using the rubric generation configs of a
            +     * pre-defined metric, e.g. "generic_quality_v1" and
            +     * "instruction_following_v1". Some of the configs may be only used in rubric
            +     * generation and not supporting evaluation, e.g.
            +     * "fully_customized_generic_quality_v1". If this field is set, the
            +     * `rubric_generation_spec` field will be ignored.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder> + internalGetPredefinedRubricGenerationSpecFieldBuilder() { + if (predefinedRubricGenerationSpecBuilder_ == null) { + predefinedRubricGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder>( + getPredefinedRubricGenerationSpec(), getParentForChildren(), isClean()); + predefinedRubricGenerationSpec_ = null; + } + return predefinedRubricGenerationSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubricGenerationSpec_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder> + rubricGenerationSpecBuilder_; + + /** + * + * + *
            +     * Optional. Specification for how the rubrics should be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rubricGenerationSpec field is set. + */ + public boolean hasRubricGenerationSpec() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. Specification for how the rubrics should be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rubricGenerationSpec. + */ + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec() { + if (rubricGenerationSpecBuilder_ == null) { + return rubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance() + : rubricGenerationSpec_; + } else { + return rubricGenerationSpecBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Specification for how the rubrics should be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec value) { + if (rubricGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rubricGenerationSpec_ = value; + } else { + rubricGenerationSpecBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification for how the rubrics should be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder builderForValue) { + if (rubricGenerationSpecBuilder_ == null) { + rubricGenerationSpec_ = builderForValue.build(); + } else { + rubricGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification for how the rubrics should be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec value) { + if (rubricGenerationSpecBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && rubricGenerationSpec_ != null + && rubricGenerationSpec_ + != com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance()) { + getRubricGenerationSpecBuilder().mergeFrom(value); + } else { + rubricGenerationSpec_ = value; + } + } else { + rubricGenerationSpecBuilder_.mergeFrom(value); + } + if (rubricGenerationSpec_ != null) { + bitField0_ |= 0x00000008; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Specification for how the rubrics should be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearRubricGenerationSpec() { + bitField0_ = (bitField0_ & ~0x00000008); + rubricGenerationSpec_ = null; + if (rubricGenerationSpecBuilder_ != null) { + rubricGenerationSpecBuilder_.dispose(); + rubricGenerationSpecBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Specification for how the rubrics should be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder + getRubricGenerationSpecBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return internalGetRubricGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Specification for how the rubrics should be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder() { + if (rubricGenerationSpecBuilder_ != null) { + return rubricGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + return rubricGenerationSpec_ == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance() + : rubricGenerationSpec_; + } + } + + /** + * + * + *
            +     * Optional. Specification for how the rubrics should be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder> + internalGetRubricGenerationSpecFieldBuilder() { + if (rubricGenerationSpecBuilder_ == null) { + rubricGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder>( + getRubricGenerationSpec(), getParentForChildren(), isClean()); + rubricGenerationSpec_ = null; + } + return rubricGenerationSpecBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + agentConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder> + agentConfigBuilder_; + + /** + * + * + *
            +     * Optional. Agent configuration, required for agent-based rubric generation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + public boolean hasAgentConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Optional. Agent configuration, required for agent-based rubric generation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + getAgentConfig() { + if (agentConfigBuilder_ == null) { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } else { + return agentConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Agent configuration, required for agent-based rubric generation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (agentConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + agentConfig_ = value; + } else { + agentConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Agent configuration, required for agent-based rubric generation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + builderForValue) { + if (agentConfigBuilder_ == null) { + agentConfig_ = builderForValue.build(); + } else { + agentConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Agent configuration, required for agent-based rubric generation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeAgentConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig value) { + if (agentConfigBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && agentConfig_ != null + && agentConfig_ + != com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance()) { + getAgentConfigBuilder().mergeFrom(value); + } else { + agentConfig_ = value; + } + } else { + agentConfigBuilder_.mergeFrom(value); + } + if (agentConfig_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Agent configuration, required for agent-based rubric generation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearAgentConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + agentConfig_ = null; + if (agentConfigBuilder_ != null) { + agentConfigBuilder_.dispose(); + agentConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Agent configuration, required for agent-based rubric generation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder + getAgentConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetAgentConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Agent configuration, required for agent-based rubric generation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder() { + if (agentConfigBuilder_ != null) { + return agentConfigBuilder_.getMessageOrBuilder(); + } else { + return agentConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .getDefaultInstance() + : agentConfig_; + } + } + + /** + * + * + *
            +     * Optional. Agent configuration, required for agent-based rubric generation.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder> + internalGetAgentConfigFieldBuilder() { + if (agentConfigBuilder_ == null) { + agentConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig + .Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationInstance + .DeprecatedAgentConfigOrBuilder>( + getAgentConfig(), getParentForChildren(), isClean()); + agentConfig_ = null; + } + return agentConfigBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + private static final com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateInstanceRubricsRequest 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.GenerateInstanceRubricsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsRequestOrBuilder.java new file mode 100644 index 000000000000..e56c804f1dee --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsRequestOrBuilder.java @@ -0,0 +1,288 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface GenerateInstanceRubricsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The resource name of the Location to generate rubrics from.
            +   * Format: `projects/{project}/locations/{location}`
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The location. + */ + java.lang.String getLocation(); + + /** + * + * + *
            +   * Required. The resource name of the Location to generate rubrics from.
            +   * Format: `projects/{project}/locations/{location}`
            +   * 
            + * + * + * string location = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for location. + */ + com.google.protobuf.ByteString getLocationBytes(); + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getContentsList(); + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.Content getContents(int index); + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getContentsCount(); + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getContentsOrBuilderList(); + + /** + * + * + *
            +   * Required. The prompt to generate rubrics from.
            +   * For single-turn queries, this is a single instance. For multi-turn queries,
            +   * this is a repeated field that contains conversation history + latest
            +   * request.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Content contents = 2 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.ContentOrBuilder getContentsOrBuilder(int index); + + /** + * + * + *
            +   * Optional. Specification for using the rubric generation configs of a
            +   * pre-defined metric, e.g. "generic_quality_v1" and
            +   * "instruction_following_v1". Some of the configs may be only used in rubric
            +   * generation and not supporting evaluation, e.g.
            +   * "fully_customized_generic_quality_v1". If this field is set, the
            +   * `rubric_generation_spec` field will be ignored.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the predefinedRubricGenerationSpec field is set. + */ + boolean hasPredefinedRubricGenerationSpec(); + + /** + * + * + *
            +   * Optional. Specification for using the rubric generation configs of a
            +   * pre-defined metric, e.g. "generic_quality_v1" and
            +   * "instruction_following_v1". Some of the configs may be only used in rubric
            +   * generation and not supporting evaluation, e.g.
            +   * "fully_customized_generic_quality_v1". If this field is set, the
            +   * `rubric_generation_spec` field will be ignored.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The predefinedRubricGenerationSpec. + */ + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec getPredefinedRubricGenerationSpec(); + + /** + * + * + *
            +   * Optional. Specification for using the rubric generation configs of a
            +   * pre-defined metric, e.g. "generic_quality_v1" and
            +   * "instruction_following_v1". Some of the configs may be only used in rubric
            +   * generation and not supporting evaluation, e.g.
            +   * "fully_customized_generic_quality_v1". If this field is set, the
            +   * `rubric_generation_spec` field will be ignored.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.PredefinedMetricSpec predefined_rubric_generation_spec = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpecOrBuilder + getPredefinedRubricGenerationSpecOrBuilder(); + + /** + * + * + *
            +   * Optional. Specification for how the rubrics should be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the rubricGenerationSpec field is set. + */ + boolean hasRubricGenerationSpec(); + + /** + * + * + *
            +   * Optional. Specification for how the rubrics should be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The rubricGenerationSpec. + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec(); + + /** + * + * + *
            +   * Optional. Specification for how the rubrics should be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder(); + + /** + * + * + *
            +   * Optional. Agent configuration, required for agent-based rubric generation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the agentConfig field is set. + */ + boolean hasAgentConfig(); + + /** + * + * + *
            +   * Optional. Agent configuration, required for agent-based rubric generation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The agentConfig. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig getAgentConfig(); + + /** + * + * + *
            +   * Optional. Agent configuration, required for agent-based rubric generation.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfig agent_config = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationInstance.DeprecatedAgentConfigOrBuilder + getAgentConfigOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponse.java new file mode 100644 index 000000000000..e6fd4c58bff5 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponse.java @@ -0,0 +1,991 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Response message for EvaluationService.GenerateInstanceRubrics.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse} + */ +@com.google.protobuf.Generated +public final class GenerateInstanceRubricsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + GenerateInstanceRubricsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GenerateInstanceRubricsResponse"); + } + + // Use GenerateInstanceRubricsResponse.newBuilder() to construct. + private GenerateInstanceRubricsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GenerateInstanceRubricsResponse() { + generatedRubrics_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.class, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.Builder.class); + } + + public static final int GENERATED_RUBRICS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List generatedRubrics_; + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getGeneratedRubricsList() { + return generatedRubrics_; + } + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getGeneratedRubricsOrBuilderList() { + return generatedRubrics_; + } + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getGeneratedRubricsCount() { + return generatedRubrics_.size(); + } + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric getGeneratedRubrics(int index) { + return generatedRubrics_.get(index); + } + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getGeneratedRubricsOrBuilder( + int index) { + return generatedRubrics_.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 < generatedRubrics_.size(); i++) { + output.writeMessage(1, generatedRubrics_.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 < generatedRubrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, generatedRubrics_.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.GenerateInstanceRubricsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse other = + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) obj; + + if (!getGeneratedRubricsList().equals(other.getGeneratedRubricsList())) 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 (getGeneratedRubricsCount() > 0) { + hash = (37 * hash) + GENERATED_RUBRICS_FIELD_NUMBER; + hash = (53 * hash) + getGeneratedRubricsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse 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.GenerateInstanceRubricsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse 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.GenerateInstanceRubricsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse 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.GenerateInstanceRubricsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for EvaluationService.GenerateInstanceRubrics.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GenerateInstanceRubricsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.class, + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (generatedRubricsBuilder_ == null) { + generatedRubrics_ = java.util.Collections.emptyList(); + } else { + generatedRubrics_ = null; + generatedRubricsBuilder_.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_GenerateInstanceRubricsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse build() { + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse result = + new com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse result) { + if (generatedRubricsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + generatedRubrics_ = java.util.Collections.unmodifiableList(generatedRubrics_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.generatedRubrics_ = generatedRubrics_; + } else { + result.generatedRubrics_ = generatedRubricsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + .getDefaultInstance()) return this; + if (generatedRubricsBuilder_ == null) { + if (!other.generatedRubrics_.isEmpty()) { + if (generatedRubrics_.isEmpty()) { + generatedRubrics_ = other.generatedRubrics_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.addAll(other.generatedRubrics_); + } + onChanged(); + } + } else { + if (!other.generatedRubrics_.isEmpty()) { + if (generatedRubricsBuilder_.isEmpty()) { + generatedRubricsBuilder_.dispose(); + generatedRubricsBuilder_ = null; + generatedRubrics_ = other.generatedRubrics_; + bitField0_ = (bitField0_ & ~0x00000001); + generatedRubricsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetGeneratedRubricsFieldBuilder() + : null; + } else { + generatedRubricsBuilder_.addAllMessages(other.generatedRubrics_); + } + } + } + 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.Rubric m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Rubric.parser(), extensionRegistry); + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(m); + } else { + generatedRubricsBuilder_.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 generatedRubrics_ = + java.util.Collections.emptyList(); + + private void ensureGeneratedRubricsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + generatedRubrics_ = + new java.util.ArrayList(generatedRubrics_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + generatedRubricsBuilder_; + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List getGeneratedRubricsList() { + if (generatedRubricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(generatedRubrics_); + } else { + return generatedRubricsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getGeneratedRubricsCount() { + if (generatedRubricsBuilder_ == null) { + return generatedRubrics_.size(); + } else { + return generatedRubricsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Rubric getGeneratedRubrics(int index) { + if (generatedRubricsBuilder_ == null) { + return generatedRubrics_.get(index); + } else { + return generatedRubricsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGeneratedRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (generatedRubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.set(index, value); + onChanged(); + } else { + generatedRubricsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setGeneratedRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.set(index, builderForValue.build()); + onChanged(); + } else { + generatedRubricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addGeneratedRubrics(com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (generatedRubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(value); + onChanged(); + } else { + generatedRubricsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addGeneratedRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (generatedRubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(index, value); + onChanged(); + } else { + generatedRubricsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addGeneratedRubrics( + com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(builderForValue.build()); + onChanged(); + } else { + generatedRubricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addGeneratedRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.add(index, builderForValue.build()); + onChanged(); + } else { + generatedRubricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllGeneratedRubrics( + java.lang.Iterable values) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, generatedRubrics_); + onChanged(); + } else { + generatedRubricsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearGeneratedRubrics() { + if (generatedRubricsBuilder_ == null) { + generatedRubrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + generatedRubricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeGeneratedRubrics(int index) { + if (generatedRubricsBuilder_ == null) { + ensureGeneratedRubricsIsMutable(); + generatedRubrics_.remove(index); + onChanged(); + } else { + generatedRubricsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder getGeneratedRubricsBuilder( + int index) { + return internalGetGeneratedRubricsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getGeneratedRubricsOrBuilder( + int index) { + if (generatedRubricsBuilder_ == null) { + return generatedRubrics_.get(index); + } else { + return generatedRubricsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getGeneratedRubricsOrBuilderList() { + if (generatedRubricsBuilder_ != null) { + return generatedRubricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(generatedRubrics_); + } + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder addGeneratedRubricsBuilder() { + return internalGetGeneratedRubricsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder addGeneratedRubricsBuilder( + int index) { + return internalGetGeneratedRubricsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. A list of generated rubrics.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getGeneratedRubricsBuilderList() { + return internalGetGeneratedRubricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + internalGetGeneratedRubricsFieldBuilder() { + if (generatedRubricsBuilder_ == null) { + generatedRubricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder>( + generatedRubrics_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + generatedRubrics_ = null; + } + return generatedRubricsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + private static final com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GenerateInstanceRubricsResponse 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.GenerateInstanceRubricsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponseOrBuilder.java new file mode 100644 index 000000000000..1a840792a30e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GenerateInstanceRubricsResponseOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface GenerateInstanceRubricsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getGeneratedRubricsList(); + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.Rubric getGeneratedRubrics(int index); + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getGeneratedRubricsCount(); + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getGeneratedRubricsOrBuilderList(); + + /** + * + * + *
            +   * Output only. A list of generated rubrics.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric generated_rubrics = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getGeneratedRubricsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..7fa4eb632e9a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequest.java @@ -0,0 +1,622 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Request message for GetOnlineEvaluator.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class GetOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + GetOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetOnlineEvaluatorRequest"); + } + + // Use GetOnlineEvaluatorRequest.newBuilder() to construct. + private GetOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetOnlineEvaluatorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to retrieve.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to retrieve.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.GetOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest 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.GetOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest 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.GetOnlineEvaluatorRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest 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.GetOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for GetOnlineEvaluator.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to retrieve.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to retrieve.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to retrieve.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to retrieve.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to retrieve.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetOnlineEvaluatorRequest 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.GetOnlineEvaluatorRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..8d83ffbf369e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/GetOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface GetOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to retrieve.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to retrieve.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java index 885e9eeb039f..fe0300d75378 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpec.java @@ -82,6 +82,7 @@ public enum RubricsSourceCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RUBRIC_GROUP_KEY(4), + RUBRIC_GENERATION_SPEC(5), PREDEFINED_RUBRIC_GENERATION_SPEC(6), RUBRICSSOURCE_NOT_SET(0); private final int value; @@ -104,6 +105,8 @@ public static RubricsSourceCase forNumber(int value) { switch (value) { case 4: return RUBRIC_GROUP_KEY; + case 5: + return RUBRIC_GENERATION_SPEC; case 6: return PREDEFINED_RUBRIC_GENERATION_SPEC; case 0: @@ -198,6 +201,61 @@ public com.google.protobuf.ByteString getRubricGroupKeyBytes() { } } + public static final int RUBRIC_GENERATION_SPEC_FIELD_NUMBER = 5; + + /** + * + * + *
            +   * Dynamically generate rubrics using this specification.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * @return Whether the rubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasRubricGenerationSpec() { + return rubricsSourceCase_ == 5; + } + + /** + * + * + *
            +   * Dynamically generate rubrics using this specification.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * @return The rubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec() { + if (rubricsSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + + /** + * + * + *
            +   * Dynamically generate rubrics using this specification.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder() { + if (rubricsSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + public static final int PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER = 6; /** @@ -520,6 +578,66 @@ public com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder() { : additionalConfig_; } + public static final int RESULT_PARSER_CONFIG_FIELD_NUMBER = 8; + private com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig resultParserConfig_; + + /** + * + * + *
            +   * Optional. The parser config for the metric result.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resultParserConfig field is set. + */ + @java.lang.Override + public boolean hasResultParserConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +   * Optional. The parser config for the metric result.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resultParserConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getResultParserConfig() { + return resultParserConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance() + : resultParserConfig_; + } + + /** + * + * + *
            +   * Optional. The parser config for the metric result.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder + getResultParserConfigOrBuilder() { + return resultParserConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance() + : resultParserConfig_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -546,6 +664,10 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (rubricsSourceCase_ == 4) { com.google.protobuf.GeneratedMessage.writeString(output, 4, rubricsSource_); } + if (rubricsSourceCase_ == 5) { + output.writeMessage( + 5, (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_); + } if (rubricsSourceCase_ == 6) { output.writeMessage( 6, (com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec) rubricsSource_); @@ -553,6 +675,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(7, getAdditionalConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + output.writeMessage(8, getResultParserConfig()); + } getUnknownFields().writeTo(output); } @@ -575,6 +700,11 @@ public int getSerializedSize() { if (rubricsSourceCase_ == 4) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, rubricsSource_); } + if (rubricsSourceCase_ == 5) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 5, (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_); + } if (rubricsSourceCase_ == 6) { size += com.google.protobuf.CodedOutputStream.computeMessageSize( @@ -583,6 +713,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getAdditionalConfig()); } + if (((bitField0_ & 0x00000010) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getResultParserConfig()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -615,11 +748,18 @@ public boolean equals(final java.lang.Object obj) { if (hasAdditionalConfig()) { if (!getAdditionalConfig().equals(other.getAdditionalConfig())) return false; } + if (hasResultParserConfig() != other.hasResultParserConfig()) return false; + if (hasResultParserConfig()) { + if (!getResultParserConfig().equals(other.getResultParserConfig())) return false; + } if (!getRubricsSourceCase().equals(other.getRubricsSourceCase())) return false; switch (rubricsSourceCase_) { case 4: if (!getRubricGroupKey().equals(other.getRubricGroupKey())) return false; break; + case 5: + if (!getRubricGenerationSpec().equals(other.getRubricGenerationSpec())) return false; + break; case 6: if (!getPredefinedRubricGenerationSpec().equals(other.getPredefinedRubricGenerationSpec())) return false; @@ -654,11 +794,19 @@ public int hashCode() { hash = (37 * hash) + ADDITIONAL_CONFIG_FIELD_NUMBER; hash = (53 * hash) + getAdditionalConfig().hashCode(); } + if (hasResultParserConfig()) { + hash = (37 * hash) + RESULT_PARSER_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getResultParserConfig().hashCode(); + } switch (rubricsSourceCase_) { case 4: hash = (37 * hash) + RUBRIC_GROUP_KEY_FIELD_NUMBER; hash = (53 * hash) + getRubricGroupKey().hashCode(); break; + case 5: + hash = (37 * hash) + RUBRIC_GENERATION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getRubricGenerationSpec().hashCode(); + break; case 6: hash = (37 * hash) + PREDEFINED_RUBRIC_GENERATION_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPredefinedRubricGenerationSpec().hashCode(); @@ -810,6 +958,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetJudgeAutoraterConfigFieldBuilder(); internalGetAdditionalConfigFieldBuilder(); + internalGetResultParserConfigFieldBuilder(); } } @@ -817,6 +966,9 @@ private void maybeForceBuilderInitialization() { public Builder clear() { super.clear(); bitField0_ = 0; + if (rubricGenerationSpecBuilder_ != null) { + rubricGenerationSpecBuilder_.clear(); + } if (predefinedRubricGenerationSpecBuilder_ != null) { predefinedRubricGenerationSpecBuilder_.clear(); } @@ -832,6 +984,11 @@ public Builder clear() { additionalConfigBuilder_.dispose(); additionalConfigBuilder_ = null; } + resultParserConfig_ = null; + if (resultParserConfigBuilder_ != null) { + resultParserConfigBuilder_.dispose(); + resultParserConfigBuilder_ = null; + } rubricsSourceCase_ = 0; rubricsSource_ = null; return this; @@ -872,32 +1029,42 @@ public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.metricPromptTemplate_ = metricPromptTemplate_; to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000008) != 0)) { + if (((from_bitField0_ & 0x00000010) != 0)) { result.systemInstruction_ = systemInstruction_; to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000010) != 0)) { + if (((from_bitField0_ & 0x00000020) != 0)) { result.judgeAutoraterConfig_ = judgeAutoraterConfigBuilder_ == null ? judgeAutoraterConfig_ : judgeAutoraterConfigBuilder_.build(); to_bitField0_ |= 0x00000004; } - if (((from_bitField0_ & 0x00000020) != 0)) { + if (((from_bitField0_ & 0x00000040) != 0)) { result.additionalConfig_ = additionalConfigBuilder_ == null ? additionalConfig_ : additionalConfigBuilder_.build(); to_bitField0_ |= 0x00000008; } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.resultParserConfig_ = + resultParserConfigBuilder_ == null + ? resultParserConfig_ + : resultParserConfigBuilder_.build(); + to_bitField0_ |= 0x00000010; + } result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec result) { result.rubricsSourceCase_ = rubricsSourceCase_; result.rubricsSource_ = this.rubricsSource_; + if (rubricsSourceCase_ == 5 && rubricGenerationSpecBuilder_ != null) { + result.rubricsSource_ = rubricGenerationSpecBuilder_.build(); + } if (rubricsSourceCase_ == 6 && predefinedRubricGenerationSpecBuilder_ != null) { result.rubricsSource_ = predefinedRubricGenerationSpecBuilder_.build(); } @@ -918,12 +1085,12 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec return this; if (other.hasMetricPromptTemplate()) { metricPromptTemplate_ = other.metricPromptTemplate_; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } if (other.hasSystemInstruction()) { systemInstruction_ = other.systemInstruction_; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); } if (other.hasJudgeAutoraterConfig()) { @@ -932,6 +1099,9 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec if (other.hasAdditionalConfig()) { mergeAdditionalConfig(other.getAdditionalConfig()); } + if (other.hasResultParserConfig()) { + mergeResultParserConfig(other.getResultParserConfig()); + } switch (other.getRubricsSourceCase()) { case RUBRIC_GROUP_KEY: { @@ -940,6 +1110,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec onChanged(); break; } + case RUBRIC_GENERATION_SPEC: + { + mergeRubricGenerationSpec(other.getRubricGenerationSpec()); + break; + } case PREDEFINED_RUBRIC_GENERATION_SPEC: { mergePredefinedRubricGenerationSpec(other.getPredefinedRubricGenerationSpec()); @@ -979,20 +1154,20 @@ public Builder mergeFrom( case 10: { metricPromptTemplate_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 10 case 18: { systemInstruction_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 18 case 26: { input.readMessage( internalGetJudgeAutoraterConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 26 case 34: @@ -1002,6 +1177,13 @@ public Builder mergeFrom( rubricsSource_ = s; break; } // case 34 + case 42: + { + input.readMessage( + internalGetRubricGenerationSpecFieldBuilder().getBuilder(), extensionRegistry); + rubricsSourceCase_ = 5; + break; + } // case 42 case 50: { input.readMessage( @@ -1014,9 +1196,16 @@ public Builder mergeFrom( { input.readMessage( internalGetAdditionalConfigFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 58 + case 66: + { + input.readMessage( + internalGetResultParserConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1195,6 +1384,239 @@ public Builder setRubricGroupKeyBytes(com.google.protobuf.ByteString value) { return this; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder> + rubricGenerationSpecBuilder_; + + /** + * + * + *
            +     * Dynamically generate rubrics using this specification.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * + * @return Whether the rubricGenerationSpec field is set. + */ + @java.lang.Override + public boolean hasRubricGenerationSpec() { + return rubricsSourceCase_ == 5; + } + + /** + * + * + *
            +     * Dynamically generate rubrics using this specification.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * + * @return The rubricGenerationSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec() { + if (rubricGenerationSpecBuilder_ == null) { + if (rubricsSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } else { + if (rubricsSourceCase_ == 5) { + return rubricGenerationSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Dynamically generate rubrics using this specification.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public Builder setRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec value) { + if (rubricGenerationSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + rubricsSource_ = value; + onChanged(); + } else { + rubricGenerationSpecBuilder_.setMessage(value); + } + rubricsSourceCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Dynamically generate rubrics using this specification.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public Builder setRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder builderForValue) { + if (rubricGenerationSpecBuilder_ == null) { + rubricsSource_ = builderForValue.build(); + onChanged(); + } else { + rubricGenerationSpecBuilder_.setMessage(builderForValue.build()); + } + rubricsSourceCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Dynamically generate rubrics using this specification.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public Builder mergeRubricGenerationSpec( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec value) { + if (rubricGenerationSpecBuilder_ == null) { + if (rubricsSourceCase_ == 5 + && rubricsSource_ + != com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance()) { + rubricsSource_ = + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_) + .mergeFrom(value) + .buildPartial(); + } else { + rubricsSource_ = value; + } + onChanged(); + } else { + if (rubricsSourceCase_ == 5) { + rubricGenerationSpecBuilder_.mergeFrom(value); + } else { + rubricGenerationSpecBuilder_.setMessage(value); + } + } + rubricsSourceCase_ = 5; + return this; + } + + /** + * + * + *
            +     * Dynamically generate rubrics using this specification.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public Builder clearRubricGenerationSpec() { + if (rubricGenerationSpecBuilder_ == null) { + if (rubricsSourceCase_ == 5) { + rubricsSourceCase_ = 0; + rubricsSource_ = null; + onChanged(); + } + } else { + if (rubricsSourceCase_ == 5) { + rubricsSourceCase_ = 0; + rubricsSource_ = null; + } + rubricGenerationSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Dynamically generate rubrics using this specification.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder + getRubricGenerationSpecBuilder() { + return internalGetRubricGenerationSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Dynamically generate rubrics using this specification.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder() { + if ((rubricsSourceCase_ == 5) && (rubricGenerationSpecBuilder_ != null)) { + return rubricGenerationSpecBuilder_.getMessageOrBuilder(); + } else { + if (rubricsSourceCase_ == 5) { + return (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_; + } + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Dynamically generate rubrics using this specification.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder> + internalGetRubricGenerationSpecFieldBuilder() { + if (rubricGenerationSpecBuilder_ == null) { + if (!(rubricsSourceCase_ == 5)) { + rubricsSource_ = + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + rubricGenerationSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) rubricsSource_, + getParentForChildren(), + isClean()); + rubricsSource_ = null; + } + rubricsSourceCase_ = 5; + onChanged(); + return rubricGenerationSpecBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec, com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec.Builder, @@ -1453,7 +1875,7 @@ public Builder clearPredefinedRubricGenerationSpec() { * @return Whether the metricPromptTemplate field is set. */ public boolean hasMetricPromptTemplate() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -1522,7 +1944,7 @@ public Builder setMetricPromptTemplate(java.lang.String value) { throw new NullPointerException(); } metricPromptTemplate_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1541,7 +1963,7 @@ public Builder setMetricPromptTemplate(java.lang.String value) { */ public Builder clearMetricPromptTemplate() { metricPromptTemplate_ = getDefaultInstance().getMetricPromptTemplate(); - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } @@ -1565,7 +1987,7 @@ public Builder setMetricPromptTemplateBytes(com.google.protobuf.ByteString value } checkByteStringIsUtf8(value); metricPromptTemplate_ = value; - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1585,7 +2007,7 @@ public Builder setMetricPromptTemplateBytes(com.google.protobuf.ByteString value * @return Whether the systemInstruction field is set. */ public boolean hasSystemInstruction() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** @@ -1654,7 +2076,7 @@ public Builder setSystemInstruction(java.lang.String value) { throw new NullPointerException(); } systemInstruction_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1673,7 +2095,7 @@ public Builder setSystemInstruction(java.lang.String value) { */ public Builder clearSystemInstruction() { systemInstruction_ = getDefaultInstance().getSystemInstruction(); - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); onChanged(); return this; } @@ -1697,7 +2119,7 @@ public Builder setSystemInstructionBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); systemInstruction_ = value; - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1723,7 +2145,7 @@ public Builder setSystemInstructionBytes(com.google.protobuf.ByteString value) { * @return Whether the judgeAutoraterConfig field is set. */ public boolean hasJudgeAutoraterConfig() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** @@ -1770,7 +2192,7 @@ public Builder setJudgeAutoraterConfig( } else { judgeAutoraterConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1793,7 +2215,7 @@ public Builder setJudgeAutoraterConfig( } else { judgeAutoraterConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1812,7 +2234,7 @@ public Builder setJudgeAutoraterConfig( public Builder mergeJudgeAutoraterConfig( com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { if (judgeAutoraterConfigBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && judgeAutoraterConfig_ != null && judgeAutoraterConfig_ != com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance()) { @@ -1824,7 +2246,7 @@ public Builder mergeJudgeAutoraterConfig( judgeAutoraterConfigBuilder_.mergeFrom(value); } if (judgeAutoraterConfig_ != null) { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); } return this; @@ -1842,7 +2264,7 @@ public Builder mergeJudgeAutoraterConfig( * */ public Builder clearJudgeAutoraterConfig() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); judgeAutoraterConfig_ = null; if (judgeAutoraterConfigBuilder_ != null) { judgeAutoraterConfigBuilder_.dispose(); @@ -1865,7 +2287,7 @@ public Builder clearJudgeAutoraterConfig() { */ public com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder getJudgeAutoraterConfigBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return internalGetJudgeAutoraterConfigFieldBuilder().getBuilder(); } @@ -1941,7 +2363,7 @@ public Builder clearJudgeAutoraterConfig() { * @return Whether the additionalConfig field is set. */ public boolean hasAdditionalConfig() { - return ((bitField0_ & 0x00000020) != 0); + return ((bitField0_ & 0x00000040) != 0); } /** @@ -1987,7 +2409,7 @@ public Builder setAdditionalConfig(com.google.protobuf.Struct value) { } else { additionalConfigBuilder_.setMessage(value); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2009,7 +2431,7 @@ public Builder setAdditionalConfig(com.google.protobuf.Struct.Builder builderFor } else { additionalConfigBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2027,7 +2449,7 @@ public Builder setAdditionalConfig(com.google.protobuf.Struct.Builder builderFor */ public Builder mergeAdditionalConfig(com.google.protobuf.Struct value) { if (additionalConfigBuilder_ == null) { - if (((bitField0_ & 0x00000020) != 0) + if (((bitField0_ & 0x00000040) != 0) && additionalConfig_ != null && additionalConfig_ != com.google.protobuf.Struct.getDefaultInstance()) { getAdditionalConfigBuilder().mergeFrom(value); @@ -2038,7 +2460,7 @@ public Builder mergeAdditionalConfig(com.google.protobuf.Struct value) { additionalConfigBuilder_.mergeFrom(value); } if (additionalConfig_ != null) { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); } return this; @@ -2056,7 +2478,7 @@ public Builder mergeAdditionalConfig(com.google.protobuf.Struct value) { * */ public Builder clearAdditionalConfig() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); additionalConfig_ = null; if (additionalConfigBuilder_ != null) { additionalConfigBuilder_.dispose(); @@ -2078,7 +2500,7 @@ public Builder clearAdditionalConfig() { * */ public com.google.protobuf.Struct.Builder getAdditionalConfigBuilder() { - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return internalGetAdditionalConfigFieldBuilder().getBuilder(); } @@ -2132,6 +2554,225 @@ public com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder() { return additionalConfigBuilder_; } + private com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig resultParserConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder> + resultParserConfigBuilder_; + + /** + * + * + *
            +     * Optional. The parser config for the metric result.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resultParserConfig field is set. + */ + public boolean hasResultParserConfig() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Optional. The parser config for the metric result.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resultParserConfig. + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getResultParserConfig() { + if (resultParserConfigBuilder_ == null) { + return resultParserConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance() + : resultParserConfig_; + } else { + return resultParserConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The parser config for the metric result.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResultParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig value) { + if (resultParserConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + resultParserConfig_ = value; + } else { + resultParserConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The parser config for the metric result.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setResultParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder builderForValue) { + if (resultParserConfigBuilder_ == null) { + resultParserConfig_ = builderForValue.build(); + } else { + resultParserConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The parser config for the metric result.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeResultParserConfig( + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig value) { + if (resultParserConfigBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && resultParserConfig_ != null + && resultParserConfig_ + != com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig + .getDefaultInstance()) { + getResultParserConfigBuilder().mergeFrom(value); + } else { + resultParserConfig_ = value; + } + } else { + resultParserConfigBuilder_.mergeFrom(value); + } + if (resultParserConfig_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The parser config for the metric result.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearResultParserConfig() { + bitField0_ = (bitField0_ & ~0x00000080); + resultParserConfig_ = null; + if (resultParserConfigBuilder_ != null) { + resultParserConfigBuilder_.dispose(); + resultParserConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The parser config for the metric result.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder + getResultParserConfigBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetResultParserConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The parser config for the metric result.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder + getResultParserConfigOrBuilder() { + if (resultParserConfigBuilder_ != null) { + return resultParserConfigBuilder_.getMessageOrBuilder(); + } else { + return resultParserConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.getDefaultInstance() + : resultParserConfig_; + } + } + + /** + * + * + *
            +     * Optional. The parser config for the metric result.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder> + internalGetResultParserConfigFieldBuilder() { + if (resultParserConfigBuilder_ == null) { + resultParserConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig.Builder, + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder>( + getResultParserConfig(), getParentForChildren(), isClean()); + resultParserConfig_ = null; + } + return resultParserConfigBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java index 59c842a2103b..d57434e6347e 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/LLMBasedMetricSpecOrBuilder.java @@ -68,6 +68,44 @@ public interface LLMBasedMetricSpecOrBuilder */ com.google.protobuf.ByteString getRubricGroupKeyBytes(); + /** + * + * + *
            +   * Dynamically generate rubrics using this specification.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * @return Whether the rubricGenerationSpec field is set. + */ + boolean hasRubricGenerationSpec(); + + /** + * + * + *
            +   * Dynamically generate rubrics using this specification.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + * + * @return The rubricGenerationSpec. + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getRubricGenerationSpec(); + + /** + * + * + *
            +   * Dynamically generate rubrics using this specification.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec rubric_generation_spec = 5; + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder + getRubricGenerationSpecOrBuilder(); + /** * * @@ -279,5 +317,49 @@ public interface LLMBasedMetricSpecOrBuilder */ com.google.protobuf.StructOrBuilder getAdditionalConfigOrBuilder(); + /** + * + * + *
            +   * Optional. The parser config for the metric result.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the resultParserConfig field is set. + */ + boolean hasResultParserConfig(); + + /** + * + * + *
            +   * Optional. The parser config for the metric result.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The resultParserConfig. + */ + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfig getResultParserConfig(); + + /** + * + * + *
            +   * Optional. The parser config for the metric result.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.EvaluationParserConfig result_parser_config = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.EvaluationParserConfigOrBuilder + getResultParserConfigOrBuilder(); + com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.RubricsSourceCase getRubricsSourceCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequest.java new file mode 100644 index 000000000000..1cbacdb5d64f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequest.java @@ -0,0 +1,1406 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Request message for ListOnlineEvaluators.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest} + */ +@com.google.protobuf.Generated +public final class ListOnlineEvaluatorsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + ListOnlineEvaluatorsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListOnlineEvaluatorsRequest"); + } + + // Use ListOnlineEvaluatorsRequest.newBuilder() to construct. + private ListOnlineEvaluatorsRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListOnlineEvaluatorsRequest() { + parent_ = ""; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
            +   * Required. The parent resource of the OnlineEvaluators to list.
            +   * Format: projects/{project}/locations/{location}.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The parent resource of the OnlineEvaluators to list.
            +   * Format: projects/{project}/locations/{location}.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
            +   * Optional. The maximum number of OnlineEvaluators to return. The service may
            +   * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
            +   * will be returned. The maximum value is 100; values above 100 will be
            +   * coerced to 100. Based on aip.dev/158.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * Based on aip.dev/158.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * Based on aip.dev/158.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILTER_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
            +   * Optional. Standard list filter.
            +   * Supported fields:
            +   * * `create_time`
            +   * * `update_time`
            +   * * `agent_resource`
            +   * Example: `create_time>"2026-01-01T00:00:00-04:00"`
            +   * where the timestamp is in RFC 3339 format)
            +   * Based on aip.dev/160.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Standard list filter.
            +   * Supported fields:
            +   * * `create_time`
            +   * * `update_time`
            +   * * `agent_resource`
            +   * Example: `create_time>"2026-01-01T00:00:00-04:00"`
            +   * where the timestamp is in RFC 3339 format)
            +   * Based on aip.dev/160.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ORDER_BY_FIELD_NUMBER = 5; + + @SuppressWarnings("serial") + private volatile java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +   * Optional. A comma-separated list of fields to order by. The default sorting
            +   * order is ascending. Use "desc" after a field name for descending. Supported
            +   * fields:
            +   * * `create_time`
            +   * * `update_time`
            +   *
            +   * Example: `create_time desc`.
            +   * Based on aip.dev/132.
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + @java.lang.Override + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + 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(); + orderBy_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A comma-separated list of fields to order by. The default sorting
            +   * order is ascending. Use "desc" after a field name for descending. Supported
            +   * fields:
            +   * * `create_time`
            +   * * `update_time`
            +   *
            +   * Example: `create_time desc`.
            +   * Based on aip.dev/132.
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + @java.lang.Override + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 5, orderBy_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(orderBy_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(5, orderBy_); + } + 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.ListOnlineEvaluatorsRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest other = + (com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getFilter().equals(other.getFilter())) return false; + if (!getOrderBy().equals(other.getOrderBy())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + ORDER_BY_FIELD_NUMBER; + hash = (53 * hash) + getOrderBy().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest 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.ListOnlineEvaluatorsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest 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.ListOnlineEvaluatorsRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest 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.ListOnlineEvaluatorsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for ListOnlineEvaluators.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.class, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + filter_ = ""; + orderBy_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest build() { + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest result = + new com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.filter_ = filter_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.orderBy_ = orderBy_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000008; + onChanged(); + } + if (!other.getOrderBy().isEmpty()) { + orderBy_ = other.orderBy_; + bitField0_ |= 0x00000010; + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + orderBy_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 42 + 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 parent_ = ""; + + /** + * + * + *
            +     * Required. The parent resource of the OnlineEvaluators to list.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource of the OnlineEvaluators to list.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The parent resource of the OnlineEvaluators to list.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource of the OnlineEvaluators to list.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The parent resource of the OnlineEvaluators to list.
            +     * Format: projects/{project}/locations/{location}.
            +     * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
            +     * Optional. The maximum number of OnlineEvaluators to return. The service may
            +     * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
            +     * will be returned. The maximum value is 100; values above 100 will be
            +     * coerced to 100. Based on aip.dev/158.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
            +     * Optional. The maximum number of OnlineEvaluators to return. The service may
            +     * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
            +     * will be returned. The maximum value is 100; values above 100 will be
            +     * coerced to 100. Based on aip.dev/158.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The maximum number of OnlineEvaluators to return. The service may
            +     * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
            +     * will be returned. The maximum value is 100; values above 100 will be
            +     * coerced to 100. Based on aip.dev/158.
            +     * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
            +     * Optional. A token identifying a page of results the server should return.
            +     * Based on aip.dev/158.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. A token identifying a page of results the server should return.
            +     * Based on aip.dev/158.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. A token identifying a page of results the server should return.
            +     * Based on aip.dev/158.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A token identifying a page of results the server should return.
            +     * Based on aip.dev/158.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A token identifying a page of results the server should return.
            +     * Based on aip.dev/158.
            +     * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object filter_ = ""; + + /** + * + * + *
            +     * Optional. Standard list filter.
            +     * Supported fields:
            +     * * `create_time`
            +     * * `update_time`
            +     * * `agent_resource`
            +     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
            +     * where the timestamp is in RFC 3339 format)
            +     * Based on aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Standard list filter.
            +     * Supported fields:
            +     * * `create_time`
            +     * * `update_time`
            +     * * `agent_resource`
            +     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
            +     * where the timestamp is in RFC 3339 format)
            +     * Based on aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Standard list filter.
            +     * Supported fields:
            +     * * `create_time`
            +     * * `update_time`
            +     * * `agent_resource`
            +     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
            +     * where the timestamp is in RFC 3339 format)
            +     * Based on aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Standard list filter.
            +     * Supported fields:
            +     * * `create_time`
            +     * * `update_time`
            +     * * `agent_resource`
            +     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
            +     * where the timestamp is in RFC 3339 format)
            +     * Based on aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Standard list filter.
            +     * Supported fields:
            +     * * `create_time`
            +     * * `update_time`
            +     * * `agent_resource`
            +     * Example: `create_time>"2026-01-01T00:00:00-04:00"`
            +     * where the timestamp is in RFC 3339 format)
            +     * Based on aip.dev/160.
            +     * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private java.lang.Object orderBy_ = ""; + + /** + * + * + *
            +     * Optional. A comma-separated list of fields to order by. The default sorting
            +     * order is ascending. Use "desc" after a field name for descending. Supported
            +     * fields:
            +     * * `create_time`
            +     * * `update_time`
            +     *
            +     * Example: `create_time desc`.
            +     * Based on aip.dev/132.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + public java.lang.String getOrderBy() { + java.lang.Object ref = orderBy_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + orderBy_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. A comma-separated list of fields to order by. The default sorting
            +     * order is ascending. Use "desc" after a field name for descending. Supported
            +     * fields:
            +     * * `create_time`
            +     * * `update_time`
            +     *
            +     * Example: `create_time desc`.
            +     * Based on aip.dev/132.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + public com.google.protobuf.ByteString getOrderByBytes() { + java.lang.Object ref = orderBy_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + orderBy_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. A comma-separated list of fields to order by. The default sorting
            +     * order is ascending. Use "desc" after a field name for descending. Supported
            +     * fields:
            +     * * `create_time`
            +     * * `update_time`
            +     *
            +     * Example: `create_time desc`.
            +     * Based on aip.dev/132.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderBy(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A comma-separated list of fields to order by. The default sorting
            +     * order is ascending. Use "desc" after a field name for descending. Supported
            +     * fields:
            +     * * `create_time`
            +     * * `update_time`
            +     *
            +     * Example: `create_time desc`.
            +     * Based on aip.dev/132.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearOrderBy() { + orderBy_ = getDefaultInstance().getOrderBy(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A comma-separated list of fields to order by. The default sorting
            +     * order is ascending. Use "desc" after a field name for descending. Supported
            +     * fields:
            +     * * `create_time`
            +     * * `update_time`
            +     *
            +     * Example: `create_time desc`.
            +     * Based on aip.dev/132.
            +     * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for orderBy to set. + * @return This builder for chaining. + */ + public Builder setOrderByBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + orderBy_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + private static final com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOnlineEvaluatorsRequest 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.ListOnlineEvaluatorsRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequestOrBuilder.java new file mode 100644 index 000000000000..d037774dadad --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsRequestOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ListOnlineEvaluatorsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The parent resource of the OnlineEvaluators to list.
            +   * Format: projects/{project}/locations/{location}.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
            +   * Required. The parent resource of the OnlineEvaluators to list.
            +   * Format: projects/{project}/locations/{location}.
            +   * 
            + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
            +   * Optional. The maximum number of OnlineEvaluators to return. The service may
            +   * return fewer than this value. If unspecified, at most 50 OnlineEvaluators
            +   * will be returned. The maximum value is 100; values above 100 will be
            +   * coerced to 100. Based on aip.dev/158.
            +   * 
            + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * Based on aip.dev/158.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
            +   * Optional. A token identifying a page of results the server should return.
            +   * Based on aip.dev/158.
            +   * 
            + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); + + /** + * + * + *
            +   * Optional. Standard list filter.
            +   * Supported fields:
            +   * * `create_time`
            +   * * `update_time`
            +   * * `agent_resource`
            +   * Example: `create_time>"2026-01-01T00:00:00-04:00"`
            +   * where the timestamp is in RFC 3339 format)
            +   * Based on aip.dev/160.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
            +   * Optional. Standard list filter.
            +   * Supported fields:
            +   * * `create_time`
            +   * * `update_time`
            +   * * `agent_resource`
            +   * Example: `create_time>"2026-01-01T00:00:00-04:00"`
            +   * where the timestamp is in RFC 3339 format)
            +   * Based on aip.dev/160.
            +   * 
            + * + * string filter = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
            +   * Optional. A comma-separated list of fields to order by. The default sorting
            +   * order is ascending. Use "desc" after a field name for descending. Supported
            +   * fields:
            +   * * `create_time`
            +   * * `update_time`
            +   *
            +   * Example: `create_time desc`.
            +   * Based on aip.dev/132.
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The orderBy. + */ + java.lang.String getOrderBy(); + + /** + * + * + *
            +   * Optional. A comma-separated list of fields to order by. The default sorting
            +   * order is ascending. Use "desc" after a field name for descending. Supported
            +   * fields:
            +   * * `create_time`
            +   * * `update_time`
            +   *
            +   * Example: `create_time desc`.
            +   * Based on aip.dev/132.
            +   * 
            + * + * string order_by = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for orderBy. + */ + com.google.protobuf.ByteString getOrderByBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponse.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponse.java new file mode 100644 index 000000000000..c18282e45624 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponse.java @@ -0,0 +1,1143 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Response message for ListOnlineEvaluators.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse} + */ +@com.google.protobuf.Generated +public final class ListOnlineEvaluatorsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + ListOnlineEvaluatorsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListOnlineEvaluatorsResponse"); + } + + // Use ListOnlineEvaluatorsResponse.newBuilder() to construct. + private ListOnlineEvaluatorsResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListOnlineEvaluatorsResponse() { + onlineEvaluators_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.Builder.class); + } + + public static final int ONLINE_EVALUATORS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List onlineEvaluators_; + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public java.util.List + getOnlineEvaluatorsList() { + return onlineEvaluators_; + } + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public java.util.List + getOnlineEvaluatorsOrBuilderList() { + return onlineEvaluators_; + } + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public int getOnlineEvaluatorsCount() { + return onlineEvaluators_.size(); + } + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluators(int index) { + return onlineEvaluators_.get(index); + } + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder getOnlineEvaluatorsOrBuilder( + int index) { + return onlineEvaluators_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +   * A token to retrieve the next page. Absence of this field indicates there
            +   * are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
            +   * A token to retrieve the next page. Absence of this field indicates there
            +   * are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < onlineEvaluators_.size(); i++) { + output.writeMessage(1, onlineEvaluators_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < onlineEvaluators_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, onlineEvaluators_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.ListOnlineEvaluatorsResponse)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse other = + (com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) obj; + + if (!getOnlineEvaluatorsList().equals(other.getOnlineEvaluatorsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getOnlineEvaluatorsCount() > 0) { + hash = (37 * hash) + ONLINE_EVALUATORS_FIELD_NUMBER; + hash = (53 * hash) + getOnlineEvaluatorsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse 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.ListOnlineEvaluatorsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse 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.ListOnlineEvaluatorsResponse parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse 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.ListOnlineEvaluatorsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Response message for ListOnlineEvaluators.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.class, + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (onlineEvaluatorsBuilder_ == null) { + onlineEvaluators_ = java.util.Collections.emptyList(); + } else { + onlineEvaluators_ = null; + onlineEvaluatorsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse build() { + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse buildPartial() { + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse result = + new com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse result) { + if (onlineEvaluatorsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + onlineEvaluators_ = java.util.Collections.unmodifiableList(onlineEvaluators_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.onlineEvaluators_ = onlineEvaluators_; + } else { + result.onlineEvaluators_ = onlineEvaluatorsBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse other) { + if (other + == com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse.getDefaultInstance()) + return this; + if (onlineEvaluatorsBuilder_ == null) { + if (!other.onlineEvaluators_.isEmpty()) { + if (onlineEvaluators_.isEmpty()) { + onlineEvaluators_ = other.onlineEvaluators_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.addAll(other.onlineEvaluators_); + } + onChanged(); + } + } else { + if (!other.onlineEvaluators_.isEmpty()) { + if (onlineEvaluatorsBuilder_.isEmpty()) { + onlineEvaluatorsBuilder_.dispose(); + onlineEvaluatorsBuilder_ = null; + onlineEvaluators_ = other.onlineEvaluators_; + bitField0_ = (bitField0_ & ~0x00000001); + onlineEvaluatorsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetOnlineEvaluatorsFieldBuilder() + : null; + } else { + onlineEvaluatorsBuilder_.addAllMessages(other.onlineEvaluators_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.parser(), + extensionRegistry); + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(m); + } else { + onlineEvaluatorsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List onlineEvaluators_ = + java.util.Collections.emptyList(); + + private void ensureOnlineEvaluatorsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + onlineEvaluators_ = + new java.util.ArrayList( + onlineEvaluators_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + onlineEvaluatorsBuilder_; + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public java.util.List + getOnlineEvaluatorsList() { + if (onlineEvaluatorsBuilder_ == null) { + return java.util.Collections.unmodifiableList(onlineEvaluators_); + } else { + return onlineEvaluatorsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public int getOnlineEvaluatorsCount() { + if (onlineEvaluatorsBuilder_ == null) { + return onlineEvaluators_.size(); + } else { + return onlineEvaluatorsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluators(int index) { + if (onlineEvaluatorsBuilder_ == null) { + return onlineEvaluators_.get(index); + } else { + return onlineEvaluatorsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder setOnlineEvaluators( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.set(index, value); + onChanged(); + } else { + onlineEvaluatorsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder setOnlineEvaluators( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.set(index, builderForValue.build()); + onChanged(); + } else { + onlineEvaluatorsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addOnlineEvaluators(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(value); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addOnlineEvaluators( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(index, value); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addOnlineEvaluators( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(builderForValue.build()); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addOnlineEvaluators( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.add(index, builderForValue.build()); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder addAllOnlineEvaluators( + java.lang.Iterable values) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, onlineEvaluators_); + onChanged(); + } else { + onlineEvaluatorsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder clearOnlineEvaluators() { + if (onlineEvaluatorsBuilder_ == null) { + onlineEvaluators_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + onlineEvaluatorsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public Builder removeOnlineEvaluators(int index) { + if (onlineEvaluatorsBuilder_ == null) { + ensureOnlineEvaluatorsIsMutable(); + onlineEvaluators_.remove(index); + onChanged(); + } else { + onlineEvaluatorsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder getOnlineEvaluatorsBuilder( + int index) { + return internalGetOnlineEvaluatorsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorsOrBuilder(int index) { + if (onlineEvaluatorsBuilder_ == null) { + return onlineEvaluators_.get(index); + } else { + return onlineEvaluatorsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public java.util.List + getOnlineEvaluatorsOrBuilderList() { + if (onlineEvaluatorsBuilder_ != null) { + return onlineEvaluatorsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(onlineEvaluators_); + } + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder + addOnlineEvaluatorsBuilder() { + return internalGetOnlineEvaluatorsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()); + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder addOnlineEvaluatorsBuilder( + int index) { + return internalGetOnlineEvaluatorsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()); + } + + /** + * + * + *
            +     * A list of OnlineEvaluators matching the request.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + public java.util.List + getOnlineEvaluatorsBuilderList() { + return internalGetOnlineEvaluatorsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + internalGetOnlineEvaluatorsFieldBuilder() { + if (onlineEvaluatorsBuilder_ == null) { + onlineEvaluatorsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder>( + onlineEvaluators_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + onlineEvaluators_ = null; + } + return onlineEvaluatorsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
            +     * A token to retrieve the next page. Absence of this field indicates there
            +     * are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * A token to retrieve the next page. Absence of this field indicates there
            +     * are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * A token to retrieve the next page. Absence of this field indicates there
            +     * are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to retrieve the next page. Absence of this field indicates there
            +     * are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * A token to retrieve the next page. Absence of this field indicates there
            +     * are no subsequent pages.
            +     * 
            + * + * string next_page_token = 2; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + private static final com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse(); + } + + public static com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListOnlineEvaluatorsResponse 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.ListOnlineEvaluatorsResponse + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponseOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponseOrBuilder.java new file mode 100644 index 000000000000..6d2c0ca96179 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/ListOnlineEvaluatorsResponseOrBuilder.java @@ -0,0 +1,113 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface ListOnlineEvaluatorsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + java.util.List getOnlineEvaluatorsList(); + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluators(int index); + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + int getOnlineEvaluatorsCount(); + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + java.util.List + getOnlineEvaluatorsOrBuilderList(); + + /** + * + * + *
            +   * A list of OnlineEvaluators matching the request.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluators = 1; + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder getOnlineEvaluatorsOrBuilder( + int index); + + /** + * + * + *
            +   * A token to retrieve the next page. Absence of this field indicates there
            +   * are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
            +   * A token to retrieve the next page. Absence of this field indicates there
            +   * are no subsequent pages.
            +   * 
            + * + * string next_page_token = 2; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java index 9baeab5f790b..6a7aa59852da 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Metric.java @@ -427,6 +427,7 @@ private AggregationMetric(int value) { // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Metric.AggregationMetric) } + private int bitField0_; private int metricSpecCase_ = 0; @SuppressWarnings("serial") @@ -439,6 +440,7 @@ public enum MetricSpecCase PREDEFINED_METRIC_SPEC(8), COMPUTATION_BASED_METRIC_SPEC(9), LLM_BASED_METRIC_SPEC(10), + CUSTOM_CODE_EXECUTION_SPEC(11), POINTWISE_METRIC_SPEC(2), PAIRWISE_METRIC_SPEC(3), EXACT_MATCH_SPEC(4), @@ -469,6 +471,8 @@ public static MetricSpecCase forNumber(int value) { return COMPUTATION_BASED_METRIC_SPEC; case 10: return LLM_BASED_METRIC_SPEC; + case 11: + return CUSTOM_CODE_EXECUTION_SPEC; case 2: return POINTWISE_METRIC_SPEC; case 3: @@ -667,6 +671,64 @@ public com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec getLlmBasedMetricS return com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec.getDefaultInstance(); } + public static final int CUSTOM_CODE_EXECUTION_SPEC_FIELD_NUMBER = 11; + + /** + * + * + *
            +   * Spec for Custom Code Execution metric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return Whether the customCodeExecutionSpec field is set. + */ + @java.lang.Override + public boolean hasCustomCodeExecutionSpec() { + return metricSpecCase_ == 11; + } + + /** + * + * + *
            +   * Spec for Custom Code Execution metric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return The customCodeExecutionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec getCustomCodeExecutionSpec() { + if (metricSpecCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + + /** + * + * + *
            +   * Spec for Custom Code Execution metric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder + getCustomCodeExecutionSpecOrBuilder() { + if (metricSpecCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + public static final int POINTWISE_METRIC_SPEC_FIELD_NUMBER = 2; /** @@ -1056,6 +1118,68 @@ public int getAggregationMetricsValue(int index) { private int aggregationMetricsMemoizedSerializedSize; + public static final int METADATA_FIELD_NUMBER = 13; + private com.google.cloud.aiplatform.v1beta1.MetricMetadata metadata_; + + /** + * + * + *
            +   * Optional. Metadata about the metric, used for visualization and
            +   * organization.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + @java.lang.Override + public boolean hasMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. Metadata about the metric, used for visualization and
            +   * organization.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata getMetadata() { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance() + : metadata_; + } + + /** + * + * + *
            +   * Optional. Metadata about the metric, used for visualization and
            +   * organization.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder getMetadataOrBuilder() { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance() + : metadata_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -1104,6 +1228,13 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (metricSpecCase_ == 10) { output.writeMessage(10, (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_); } + if (metricSpecCase_ == 11) { + output.writeMessage( + 11, (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(13, getMetadata()); + } getUnknownFields().writeTo(output); } @@ -1167,6 +1298,14 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, (com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpec) metricSpec_); } + if (metricSpecCase_ == 11) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 11, (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(13, getMetadata()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -1184,6 +1323,10 @@ public boolean equals(final java.lang.Object obj) { (com.google.cloud.aiplatform.v1beta1.Metric) obj; if (!aggregationMetrics_.equals(other.aggregationMetrics_)) return false; + if (hasMetadata() != other.hasMetadata()) return false; + if (hasMetadata()) { + if (!getMetadata().equals(other.getMetadata())) return false; + } if (!getMetricSpecCase().equals(other.getMetricSpecCase())) return false; switch (metricSpecCase_) { case 8: @@ -1196,6 +1339,9 @@ public boolean equals(final java.lang.Object obj) { case 10: if (!getLlmBasedMetricSpec().equals(other.getLlmBasedMetricSpec())) return false; break; + case 11: + if (!getCustomCodeExecutionSpec().equals(other.getCustomCodeExecutionSpec())) return false; + break; case 2: if (!getPointwiseMetricSpec().equals(other.getPointwiseMetricSpec())) return false; break; @@ -1229,6 +1375,10 @@ public int hashCode() { hash = (37 * hash) + AGGREGATION_METRICS_FIELD_NUMBER; hash = (53 * hash) + aggregationMetrics_.hashCode(); } + if (hasMetadata()) { + hash = (37 * hash) + METADATA_FIELD_NUMBER; + hash = (53 * hash) + getMetadata().hashCode(); + } switch (metricSpecCase_) { case 8: hash = (37 * hash) + PREDEFINED_METRIC_SPEC_FIELD_NUMBER; @@ -1242,6 +1392,10 @@ public int hashCode() { hash = (37 * hash) + LLM_BASED_METRIC_SPEC_FIELD_NUMBER; hash = (53 * hash) + getLlmBasedMetricSpec().hashCode(); break; + case 11: + hash = (37 * hash) + CUSTOM_CODE_EXECUTION_SPEC_FIELD_NUMBER; + hash = (53 * hash) + getCustomCodeExecutionSpec().hashCode(); + break; case 2: hash = (37 * hash) + POINTWISE_METRIC_SPEC_FIELD_NUMBER; hash = (53 * hash) + getPointwiseMetricSpec().hashCode(); @@ -1395,10 +1549,19 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { } // Construct using com.google.cloud.aiplatform.v1beta1.Metric.newBuilder() - private Builder() {} + private Builder() { + maybeForceBuilderInitialization(); + } private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetadataFieldBuilder(); + } } @java.lang.Override @@ -1414,6 +1577,9 @@ public Builder clear() { if (llmBasedMetricSpecBuilder_ != null) { llmBasedMetricSpecBuilder_.clear(); } + if (customCodeExecutionSpecBuilder_ != null) { + customCodeExecutionSpecBuilder_.clear(); + } if (pointwiseMetricSpecBuilder_ != null) { pointwiseMetricSpecBuilder_.clear(); } @@ -1430,6 +1596,11 @@ public Builder clear() { rougeSpecBuilder_.clear(); } aggregationMetrics_ = emptyIntList(); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } metricSpecCase_ = 0; metricSpec_ = null; return this; @@ -1469,10 +1640,16 @@ public com.google.cloud.aiplatform.v1beta1.Metric buildPartial() { private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Metric result) { int from_bitField0_ = bitField0_; - if (((from_bitField0_ & 0x00000100) != 0)) { + if (((from_bitField0_ & 0x00000200) != 0)) { aggregationMetrics_.makeImmutable(); result.aggregationMetrics_ = aggregationMetrics_; } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000400) != 0)) { + result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + result.bitField0_ |= to_bitField0_; } private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.Metric result) { @@ -1487,6 +1664,9 @@ private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.Metric resul if (metricSpecCase_ == 10 && llmBasedMetricSpecBuilder_ != null) { result.metricSpec_ = llmBasedMetricSpecBuilder_.build(); } + if (metricSpecCase_ == 11 && customCodeExecutionSpecBuilder_ != null) { + result.metricSpec_ = customCodeExecutionSpecBuilder_.build(); + } if (metricSpecCase_ == 2 && pointwiseMetricSpecBuilder_ != null) { result.metricSpec_ = pointwiseMetricSpecBuilder_.build(); } @@ -1520,13 +1700,16 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Metric other) { if (aggregationMetrics_.isEmpty()) { aggregationMetrics_ = other.aggregationMetrics_; aggregationMetrics_.makeImmutable(); - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } else { ensureAggregationMetricsIsMutable(); aggregationMetrics_.addAll(other.aggregationMetrics_); } onChanged(); } + if (other.hasMetadata()) { + mergeMetadata(other.getMetadata()); + } switch (other.getMetricSpecCase()) { case PREDEFINED_METRIC_SPEC: { @@ -1543,6 +1726,11 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Metric other) { mergeLlmBasedMetricSpec(other.getLlmBasedMetricSpec()); break; } + case CUSTOM_CODE_EXECUTION_SPEC: + { + mergeCustomCodeExecutionSpec(other.getCustomCodeExecutionSpec()); + break; + } case POINTWISE_METRIC_SPEC: { mergePointwiseMetricSpec(other.getPointwiseMetricSpec()); @@ -1674,6 +1862,21 @@ public Builder mergeFrom( metricSpecCase_ = 10; break; } // case 82 + case 90: + { + input.readMessage( + internalGetCustomCodeExecutionSpecFieldBuilder().getBuilder(), + extensionRegistry); + metricSpecCase_ = 11; + break; + } // case 90 + case 106: + { + input.readMessage( + internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000400; + break; + } // case 106 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -2407,6 +2610,250 @@ public Builder clearLlmBasedMetricSpec() { return llmBasedMetricSpecBuilder_; } + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder> + customCodeExecutionSpecBuilder_; + + /** + * + * + *
            +     * Spec for Custom Code Execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return Whether the customCodeExecutionSpec field is set. + */ + @java.lang.Override + public boolean hasCustomCodeExecutionSpec() { + return metricSpecCase_ == 11; + } + + /** + * + * + *
            +     * Spec for Custom Code Execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return The customCodeExecutionSpec. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec + getCustomCodeExecutionSpec() { + if (customCodeExecutionSpecBuilder_ == null) { + if (metricSpecCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } else { + if (metricSpecCase_ == 11) { + return customCodeExecutionSpecBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Spec for Custom Code Execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public Builder setCustomCodeExecutionSpec( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec value) { + if (customCodeExecutionSpecBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSpec_ = value; + onChanged(); + } else { + customCodeExecutionSpecBuilder_.setMessage(value); + } + metricSpecCase_ = 11; + return this; + } + + /** + * + * + *
            +     * Spec for Custom Code Execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public Builder setCustomCodeExecutionSpec( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder builderForValue) { + if (customCodeExecutionSpecBuilder_ == null) { + metricSpec_ = builderForValue.build(); + onChanged(); + } else { + customCodeExecutionSpecBuilder_.setMessage(builderForValue.build()); + } + metricSpecCase_ = 11; + return this; + } + + /** + * + * + *
            +     * Spec for Custom Code Execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public Builder mergeCustomCodeExecutionSpec( + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec value) { + if (customCodeExecutionSpecBuilder_ == null) { + if (metricSpecCase_ == 11 + && metricSpec_ + != com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec + .getDefaultInstance()) { + metricSpec_ = + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.newBuilder( + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_) + .mergeFrom(value) + .buildPartial(); + } else { + metricSpec_ = value; + } + onChanged(); + } else { + if (metricSpecCase_ == 11) { + customCodeExecutionSpecBuilder_.mergeFrom(value); + } else { + customCodeExecutionSpecBuilder_.setMessage(value); + } + } + metricSpecCase_ = 11; + return this; + } + + /** + * + * + *
            +     * Spec for Custom Code Execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public Builder clearCustomCodeExecutionSpec() { + if (customCodeExecutionSpecBuilder_ == null) { + if (metricSpecCase_ == 11) { + metricSpecCase_ = 0; + metricSpec_ = null; + onChanged(); + } + } else { + if (metricSpecCase_ == 11) { + metricSpecCase_ = 0; + metricSpec_ = null; + } + customCodeExecutionSpecBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Spec for Custom Code Execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder + getCustomCodeExecutionSpecBuilder() { + return internalGetCustomCodeExecutionSpecFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Spec for Custom Code Execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder + getCustomCodeExecutionSpecOrBuilder() { + if ((metricSpecCase_ == 11) && (customCodeExecutionSpecBuilder_ != null)) { + return customCodeExecutionSpecBuilder_.getMessageOrBuilder(); + } else { + if (metricSpecCase_ == 11) { + return (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_; + } + return com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Spec for Custom Code Execution metric.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder> + internalGetCustomCodeExecutionSpecFieldBuilder() { + if (customCodeExecutionSpecBuilder_ == null) { + if (!(metricSpecCase_ == 11)) { + metricSpec_ = + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.getDefaultInstance(); + } + customCodeExecutionSpecBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec.Builder, + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec) metricSpec_, + getParentForChildren(), + isClean()); + metricSpec_ = null; + } + metricSpecCase_ = 11; + onChanged(); + return customCodeExecutionSpecBuilder_; + } + private com.google.protobuf.SingleFieldBuilder< com.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec, com.google.cloud.aiplatform.v1beta1.PointwiseMetricSpec.Builder, @@ -3516,7 +3963,7 @@ private void ensureAggregationMetricsIsMutable() { if (!aggregationMetrics_.isModifiable()) { aggregationMetrics_ = makeMutableCopy(aggregationMetrics_); } - bitField0_ |= 0x00000100; + bitField0_ |= 0x00000200; } /** @@ -3666,7 +4113,7 @@ public Builder addAllAggregationMetrics( */ public Builder clearAggregationMetrics() { aggregationMetrics_ = emptyIntList(); - bitField0_ = (bitField0_ & ~0x00000100); + bitField0_ = (bitField0_ & ~0x00000200); onChanged(); return this; } @@ -3773,6 +4220,229 @@ public Builder addAllAggregationMetricsValue(java.lang.Iterable + metadataBuilder_; + + /** + * + * + *
            +     * Optional. Metadata about the metric, used for visualization and
            +     * organization.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + public boolean hasMetadata() { + return ((bitField0_ & 0x00000400) != 0); + } + + /** + * + * + *
            +     * Optional. Metadata about the metric, used for visualization and
            +     * organization.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata getMetadata() { + if (metadataBuilder_ == null) { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance() + : metadata_; + } else { + return metadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Metadata about the metric, used for visualization and
            +     * organization.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetadata(com.google.cloud.aiplatform.v1beta1.MetricMetadata value) { + if (metadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metadata_ = value; + } else { + metadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Metadata about the metric, used for visualization and
            +     * organization.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setMetadata( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder builderForValue) { + if (metadataBuilder_ == null) { + metadata_ = builderForValue.build(); + } else { + metadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Metadata about the metric, used for visualization and
            +     * organization.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeMetadata(com.google.cloud.aiplatform.v1beta1.MetricMetadata value) { + if (metadataBuilder_ == null) { + if (((bitField0_ & 0x00000400) != 0) + && metadata_ != null + && metadata_ + != com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance()) { + getMetadataBuilder().mergeFrom(value); + } else { + metadata_ = value; + } + } else { + metadataBuilder_.mergeFrom(value); + } + if (metadata_ != null) { + bitField0_ |= 0x00000400; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Metadata about the metric, used for visualization and
            +     * organization.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearMetadata() { + bitField0_ = (bitField0_ & ~0x00000400); + metadata_ = null; + if (metadataBuilder_ != null) { + metadataBuilder_.dispose(); + metadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Metadata about the metric, used for visualization and
            +     * organization.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder getMetadataBuilder() { + bitField0_ |= 0x00000400; + onChanged(); + return internalGetMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Metadata about the metric, used for visualization and
            +     * organization.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder getMetadataOrBuilder() { + if (metadataBuilder_ != null) { + return metadataBuilder_.getMessageOrBuilder(); + } else { + return metadata_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance() + : metadata_; + } + } + + /** + * + * + *
            +     * Optional. Metadata about the metric, used for visualization and
            +     * organization.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder> + internalGetMetadataFieldBuilder() { + if (metadataBuilder_ == null) { + metadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder>( + getMetadata(), getParentForChildren(), isClean()); + metadata_ = null; + } + return metadataBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Metric) } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadata.java new file mode 100644 index 000000000000..33ec327fb99c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadata.java @@ -0,0 +1,2342 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Metadata about the metric, used for visualization and organization.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricMetadata} + */ +@com.google.protobuf.Generated +public final class MetricMetadata extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricMetadata) + MetricMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MetricMetadata"); + } + + // Use MetricMetadata.newBuilder() to construct. + private MetricMetadata(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MetricMetadata() { + title_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.class, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder.class); + } + + public interface ScoreRangeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Required. The minimum value of the score range (inclusive).
            +     * 
            + * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the min field is set. + */ + boolean hasMin(); + + /** + * + * + *
            +     * Required. The minimum value of the score range (inclusive).
            +     * 
            + * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The min. + */ + double getMin(); + + /** + * + * + *
            +     * Required. The maximum value of the score range (inclusive).
            +     * 
            + * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the max field is set. + */ + boolean hasMax(); + + /** + * + * + *
            +     * Required. The maximum value of the score range (inclusive).
            +     * 
            + * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The max. + */ + double getMax(); + + /** + * + * + *
            +     * Optional. The distance between discrete steps in the range.
            +     * If unset, the range is assumed to be continuous.
            +     * 
            + * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the step field is set. + */ + boolean hasStep(); + + /** + * + * + *
            +     * Optional. The distance between discrete steps in the range.
            +     * If unset, the range is assumed to be continuous.
            +     * 
            + * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The step. + */ + double getStep(); + + /** + * + * + *
            +     * Optional. The description of the score explaining the directionality etc.
            +     * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +     * Optional. The description of the score explaining the directionality etc.
            +     * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + } + + /** + * + * + *
            +   * The range of possible scores for this metric, used for plotting.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange} + */ + public static final class ScoreRange extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + ScoreRangeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ScoreRange"); + } + + // Use ScoreRange.newBuilder() to construct. + private ScoreRange(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ScoreRange() { + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.class, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder.class); + } + + private int bitField0_; + public static final int MIN_FIELD_NUMBER = 1; + private double min_ = 0D; + + /** + * + * + *
            +     * Required. The minimum value of the score range (inclusive).
            +     * 
            + * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the min field is set. + */ + @java.lang.Override + public boolean hasMin() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The minimum value of the score range (inclusive).
            +     * 
            + * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + + public static final int MAX_FIELD_NUMBER = 2; + private double max_ = 0D; + + /** + * + * + *
            +     * Required. The maximum value of the score range (inclusive).
            +     * 
            + * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the max field is set. + */ + @java.lang.Override + public boolean hasMax() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The maximum value of the score range (inclusive).
            +     * 
            + * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + + public static final int STEP_FIELD_NUMBER = 3; + private double step_ = 0D; + + /** + * + * + *
            +     * Optional. The distance between discrete steps in the range.
            +     * If unset, the range is assumed to be continuous.
            +     * 
            + * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the step field is set. + */ + @java.lang.Override + public boolean hasStep() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. The distance between discrete steps in the range.
            +     * If unset, the range is assumed to be continuous.
            +     * 
            + * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The step. + */ + @java.lang.Override + public double getStep() { + return step_; + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +     * Optional. The description of the score explaining the directionality etc.
            +     * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. The description of the score explaining the directionality etc.
            +     * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = 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)) { + output.writeDouble(1, min_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeDouble(2, max_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeDouble(3, step_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + 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.computeDoubleSize(1, min_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, max_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(3, step_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + 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.MetricMetadata.ScoreRange)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange other = + (com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) obj; + + if (hasMin() != other.hasMin()) return false; + if (hasMin()) { + if (java.lang.Double.doubleToLongBits(getMin()) + != java.lang.Double.doubleToLongBits(other.getMin())) return false; + } + if (hasMax() != other.hasMax()) return false; + if (hasMax()) { + if (java.lang.Double.doubleToLongBits(getMax()) + != java.lang.Double.doubleToLongBits(other.getMax())) return false; + } + if (hasStep() != other.hasStep()) return false; + if (hasStep()) { + if (java.lang.Double.doubleToLongBits(getStep()) + != java.lang.Double.doubleToLongBits(other.getStep())) return false; + } + if (!getDescription().equals(other.getDescription())) 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 (hasMin()) { + hash = (37 * hash) + MIN_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMin())); + } + if (hasMax()) { + hash = (37 * hash) + MAX_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getMax())); + } + if (hasStep()) { + hash = (37 * hash) + STEP_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getStep())); + } + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange 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.MetricMetadata.ScoreRange parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange 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.MetricMetadata.ScoreRange parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange 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.MetricMetadata.ScoreRange parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_ScoreRange_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.class, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + min_ = 0D; + max_ = 0D; + step_ = 0D; + description_ = ""; + 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_MetricMetadata_ScoreRange_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange build() { + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange result = + new com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.min_ = min_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.max_ = max_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.step_ = step_; + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.description_ = description_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange other) { + if (other + == com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance()) + return this; + if (other.hasMin()) { + setMin(other.getMin()); + } + if (other.hasMax()) { + setMax(other.getMax()); + } + if (other.hasStep()) { + setStep(other.getStep()); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000008; + 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 9: + { + min_ = input.readDouble(); + bitField0_ |= 0x00000001; + break; + } // case 9 + case 17: + { + max_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + case 25: + { + step_ = input.readDouble(); + bitField0_ |= 0x00000004; + break; + } // case 25 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + 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 double min_; + + /** + * + * + *
            +       * Required. The minimum value of the score range (inclusive).
            +       * 
            + * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the min field is set. + */ + @java.lang.Override + public boolean hasMin() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +       * Required. The minimum value of the score range (inclusive).
            +       * 
            + * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The min. + */ + @java.lang.Override + public double getMin() { + return min_; + } + + /** + * + * + *
            +       * Required. The minimum value of the score range (inclusive).
            +       * 
            + * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The min to set. + * @return This builder for chaining. + */ + public Builder setMin(double value) { + + min_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The minimum value of the score range (inclusive).
            +       * 
            + * + * optional double min = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMin() { + bitField0_ = (bitField0_ & ~0x00000001); + min_ = 0D; + onChanged(); + return this; + } + + private double max_; + + /** + * + * + *
            +       * Required. The maximum value of the score range (inclusive).
            +       * 
            + * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return Whether the max field is set. + */ + @java.lang.Override + public boolean hasMax() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +       * Required. The maximum value of the score range (inclusive).
            +       * 
            + * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The max. + */ + @java.lang.Override + public double getMax() { + return max_; + } + + /** + * + * + *
            +       * Required. The maximum value of the score range (inclusive).
            +       * 
            + * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The max to set. + * @return This builder for chaining. + */ + public Builder setMax(double value) { + + max_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Required. The maximum value of the score range (inclusive).
            +       * 
            + * + * optional double max = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearMax() { + bitField0_ = (bitField0_ & ~0x00000002); + max_ = 0D; + onChanged(); + return this; + } + + private double step_; + + /** + * + * + *
            +       * Optional. The distance between discrete steps in the range.
            +       * If unset, the range is assumed to be continuous.
            +       * 
            + * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the step field is set. + */ + @java.lang.Override + public boolean hasStep() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +       * Optional. The distance between discrete steps in the range.
            +       * If unset, the range is assumed to be continuous.
            +       * 
            + * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The step. + */ + @java.lang.Override + public double getStep() { + return step_; + } + + /** + * + * + *
            +       * Optional. The distance between discrete steps in the range.
            +       * If unset, the range is assumed to be continuous.
            +       * 
            + * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The step to set. + * @return This builder for chaining. + */ + public Builder setStep(double value) { + + step_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The distance between discrete steps in the range.
            +       * If unset, the range is assumed to be continuous.
            +       * 
            + * + * optional double step = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearStep() { + bitField0_ = (bitField0_ & ~0x00000004); + step_ = 0D; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
            +       * Optional. The description of the score explaining the directionality etc.
            +       * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. The description of the score explaining the directionality etc.
            +       * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. The description of the score explaining the directionality etc.
            +       * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The description of the score explaining the directionality etc.
            +       * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The description of the score explaining the directionality etc.
            +       * 
            + * + * string description = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange) + private static final com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ScoreRange 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.MetricMetadata.ScoreRange + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int TITLE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object title_ = ""; + + /** + * + * + *
            +   * Optional. The user-friendly name for the metric. If not set for a
            +   * registered metric, it will default to the metric's display name.
            +   * 
            + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + @java.lang.Override + public java.lang.String getTitle() { + java.lang.Object ref = title_; + 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(); + title_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. The user-friendly name for the metric. If not set for a
            +   * registered metric, it will default to the metric's display name.
            +   * 
            + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SCORE_RANGE_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange scoreRange_; + + /** + * + * + *
            +   * Optional. The range of possible scores for this metric, used for plotting.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scoreRange field is set. + */ + @java.lang.Override + public boolean hasScoreRange() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Optional. The range of possible scores for this metric, used for plotting.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scoreRange. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange getScoreRange() { + return scoreRange_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance() + : scoreRange_; + } + + /** + * + * + *
            +   * Optional. The range of possible scores for this metric, used for plotting.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder + getScoreRangeOrBuilder() { + return scoreRange_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance() + : scoreRange_; + } + + public static final int OTHER_METADATA_FIELD_NUMBER = 3; + private com.google.protobuf.Struct otherMetadata_; + + /** + * + * + *
            +   * Optional. Flexible metadata for user-defined attributes.
            +   * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherMetadata field is set. + */ + @java.lang.Override + public boolean hasOtherMetadata() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Flexible metadata for user-defined attributes.
            +   * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherMetadata. + */ + @java.lang.Override + public com.google.protobuf.Struct getOtherMetadata() { + return otherMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : otherMetadata_; + } + + /** + * + * + *
            +   * Optional. Flexible metadata for user-defined attributes.
            +   * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.StructOrBuilder getOtherMetadataOrBuilder() { + return otherMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : otherMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getScoreRange()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(3, getOtherMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(title_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, title_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getScoreRange()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getOtherMetadata()); + } + 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.MetricMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricMetadata other = + (com.google.cloud.aiplatform.v1beta1.MetricMetadata) obj; + + if (!getTitle().equals(other.getTitle())) return false; + if (hasScoreRange() != other.hasScoreRange()) return false; + if (hasScoreRange()) { + if (!getScoreRange().equals(other.getScoreRange())) return false; + } + if (hasOtherMetadata() != other.hasOtherMetadata()) return false; + if (hasOtherMetadata()) { + if (!getOtherMetadata().equals(other.getOtherMetadata())) 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) + TITLE_FIELD_NUMBER; + hash = (53 * hash) + getTitle().hashCode(); + if (hasScoreRange()) { + hash = (37 * hash) + SCORE_RANGE_FIELD_NUMBER; + hash = (53 * hash) + getScoreRange().hashCode(); + } + if (hasOtherMetadata()) { + hash = (37 * hash) + OTHER_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getOtherMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata 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.MetricMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata 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.MetricMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata 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.MetricMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.MetricMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata about the metric, used for visualization and organization.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricMetadata) + com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.class, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetScoreRangeFieldBuilder(); + internalGetOtherMetadataFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + title_ = ""; + scoreRange_ = null; + if (scoreRangeBuilder_ != null) { + scoreRangeBuilder_.dispose(); + scoreRangeBuilder_ = null; + } + otherMetadata_ = null; + if (otherMetadataBuilder_ != null) { + otherMetadataBuilder_.dispose(); + otherMetadataBuilder_ = 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_MetricMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata build() { + com.google.cloud.aiplatform.v1beta1.MetricMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricMetadata buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricMetadata result = + new com.google.cloud.aiplatform.v1beta1.MetricMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.title_ = title_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.scoreRange_ = scoreRangeBuilder_ == null ? scoreRange_ : scoreRangeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.otherMetadata_ = + otherMetadataBuilder_ == null ? otherMetadata_ : otherMetadataBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.MetricMetadata) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricMetadata other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetricMetadata.getDefaultInstance()) + return this; + if (!other.getTitle().isEmpty()) { + title_ = other.title_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasScoreRange()) { + mergeScoreRange(other.getScoreRange()); + } + if (other.hasOtherMetadata()) { + mergeOtherMetadata(other.getOtherMetadata()); + } + 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: + { + title_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetScoreRangeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetOtherMetadataFieldBuilder().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 title_ = ""; + + /** + * + * + *
            +     * Optional. The user-friendly name for the metric. If not set for a
            +     * registered metric, it will default to the metric's display name.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + public java.lang.String getTitle() { + java.lang.Object ref = title_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + title_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. The user-friendly name for the metric. If not set for a
            +     * registered metric, it will default to the metric's display name.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + public com.google.protobuf.ByteString getTitleBytes() { + java.lang.Object ref = title_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + title_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. The user-friendly name for the metric. If not set for a
            +     * registered metric, it will default to the metric's display name.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The title to set. + * @return This builder for chaining. + */ + public Builder setTitle(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The user-friendly name for the metric. If not set for a
            +     * registered metric, it will default to the metric's display name.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTitle() { + title_ = getDefaultInstance().getTitle(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The user-friendly name for the metric. If not set for a
            +     * registered metric, it will default to the metric's display name.
            +     * 
            + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for title to set. + * @return This builder for chaining. + */ + public Builder setTitleBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + title_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange scoreRange_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder> + scoreRangeBuilder_; + + /** + * + * + *
            +     * Optional. The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scoreRange field is set. + */ + public boolean hasScoreRange() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scoreRange. + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange getScoreRange() { + if (scoreRangeBuilder_ == null) { + return scoreRange_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance() + : scoreRange_; + } else { + return scoreRangeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScoreRange( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange value) { + if (scoreRangeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + scoreRange_ = value; + } else { + scoreRangeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setScoreRange( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder builderForValue) { + if (scoreRangeBuilder_ == null) { + scoreRange_ = builderForValue.build(); + } else { + scoreRangeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeScoreRange( + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange value) { + if (scoreRangeBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && scoreRange_ != null + && scoreRange_ + != com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange + .getDefaultInstance()) { + getScoreRangeBuilder().mergeFrom(value); + } else { + scoreRange_ = value; + } + } else { + scoreRangeBuilder_.mergeFrom(value); + } + if (scoreRange_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearScoreRange() { + bitField0_ = (bitField0_ & ~0x00000002); + scoreRange_ = null; + if (scoreRangeBuilder_ != null) { + scoreRangeBuilder_.dispose(); + scoreRangeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder + getScoreRangeBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetScoreRangeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder + getScoreRangeOrBuilder() { + if (scoreRangeBuilder_ != null) { + return scoreRangeBuilder_.getMessageOrBuilder(); + } else { + return scoreRange_ == null + ? com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.getDefaultInstance() + : scoreRange_; + } + } + + /** + * + * + *
            +     * Optional. The range of possible scores for this metric, used for plotting.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder> + internalGetScoreRangeFieldBuilder() { + if (scoreRangeBuilder_ == null) { + scoreRangeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange.Builder, + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder>( + getScoreRange(), getParentForChildren(), isClean()); + scoreRange_ = null; + } + return scoreRangeBuilder_; + } + + private com.google.protobuf.Struct otherMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + otherMetadataBuilder_; + + /** + * + * + *
            +     * Optional. Flexible metadata for user-defined attributes.
            +     * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherMetadata field is set. + */ + public boolean hasOtherMetadata() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. Flexible metadata for user-defined attributes.
            +     * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherMetadata. + */ + public com.google.protobuf.Struct getOtherMetadata() { + if (otherMetadataBuilder_ == null) { + return otherMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : otherMetadata_; + } else { + return otherMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Flexible metadata for user-defined attributes.
            +     * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOtherMetadata(com.google.protobuf.Struct value) { + if (otherMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + otherMetadata_ = value; + } else { + otherMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Flexible metadata for user-defined attributes.
            +     * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setOtherMetadata(com.google.protobuf.Struct.Builder builderForValue) { + if (otherMetadataBuilder_ == null) { + otherMetadata_ = builderForValue.build(); + } else { + otherMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Flexible metadata for user-defined attributes.
            +     * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeOtherMetadata(com.google.protobuf.Struct value) { + if (otherMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && otherMetadata_ != null + && otherMetadata_ != com.google.protobuf.Struct.getDefaultInstance()) { + getOtherMetadataBuilder().mergeFrom(value); + } else { + otherMetadata_ = value; + } + } else { + otherMetadataBuilder_.mergeFrom(value); + } + if (otherMetadata_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Flexible metadata for user-defined attributes.
            +     * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearOtherMetadata() { + bitField0_ = (bitField0_ & ~0x00000004); + otherMetadata_ = null; + if (otherMetadataBuilder_ != null) { + otherMetadataBuilder_.dispose(); + otherMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Flexible metadata for user-defined attributes.
            +     * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.Struct.Builder getOtherMetadataBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetOtherMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Flexible metadata for user-defined attributes.
            +     * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.StructOrBuilder getOtherMetadataOrBuilder() { + if (otherMetadataBuilder_ != null) { + return otherMetadataBuilder_.getMessageOrBuilder(); + } else { + return otherMetadata_ == null + ? com.google.protobuf.Struct.getDefaultInstance() + : otherMetadata_; + } + } + + /** + * + * + *
            +     * Optional. Flexible metadata for user-defined attributes.
            +     * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder> + internalGetOtherMetadataFieldBuilder() { + if (otherMetadataBuilder_ == null) { + otherMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Struct, + com.google.protobuf.Struct.Builder, + com.google.protobuf.StructOrBuilder>( + getOtherMetadata(), getParentForChildren(), isClean()); + otherMetadata_ = null; + } + return otherMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.MetricMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricMetadata) + private static final com.google.cloud.aiplatform.v1beta1.MetricMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricMetadata 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.MetricMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadataOrBuilder.java new file mode 100644 index 000000000000..af6c1c15fa3c --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricMetadataOrBuilder.java @@ -0,0 +1,139 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface MetricMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Optional. The user-friendly name for the metric. If not set for a
            +   * registered metric, it will default to the metric's display name.
            +   * 
            + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The title. + */ + java.lang.String getTitle(); + + /** + * + * + *
            +   * Optional. The user-friendly name for the metric. If not set for a
            +   * registered metric, it will default to the metric's display name.
            +   * 
            + * + * string title = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for title. + */ + com.google.protobuf.ByteString getTitleBytes(); + + /** + * + * + *
            +   * Optional. The range of possible scores for this metric, used for plotting.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the scoreRange field is set. + */ + boolean hasScoreRange(); + + /** + * + * + *
            +   * Optional. The range of possible scores for this metric, used for plotting.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The scoreRange. + */ + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange getScoreRange(); + + /** + * + * + *
            +   * Optional. The range of possible scores for this metric, used for plotting.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRange score_range = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricMetadata.ScoreRangeOrBuilder getScoreRangeOrBuilder(); + + /** + * + * + *
            +   * Optional. Flexible metadata for user-defined attributes.
            +   * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the otherMetadata field is set. + */ + boolean hasOtherMetadata(); + + /** + * + * + *
            +   * Optional. Flexible metadata for user-defined attributes.
            +   * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The otherMetadata. + */ + com.google.protobuf.Struct getOtherMetadata(); + + /** + * + * + *
            +   * Optional. Flexible metadata for user-defined attributes.
            +   * 
            + * + * .google.protobuf.Struct other_metadata = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.StructOrBuilder getOtherMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java index 006c928faa18..dda4891f8cc9 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricOrBuilder.java @@ -145,6 +145,47 @@ public interface MetricOrBuilder */ com.google.cloud.aiplatform.v1beta1.LLMBasedMetricSpecOrBuilder getLlmBasedMetricSpecOrBuilder(); + /** + * + * + *
            +   * Spec for Custom Code Execution metric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return Whether the customCodeExecutionSpec field is set. + */ + boolean hasCustomCodeExecutionSpec(); + + /** + * + * + *
            +   * Spec for Custom Code Execution metric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + * + * @return The customCodeExecutionSpec. + */ + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec getCustomCodeExecutionSpec(); + + /** + * + * + *
            +   * Spec for Custom Code Execution metric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpec custom_code_execution_spec = 11; + * + */ + com.google.cloud.aiplatform.v1beta1.CustomCodeExecutionSpecOrBuilder + getCustomCodeExecutionSpecOrBuilder(); + /** * * @@ -409,5 +450,51 @@ public interface MetricOrBuilder */ int getAggregationMetricsValue(int index); + /** + * + * + *
            +   * Optional. Metadata about the metric, used for visualization and
            +   * organization.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the metadata field is set. + */ + boolean hasMetadata(); + + /** + * + * + *
            +   * Optional. Metadata about the metric, used for visualization and
            +   * organization.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The metadata. + */ + com.google.cloud.aiplatform.v1beta1.MetricMetadata getMetadata(); + + /** + * + * + *
            +   * Optional. Metadata about the metric, used for visualization and
            +   * organization.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.MetricMetadata metadata = 13 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricMetadataOrBuilder getMetadataOrBuilder(); + com.google.cloud.aiplatform.v1beta1.Metric.MetricSpecCase getMetricSpecCase(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java index d485627df291..3b0cca8c212c 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResult.java @@ -52,6 +52,7 @@ private MetricResult(com.google.protobuf.GeneratedMessage.Builder builder) { } private MetricResult() { + rubricVerdicts_ = java.util.Collections.emptyList(); explanation_ = ""; } @@ -108,6 +109,93 @@ public float getScore() { return score_; } + public static final int RUBRIC_VERDICTS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private java.util.List rubricVerdicts_; + + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List getRubricVerdictsList() { + return rubricVerdicts_; + } + + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getRubricVerdictsOrBuilderList() { + return rubricVerdicts_; + } + + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getRubricVerdictsCount() { + return rubricVerdicts_.size(); + } + + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdict getRubricVerdicts(int index) { + return rubricVerdicts_.get(index); + } + + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder getRubricVerdictsOrBuilder( + int index) { + return rubricVerdicts_.get(index); + } + public static final int EXPLANATION_FIELD_NUMBER = 3; @SuppressWarnings("serial") @@ -246,6 +334,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(1, score_); } + for (int i = 0; i < rubricVerdicts_.size(); i++) { + output.writeMessage(2, rubricVerdicts_.get(i)); + } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessage.writeString(output, 3, explanation_); } @@ -264,6 +355,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeFloatSize(1, score_); } + for (int i = 0; i < rubricVerdicts_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, rubricVerdicts_.get(i)); + } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(3, explanation_); } @@ -291,6 +385,7 @@ public boolean equals(final java.lang.Object obj) { if (java.lang.Float.floatToIntBits(getScore()) != java.lang.Float.floatToIntBits(other.getScore())) return false; } + if (!getRubricVerdictsList().equals(other.getRubricVerdictsList())) return false; if (hasExplanation() != other.hasExplanation()) return false; if (hasExplanation()) { if (!getExplanation().equals(other.getExplanation())) return false; @@ -314,6 +409,10 @@ public int hashCode() { hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits(getScore()); } + if (getRubricVerdictsCount() > 0) { + hash = (37 * hash) + RUBRIC_VERDICTS_FIELD_NUMBER; + hash = (53 * hash) + getRubricVerdictsList().hashCode(); + } if (hasExplanation()) { hash = (37 * hash) + EXPLANATION_FIELD_NUMBER; hash = (53 * hash) + getExplanation().hashCode(); @@ -463,6 +562,7 @@ private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetRubricVerdictsFieldBuilder(); internalGetErrorFieldBuilder(); } } @@ -472,6 +572,13 @@ public Builder clear() { super.clear(); bitField0_ = 0; score_ = 0F; + if (rubricVerdictsBuilder_ == null) { + rubricVerdicts_ = java.util.Collections.emptyList(); + } else { + rubricVerdicts_ = null; + rubricVerdictsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000002); explanation_ = ""; error_ = null; if (errorBuilder_ != null) { @@ -505,6 +612,7 @@ public com.google.cloud.aiplatform.v1beta1.MetricResult build() { public com.google.cloud.aiplatform.v1beta1.MetricResult buildPartial() { com.google.cloud.aiplatform.v1beta1.MetricResult result = new com.google.cloud.aiplatform.v1beta1.MetricResult(this); + buildPartialRepeatedFields(result); if (bitField0_ != 0) { buildPartial0(result); } @@ -512,6 +620,19 @@ public com.google.cloud.aiplatform.v1beta1.MetricResult buildPartial() { return result; } + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.MetricResult result) { + if (rubricVerdictsBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0)) { + rubricVerdicts_ = java.util.Collections.unmodifiableList(rubricVerdicts_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.rubricVerdicts_ = rubricVerdicts_; + } else { + result.rubricVerdicts_ = rubricVerdictsBuilder_.build(); + } + } + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricResult result) { int from_bitField0_ = bitField0_; int to_bitField0_ = 0; @@ -519,11 +640,11 @@ private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricResult resu result.score_ = score_; to_bitField0_ |= 0x00000001; } - if (((from_bitField0_ & 0x00000002) != 0)) { + if (((from_bitField0_ & 0x00000004) != 0)) { result.explanation_ = explanation_; to_bitField0_ |= 0x00000002; } - if (((from_bitField0_ & 0x00000004) != 0)) { + if (((from_bitField0_ & 0x00000008) != 0)) { result.error_ = errorBuilder_ == null ? error_ : errorBuilder_.build(); to_bitField0_ |= 0x00000004; } @@ -546,9 +667,36 @@ public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricResult other) if (other.hasScore()) { setScore(other.getScore()); } + if (rubricVerdictsBuilder_ == null) { + if (!other.rubricVerdicts_.isEmpty()) { + if (rubricVerdicts_.isEmpty()) { + rubricVerdicts_ = other.rubricVerdicts_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.addAll(other.rubricVerdicts_); + } + onChanged(); + } + } else { + if (!other.rubricVerdicts_.isEmpty()) { + if (rubricVerdictsBuilder_.isEmpty()) { + rubricVerdictsBuilder_.dispose(); + rubricVerdictsBuilder_ = null; + rubricVerdicts_ = other.rubricVerdicts_; + bitField0_ = (bitField0_ & ~0x00000002); + rubricVerdictsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRubricVerdictsFieldBuilder() + : null; + } else { + rubricVerdictsBuilder_.addAllMessages(other.rubricVerdicts_); + } + } + } if (other.hasExplanation()) { explanation_ = other.explanation_; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); } if (other.hasError()) { @@ -586,16 +734,30 @@ public Builder mergeFrom( bitField0_ |= 0x00000001; break; } // case 13 + case 18: + { + com.google.cloud.aiplatform.v1beta1.RubricVerdict m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.RubricVerdict.parser(), + extensionRegistry); + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(m); + } else { + rubricVerdictsBuilder_.addMessage(m); + } + break; + } // case 18 case 26: { explanation_ = input.readStringRequireUtf8(); - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage(internalGetErrorFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 34 default: @@ -693,6 +855,421 @@ public Builder clearScore() { return this; } + private java.util.List rubricVerdicts_ = + java.util.Collections.emptyList(); + + private void ensureRubricVerdictsIsMutable() { + if (!((bitField0_ & 0x00000002) != 0)) { + rubricVerdicts_ = + new java.util.ArrayList( + rubricVerdicts_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricVerdict, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder, + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder> + rubricVerdictsBuilder_; + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRubricVerdictsList() { + if (rubricVerdictsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rubricVerdicts_); + } else { + return rubricVerdictsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getRubricVerdictsCount() { + if (rubricVerdictsBuilder_ == null) { + return rubricVerdicts_.size(); + } else { + return rubricVerdictsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdict getRubricVerdicts(int index) { + if (rubricVerdictsBuilder_ == null) { + return rubricVerdicts_.get(index); + } else { + return rubricVerdictsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRubricVerdicts( + int index, com.google.cloud.aiplatform.v1beta1.RubricVerdict value) { + if (rubricVerdictsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.set(index, value); + onChanged(); + } else { + rubricVerdictsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setRubricVerdicts( + int index, com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder builderForValue) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.set(index, builderForValue.build()); + onChanged(); + } else { + rubricVerdictsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRubricVerdicts(com.google.cloud.aiplatform.v1beta1.RubricVerdict value) { + if (rubricVerdictsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(value); + onChanged(); + } else { + rubricVerdictsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRubricVerdicts( + int index, com.google.cloud.aiplatform.v1beta1.RubricVerdict value) { + if (rubricVerdictsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(index, value); + onChanged(); + } else { + rubricVerdictsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRubricVerdicts( + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder builderForValue) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(builderForValue.build()); + onChanged(); + } else { + rubricVerdictsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addRubricVerdicts( + int index, com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder builderForValue) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.add(index, builderForValue.build()); + onChanged(); + } else { + rubricVerdictsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllRubricVerdicts( + java.lang.Iterable values) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rubricVerdicts_); + onChanged(); + } else { + rubricVerdictsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearRubricVerdicts() { + if (rubricVerdictsBuilder_ == null) { + rubricVerdicts_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + rubricVerdictsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeRubricVerdicts(int index) { + if (rubricVerdictsBuilder_ == null) { + ensureRubricVerdictsIsMutable(); + rubricVerdicts_.remove(index); + onChanged(); + } else { + rubricVerdictsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder getRubricVerdictsBuilder( + int index) { + return internalGetRubricVerdictsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder getRubricVerdictsOrBuilder( + int index) { + if (rubricVerdictsBuilder_ == null) { + return rubricVerdicts_.get(index); + } else { + return rubricVerdictsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRubricVerdictsOrBuilderList() { + if (rubricVerdictsBuilder_ != null) { + return rubricVerdictsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rubricVerdicts_); + } + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder addRubricVerdictsBuilder() { + return internalGetRubricVerdictsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.RubricVerdict.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder addRubricVerdictsBuilder( + int index) { + return internalGetRubricVerdictsFieldBuilder() + .addBuilder( + index, com.google.cloud.aiplatform.v1beta1.RubricVerdict.getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. For rubric-based metrics, the verdicts for each rubric.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getRubricVerdictsBuilderList() { + return internalGetRubricVerdictsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricVerdict, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder, + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder> + internalGetRubricVerdictsFieldBuilder() { + if (rubricVerdictsBuilder_ == null) { + rubricVerdictsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.RubricVerdict, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder, + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder>( + rubricVerdicts_, + ((bitField0_ & 0x00000002) != 0), + getParentForChildren(), + isClean()); + rubricVerdicts_ = null; + } + return rubricVerdictsBuilder_; + } + private java.lang.Object explanation_ = ""; /** @@ -707,7 +1284,7 @@ public Builder clearScore() { * @return Whether the explanation field is set. */ public boolean hasExplanation() { - return ((bitField0_ & 0x00000002) != 0); + return ((bitField0_ & 0x00000004) != 0); } /** @@ -773,7 +1350,7 @@ public Builder setExplanation(java.lang.String value) { throw new NullPointerException(); } explanation_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -791,7 +1368,7 @@ public Builder setExplanation(java.lang.String value) { */ public Builder clearExplanation() { explanation_ = getDefaultInstance().getExplanation(); - bitField0_ = (bitField0_ & ~0x00000002); + bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } @@ -814,7 +1391,7 @@ public Builder setExplanationBytes(com.google.protobuf.ByteString value) { } checkByteStringIsUtf8(value); explanation_ = value; - bitField0_ |= 0x00000002; + bitField0_ |= 0x00000004; onChanged(); return this; } @@ -837,7 +1414,7 @@ public Builder setExplanationBytes(com.google.protobuf.ByteString value) { * @return Whether the error field is set. */ public boolean hasError() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** @@ -879,7 +1456,7 @@ public Builder setError(com.google.rpc.Status value) { } else { errorBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -900,7 +1477,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { } else { errorBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -917,7 +1494,7 @@ public Builder setError(com.google.rpc.Status.Builder builderForValue) { */ public Builder mergeError(com.google.rpc.Status value) { if (errorBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && error_ != null && error_ != com.google.rpc.Status.getDefaultInstance()) { getErrorBuilder().mergeFrom(value); @@ -928,7 +1505,7 @@ public Builder mergeError(com.google.rpc.Status value) { errorBuilder_.mergeFrom(value); } if (error_ != null) { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); } return this; @@ -945,7 +1522,7 @@ public Builder mergeError(com.google.rpc.Status value) { * */ public Builder clearError() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); error_ = null; if (errorBuilder_ != null) { errorBuilder_.dispose(); @@ -966,7 +1543,7 @@ public Builder clearError() { * */ public com.google.rpc.Status.Builder getErrorBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return internalGetErrorFieldBuilder().getBuilder(); } diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java index 8700bbfa7f8b..14832996c87b 100644 --- a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricResultOrBuilder.java @@ -54,6 +54,72 @@ public interface MetricResultOrBuilder */ float getScore(); + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List getRubricVerdictsList(); + + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricVerdict getRubricVerdicts(int index); + + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getRubricVerdictsCount(); + + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getRubricVerdictsOrBuilderList(); + + /** + * + * + *
            +   * Output only. For rubric-based metrics, the verdicts for each rubric.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.RubricVerdict rubric_verdicts = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder getRubricVerdictsOrBuilder(int index); + /** * * diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSource.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSource.java new file mode 100644 index 000000000000..1d9ce4ec5f7f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSource.java @@ -0,0 +1,1035 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * The metric source used for evaluation.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricSource} + */ +@com.google.protobuf.Generated +public final class MetricSource extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.MetricSource) + MetricSourceOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "MetricSource"); + } + + // Use MetricSource.newBuilder() to construct. + private MetricSource(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private MetricSource() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricSource.class, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder.class); + } + + private int metricSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object metricSource_; + + public enum MetricSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + METRIC(1), + METRIC_RESOURCE_NAME(2), + METRICSOURCE_NOT_SET(0); + private final int value; + + private MetricSourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static MetricSourceCase valueOf(int value) { + return forNumber(value); + } + + public static MetricSourceCase forNumber(int value) { + switch (value) { + case 1: + return METRIC; + case 2: + return METRIC_RESOURCE_NAME; + case 0: + return METRICSOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public MetricSourceCase getMetricSourceCase() { + return MetricSourceCase.forNumber(metricSourceCase_); + } + + public static final int METRIC_FIELD_NUMBER = 1; + + /** + * + * + *
            +   * Inline metric config.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return metricSourceCase_ == 1; + } + + /** + * + * + *
            +   * Inline metric config.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Metric getMetric() { + if (metricSourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_; + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + + /** + * + * + *
            +   * Inline metric config.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricOrBuilder() { + if (metricSourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_; + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + + public static final int METRIC_RESOURCE_NAME_FIELD_NUMBER = 2; + + /** + * + * + *
            +   * Resource name for registered metric.
            +   * 
            + * + * string metric_resource_name = 2; + * + * @return Whether the metricResourceName field is set. + */ + public boolean hasMetricResourceName() { + return metricSourceCase_ == 2; + } + + /** + * + * + *
            +   * Resource name for registered metric.
            +   * 
            + * + * string metric_resource_name = 2; + * + * @return The metricResourceName. + */ + public java.lang.String getMetricResourceName() { + java.lang.Object ref = ""; + if (metricSourceCase_ == 2) { + ref = metricSource_; + } + 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(); + if (metricSourceCase_ == 2) { + metricSource_ = s; + } + return s; + } + } + + /** + * + * + *
            +   * Resource name for registered metric.
            +   * 
            + * + * string metric_resource_name = 2; + * + * @return The bytes for metricResourceName. + */ + public com.google.protobuf.ByteString getMetricResourceNameBytes() { + java.lang.Object ref = ""; + if (metricSourceCase_ == 2) { + ref = metricSource_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (metricSourceCase_ == 2) { + metricSource_ = 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 (metricSourceCase_ == 1) { + output.writeMessage(1, (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_); + } + if (metricSourceCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, metricSource_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (metricSourceCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_); + } + if (metricSourceCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, metricSource_); + } + 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.MetricSource)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.MetricSource other = + (com.google.cloud.aiplatform.v1beta1.MetricSource) obj; + + if (!getMetricSourceCase().equals(other.getMetricSourceCase())) return false; + switch (metricSourceCase_) { + case 1: + if (!getMetric().equals(other.getMetric())) return false; + break; + case 2: + if (!getMetricResourceName().equals(other.getMetricResourceName())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (metricSourceCase_) { + case 1: + hash = (37 * hash) + METRIC_FIELD_NUMBER; + hash = (53 * hash) + getMetric().hashCode(); + break; + case 2: + hash = (37 * hash) + METRIC_RESOURCE_NAME_FIELD_NUMBER; + hash = (53 * hash) + getMetricResourceName().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource 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.MetricSource parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource 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.MetricSource parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource 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.MetricSource parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.MetricSource prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * The metric source used for evaluation.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.MetricSource} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.MetricSource) + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricSource_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_MetricSource_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.MetricSource.class, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.MetricSource.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (metricBuilder_ != null) { + metricBuilder_.clear(); + } + metricSourceCase_ = 0; + metricSource_ = 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_MetricSource_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource build() { + com.google.cloud.aiplatform.v1beta1.MetricSource result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource buildPartial() { + com.google.cloud.aiplatform.v1beta1.MetricSource result = + new com.google.cloud.aiplatform.v1beta1.MetricSource(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.MetricSource result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.MetricSource result) { + result.metricSourceCase_ = metricSourceCase_; + result.metricSource_ = this.metricSource_; + if (metricSourceCase_ == 1 && metricBuilder_ != null) { + result.metricSource_ = metricBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.MetricSource) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.MetricSource) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.MetricSource other) { + if (other == com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()) + return this; + switch (other.getMetricSourceCase()) { + case METRIC: + { + mergeMetric(other.getMetric()); + break; + } + case METRIC_RESOURCE_NAME: + { + metricSourceCase_ = 2; + metricSource_ = other.metricSource_; + onChanged(); + break; + } + case METRICSOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage(internalGetMetricFieldBuilder().getBuilder(), extensionRegistry); + metricSourceCase_ = 1; + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + metricSourceCase_ = 2; + metricSource_ = s; + 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 metricSourceCase_ = 0; + private java.lang.Object metricSource_; + + public MetricSourceCase getMetricSourceCase() { + return MetricSourceCase.forNumber(metricSourceCase_); + } + + public Builder clearMetricSource() { + metricSourceCase_ = 0; + metricSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder> + metricBuilder_; + + /** + * + * + *
            +     * Inline metric config.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return Whether the metric field is set. + */ + @java.lang.Override + public boolean hasMetric() { + return metricSourceCase_ == 1; + } + + /** + * + * + *
            +     * Inline metric config.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return The metric. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Metric getMetric() { + if (metricBuilder_ == null) { + if (metricSourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_; + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } else { + if (metricSourceCase_ == 1) { + return metricBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Inline metric config.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public Builder setMetric(com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + metricSource_ = value; + onChanged(); + } else { + metricBuilder_.setMessage(value); + } + metricSourceCase_ = 1; + return this; + } + + /** + * + * + *
            +     * Inline metric config.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public Builder setMetric(com.google.cloud.aiplatform.v1beta1.Metric.Builder builderForValue) { + if (metricBuilder_ == null) { + metricSource_ = builderForValue.build(); + onChanged(); + } else { + metricBuilder_.setMessage(builderForValue.build()); + } + metricSourceCase_ = 1; + return this; + } + + /** + * + * + *
            +     * Inline metric config.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public Builder mergeMetric(com.google.cloud.aiplatform.v1beta1.Metric value) { + if (metricBuilder_ == null) { + if (metricSourceCase_ == 1 + && metricSource_ != com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance()) { + metricSource_ = + com.google.cloud.aiplatform.v1beta1.Metric.newBuilder( + (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_) + .mergeFrom(value) + .buildPartial(); + } else { + metricSource_ = value; + } + onChanged(); + } else { + if (metricSourceCase_ == 1) { + metricBuilder_.mergeFrom(value); + } else { + metricBuilder_.setMessage(value); + } + } + metricSourceCase_ = 1; + return this; + } + + /** + * + * + *
            +     * Inline metric config.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public Builder clearMetric() { + if (metricBuilder_ == null) { + if (metricSourceCase_ == 1) { + metricSourceCase_ = 0; + metricSource_ = null; + onChanged(); + } + } else { + if (metricSourceCase_ == 1) { + metricSourceCase_ = 0; + metricSource_ = null; + } + metricBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Inline metric config.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Metric.Builder getMetricBuilder() { + return internalGetMetricFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Inline metric config.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricOrBuilder() { + if ((metricSourceCase_ == 1) && (metricBuilder_ != null)) { + return metricBuilder_.getMessageOrBuilder(); + } else { + if (metricSourceCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_; + } + return com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Inline metric config.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder> + internalGetMetricFieldBuilder() { + if (metricBuilder_ == null) { + if (!(metricSourceCase_ == 1)) { + metricSource_ = com.google.cloud.aiplatform.v1beta1.Metric.getDefaultInstance(); + } + metricBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Metric, + com.google.cloud.aiplatform.v1beta1.Metric.Builder, + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.Metric) metricSource_, + getParentForChildren(), + isClean()); + metricSource_ = null; + } + metricSourceCase_ = 1; + onChanged(); + return metricBuilder_; + } + + /** + * + * + *
            +     * Resource name for registered metric.
            +     * 
            + * + * string metric_resource_name = 2; + * + * @return Whether the metricResourceName field is set. + */ + @java.lang.Override + public boolean hasMetricResourceName() { + return metricSourceCase_ == 2; + } + + /** + * + * + *
            +     * Resource name for registered metric.
            +     * 
            + * + * string metric_resource_name = 2; + * + * @return The metricResourceName. + */ + @java.lang.Override + public java.lang.String getMetricResourceName() { + java.lang.Object ref = ""; + if (metricSourceCase_ == 2) { + ref = metricSource_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (metricSourceCase_ == 2) { + metricSource_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Resource name for registered metric.
            +     * 
            + * + * string metric_resource_name = 2; + * + * @return The bytes for metricResourceName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMetricResourceNameBytes() { + java.lang.Object ref = ""; + if (metricSourceCase_ == 2) { + ref = metricSource_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (metricSourceCase_ == 2) { + metricSource_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Resource name for registered metric.
            +     * 
            + * + * string metric_resource_name = 2; + * + * @param value The metricResourceName to set. + * @return This builder for chaining. + */ + public Builder setMetricResourceName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + metricSourceCase_ = 2; + metricSource_ = value; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Resource name for registered metric.
            +     * 
            + * + * string metric_resource_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearMetricResourceName() { + if (metricSourceCase_ == 2) { + metricSourceCase_ = 0; + metricSource_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Resource name for registered metric.
            +     * 
            + * + * string metric_resource_name = 2; + * + * @param value The bytes for metricResourceName to set. + * @return This builder for chaining. + */ + public Builder setMetricResourceNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + metricSourceCase_ = 2; + metricSource_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.MetricSource) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.MetricSource) + private static final com.google.cloud.aiplatform.v1beta1.MetricSource DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.MetricSource(); + } + + public static com.google.cloud.aiplatform.v1beta1.MetricSource getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public MetricSource 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.MetricSource getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSourceOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSourceOrBuilder.java new file mode 100644 index 000000000000..5d6dbd9773d4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/MetricSourceOrBuilder.java @@ -0,0 +1,106 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface MetricSourceOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.MetricSource) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Inline metric config.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return Whether the metric field is set. + */ + boolean hasMetric(); + + /** + * + * + *
            +   * Inline metric config.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + * + * @return The metric. + */ + com.google.cloud.aiplatform.v1beta1.Metric getMetric(); + + /** + * + * + *
            +   * Inline metric config.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Metric metric = 1; + */ + com.google.cloud.aiplatform.v1beta1.MetricOrBuilder getMetricOrBuilder(); + + /** + * + * + *
            +   * Resource name for registered metric.
            +   * 
            + * + * string metric_resource_name = 2; + * + * @return Whether the metricResourceName field is set. + */ + boolean hasMetricResourceName(); + + /** + * + * + *
            +   * Resource name for registered metric.
            +   * 
            + * + * string metric_resource_name = 2; + * + * @return The metricResourceName. + */ + java.lang.String getMetricResourceName(); + + /** + * + * + *
            +   * Resource name for registered metric.
            +   * 
            + * + * string metric_resource_name = 2; + * + * @return The bytes for metricResourceName. + */ + com.google.protobuf.ByteString getMetricResourceNameBytes(); + + com.google.cloud.aiplatform.v1beta1.MetricSource.MetricSourceCase getMetricSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluator.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluator.java new file mode 100644 index 000000000000..1b4ac8652256 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluator.java @@ -0,0 +1,12680 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * An OnlineEvaluator contains the configuration for an Online Evaluation.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator} + */ +@com.google.protobuf.Generated +public final class OnlineEvaluator extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + OnlineEvaluatorOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OnlineEvaluator"); + } + + // Use OnlineEvaluator.newBuilder() to construct. + private OnlineEvaluator(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OnlineEvaluator() { + name_ = ""; + agentResource_ = ""; + metricSources_ = java.util.Collections.emptyList(); + state_ = 0; + stateDetails_ = java.util.Collections.emptyList(); + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder.class); + } + + /** + * + * + *
            +   * The state of the OnlineEvaluator.
            +   * 
            + * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.State} + */ + public enum State implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Default value.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + STATE_UNSPECIFIED(0), + /** + * + * + *
            +     * Indicates that the OnlineEvaluator is active.
            +     * 
            + * + * ACTIVE = 1; + */ + ACTIVE(1), + /** + * + * + *
            +     * Indicates that the OnlineEvaluator is suspended. In this state, the
            +     * OnlineEvaluator will not evaluate any samples.
            +     * 
            + * + * SUSPENDED = 2; + */ + SUSPENDED(2), + /** + * + * + *
            +     * Indicates that the OnlineEvaluator is in a failed state.
            +     *
            +     * This can happen if, for example, the `log_view` or `trace_view` set on
            +     * the `CloudObservability` does not exist.
            +     * 
            + * + * FAILED = 3; + */ + FAILED(3), + /** + * + * + *
            +     * Indicates that the OnlineEvaluator is in a warning state.
            +     * This can happen if, for example, some of the metrics in the
            +     * `metric_sources` are invalid. Evaluation will still run with the
            +     * remaining valid metrics.
            +     * 
            + * + * WARNING = 4; + */ + WARNING(4), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "State"); + } + + /** + * + * + *
            +     * Default value.
            +     * 
            + * + * STATE_UNSPECIFIED = 0; + */ + public static final int STATE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Indicates that the OnlineEvaluator is active.
            +     * 
            + * + * ACTIVE = 1; + */ + public static final int ACTIVE_VALUE = 1; + + /** + * + * + *
            +     * Indicates that the OnlineEvaluator is suspended. In this state, the
            +     * OnlineEvaluator will not evaluate any samples.
            +     * 
            + * + * SUSPENDED = 2; + */ + public static final int SUSPENDED_VALUE = 2; + + /** + * + * + *
            +     * Indicates that the OnlineEvaluator is in a failed state.
            +     *
            +     * This can happen if, for example, the `log_view` or `trace_view` set on
            +     * the `CloudObservability` does not exist.
            +     * 
            + * + * FAILED = 3; + */ + public static final int FAILED_VALUE = 3; + + /** + * + * + *
            +     * Indicates that the OnlineEvaluator is in a warning state.
            +     * This can happen if, for example, some of the metrics in the
            +     * `metric_sources` are invalid. Evaluation will still run with the
            +     * remaining valid metrics.
            +     * 
            + * + * WARNING = 4; + */ + public static final int WARNING_VALUE = 4; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static State valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static State forNumber(int value) { + switch (value) { + case 0: + return STATE_UNSPECIFIED; + case 1: + return ACTIVE; + case 2: + return SUSPENDED; + case 3: + return FAILED; + case 4: + return WARNING; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public State findValueByNumber(int number) { + return State.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final State[] VALUES = values(); + + public static State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private State(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.State) + } + + public interface CloudObservabilityOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Scope online evaluation to single traces.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return Whether the traceScope field is set. + */ + boolean hasTraceScope(); + + /** + * + * + *
            +     * Scope online evaluation to single traces.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return The traceScope. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + getTraceScope(); + + /** + * + * + *
            +     * Scope online evaluation to single traces.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScopeOrBuilder + getTraceScopeOrBuilder(); + + /** + * + * + *
            +     * Data source follows OpenTelemetry convention.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return Whether the openTelemetry field is set. + */ + boolean hasOpenTelemetry(); + + /** + * + * + *
            +     * Data source follows OpenTelemetry convention.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return The openTelemetry. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + getOpenTelemetry(); + + /** + * + * + *
            +     * Data source follows OpenTelemetry convention.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetryOrBuilder + getOpenTelemetryOrBuilder(); + + /** + * + * + *
            +     * Optional. Optional log view that will be used to query logs.
            +     * If empty, the `_Default` view will be used.
            +     * 
            + * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The logView. + */ + java.lang.String getLogView(); + + /** + * + * + *
            +     * Optional. Optional log view that will be used to query logs.
            +     * If empty, the `_Default` view will be used.
            +     * 
            + * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for logView. + */ + com.google.protobuf.ByteString getLogViewBytes(); + + /** + * + * + *
            +     * Optional. Optional trace view that will be used to query traces.
            +     * If empty, the `_Default` view will be used.
            +     *
            +     * NOTE: This field is not supported yet and will be ignored if set.
            +     * 
            + * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The traceView. + */ + java.lang.String getTraceView(); + + /** + * + * + *
            +     * Optional. Optional trace view that will be used to query traces.
            +     * If empty, the `_Default` view will be used.
            +     *
            +     * NOTE: This field is not supported yet and will be ignored if set.
            +     * 
            + * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for traceView. + */ + com.google.protobuf.ByteString getTraceViewBytes(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.EvalScopeCase + getEvalScopeCase(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.ConventionCase + getConventionCase(); + } + + /** + * + * + *
            +   * Data source for the OnlineEvaluator, based on GCP Observability stack
            +   * (Cloud Trace & Cloud Logging).
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability} + */ + public static final class CloudObservability extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + CloudObservabilityOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CloudObservability"); + } + + // Use CloudObservability.newBuilder() to construct. + private CloudObservability(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CloudObservability() { + logView_ = ""; + traceView_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder.class); + } + + public interface NumericPredicateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. The comparison operator to apply.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for comparisonOperator. + */ + int getComparisonOperatorValue(); + + /** + * + * + *
            +       * Required. The comparison operator to apply.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comparisonOperator. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + getComparisonOperator(); + + /** + * + * + *
            +       * Required. The value to compare against.
            +       * 
            + * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + float getValue(); + } + + /** + * + * + *
            +     * Defines a predicate for filtering based on a numeric value.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate} + */ + public static final class NumericPredicate extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + NumericPredicateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "NumericPredicate"); + } + + // Use NumericPredicate.newBuilder() to construct. + private NumericPredicate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private NumericPredicate() { + comparisonOperator_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder.class); + } + + /** + * + * + *
            +       * Comparison operators for numeric predicates.
            +       * 
            + * + * Protobuf enum {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator} + */ + public enum ComparisonOperator implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +         * Unspecified comparison operator. This value should not be used.
            +         * 
            + * + * COMPARISON_OPERATOR_UNSPECIFIED = 0; + */ + COMPARISON_OPERATOR_UNSPECIFIED(0), + /** + * + * + *
            +         * Less than.
            +         * 
            + * + * LESS = 1; + */ + LESS(1), + /** + * + * + *
            +         * Less than or equal to.
            +         * 
            + * + * LESS_OR_EQUAL = 2; + */ + LESS_OR_EQUAL(2), + /** + * + * + *
            +         * Equal to.
            +         * 
            + * + * EQUAL = 3; + */ + EQUAL(3), + /** + * + * + *
            +         * Not equal to.
            +         * 
            + * + * NOT_EQUAL = 4; + */ + NOT_EQUAL(4), + /** + * + * + *
            +         * Greater than or equal to.
            +         * 
            + * + * GREATER_OR_EQUAL = 5; + */ + GREATER_OR_EQUAL(5), + /** + * + * + *
            +         * Greater than.
            +         * 
            + * + * GREATER = 6; + */ + GREATER(6), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ComparisonOperator"); + } + + /** + * + * + *
            +         * Unspecified comparison operator. This value should not be used.
            +         * 
            + * + * COMPARISON_OPERATOR_UNSPECIFIED = 0; + */ + public static final int COMPARISON_OPERATOR_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +         * Less than.
            +         * 
            + * + * LESS = 1; + */ + public static final int LESS_VALUE = 1; + + /** + * + * + *
            +         * Less than or equal to.
            +         * 
            + * + * LESS_OR_EQUAL = 2; + */ + public static final int LESS_OR_EQUAL_VALUE = 2; + + /** + * + * + *
            +         * Equal to.
            +         * 
            + * + * EQUAL = 3; + */ + public static final int EQUAL_VALUE = 3; + + /** + * + * + *
            +         * Not equal to.
            +         * 
            + * + * NOT_EQUAL = 4; + */ + public static final int NOT_EQUAL_VALUE = 4; + + /** + * + * + *
            +         * Greater than or equal to.
            +         * 
            + * + * GREATER_OR_EQUAL = 5; + */ + public static final int GREATER_OR_EQUAL_VALUE = 5; + + /** + * + * + *
            +         * Greater than.
            +         * 
            + * + * GREATER = 6; + */ + public static final int GREATER_VALUE = 6; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ComparisonOperator valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static ComparisonOperator forNumber(int value) { + switch (value) { + case 0: + return COMPARISON_OPERATOR_UNSPECIFIED; + case 1: + return LESS; + case 2: + return LESS_OR_EQUAL; + case 3: + return EQUAL; + case 4: + return NOT_EQUAL; + case 5: + return GREATER_OR_EQUAL; + case 6: + return GREATER; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public ComparisonOperator findValueByNumber(int number) { + return ComparisonOperator.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final ComparisonOperator[] VALUES = values(); + + public static ComparisonOperator valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException( + "EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private ComparisonOperator(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator) + } + + public static final int COMPARISON_OPERATOR_FIELD_NUMBER = 1; + private int comparisonOperator_ = 0; + + /** + * + * + *
            +       * Required. The comparison operator to apply.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for comparisonOperator. + */ + @java.lang.Override + public int getComparisonOperatorValue() { + return comparisonOperator_; + } + + /** + * + * + *
            +       * Required. The comparison operator to apply.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comparisonOperator. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + getComparisonOperator() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + result = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.forNumber(comparisonOperator_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.UNRECOGNIZED + : result; + } + + public static final int VALUE_FIELD_NUMBER = 2; + private float value_ = 0F; + + /** + * + * + *
            +       * Required. The value to compare against.
            +       * 
            + * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public float getValue() { + return value_; + } + + 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 (comparisonOperator_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.COMPARISON_OPERATOR_UNSPECIFIED + .getNumber()) { + output.writeEnum(1, comparisonOperator_); + } + if (java.lang.Float.floatToRawIntBits(value_) != 0) { + output.writeFloat(2, value_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (comparisonOperator_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.COMPARISON_OPERATOR_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, comparisonOperator_); + } + if (java.lang.Float.floatToRawIntBits(value_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeFloatSize(2, value_); + } + 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.OnlineEvaluator.CloudObservability + .NumericPredicate)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + obj; + + if (comparisonOperator_ != other.comparisonOperator_) return false; + if (java.lang.Float.floatToIntBits(getValue()) + != java.lang.Float.floatToIntBits(other.getValue())) 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) + COMPARISON_OPERATOR_FIELD_NUMBER; + hash = (53 * hash) + comparisonOperator_; + hash = (37 * hash) + VALUE_FIELD_NUMBER; + hash = (53 * hash) + java.lang.Float.floatToIntBits(getValue()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + 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.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + 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.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + 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.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Defines a predicate for filtering based on a numeric value.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + comparisonOperator_ = 0; + value_ = 0F; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.comparisonOperator_ = comparisonOperator_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.value_ = value_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance()) return this; + if (other.comparisonOperator_ != 0) { + setComparisonOperatorValue(other.getComparisonOperatorValue()); + } + if (java.lang.Float.floatToRawIntBits(other.getValue()) != 0) { + setValue(other.getValue()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + comparisonOperator_ = input.readEnum(); + bitField0_ |= 0x00000001; + break; + } // case 8 + case 21: + { + value_ = input.readFloat(); + bitField0_ |= 0x00000002; + break; + } // case 21 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int comparisonOperator_ = 0; + + /** + * + * + *
            +         * Required. The comparison operator to apply.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for comparisonOperator. + */ + @java.lang.Override + public int getComparisonOperatorValue() { + return comparisonOperator_; + } + + /** + * + * + *
            +         * Required. The comparison operator to apply.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for comparisonOperator to set. + * @return This builder for chaining. + */ + public Builder setComparisonOperatorValue(int value) { + comparisonOperator_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The comparison operator to apply.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The comparisonOperator. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator + getComparisonOperator() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + result = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.forNumber(comparisonOperator_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.ComparisonOperator.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +         * Required. The comparison operator to apply.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The comparisonOperator to set. + * @return This builder for chaining. + */ + public Builder setComparisonOperator( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + .ComparisonOperator + value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + comparisonOperator_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The comparison operator to apply.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate.ComparisonOperator comparison_operator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearComparisonOperator() { + bitField0_ = (bitField0_ & ~0x00000001); + comparisonOperator_ = 0; + onChanged(); + return this; + } + + private float value_; + + /** + * + * + *
            +         * Required. The value to compare against.
            +         * 
            + * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The value. + */ + @java.lang.Override + public float getValue() { + return value_; + } + + /** + * + * + *
            +         * Required. The value to compare against.
            +         * 
            + * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The value to set. + * @return This builder for chaining. + */ + public Builder setValue(float value) { + + value_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The value to compare against.
            +         * 
            + * + * float value = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = 0F; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public NumericPredicate 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.OnlineEvaluator.CloudObservability.NumericPredicate + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface TraceScopeOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + getFilterList(); + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate + getFilter(int index); + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getFilterCount(); + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder> + getFilterOrBuilderList(); + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder + getFilterOrBuilder(int index); + } + + /** + * + * + *
            +     * If chosen, the online evaluator will evaluate single traces matching
            +     * specified `filter`.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope} + */ + public static final class TraceScope extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + TraceScopeOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "TraceScope"); + } + + // Use TraceScope.newBuilder() to construct. + private TraceScope(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private TraceScope() { + filter_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder.class); + } + + public interface PredicateOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +         * Filter on the duration of a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return Whether the duration field is set. + */ + boolean hasDuration(); + + /** + * + * + *
            +         * Filter on the duration of a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return The duration. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + getDuration(); + + /** + * + * + *
            +         * Filter on the duration of a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getDurationOrBuilder(); + + /** + * + * + *
            +         * Filter on the total token usage within a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return Whether the totalTokenUsage field is set. + */ + boolean hasTotalTokenUsage(); + + /** + * + * + *
            +         * Filter on the total token usage within a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return The totalTokenUsage. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate + getTotalTokenUsage(); + + /** + * + * + *
            +         * Filter on the total token usage within a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getTotalTokenUsageOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate + .PredicateCase + getPredicateCase(); + } + + /** + * + * + *
            +       * Defines a single filter predicate.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate} + */ + public static final class Predicate extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + PredicateOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Predicate"); + } + + // Use Predicate.newBuilder() to construct. + private Predicate(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Predicate() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder.class); + } + + private int predicateCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object predicate_; + + public enum PredicateCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + DURATION(1), + TOTAL_TOKEN_USAGE(2), + PREDICATE_NOT_SET(0); + private final int value; + + private PredicateCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static PredicateCase valueOf(int value) { + return forNumber(value); + } + + public static PredicateCase forNumber(int value) { + switch (value) { + case 1: + return DURATION; + case 2: + return TOTAL_TOKEN_USAGE; + case 0: + return PREDICATE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public PredicateCase getPredicateCase() { + return PredicateCase.forNumber(predicateCase_); + } + + public static final int DURATION_FIELD_NUMBER = 1; + + /** + * + * + *
            +         * Filter on the duration of a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return predicateCase_ == 1; + } + + /** + * + * + *
            +         * Filter on the duration of a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return The duration. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getDuration() { + if (predicateCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + /** + * + * + *
            +         * Filter on the duration of a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getDurationOrBuilder() { + if (predicateCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + public static final int TOTAL_TOKEN_USAGE_FIELD_NUMBER = 2; + + /** + * + * + *
            +         * Filter on the total token usage within a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return Whether the totalTokenUsage field is set. + */ + @java.lang.Override + public boolean hasTotalTokenUsage() { + return predicateCase_ == 2; + } + + /** + * + * + *
            +         * Filter on the total token usage within a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return The totalTokenUsage. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getTotalTokenUsage() { + if (predicateCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + /** + * + * + *
            +         * Filter on the total token usage within a trace.
            +         * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getTotalTokenUsageOrBuilder() { + if (predicateCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (predicateCase_ == 1) { + output.writeMessage( + 1, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_); + } + if (predicateCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (predicateCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_); + } + if (predicateCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_); + } + 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.OnlineEvaluator.CloudObservability.TraceScope + .Predicate)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate) + obj; + + if (!getPredicateCase().equals(other.getPredicateCase())) return false; + switch (predicateCase_) { + case 1: + if (!getDuration().equals(other.getDuration())) return false; + break; + case 2: + if (!getTotalTokenUsage().equals(other.getTotalTokenUsage())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (predicateCase_) { + case 1: + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + break; + case 2: + hash = (37 * hash) + TOTAL_TOKEN_USAGE_FIELD_NUMBER; + hash = (53 * hash) + getTotalTokenUsage().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + 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.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + 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.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + 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.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +         * Defines a single filter predicate.
            +         * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (durationBuilder_ != null) { + durationBuilder_.clear(); + } + if (totalTokenUsageBuilder_ != null) { + totalTokenUsageBuilder_.clear(); + } + predicateCase_ = 0; + predicate_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + result) { + result.predicateCase_ = predicateCase_; + result.predicate_ = this.predicate_; + if (predicateCase_ == 1 && durationBuilder_ != null) { + result.predicate_ = durationBuilder_.build(); + } + if (predicateCase_ == 2 && totalTokenUsageBuilder_ != null) { + result.predicate_ = totalTokenUsageBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.getDefaultInstance()) return this; + switch (other.getPredicateCase()) { + case DURATION: + { + mergeDuration(other.getDuration()); + break; + } + case TOTAL_TOKEN_USAGE: + { + mergeTotalTokenUsage(other.getTotalTokenUsage()); + break; + } + case PREDICATE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetDurationFieldBuilder().getBuilder(), extensionRegistry); + predicateCase_ = 1; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetTotalTokenUsageFieldBuilder().getBuilder(), extensionRegistry); + predicateCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int predicateCase_ = 0; + private java.lang.Object predicate_; + + public PredicateCase getPredicateCase() { + return PredicateCase.forNumber(predicateCase_); + } + + public Builder clearPredicate() { + predicateCase_ = 0; + predicate_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder> + durationBuilder_; + + /** + * + * + *
            +           * Filter on the duration of a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return predicateCase_ == 1; + } + + /** + * + * + *
            +           * Filter on the duration of a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + * + * @return The duration. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getDuration() { + if (durationBuilder_ == null) { + if (predicateCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } else { + if (predicateCase_ == 1) { + return durationBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + } + + /** + * + * + *
            +           * Filter on the duration of a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public Builder setDuration( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predicate_ = value; + onChanged(); + } else { + durationBuilder_.setMessage(value); + } + predicateCase_ = 1; + return this; + } + + /** + * + * + *
            +           * Filter on the duration of a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public Builder setDuration( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder + builderForValue) { + if (durationBuilder_ == null) { + predicate_ = builderForValue.build(); + onChanged(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + predicateCase_ = 1; + return this; + } + + /** + * + * + *
            +           * Filter on the duration of a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public Builder mergeDuration( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + value) { + if (durationBuilder_ == null) { + if (predicateCase_ == 1 + && predicate_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance()) { + predicate_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_) + .mergeFrom(value) + .buildPartial(); + } else { + predicate_ = value; + } + onChanged(); + } else { + if (predicateCase_ == 1) { + durationBuilder_.mergeFrom(value); + } else { + durationBuilder_.setMessage(value); + } + } + predicateCase_ = 1; + return this; + } + + /** + * + * + *
            +           * Filter on the duration of a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public Builder clearDuration() { + if (durationBuilder_ == null) { + if (predicateCase_ == 1) { + predicateCase_ = 0; + predicate_ = null; + onChanged(); + } + } else { + if (predicateCase_ == 1) { + predicateCase_ = 0; + predicate_ = null; + } + durationBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +           * Filter on the duration of a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder + getDurationBuilder() { + return internalGetDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +           * Filter on the duration of a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getDurationOrBuilder() { + if ((predicateCase_ == 1) && (durationBuilder_ != null)) { + return durationBuilder_.getMessageOrBuilder(); + } else { + if (predicateCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + } + + /** + * + * + *
            +           * Filter on the duration of a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate duration = 1; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder> + internalGetDurationFieldBuilder() { + if (durationBuilder_ == null) { + if (!(predicateCase_ == 1)) { + predicate_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_, + getParentForChildren(), + isClean()); + predicate_ = null; + } + predicateCase_ = 1; + onChanged(); + return durationBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder> + totalTokenUsageBuilder_; + + /** + * + * + *
            +           * Filter on the total token usage within a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return Whether the totalTokenUsage field is set. + */ + @java.lang.Override + public boolean hasTotalTokenUsage() { + return predicateCase_ == 2; + } + + /** + * + * + *
            +           * Filter on the total token usage within a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + * + * @return The totalTokenUsage. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + getTotalTokenUsage() { + if (totalTokenUsageBuilder_ == null) { + if (predicateCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } else { + if (predicateCase_ == 2) { + return totalTokenUsageBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + } + + /** + * + * + *
            +           * Filter on the total token usage within a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public Builder setTotalTokenUsage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + value) { + if (totalTokenUsageBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + predicate_ = value; + onChanged(); + } else { + totalTokenUsageBuilder_.setMessage(value); + } + predicateCase_ = 2; + return this; + } + + /** + * + * + *
            +           * Filter on the total token usage within a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public Builder setTotalTokenUsage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder + builderForValue) { + if (totalTokenUsageBuilder_ == null) { + predicate_ = builderForValue.build(); + onChanged(); + } else { + totalTokenUsageBuilder_.setMessage(builderForValue.build()); + } + predicateCase_ = 2; + return this; + } + + /** + * + * + *
            +           * Filter on the total token usage within a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public Builder mergeTotalTokenUsage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate + value) { + if (totalTokenUsageBuilder_ == null) { + if (predicateCase_ == 2 + && predicate_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance()) { + predicate_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_) + .mergeFrom(value) + .buildPartial(); + } else { + predicate_ = value; + } + onChanged(); + } else { + if (predicateCase_ == 2) { + totalTokenUsageBuilder_.mergeFrom(value); + } else { + totalTokenUsageBuilder_.setMessage(value); + } + } + predicateCase_ = 2; + return this; + } + + /** + * + * + *
            +           * Filter on the total token usage within a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public Builder clearTotalTokenUsage() { + if (totalTokenUsageBuilder_ == null) { + if (predicateCase_ == 2) { + predicateCase_ = 0; + predicate_ = null; + onChanged(); + } + } else { + if (predicateCase_ == 2) { + predicateCase_ = 0; + predicate_ = null; + } + totalTokenUsageBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +           * Filter on the total token usage within a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder + getTotalTokenUsageBuilder() { + return internalGetTotalTokenUsageFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +           * Filter on the total token usage within a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder + getTotalTokenUsageOrBuilder() { + if ((predicateCase_ == 2) && (totalTokenUsageBuilder_ != null)) { + return totalTokenUsageBuilder_.getMessageOrBuilder(); + } else { + if (predicateCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + } + + /** + * + * + *
            +           * Filter on the total token usage within a trace.
            +           * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.NumericPredicate total_token_usage = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder> + internalGetTotalTokenUsageFieldBuilder() { + if (totalTokenUsageBuilder_ == null) { + if (!(predicateCase_ == 2)) { + predicate_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.getDefaultInstance(); + } + totalTokenUsageBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicateOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .NumericPredicate) + predicate_, + getParentForChildren(), + isClean()); + predicate_ = null; + } + predicateCase_ = 2; + onChanged(); + return totalTokenUsageBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Predicate 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.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public static final int FILTER_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + filter_; + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + getFilterList() { + return filter_; + } + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder> + getFilterOrBuilderList() { + return filter_; + } + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public int getFilterCount() { + return filter_.size(); + } + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + getFilter(int index) { + return filter_.get(index); + } + + /** + * + * + *
            +       * Optional. A list of predicates to filter traces. Multiple predicates
            +       * are combined using AND.
            +       *
            +       * The maximum number of predicates is 10.
            +       * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder + getFilterOrBuilder(int index) { + return filter_.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 < filter_.size(); i++) { + output.writeMessage(1, filter_.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 < filter_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, filter_.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.OnlineEvaluator.CloudObservability.TraceScope)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) obj; + + if (!getFilterList().equals(other.getFilterList())) 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 (getFilterCount() > 0) { + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilterList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + 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.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + 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.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + 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.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * If chosen, the online evaluator will evaluate single traces matching
            +       * specified `filter`.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (filterBuilder_ == null) { + filter_ = java.util.Collections.emptyList(); + } else { + filter_ = null; + filterBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope( + this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + result) { + if (filterBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + filter_ = java.util.Collections.unmodifiableList(filter_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.filter_ = filter_; + } else { + result.filter_ = filterBuilder_.build(); + } + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance()) return this; + if (filterBuilder_ == null) { + if (!other.filter_.isEmpty()) { + if (filter_.isEmpty()) { + filter_ = other.filter_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureFilterIsMutable(); + filter_.addAll(other.filter_); + } + onChanged(); + } + } else { + if (!other.filter_.isEmpty()) { + if (filterBuilder_.isEmpty()) { + filterBuilder_.dispose(); + filterBuilder_ = null; + filter_ = other.filter_; + bitField0_ = (bitField0_ & ~0x00000001); + filterBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetFilterFieldBuilder() + : null; + } else { + filterBuilder_.addAllMessages(other.filter_); + } + } + } + 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.OnlineEvaluator.CloudObservability + .TraceScope.Predicate + m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator + .CloudObservability.TraceScope.Predicate.parser(), + extensionRegistry); + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.add(m); + } else { + filterBuilder_.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< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + filter_ = java.util.Collections.emptyList(); + + private void ensureFilterIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + filter_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate>(filter_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder> + filterBuilder_; + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate> + getFilterList() { + if (filterBuilder_ == null) { + return java.util.Collections.unmodifiableList(filter_); + } else { + return filterBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public int getFilterCount() { + if (filterBuilder_ == null) { + return filter_.size(); + } else { + return filterBuilder_.getCount(); + } + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + getFilter(int index) { + if (filterBuilder_ == null) { + return filter_.get(index); + } else { + return filterBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilter( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterIsMutable(); + filter_.set(index, value); + onChanged(); + } else { + filterBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setFilter( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + builderForValue) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.set(index, builderForValue.build()); + onChanged(); + } else { + filterBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFilter( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterIsMutable(); + filter_.add(value); + onChanged(); + } else { + filterBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFilter( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate + value) { + if (filterBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureFilterIsMutable(); + filter_.add(index, value); + onChanged(); + } else { + filterBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFilter( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + builderForValue) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.add(builderForValue.build()); + onChanged(); + } else { + filterBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addFilter( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + builderForValue) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.add(index, builderForValue.build()); + onChanged(); + } else { + filterBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder addAllFilter( + java.lang.Iterable< + ? extends + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate> + values) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, filter_); + onChanged(); + } else { + filterBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearFilter() { + if (filterBuilder_ == null) { + filter_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + filterBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeFilter(int index) { + if (filterBuilder_ == null) { + ensureFilterIsMutable(); + filter_.remove(index); + onChanged(); + } else { + filterBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + getFilterBuilder(int index) { + return internalGetFilterFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder + getFilterOrBuilder(int index) { + if (filterBuilder_ == null) { + return filter_.get(index); + } else { + return filterBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + ? extends + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.PredicateOrBuilder> + getFilterOrBuilderList() { + if (filterBuilder_ != null) { + return filterBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(filter_); + } + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + addFilterBuilder() { + return internalGetFilterFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder + addFilterBuilder(int index) { + return internalGetFilterFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.getDefaultInstance()); + } + + /** + * + * + *
            +         * Optional. A list of predicates to filter traces. Multiple predicates
            +         * are combined using AND.
            +         *
            +         * The maximum number of predicates is 10.
            +         * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Predicate filter = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public java.util.List< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder> + getFilterBuilderList() { + return internalGetFilterFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Predicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .PredicateOrBuilder> + internalGetFilterFieldBuilder() { + if (filterBuilder_ == null) { + filterBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.Predicate.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.PredicateOrBuilder>( + filter_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + filter_ = null; + } + return filterBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public TraceScope 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.OnlineEvaluator.CloudObservability.TraceScope + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface OpenTelemetryOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. Defines which version OTel Semantic Convention the data
            +       * follows. Can be "1.39.0" or newer.
            +       * 
            + * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The semconvVersion. + */ + java.lang.String getSemconvVersion(); + + /** + * + * + *
            +       * Required. Defines which version OTel Semantic Convention the data
            +       * follows. Can be "1.39.0" or newer.
            +       * 
            + * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for semconvVersion. + */ + com.google.protobuf.ByteString getSemconvVersionBytes(); + } + + /** + * + * + *
            +     * Configuration for data source following OpenTelemetry.
            +     * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry} + */ + public static final class OpenTelemetry extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + OpenTelemetryOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OpenTelemetry"); + } + + // Use OpenTelemetry.newBuilder() to construct. + private OpenTelemetry(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private OpenTelemetry() { + semconvVersion_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder.class); + } + + public static final int SEMCONV_VERSION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object semconvVersion_ = ""; + + /** + * + * + *
            +       * Required. Defines which version OTel Semantic Convention the data
            +       * follows. Can be "1.39.0" or newer.
            +       * 
            + * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The semconvVersion. + */ + @java.lang.Override + public java.lang.String getSemconvVersion() { + java.lang.Object ref = semconvVersion_; + 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(); + semconvVersion_ = s; + return s; + } + } + + /** + * + * + *
            +       * Required. Defines which version OTel Semantic Convention the data
            +       * follows. Can be "1.39.0" or newer.
            +       * 
            + * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for semconvVersion. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSemconvVersionBytes() { + java.lang.Object ref = semconvVersion_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + semconvVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(semconvVersion_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, semconvVersion_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(semconvVersion_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, semconvVersion_); + } + 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.OnlineEvaluator.CloudObservability.OpenTelemetry)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + obj; + + if (!getSemconvVersion().equals(other.getSemconvVersion())) 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) + SEMCONV_VERSION_FIELD_NUMBER; + hash = (53 * hash) + getSemconvVersion().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + 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.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + 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.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + 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.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Configuration for data source following OpenTelemetry.
            +       * 
            + * + * Protobuf type {@code + * google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + semconvVersion_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.semconvVersion_ = semconvVersion_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance()) return this; + if (!other.getSemconvVersion().isEmpty()) { + semconvVersion_ = other.semconvVersion_; + 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: + { + semconvVersion_ = 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 semconvVersion_ = ""; + + /** + * + * + *
            +         * Required. Defines which version OTel Semantic Convention the data
            +         * follows. Can be "1.39.0" or newer.
            +         * 
            + * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The semconvVersion. + */ + public java.lang.String getSemconvVersion() { + java.lang.Object ref = semconvVersion_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + semconvVersion_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Required. Defines which version OTel Semantic Convention the data
            +         * follows. Can be "1.39.0" or newer.
            +         * 
            + * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for semconvVersion. + */ + public com.google.protobuf.ByteString getSemconvVersionBytes() { + java.lang.Object ref = semconvVersion_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + semconvVersion_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Required. Defines which version OTel Semantic Convention the data
            +         * follows. Can be "1.39.0" or newer.
            +         * 
            + * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The semconvVersion to set. + * @return This builder for chaining. + */ + public Builder setSemconvVersion(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + semconvVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Defines which version OTel Semantic Convention the data
            +         * follows. Can be "1.39.0" or newer.
            +         * 
            + * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearSemconvVersion() { + semconvVersion_ = getDefaultInstance().getSemconvVersion(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. Defines which version OTel Semantic Convention the data
            +         * follows. Can be "1.39.0" or newer.
            +         * 
            + * + * string semconv_version = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for semconvVersion to set. + * @return This builder for chaining. + */ + public Builder setSemconvVersionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + semconvVersion_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OpenTelemetry 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.OnlineEvaluator.CloudObservability.OpenTelemetry + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int evalScopeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object evalScope_; + + public enum EvalScopeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + TRACE_SCOPE(3), + EVALSCOPE_NOT_SET(0); + private final int value; + + private EvalScopeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static EvalScopeCase valueOf(int value) { + return forNumber(value); + } + + public static EvalScopeCase forNumber(int value) { + switch (value) { + case 3: + return TRACE_SCOPE; + case 0: + return EVALSCOPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public EvalScopeCase getEvalScopeCase() { + return EvalScopeCase.forNumber(evalScopeCase_); + } + + private int conventionCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object convention_; + + public enum ConventionCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + OPEN_TELEMETRY(4), + CONVENTION_NOT_SET(0); + private final int value; + + private ConventionCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ConventionCase valueOf(int value) { + return forNumber(value); + } + + public static ConventionCase forNumber(int value) { + switch (value) { + case 4: + return OPEN_TELEMETRY; + case 0: + return CONVENTION_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ConventionCase getConventionCase() { + return ConventionCase.forNumber(conventionCase_); + } + + public static final int TRACE_SCOPE_FIELD_NUMBER = 3; + + /** + * + * + *
            +     * Scope online evaluation to single traces.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return Whether the traceScope field is set. + */ + @java.lang.Override + public boolean hasTraceScope() { + return evalScopeCase_ == 3; + } + + /** + * + * + *
            +     * Scope online evaluation to single traces.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return The traceScope. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + getTraceScope() { + if (evalScopeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + evalScope_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + + /** + * + * + *
            +     * Scope online evaluation to single traces.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder + getTraceScopeOrBuilder() { + if (evalScopeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + evalScope_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + + public static final int OPEN_TELEMETRY_FIELD_NUMBER = 4; + + /** + * + * + *
            +     * Data source follows OpenTelemetry convention.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return Whether the openTelemetry field is set. + */ + @java.lang.Override + public boolean hasOpenTelemetry() { + return conventionCase_ == 4; + } + + /** + * + * + *
            +     * Data source follows OpenTelemetry convention.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return The openTelemetry. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + getOpenTelemetry() { + if (conventionCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .getDefaultInstance(); + } + + /** + * + * + *
            +     * Data source follows OpenTelemetry convention.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder + getOpenTelemetryOrBuilder() { + if (conventionCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .getDefaultInstance(); + } + + public static final int LOG_VIEW_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object logView_ = ""; + + /** + * + * + *
            +     * Optional. Optional log view that will be used to query logs.
            +     * If empty, the `_Default` view will be used.
            +     * 
            + * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The logView. + */ + @java.lang.Override + public java.lang.String getLogView() { + java.lang.Object ref = logView_; + 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(); + logView_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. Optional log view that will be used to query logs.
            +     * If empty, the `_Default` view will be used.
            +     * 
            + * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for logView. + */ + @java.lang.Override + public com.google.protobuf.ByteString getLogViewBytes() { + java.lang.Object ref = logView_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logView_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int TRACE_VIEW_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object traceView_ = ""; + + /** + * + * + *
            +     * Optional. Optional trace view that will be used to query traces.
            +     * If empty, the `_Default` view will be used.
            +     *
            +     * NOTE: This field is not supported yet and will be ignored if set.
            +     * 
            + * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The traceView. + */ + @java.lang.Override + public java.lang.String getTraceView() { + java.lang.Object ref = traceView_; + 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(); + traceView_ = s; + return s; + } + } + + /** + * + * + *
            +     * Optional. Optional trace view that will be used to query traces.
            +     * If empty, the `_Default` view will be used.
            +     *
            +     * NOTE: This field is not supported yet and will be ignored if set.
            +     * 
            + * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for traceView. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTraceViewBytes() { + java.lang.Object ref = traceView_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + traceView_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logView_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, logView_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(traceView_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, traceView_); + } + if (evalScopeCase_ == 3) { + output.writeMessage( + 3, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + evalScope_); + } + if (conventionCase_ == 4) { + output.writeMessage( + 4, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry) + convention_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(logView_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, logView_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(traceView_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, traceView_); + } + if (evalScopeCase_ == 3) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 3, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope) + evalScope_); + } + if (conventionCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_); + } + 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.OnlineEvaluator.CloudObservability)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) obj; + + if (!getLogView().equals(other.getLogView())) return false; + if (!getTraceView().equals(other.getTraceView())) return false; + if (!getEvalScopeCase().equals(other.getEvalScopeCase())) return false; + switch (evalScopeCase_) { + case 3: + if (!getTraceScope().equals(other.getTraceScope())) return false; + break; + case 0: + default: + } + if (!getConventionCase().equals(other.getConventionCase())) return false; + switch (conventionCase_) { + case 4: + if (!getOpenTelemetry().equals(other.getOpenTelemetry())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + LOG_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getLogView().hashCode(); + hash = (37 * hash) + TRACE_VIEW_FIELD_NUMBER; + hash = (53 * hash) + getTraceView().hashCode(); + switch (evalScopeCase_) { + case 3: + hash = (37 * hash) + TRACE_SCOPE_FIELD_NUMBER; + hash = (53 * hash) + getTraceScope().hashCode(); + break; + case 0: + default: + } + switch (conventionCase_) { + case 4: + hash = (37 * hash) + OPEN_TELEMETRY_FIELD_NUMBER; + hash = (53 * hash) + getOpenTelemetry().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability 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.OnlineEvaluator.CloudObservability parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability 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.OnlineEvaluator.CloudObservability parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability 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.OnlineEvaluator.CloudObservability parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (traceScopeBuilder_ != null) { + traceScopeBuilder_.clear(); + } + if (openTelemetryBuilder_ != null) { + openTelemetryBuilder_.clear(); + } + logView_ = ""; + traceView_ = ""; + evalScopeCase_ = 0; + evalScope_ = null; + conventionCase_ = 0; + convention_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.logView_ = logView_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.traceView_ = traceView_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability result) { + result.evalScopeCase_ = evalScopeCase_; + result.evalScope_ = this.evalScope_; + if (evalScopeCase_ == 3 && traceScopeBuilder_ != null) { + result.evalScope_ = traceScopeBuilder_.build(); + } + result.conventionCase_ = conventionCase_; + result.convention_ = this.convention_; + if (conventionCase_ == 4 && openTelemetryBuilder_ != null) { + result.convention_ = openTelemetryBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance()) return this; + if (!other.getLogView().isEmpty()) { + logView_ = other.logView_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getTraceView().isEmpty()) { + traceView_ = other.traceView_; + bitField0_ |= 0x00000008; + onChanged(); + } + switch (other.getEvalScopeCase()) { + case TRACE_SCOPE: + { + mergeTraceScope(other.getTraceScope()); + break; + } + case EVALSCOPE_NOT_SET: + { + break; + } + } + switch (other.getConventionCase()) { + case OPEN_TELEMETRY: + { + mergeOpenTelemetry(other.getOpenTelemetry()); + break; + } + case CONVENTION_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + logView_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 10 + case 18: + { + traceView_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetTraceScopeFieldBuilder().getBuilder(), extensionRegistry); + evalScopeCase_ = 3; + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetOpenTelemetryFieldBuilder().getBuilder(), extensionRegistry); + conventionCase_ = 4; + break; + } // case 34 + 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 evalScopeCase_ = 0; + private java.lang.Object evalScope_; + + public EvalScopeCase getEvalScopeCase() { + return EvalScopeCase.forNumber(evalScopeCase_); + } + + public Builder clearEvalScope() { + evalScopeCase_ = 0; + evalScope_ = null; + onChanged(); + return this; + } + + private int conventionCase_ = 0; + private java.lang.Object convention_; + + public ConventionCase getConventionCase() { + return ConventionCase.forNumber(conventionCase_); + } + + public Builder clearConvention() { + conventionCase_ = 0; + convention_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder> + traceScopeBuilder_; + + /** + * + * + *
            +       * Scope online evaluation to single traces.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return Whether the traceScope field is set. + */ + @java.lang.Override + public boolean hasTraceScope() { + return evalScopeCase_ == 3; + } + + /** + * + * + *
            +       * Scope online evaluation to single traces.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + * + * @return The traceScope. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + getTraceScope() { + if (traceScopeBuilder_ == null) { + if (evalScopeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope) + evalScope_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } else { + if (evalScopeCase_ == 3) { + return traceScopeBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Scope online evaluation to single traces.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public Builder setTraceScope( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope value) { + if (traceScopeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evalScope_ = value; + onChanged(); + } else { + traceScopeBuilder_.setMessage(value); + } + evalScopeCase_ = 3; + return this; + } + + /** + * + * + *
            +       * Scope online evaluation to single traces.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public Builder setTraceScope( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope.Builder + builderForValue) { + if (traceScopeBuilder_ == null) { + evalScope_ = builderForValue.build(); + onChanged(); + } else { + traceScopeBuilder_.setMessage(builderForValue.build()); + } + evalScopeCase_ = 3; + return this; + } + + /** + * + * + *
            +       * Scope online evaluation to single traces.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public Builder mergeTraceScope( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope value) { + if (traceScopeBuilder_ == null) { + if (evalScopeCase_ == 3 + && evalScope_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope.getDefaultInstance()) { + evalScope_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope) + evalScope_) + .mergeFrom(value) + .buildPartial(); + } else { + evalScope_ = value; + } + onChanged(); + } else { + if (evalScopeCase_ == 3) { + traceScopeBuilder_.mergeFrom(value); + } else { + traceScopeBuilder_.setMessage(value); + } + } + evalScopeCase_ = 3; + return this; + } + + /** + * + * + *
            +       * Scope online evaluation to single traces.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public Builder clearTraceScope() { + if (traceScopeBuilder_ == null) { + if (evalScopeCase_ == 3) { + evalScopeCase_ = 0; + evalScope_ = null; + onChanged(); + } + } else { + if (evalScopeCase_ == 3) { + evalScopeCase_ = 0; + evalScope_ = null; + } + traceScopeBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Scope online evaluation to single traces.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder + getTraceScopeBuilder() { + return internalGetTraceScopeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Scope online evaluation to single traces.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder + getTraceScopeOrBuilder() { + if ((evalScopeCase_ == 3) && (traceScopeBuilder_ != null)) { + return traceScopeBuilder_.getMessageOrBuilder(); + } else { + if (evalScopeCase_ == 3) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope) + evalScope_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Scope online evaluation to single traces.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope trace_scope = 3; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder> + internalGetTraceScopeFieldBuilder() { + if (traceScopeBuilder_ == null) { + if (!(evalScopeCase_ == 3)) { + evalScope_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .getDefaultInstance(); + } + traceScopeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScope + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScopeOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .TraceScope) + evalScope_, + getParentForChildren(), + isClean()); + evalScope_ = null; + } + evalScopeCase_ = 3; + onChanged(); + return traceScopeBuilder_; + } + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder> + openTelemetryBuilder_; + + /** + * + * + *
            +       * Data source follows OpenTelemetry convention.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return Whether the openTelemetry field is set. + */ + @java.lang.Override + public boolean hasOpenTelemetry() { + return conventionCase_ == 4; + } + + /** + * + * + *
            +       * Data source follows OpenTelemetry convention.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + * + * @return The openTelemetry. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + getOpenTelemetry() { + if (openTelemetryBuilder_ == null) { + if (conventionCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance(); + } else { + if (conventionCase_ == 4) { + return openTelemetryBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Data source follows OpenTelemetry convention.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public Builder setOpenTelemetry( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + value) { + if (openTelemetryBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + convention_ = value; + onChanged(); + } else { + openTelemetryBuilder_.setMessage(value); + } + conventionCase_ = 4; + return this; + } + + /** + * + * + *
            +       * Data source follows OpenTelemetry convention.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public Builder setOpenTelemetry( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder + builderForValue) { + if (openTelemetryBuilder_ == null) { + convention_ = builderForValue.build(); + onChanged(); + } else { + openTelemetryBuilder_.setMessage(builderForValue.build()); + } + conventionCase_ = 4; + return this; + } + + /** + * + * + *
            +       * Data source follows OpenTelemetry convention.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public Builder mergeOpenTelemetry( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + value) { + if (openTelemetryBuilder_ == null) { + if (conventionCase_ == 4 + && convention_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance()) { + convention_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_) + .mergeFrom(value) + .buildPartial(); + } else { + convention_ = value; + } + onChanged(); + } else { + if (conventionCase_ == 4) { + openTelemetryBuilder_.mergeFrom(value); + } else { + openTelemetryBuilder_.setMessage(value); + } + } + conventionCase_ = 4; + return this; + } + + /** + * + * + *
            +       * Data source follows OpenTelemetry convention.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public Builder clearOpenTelemetry() { + if (openTelemetryBuilder_ == null) { + if (conventionCase_ == 4) { + conventionCase_ = 0; + convention_ = null; + onChanged(); + } + } else { + if (conventionCase_ == 4) { + conventionCase_ = 0; + convention_ = null; + } + openTelemetryBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Data source follows OpenTelemetry convention.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder + getOpenTelemetryBuilder() { + return internalGetOpenTelemetryFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Data source follows OpenTelemetry convention.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder + getOpenTelemetryOrBuilder() { + if ((conventionCase_ == 4) && (openTelemetryBuilder_ != null)) { + return openTelemetryBuilder_.getMessageOrBuilder(); + } else { + if (conventionCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Data source follows OpenTelemetry convention.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry open_telemetry = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder> + internalGetOpenTelemetryFieldBuilder() { + if (openTelemetryBuilder_ == null) { + if (!(conventionCase_ == 4)) { + convention_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetry + .getDefaultInstance(); + } + openTelemetryBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetryOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .OpenTelemetry) + convention_, + getParentForChildren(), + isClean()); + convention_ = null; + } + conventionCase_ = 4; + onChanged(); + return openTelemetryBuilder_; + } + + private java.lang.Object logView_ = ""; + + /** + * + * + *
            +       * Optional. Optional log view that will be used to query logs.
            +       * If empty, the `_Default` view will be used.
            +       * 
            + * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The logView. + */ + public java.lang.String getLogView() { + java.lang.Object ref = logView_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + logView_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. Optional log view that will be used to query logs.
            +       * If empty, the `_Default` view will be used.
            +       * 
            + * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for logView. + */ + public com.google.protobuf.ByteString getLogViewBytes() { + java.lang.Object ref = logView_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + logView_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. Optional log view that will be used to query logs.
            +       * If empty, the `_Default` view will be used.
            +       * 
            + * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The logView to set. + * @return This builder for chaining. + */ + public Builder setLogView(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + logView_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional log view that will be used to query logs.
            +       * If empty, the `_Default` view will be used.
            +       * 
            + * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearLogView() { + logView_ = getDefaultInstance().getLogView(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional log view that will be used to query logs.
            +       * If empty, the `_Default` view will be used.
            +       * 
            + * + * string log_view = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for logView to set. + * @return This builder for chaining. + */ + public Builder setLogViewBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + logView_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object traceView_ = ""; + + /** + * + * + *
            +       * Optional. Optional trace view that will be used to query traces.
            +       * If empty, the `_Default` view will be used.
            +       *
            +       * NOTE: This field is not supported yet and will be ignored if set.
            +       * 
            + * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The traceView. + */ + public java.lang.String getTraceView() { + java.lang.Object ref = traceView_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + traceView_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Optional. Optional trace view that will be used to query traces.
            +       * If empty, the `_Default` view will be used.
            +       *
            +       * NOTE: This field is not supported yet and will be ignored if set.
            +       * 
            + * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for traceView. + */ + public com.google.protobuf.ByteString getTraceViewBytes() { + java.lang.Object ref = traceView_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + traceView_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Optional. Optional trace view that will be used to query traces.
            +       * If empty, the `_Default` view will be used.
            +       *
            +       * NOTE: This field is not supported yet and will be ignored if set.
            +       * 
            + * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The traceView to set. + * @return This builder for chaining. + */ + public Builder setTraceView(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + traceView_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional trace view that will be used to query traces.
            +       * If empty, the `_Default` view will be used.
            +       *
            +       * NOTE: This field is not supported yet and will be ignored if set.
            +       * 
            + * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearTraceView() { + traceView_ = getDefaultInstance().getTraceView(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. Optional trace view that will be used to query traces.
            +       * If empty, the `_Default` view will be used.
            +       *
            +       * NOTE: This field is not supported yet and will be ignored if set.
            +       * 
            + * + * string trace_view = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for traceView to set. + * @return This builder for chaining. + */ + public Builder setTraceViewBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + traceView_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CloudObservability 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.OnlineEvaluator.CloudObservability + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface ConfigOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Random sampling method.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return Whether the randomSampling field is set. + */ + boolean hasRandomSampling(); + + /** + * + * + *
            +     * Random sampling method.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return The randomSampling. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling getRandomSampling(); + + /** + * + * + *
            +     * Random sampling method.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder + getRandomSamplingOrBuilder(); + + /** + * + * + *
            +     * Optional. The maximum number of evaluations to perform per run.
            +     * If set to 0, the number is unbounded.
            +     * 
            + * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxEvaluatedSamplesPerRun. + */ + long getMaxEvaluatedSamplesPerRun(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.SamplingMethodCase + getSamplingMethodCase(); + } + + /** + * + * + *
            +   * Configuration for sampling behavior of the OnlineEvaluator.
            +   * The OnlineEvaluator runs at a fixed interval of 10 minutes.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config} + */ + public static final class Config extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + ConfigOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Config"); + } + + // Use Config.newBuilder() to construct. + private Config(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Config() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder.class); + } + + public interface RandomSamplingOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Required. The percentage of traces to sample for evaluation.
            +       * Must be an integer between `1` and `100`.
            +       * 
            + * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The percentage. + */ + int getPercentage(); + } + + /** + * + * + *
            +     * Configuration for random sampling.
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling} + */ + public static final class RandomSampling extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + RandomSamplingOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RandomSampling"); + } + + // Use RandomSampling.newBuilder() to construct. + private RandomSampling(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RandomSampling() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder + .class); + } + + public static final int PERCENTAGE_FIELD_NUMBER = 1; + private int percentage_ = 0; + + /** + * + * + *
            +       * Required. The percentage of traces to sample for evaluation.
            +       * Must be an integer between `1` and `100`.
            +       * 
            + * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The percentage. + */ + @java.lang.Override + public int getPercentage() { + return percentage_; + } + + 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 (percentage_ != 0) { + output.writeInt32(1, percentage_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (percentage_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, percentage_); + } + 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.OnlineEvaluator.Config.RandomSampling)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) obj; + + if (getPercentage() != other.getPercentage()) 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) + PERCENTAGE_FIELD_NUMBER; + hash = (53 * hash) + getPercentage(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + 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.OnlineEvaluator.Config.RandomSampling + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + 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.OnlineEvaluator.Config.RandomSampling + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + 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.OnlineEvaluator.Config.RandomSampling + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Configuration for random sampling.
            +       * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + percentage_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.percentage_ = percentage_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance()) return this; + if (other.getPercentage() != 0) { + setPercentage(other.getPercentage()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + percentage_ = input.readInt32(); + bitField0_ |= 0x00000001; + break; + } // case 8 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private int percentage_; + + /** + * + * + *
            +         * Required. The percentage of traces to sample for evaluation.
            +         * Must be an integer between `1` and `100`.
            +         * 
            + * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The percentage. + */ + @java.lang.Override + public int getPercentage() { + return percentage_; + } + + /** + * + * + *
            +         * Required. The percentage of traces to sample for evaluation.
            +         * Must be an integer between `1` and `100`.
            +         * 
            + * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The percentage to set. + * @return This builder for chaining. + */ + public Builder setPercentage(int value) { + + percentage_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Required. The percentage of traces to sample for evaluation.
            +         * Must be an integer between `1` and `100`.
            +         * 
            + * + * int32 percentage = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPercentage() { + bitField0_ = (bitField0_ & ~0x00000001); + percentage_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RandomSampling 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.OnlineEvaluator.Config.RandomSampling + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int samplingMethodCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object samplingMethod_; + + public enum SamplingMethodCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + RANDOM_SAMPLING(2), + SAMPLINGMETHOD_NOT_SET(0); + private final int value; + + private SamplingMethodCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static SamplingMethodCase valueOf(int value) { + return forNumber(value); + } + + public static SamplingMethodCase forNumber(int value) { + switch (value) { + case 2: + return RANDOM_SAMPLING; + case 0: + return SAMPLINGMETHOD_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public SamplingMethodCase getSamplingMethodCase() { + return SamplingMethodCase.forNumber(samplingMethodCase_); + } + + public static final int RANDOM_SAMPLING_FIELD_NUMBER = 2; + + /** + * + * + *
            +     * Random sampling method.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return Whether the randomSampling field is set. + */ + @java.lang.Override + public boolean hasRandomSampling() { + return samplingMethodCase_ == 2; + } + + /** + * + * + *
            +     * Random sampling method.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return The randomSampling. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + getRandomSampling() { + if (samplingMethodCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + + /** + * + * + *
            +     * Random sampling method.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder + getRandomSamplingOrBuilder() { + if (samplingMethodCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + + public static final int MAX_EVALUATED_SAMPLES_PER_RUN_FIELD_NUMBER = 1; + private long maxEvaluatedSamplesPerRun_ = 0L; + + /** + * + * + *
            +     * Optional. The maximum number of evaluations to perform per run.
            +     * If set to 0, the number is unbounded.
            +     * 
            + * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxEvaluatedSamplesPerRun. + */ + @java.lang.Override + public long getMaxEvaluatedSamplesPerRun() { + return maxEvaluatedSamplesPerRun_; + } + + 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 (maxEvaluatedSamplesPerRun_ != 0L) { + output.writeInt64(1, maxEvaluatedSamplesPerRun_); + } + if (samplingMethodCase_ == 2) { + output.writeMessage( + 2, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (maxEvaluatedSamplesPerRun_ != 0L) { + size += + com.google.protobuf.CodedOutputStream.computeInt64Size(1, maxEvaluatedSamplesPerRun_); + } + if (samplingMethodCase_ == 2) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 2, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_); + } + 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.OnlineEvaluator.Config)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) obj; + + if (getMaxEvaluatedSamplesPerRun() != other.getMaxEvaluatedSamplesPerRun()) return false; + if (!getSamplingMethodCase().equals(other.getSamplingMethodCase())) return false; + switch (samplingMethodCase_) { + case 2: + if (!getRandomSampling().equals(other.getRandomSampling())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + MAX_EVALUATED_SAMPLES_PER_RUN_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getMaxEvaluatedSamplesPerRun()); + switch (samplingMethodCase_) { + case 2: + hash = (37 * hash) + RANDOM_SAMPLING_FIELD_NUMBER; + hash = (53 * hash) + getRandomSampling().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config 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.OnlineEvaluator.Config parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config 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.OnlineEvaluator.Config parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config 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.OnlineEvaluator.Config parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Configuration for sampling behavior of the OnlineEvaluator.
            +     * The OnlineEvaluator runs at a fixed interval of 10 minutes.
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (randomSamplingBuilder_ != null) { + randomSamplingBuilder_.clear(); + } + maxEvaluatedSamplesPerRun_ = 0L; + samplingMethodCase_ = 0; + samplingMethod_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.maxEvaluatedSamplesPerRun_ = maxEvaluatedSamplesPerRun_; + } + } + + private void buildPartialOneofs( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config result) { + result.samplingMethodCase_ = samplingMethodCase_; + result.samplingMethod_ = this.samplingMethod_; + if (samplingMethodCase_ == 2 && randomSamplingBuilder_ != null) { + result.samplingMethod_ = randomSamplingBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance()) + return this; + if (other.getMaxEvaluatedSamplesPerRun() != 0L) { + setMaxEvaluatedSamplesPerRun(other.getMaxEvaluatedSamplesPerRun()); + } + switch (other.getSamplingMethodCase()) { + case RANDOM_SAMPLING: + { + mergeRandomSampling(other.getRandomSampling()); + break; + } + case SAMPLINGMETHOD_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 8: + { + maxEvaluatedSamplesPerRun_ = input.readInt64(); + bitField0_ |= 0x00000002; + break; + } // case 8 + case 18: + { + input.readMessage( + internalGetRandomSamplingFieldBuilder().getBuilder(), extensionRegistry); + samplingMethodCase_ = 2; + break; + } // case 18 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int samplingMethodCase_ = 0; + private java.lang.Object samplingMethod_; + + public SamplingMethodCase getSamplingMethodCase() { + return SamplingMethodCase.forNumber(samplingMethodCase_); + } + + public Builder clearSamplingMethod() { + samplingMethodCase_ = 0; + samplingMethod_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder> + randomSamplingBuilder_; + + /** + * + * + *
            +       * Random sampling method.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return Whether the randomSampling field is set. + */ + @java.lang.Override + public boolean hasRandomSampling() { + return samplingMethodCase_ == 2; + } + + /** + * + * + *
            +       * Random sampling method.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + * + * @return The randomSampling. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + getRandomSampling() { + if (randomSamplingBuilder_ == null) { + if (samplingMethodCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } else { + if (samplingMethodCase_ == 2) { + return randomSamplingBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Random sampling method.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public Builder setRandomSampling( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling value) { + if (randomSamplingBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + samplingMethod_ = value; + onChanged(); + } else { + randomSamplingBuilder_.setMessage(value); + } + samplingMethodCase_ = 2; + return this; + } + + /** + * + * + *
            +       * Random sampling method.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public Builder setRandomSampling( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder + builderForValue) { + if (randomSamplingBuilder_ == null) { + samplingMethod_ = builderForValue.build(); + onChanged(); + } else { + randomSamplingBuilder_.setMessage(builderForValue.build()); + } + samplingMethodCase_ = 2; + return this; + } + + /** + * + * + *
            +       * Random sampling method.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public Builder mergeRandomSampling( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling value) { + if (randomSamplingBuilder_ == null) { + if (samplingMethodCase_ == 2 + && samplingMethod_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance()) { + samplingMethod_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_) + .mergeFrom(value) + .buildPartial(); + } else { + samplingMethod_ = value; + } + onChanged(); + } else { + if (samplingMethodCase_ == 2) { + randomSamplingBuilder_.mergeFrom(value); + } else { + randomSamplingBuilder_.setMessage(value); + } + } + samplingMethodCase_ = 2; + return this; + } + + /** + * + * + *
            +       * Random sampling method.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public Builder clearRandomSampling() { + if (randomSamplingBuilder_ == null) { + if (samplingMethodCase_ == 2) { + samplingMethodCase_ = 0; + samplingMethod_ = null; + onChanged(); + } + } else { + if (samplingMethodCase_ == 2) { + samplingMethodCase_ = 0; + samplingMethod_ = null; + } + randomSamplingBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Random sampling method.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder + getRandomSamplingBuilder() { + return internalGetRandomSamplingFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Random sampling method.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder + getRandomSamplingOrBuilder() { + if ((samplingMethodCase_ == 2) && (randomSamplingBuilder_ != null)) { + return randomSamplingBuilder_.getMessageOrBuilder(); + } else { + if (samplingMethodCase_ == 2) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Random sampling method.
            +       * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling random_sampling = 2; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSamplingOrBuilder> + internalGetRandomSamplingFieldBuilder() { + if (randomSamplingBuilder_ == null) { + if (!(samplingMethodCase_ == 2)) { + samplingMethod_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling + .getDefaultInstance(); + } + randomSamplingBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config + .RandomSamplingOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.RandomSampling) + samplingMethod_, + getParentForChildren(), + isClean()); + samplingMethod_ = null; + } + samplingMethodCase_ = 2; + onChanged(); + return randomSamplingBuilder_; + } + + private long maxEvaluatedSamplesPerRun_; + + /** + * + * + *
            +       * Optional. The maximum number of evaluations to perform per run.
            +       * If set to 0, the number is unbounded.
            +       * 
            + * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The maxEvaluatedSamplesPerRun. + */ + @java.lang.Override + public long getMaxEvaluatedSamplesPerRun() { + return maxEvaluatedSamplesPerRun_; + } + + /** + * + * + *
            +       * Optional. The maximum number of evaluations to perform per run.
            +       * If set to 0, the number is unbounded.
            +       * 
            + * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The maxEvaluatedSamplesPerRun to set. + * @return This builder for chaining. + */ + public Builder setMaxEvaluatedSamplesPerRun(long value) { + + maxEvaluatedSamplesPerRun_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Optional. The maximum number of evaluations to perform per run.
            +       * If set to 0, the number is unbounded.
            +       * 
            + * + * int64 max_evaluated_samples_per_run = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearMaxEvaluatedSamplesPerRun() { + bitField0_ = (bitField0_ & ~0x00000002); + maxEvaluatedSamplesPerRun_ = 0L; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Config 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.OnlineEvaluator.Config getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + public interface StateDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Output only. Human-readable message describing the state of the
            +     * OnlineEvaluator.
            +     * 
            + * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + java.lang.String getMessage(); + + /** + * + * + *
            +     * Output only. Human-readable message describing the state of the
            +     * OnlineEvaluator.
            +     * 
            + * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + com.google.protobuf.ByteString getMessageBytes(); + } + + /** + * + * + *
            +   * Contains additional information about the state of the OnlineEvaluator.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails} + */ + public static final class StateDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + StateDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "StateDetails"); + } + + // Use StateDetails.newBuilder() to construct. + private StateDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private StateDetails() { + message_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder.class); + } + + public static final int MESSAGE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object message_ = ""; + + /** + * + * + *
            +     * Output only. Human-readable message describing the state of the
            +     * OnlineEvaluator.
            +     * 
            + * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + @java.lang.Override + public java.lang.String getMessage() { + java.lang.Object ref = message_; + 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(); + message_ = s; + return s; + } + } + + /** + * + * + *
            +     * Output only. Human-readable message describing the state of the
            +     * OnlineEvaluator.
            +     * 
            + * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + @java.lang.Override + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, message_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(message_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, message_); + } + 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.OnlineEvaluator.StateDetails)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) obj; + + if (!getMessage().equals(other.getMessage())) 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) + MESSAGE_FIELD_NUMBER; + hash = (53 * hash) + getMessage().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails 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.OnlineEvaluator.StateDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails 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.OnlineEvaluator.StateDetails parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails 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.OnlineEvaluator.StateDetails parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Contains additional information about the state of the OnlineEvaluator.
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + message_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.message_ = message_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails other) { + if (other + == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + .getDefaultInstance()) return this; + if (!other.getMessage().isEmpty()) { + message_ = other.message_; + 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: + { + message_ = 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 message_ = ""; + + /** + * + * + *
            +       * Output only. Human-readable message describing the state of the
            +       * OnlineEvaluator.
            +       * 
            + * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The message. + */ + public java.lang.String getMessage() { + java.lang.Object ref = message_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + message_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +       * Output only. Human-readable message describing the state of the
            +       * OnlineEvaluator.
            +       * 
            + * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for message. + */ + public com.google.protobuf.ByteString getMessageBytes() { + java.lang.Object ref = message_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + message_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +       * Output only. Human-readable message describing the state of the
            +       * OnlineEvaluator.
            +       * 
            + * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The message to set. + * @return This builder for chaining. + */ + public Builder setMessage(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Human-readable message describing the state of the
            +       * OnlineEvaluator.
            +       * 
            + * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearMessage() { + message_ = getDefaultInstance().getMessage(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +       * Output only. Human-readable message describing the state of the
            +       * OnlineEvaluator.
            +       * 
            + * + * string message = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for message to set. + * @return This builder for chaining. + */ + public Builder setMessageBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + message_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public StateDetails 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.OnlineEvaluator.StateDetails + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + private int dataSourceCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object dataSource_; + + public enum DataSourceCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + CLOUD_OBSERVABILITY(4), + DATASOURCE_NOT_SET(0); + private final int value; + + private DataSourceCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static DataSourceCase valueOf(int value) { + return forNumber(value); + } + + public static DataSourceCase forNumber(int value) { + switch (value) { + case 4: + return CLOUD_OBSERVABILITY; + case 0: + return DATASOURCE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public DataSourceCase getDataSourceCase() { + return DataSourceCase.forNumber(dataSourceCase_); + } + + public static final int CLOUD_OBSERVABILITY_FIELD_NUMBER = 4; + + /** + * + * + *
            +   * Data source for the OnlineEvaluator, based on GCP Observability stack
            +   * (Cloud Trace & Cloud Logging).
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return Whether the cloudObservability field is set. + */ + @java.lang.Override + public boolean hasCloudObservability() { + return dataSourceCase_ == 4; + } + + /** + * + * + *
            +   * Data source for the OnlineEvaluator, based on GCP Observability stack
            +   * (Cloud Trace & Cloud Logging).
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return The cloudObservability. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + getCloudObservability() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + + /** + * + * + *
            +   * Data source for the OnlineEvaluator, based on GCP Observability stack
            +   * (Cloud Trace & Cloud Logging).
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder + getCloudObservabilityOrBuilder() { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Identifier. The resource name of the OnlineEvaluator.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Identifier. The resource name of the OnlineEvaluator.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int AGENT_RESOURCE_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object agentResource_ = ""; + + /** + * + * + *
            +   * Required. Immutable. The name of the agent that the OnlineEvaluator
            +   * evaluates periodically. This value is used to filter the traces with a
            +   * matching cloud.resource_id and link the evaluation results with relevant
            +   * dashboards/UIs.
            +   *
            +   * This field is immutable. Once set, it cannot be changed.
            +   * 
            + * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The agentResource. + */ + @java.lang.Override + public java.lang.String getAgentResource() { + java.lang.Object ref = agentResource_; + 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(); + agentResource_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. Immutable. The name of the agent that the OnlineEvaluator
            +   * evaluates periodically. This value is used to filter the traces with a
            +   * matching cloud.resource_id and link the evaluation results with relevant
            +   * dashboards/UIs.
            +   *
            +   * This field is immutable. Once set, it cannot be changed.
            +   * 
            + * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for agentResource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAgentResourceBytes() { + java.lang.Object ref = agentResource_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int METRIC_SOURCES_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List metricSources_; + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getMetricSourcesList() { + return metricSources_; + } + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getMetricSourcesOrBuilderList() { + return metricSources_; + } + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getMetricSourcesCount() { + return metricSources_.size(); + } + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index) { + return metricSources_.get(index); + } + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder( + int index) { + return metricSources_.get(index); + } + + public static final int CONFIG_FIELD_NUMBER = 5; + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config_; + + /** + * + * + *
            +   * Required. Configuration for the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + @java.lang.Override + public boolean hasConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. Configuration for the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config getConfig() { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance() + : config_; + } + + /** + * + * + *
            +   * Required. Configuration for the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder getConfigOrBuilder() { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance() + : config_; + } + + public static final int STATE_FIELD_NUMBER = 6; + private int state_ = 0; + + /** + * + * + *
            +   * Output only. The state of the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +   * Output only. The state of the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State getState() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State result = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.forNumber(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.UNRECOGNIZED + : result; + } + + public static final int STATE_DETAILS_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private java.util.List + stateDetails_; + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List + getStateDetailsList() { + return stateDetails_; + } + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + getStateDetailsOrBuilderList() { + return stateDetails_; + } + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public int getStateDetailsCount() { + return stateDetails_.size(); + } + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails getStateDetails( + int index) { + return stateDetails_.get(index); + } + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder + getStateDetailsOrBuilder(int index) { + return stateDetails_.get(index); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 8; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Optional. Human-readable name for the `OnlineEvaluator`.
            +   *
            +   * The name doesn't have to be unique.
            +   *
            +   * The name can consist of any UTF-8 characters. The maximum length is `63`
            +   * characters. If the display name exceeds max characters, an
            +   * `INVALID_ARGUMENT` error is returned.
            +   * 
            + * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Human-readable name for the `OnlineEvaluator`.
            +   *
            +   * The name doesn't have to be unique.
            +   *
            +   * The name can consist of any UTF-8 characters. The maximum length is `63`
            +   * characters. If the display name exceeds max characters, an
            +   * `INVALID_ARGUMENT` error is returned.
            +   * 
            + * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentResource_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, agentResource_); + } + for (int i = 0; i < metricSources_.size(); i++) { + output.writeMessage(3, metricSources_.get(i)); + } + if (dataSourceCase_ == 4) { + output.writeMessage( + 4, (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) dataSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(5, getConfig()); + } + if (state_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.STATE_UNSPECIFIED + .getNumber()) { + output.writeEnum(6, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 9, displayName_); + } + for (int i = 0; i < stateDetails_.size(); i++) { + output.writeMessage(10, stateDetails_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(agentResource_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, agentResource_); + } + for (int i = 0; i < metricSources_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, metricSources_.get(i)); + } + if (dataSourceCase_ == 4) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 4, + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) dataSource_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getConfig()); + } + if (state_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.STATE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(6, state_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getCreateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getUpdateTime()); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(9, displayName_); + } + for (int i = 0; i < stateDetails_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, stateDetails_.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.OnlineEvaluator)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator other = + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator) obj; + + if (!getName().equals(other.getName())) return false; + if (!getAgentResource().equals(other.getAgentResource())) return false; + if (!getMetricSourcesList().equals(other.getMetricSourcesList())) return false; + if (hasConfig() != other.hasConfig()) return false; + if (hasConfig()) { + if (!getConfig().equals(other.getConfig())) return false; + } + if (state_ != other.state_) return false; + if (!getStateDetailsList().equals(other.getStateDetailsList())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDataSourceCase().equals(other.getDataSourceCase())) return false; + switch (dataSourceCase_) { + case 4: + if (!getCloudObservability().equals(other.getCloudObservability())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + AGENT_RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getAgentResource().hashCode(); + if (getMetricSourcesCount() > 0) { + hash = (37 * hash) + METRIC_SOURCES_FIELD_NUMBER; + hash = (53 * hash) + getMetricSourcesList().hashCode(); + } + if (hasConfig()) { + hash = (37 * hash) + CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getConfig().hashCode(); + } + hash = (37 * hash) + STATE_FIELD_NUMBER; + hash = (53 * hash) + state_; + if (getStateDetailsCount() > 0) { + hash = (37 * hash) + STATE_DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getStateDetailsList().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + switch (dataSourceCase_) { + case 4: + hash = (37 * hash) + CLOUD_OBSERVABILITY_FIELD_NUMBER; + hash = (53 * hash) + getCloudObservability().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator 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.OnlineEvaluator parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator 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.OnlineEvaluator parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator 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.OnlineEvaluator parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * An OnlineEvaluator contains the configuration for an Online Evaluation.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.OnlineEvaluator} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.class, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetMetricSourcesFieldBuilder(); + internalGetConfigFieldBuilder(); + internalGetStateDetailsFieldBuilder(); + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (cloudObservabilityBuilder_ != null) { + cloudObservabilityBuilder_.clear(); + } + name_ = ""; + agentResource_ = ""; + if (metricSourcesBuilder_ == null) { + metricSources_ = java.util.Collections.emptyList(); + } else { + metricSources_ = null; + metricSourcesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000008); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + state_ = 0; + if (stateDetailsBuilder_ == null) { + stateDetails_ = java.util.Collections.emptyList(); + } else { + stateDetails_ = null; + stateDetailsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000040); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + displayName_ = ""; + dataSourceCase_ = 0; + dataSource_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto + .internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator build() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator buildPartial() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result = + new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result) { + if (metricSourcesBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0)) { + metricSources_ = java.util.Collections.unmodifiableList(metricSources_); + bitField0_ = (bitField0_ & ~0x00000008); + } + result.metricSources_ = metricSources_; + } else { + result.metricSources_ = metricSourcesBuilder_.build(); + } + if (stateDetailsBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0)) { + stateDetails_ = java.util.Collections.unmodifiableList(stateDetails_); + bitField0_ = (bitField0_ & ~0x00000040); + } + result.stateDetails_ = stateDetails_; + } else { + result.stateDetails_ = stateDetailsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.agentResource_ = agentResource_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.config_ = configBuilder_ == null ? config_ : configBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.displayName_ = displayName_; + } + result.bitField0_ |= to_bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator result) { + result.dataSourceCase_ = dataSourceCase_; + result.dataSource_ = this.dataSource_; + if (dataSourceCase_ == 4 && cloudObservabilityBuilder_ != null) { + result.dataSource_ = cloudObservabilityBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.OnlineEvaluator) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.OnlineEvaluator) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator other) { + if (other == com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getAgentResource().isEmpty()) { + agentResource_ = other.agentResource_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (metricSourcesBuilder_ == null) { + if (!other.metricSources_.isEmpty()) { + if (metricSources_.isEmpty()) { + metricSources_ = other.metricSources_; + bitField0_ = (bitField0_ & ~0x00000008); + } else { + ensureMetricSourcesIsMutable(); + metricSources_.addAll(other.metricSources_); + } + onChanged(); + } + } else { + if (!other.metricSources_.isEmpty()) { + if (metricSourcesBuilder_.isEmpty()) { + metricSourcesBuilder_.dispose(); + metricSourcesBuilder_ = null; + metricSources_ = other.metricSources_; + bitField0_ = (bitField0_ & ~0x00000008); + metricSourcesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetMetricSourcesFieldBuilder() + : null; + } else { + metricSourcesBuilder_.addAllMessages(other.metricSources_); + } + } + } + if (other.hasConfig()) { + mergeConfig(other.getConfig()); + } + if (other.state_ != 0) { + setStateValue(other.getStateValue()); + } + if (stateDetailsBuilder_ == null) { + if (!other.stateDetails_.isEmpty()) { + if (stateDetails_.isEmpty()) { + stateDetails_ = other.stateDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + } else { + ensureStateDetailsIsMutable(); + stateDetails_.addAll(other.stateDetails_); + } + onChanged(); + } + } else { + if (!other.stateDetails_.isEmpty()) { + if (stateDetailsBuilder_.isEmpty()) { + stateDetailsBuilder_.dispose(); + stateDetailsBuilder_ = null; + stateDetails_ = other.stateDetails_; + bitField0_ = (bitField0_ & ~0x00000040); + stateDetailsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetStateDetailsFieldBuilder() + : null; + } else { + stateDetailsBuilder_.addAllMessages(other.stateDetails_); + } + } + } + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000200; + onChanged(); + } + switch (other.getDataSourceCase()) { + case CLOUD_OBSERVABILITY: + { + mergeCloudObservability(other.getCloudObservability()); + break; + } + case DATASOURCE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 10 + case 18: + { + agentResource_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.MetricSource m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.MetricSource.parser(), + extensionRegistry); + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(m); + } else { + metricSourcesBuilder_.addMessage(m); + } + break; + } // case 26 + case 34: + { + input.readMessage( + internalGetCloudObservabilityFieldBuilder().getBuilder(), extensionRegistry); + dataSourceCase_ = 4; + break; + } // case 34 + case 42: + { + input.readMessage(internalGetConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 48: + { + state_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 48 + case 58: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 58 + case 66: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000100; + break; + } // case 66 + case 74: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 74 + case 82: + { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.parser(), + extensionRegistry); + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.add(m); + } else { + stateDetailsBuilder_.addMessage(m); + } + break; + } // case 82 + 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 dataSourceCase_ = 0; + private java.lang.Object dataSource_; + + public DataSourceCase getDataSourceCase() { + return DataSourceCase.forNumber(dataSourceCase_); + } + + public Builder clearDataSource() { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder> + cloudObservabilityBuilder_; + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return Whether the cloudObservability field is set. + */ + @java.lang.Override + public boolean hasCloudObservability() { + return dataSourceCase_ == 4; + } + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return The cloudObservability. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + getCloudObservability() { + if (cloudObservabilityBuilder_ == null) { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } else { + if (dataSourceCase_ == 4) { + return cloudObservabilityBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public Builder setCloudObservability( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability value) { + if (cloudObservabilityBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + dataSource_ = value; + onChanged(); + } else { + cloudObservabilityBuilder_.setMessage(value); + } + dataSourceCase_ = 4; + return this; + } + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public Builder setCloudObservability( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder + builderForValue) { + if (cloudObservabilityBuilder_ == null) { + dataSource_ = builderForValue.build(); + onChanged(); + } else { + cloudObservabilityBuilder_.setMessage(builderForValue.build()); + } + dataSourceCase_ = 4; + return this; + } + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public Builder mergeCloudObservability( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability value) { + if (cloudObservabilityBuilder_ == null) { + if (dataSourceCase_ == 4 + && dataSource_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance()) { + dataSource_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.newBuilder( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + dataSource_) + .mergeFrom(value) + .buildPartial(); + } else { + dataSource_ = value; + } + onChanged(); + } else { + if (dataSourceCase_ == 4) { + cloudObservabilityBuilder_.mergeFrom(value); + } else { + cloudObservabilityBuilder_.setMessage(value); + } + } + dataSourceCase_ = 4; + return this; + } + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public Builder clearCloudObservability() { + if (cloudObservabilityBuilder_ == null) { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + onChanged(); + } + } else { + if (dataSourceCase_ == 4) { + dataSourceCase_ = 0; + dataSource_ = null; + } + cloudObservabilityBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder + getCloudObservabilityBuilder() { + return internalGetCloudObservabilityFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder + getCloudObservabilityOrBuilder() { + if ((dataSourceCase_ == 4) && (cloudObservabilityBuilder_ != null)) { + return cloudObservabilityBuilder_.getMessageOrBuilder(); + } else { + if (dataSourceCase_ == 4) { + return (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + dataSource_; + } + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + } + + /** + * + * + *
            +     * Data source for the OnlineEvaluator, based on GCP Observability stack
            +     * (Cloud Trace & Cloud Logging).
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder> + internalGetCloudObservabilityFieldBuilder() { + if (cloudObservabilityBuilder_ == null) { + if (!(dataSourceCase_ == 4)) { + dataSource_ = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability + .getDefaultInstance(); + } + cloudObservabilityBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability) + dataSource_, + getParentForChildren(), + isClean()); + dataSource_ = null; + } + dataSourceCase_ = 4; + onChanged(); + return cloudObservabilityBuilder_; + } + + private java.lang.Object name_ = ""; + + /** + * + * + *
            +     * Identifier. The resource name of the OnlineEvaluator.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of the OnlineEvaluator.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Identifier. The resource name of the OnlineEvaluator.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of the OnlineEvaluator.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Identifier. The resource name of the OnlineEvaluator.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object agentResource_ = ""; + + /** + * + * + *
            +     * Required. Immutable. The name of the agent that the OnlineEvaluator
            +     * evaluates periodically. This value is used to filter the traces with a
            +     * matching cloud.resource_id and link the evaluation results with relevant
            +     * dashboards/UIs.
            +     *
            +     * This field is immutable. Once set, it cannot be changed.
            +     * 
            + * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The agentResource. + */ + public java.lang.String getAgentResource() { + java.lang.Object ref = agentResource_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + agentResource_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. Immutable. The name of the agent that the OnlineEvaluator
            +     * evaluates periodically. This value is used to filter the traces with a
            +     * matching cloud.resource_id and link the evaluation results with relevant
            +     * dashboards/UIs.
            +     *
            +     * This field is immutable. Once set, it cannot be changed.
            +     * 
            + * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for agentResource. + */ + public com.google.protobuf.ByteString getAgentResourceBytes() { + java.lang.Object ref = agentResource_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + agentResource_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. Immutable. The name of the agent that the OnlineEvaluator
            +     * evaluates periodically. This value is used to filter the traces with a
            +     * matching cloud.resource_id and link the evaluation results with relevant
            +     * dashboards/UIs.
            +     *
            +     * This field is immutable. Once set, it cannot be changed.
            +     * 
            + * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The agentResource to set. + * @return This builder for chaining. + */ + public Builder setAgentResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + agentResource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Immutable. The name of the agent that the OnlineEvaluator
            +     * evaluates periodically. This value is used to filter the traces with a
            +     * matching cloud.resource_id and link the evaluation results with relevant
            +     * dashboards/UIs.
            +     *
            +     * This field is immutable. Once set, it cannot be changed.
            +     * 
            + * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return This builder for chaining. + */ + public Builder clearAgentResource() { + agentResource_ = getDefaultInstance().getAgentResource(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Immutable. The name of the agent that the OnlineEvaluator
            +     * evaluates periodically. This value is used to filter the traces with a
            +     * matching cloud.resource_id and link the evaluation results with relevant
            +     * dashboards/UIs.
            +     *
            +     * This field is immutable. Once set, it cannot be changed.
            +     * 
            + * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @param value The bytes for agentResource to set. + * @return This builder for chaining. + */ + public Builder setAgentResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + agentResource_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.util.List metricSources_ = + java.util.Collections.emptyList(); + + private void ensureMetricSourcesIsMutable() { + if (!((bitField0_ & 0x00000008) != 0)) { + metricSources_ = + new java.util.ArrayList( + metricSources_); + bitField0_ |= 0x00000008; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder> + metricSourcesBuilder_; + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getMetricSourcesList() { + if (metricSourcesBuilder_ == null) { + return java.util.Collections.unmodifiableList(metricSources_); + } else { + return metricSourcesBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getMetricSourcesCount() { + if (metricSourcesBuilder_ == null) { + return metricSources_.size(); + } else { + return metricSourcesBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index) { + if (metricSourcesBuilder_ == null) { + return metricSources_.get(index); + } else { + return metricSourcesBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.set(index, value); + onChanged(); + } else { + metricSourcesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.set(index, builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetricSources(com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.add(value); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource value) { + if (metricSourcesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureMetricSourcesIsMutable(); + metricSources_.add(index, value); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetricSources( + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addMetricSources( + int index, com.google.cloud.aiplatform.v1beta1.MetricSource.Builder builderForValue) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.add(index, builderForValue.build()); + onChanged(); + } else { + metricSourcesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllMetricSources( + java.lang.Iterable values) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, metricSources_); + onChanged(); + } else { + metricSourcesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearMetricSources() { + if (metricSourcesBuilder_ == null) { + metricSources_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + } else { + metricSourcesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeMetricSources(int index) { + if (metricSourcesBuilder_ == null) { + ensureMetricSourcesIsMutable(); + metricSources_.remove(index); + onChanged(); + } else { + metricSourcesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder getMetricSourcesBuilder( + int index) { + return internalGetMetricSourcesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder( + int index) { + if (metricSourcesBuilder_ == null) { + return metricSources_.get(index); + } else { + return metricSourcesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getMetricSourcesOrBuilderList() { + if (metricSourcesBuilder_ != null) { + return metricSourcesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(metricSources_); + } + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder addMetricSourcesBuilder() { + return internalGetMetricSourcesFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()); + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.MetricSource.Builder addMetricSourcesBuilder( + int index) { + return internalGetMetricSourcesFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.MetricSource.getDefaultInstance()); + } + + /** + * + * + *
            +     * Required. A list of metric sources to be used for evaluating samples.
            +     * At least one MetricSource must be provided.
            +     * Right now, only predefined metrics and registered metrics are supported.
            +     *
            +     * Every registered metric must have `display_name` (or `title`) and
            +     * `score_range` defined. Otherwise, the evaluations will fail.
            +     *
            +     * The maximum number of `metric_sources` is 25.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getMetricSourcesBuilderList() { + return internalGetMetricSourcesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder> + internalGetMetricSourcesFieldBuilder() { + if (metricSourcesBuilder_ == null) { + metricSourcesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.MetricSource, + com.google.cloud.aiplatform.v1beta1.MetricSource.Builder, + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder>( + metricSources_, + ((bitField0_ & 0x00000008) != 0), + getParentForChildren(), + isClean()); + metricSources_ = null; + } + return metricSourcesBuilder_; + } + + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder> + configBuilder_; + + /** + * + * + *
            +     * Required. Configuration for the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + public boolean hasConfig() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
            +     * Required. Configuration for the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config getConfig() { + if (configBuilder_ == null) { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance() + : config_; + } else { + return configBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. Configuration for the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config value) { + if (configBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + config_ = value; + } else { + configBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Configuration for the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setConfig( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder builderForValue) { + if (configBuilder_ == null) { + config_ = builderForValue.build(); + } else { + configBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Configuration for the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeConfig(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config value) { + if (configBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && config_ != null + && config_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config + .getDefaultInstance()) { + getConfigBuilder().mergeFrom(value); + } else { + config_ = value; + } + } else { + configBuilder_.mergeFrom(value); + } + if (config_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. Configuration for the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearConfig() { + bitField0_ = (bitField0_ & ~0x00000010); + config_ = null; + if (configBuilder_ != null) { + configBuilder_.dispose(); + configBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Configuration for the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder getConfigBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. Configuration for the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder + getConfigOrBuilder() { + if (configBuilder_ != null) { + return configBuilder_.getMessageOrBuilder(); + } else { + return config_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.getDefaultInstance() + : config_; + } + } + + /** + * + * + *
            +     * Required. Configuration for the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder> + internalGetConfigFieldBuilder() { + if (configBuilder_ == null) { + configBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder>( + getConfig(), getParentForChildren(), isClean()); + config_ = null; + } + return configBuilder_; + } + + private int state_ = 0; + + /** + * + * + *
            +     * Output only. The state of the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + @java.lang.Override + public int getStateValue() { + return state_; + } + + /** + * + * + *
            +     * Output only. The state of the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for state to set. + * @return This builder for chaining. + */ + public Builder setStateValue(int value) { + state_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The state of the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State getState() { + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State result = + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.forNumber(state_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Output only. The state of the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The state to set. + * @return This builder for chaining. + */ + public Builder setState(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + state_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. The state of the OnlineEvaluator.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearState() { + bitField0_ = (bitField0_ & ~0x00000020); + state_ = 0; + onChanged(); + return this; + } + + private java.util.List + stateDetails_ = java.util.Collections.emptyList(); + + private void ensureStateDetailsIsMutable() { + if (!((bitField0_ & 0x00000040) != 0)) { + stateDetails_ = + new java.util.ArrayList< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails>(stateDetails_); + bitField0_ |= 0x00000040; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + stateDetailsBuilder_; + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStateDetailsList() { + if (stateDetailsBuilder_ == null) { + return java.util.Collections.unmodifiableList(stateDetails_); + } else { + return stateDetailsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public int getStateDetailsCount() { + if (stateDetailsBuilder_ == null) { + return stateDetails_.size(); + } else { + return stateDetailsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails getStateDetails( + int index) { + if (stateDetailsBuilder_ == null) { + return stateDetails_.get(index); + } else { + return stateDetailsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateDetails( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails value) { + if (stateDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateDetailsIsMutable(); + stateDetails_.set(index, value); + onChanged(); + } else { + stateDetailsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setStateDetails( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder builderForValue) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.set(index, builderForValue.build()); + onChanged(); + } else { + stateDetailsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateDetails( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails value) { + if (stateDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateDetailsIsMutable(); + stateDetails_.add(value); + onChanged(); + } else { + stateDetailsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateDetails( + int index, com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails value) { + if (stateDetailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureStateDetailsIsMutable(); + stateDetails_.add(index, value); + onChanged(); + } else { + stateDetailsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateDetails( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder builderForValue) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.add(builderForValue.build()); + onChanged(); + } else { + stateDetailsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addStateDetails( + int index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder builderForValue) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.add(index, builderForValue.build()); + onChanged(); + } else { + stateDetailsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder addAllStateDetails( + java.lang.Iterable< + ? extends com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails> + values) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, stateDetails_); + onChanged(); + } else { + stateDetailsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearStateDetails() { + if (stateDetailsBuilder_ == null) { + stateDetails_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + } else { + stateDetailsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder removeStateDetails(int index) { + if (stateDetailsBuilder_ == null) { + ensureStateDetailsIsMutable(); + stateDetails_.remove(index); + onChanged(); + } else { + stateDetailsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder + getStateDetailsBuilder(int index) { + return internalGetStateDetailsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder + getStateDetailsOrBuilder(int index) { + if (stateDetailsBuilder_ == null) { + return stateDetails_.get(index); + } else { + return stateDetailsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + getStateDetailsOrBuilderList() { + if (stateDetailsBuilder_ != null) { + return stateDetailsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(stateDetails_); + } + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder + addStateDetailsBuilder() { + return internalGetStateDetailsFieldBuilder() + .addBuilder( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + .getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder + addStateDetailsBuilder(int index) { + return internalGetStateDetailsFieldBuilder() + .addBuilder( + index, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails + .getDefaultInstance()); + } + + /** + * + * + *
            +     * Output only. Contains additional information about the state of the
            +     * OnlineEvaluator. This is used to provide more details in the event of a
            +     * failure.
            +     * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public java.util.List + getStateDetailsBuilderList() { + return internalGetStateDetailsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + internalGetStateDetailsFieldBuilder() { + if (stateDetailsBuilder_ == null) { + stateDetailsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder>( + stateDetails_, ((bitField0_ & 0x00000040) != 0), getParentForChildren(), isClean()); + stateDetails_ = null; + } + return stateDetailsBuilder_; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000080); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was created.
            +     * 
            + * + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000100) != 0); + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000100) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000100; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000100); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000100; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
            +     * Output only. Timestamp when the OnlineEvaluator was last updated.
            +     * 
            + * + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Optional. Human-readable name for the `OnlineEvaluator`.
            +     *
            +     * The name doesn't have to be unique.
            +     *
            +     * The name can consist of any UTF-8 characters. The maximum length is `63`
            +     * characters. If the display name exceeds max characters, an
            +     * `INVALID_ARGUMENT` error is returned.
            +     * 
            + * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Human-readable name for the `OnlineEvaluator`.
            +     *
            +     * The name doesn't have to be unique.
            +     *
            +     * The name can consist of any UTF-8 characters. The maximum length is `63`
            +     * characters. If the display name exceeds max characters, an
            +     * `INVALID_ARGUMENT` error is returned.
            +     * 
            + * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Human-readable name for the `OnlineEvaluator`.
            +     *
            +     * The name doesn't have to be unique.
            +     *
            +     * The name can consist of any UTF-8 characters. The maximum length is `63`
            +     * characters. If the display name exceeds max characters, an
            +     * `INVALID_ARGUMENT` error is returned.
            +     * 
            + * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Human-readable name for the `OnlineEvaluator`.
            +     *
            +     * The name doesn't have to be unique.
            +     *
            +     * The name can consist of any UTF-8 characters. The maximum length is `63`
            +     * characters. If the display name exceeds max characters, an
            +     * `INVALID_ARGUMENT` error is returned.
            +     * 
            + * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Human-readable name for the `OnlineEvaluator`.
            +     *
            +     * The name doesn't have to be unique.
            +     *
            +     * The name can consist of any UTF-8 characters. The maximum length is `63`
            +     * characters. If the display name exceeds max characters, an
            +     * `INVALID_ARGUMENT` error is returned.
            +     * 
            + * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + private static final com.google.cloud.aiplatform.v1beta1.OnlineEvaluator DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.OnlineEvaluator(); + } + + public static com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public OnlineEvaluator 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.OnlineEvaluator getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java new file mode 100644 index 000000000000..9d9bd02400ae --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorName.java @@ -0,0 +1,227 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class OnlineEvaluatorName implements ResourceName { + private static final PathTemplate PROJECT_LOCATION_ONLINE_EVALUATOR = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/onlineEvaluators/{online_evaluator}"); + private volatile Map fieldValuesMap; + private final String project; + private final String location; + private final String onlineEvaluator; + + @Deprecated + protected OnlineEvaluatorName() { + project = null; + location = null; + onlineEvaluator = null; + } + + private OnlineEvaluatorName(Builder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + onlineEvaluator = Preconditions.checkNotNull(builder.getOnlineEvaluator()); + } + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOnlineEvaluator() { + return onlineEvaluator; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static OnlineEvaluatorName of(String project, String location, String onlineEvaluator) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOnlineEvaluator(onlineEvaluator) + .build(); + } + + public static String format(String project, String location, String onlineEvaluator) { + return newBuilder() + .setProject(project) + .setLocation(location) + .setOnlineEvaluator(onlineEvaluator) + .build() + .toString(); + } + + public static OnlineEvaluatorName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + Map matchMap = + PROJECT_LOCATION_ONLINE_EVALUATOR.validatedMatch( + formattedString, "OnlineEvaluatorName.parse: formattedString not in valid format"); + return of(matchMap.get("project"), matchMap.get("location"), matchMap.get("online_evaluator")); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (OnlineEvaluatorName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return PROJECT_LOCATION_ONLINE_EVALUATOR.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (project != null) { + fieldMapBuilder.put("project", project); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (onlineEvaluator != null) { + fieldMapBuilder.put("online_evaluator", onlineEvaluator); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return PROJECT_LOCATION_ONLINE_EVALUATOR.instantiate( + "project", project, "location", location, "online_evaluator", onlineEvaluator); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + OnlineEvaluatorName that = ((OnlineEvaluatorName) o); + return Objects.equals(this.project, that.project) + && Objects.equals(this.location, that.location) + && Objects.equals(this.onlineEvaluator, that.onlineEvaluator); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(project); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(onlineEvaluator); + return h; + } + + /** Builder for projects/{project}/locations/{location}/onlineEvaluators/{online_evaluator}. */ + public static class Builder { + private String project; + private String location; + private String onlineEvaluator; + + protected Builder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getOnlineEvaluator() { + return onlineEvaluator; + } + + public Builder setProject(String project) { + this.project = project; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setOnlineEvaluator(String onlineEvaluator) { + this.onlineEvaluator = onlineEvaluator; + return this; + } + + private Builder(OnlineEvaluatorName onlineEvaluatorName) { + this.project = onlineEvaluatorName.project; + this.location = onlineEvaluatorName.location; + this.onlineEvaluator = onlineEvaluatorName.onlineEvaluator; + } + + public OnlineEvaluatorName build() { + return new OnlineEvaluatorName(this); + } + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorOrBuilder.java new file mode 100644 index 000000000000..e783b6eefcff --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorOrBuilder.java @@ -0,0 +1,516 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface OnlineEvaluatorOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.OnlineEvaluator) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Data source for the OnlineEvaluator, based on GCP Observability stack
            +   * (Cloud Trace & Cloud Logging).
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return Whether the cloudObservability field is set. + */ + boolean hasCloudObservability(); + + /** + * + * + *
            +   * Data source for the OnlineEvaluator, based on GCP Observability stack
            +   * (Cloud Trace & Cloud Logging).
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + * + * @return The cloudObservability. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability getCloudObservability(); + + /** + * + * + *
            +   * Data source for the OnlineEvaluator, based on GCP Observability stack
            +   * (Cloud Trace & Cloud Logging).
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability cloud_observability = 4; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservabilityOrBuilder + getCloudObservabilityOrBuilder(); + + /** + * + * + *
            +   * Identifier. The resource name of the OnlineEvaluator.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Identifier. The resource name of the OnlineEvaluator.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
            +   * Required. Immutable. The name of the agent that the OnlineEvaluator
            +   * evaluates periodically. This value is used to filter the traces with a
            +   * matching cloud.resource_id and link the evaluation results with relevant
            +   * dashboards/UIs.
            +   *
            +   * This field is immutable. Once set, it cannot be changed.
            +   * 
            + * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The agentResource. + */ + java.lang.String getAgentResource(); + + /** + * + * + *
            +   * Required. Immutable. The name of the agent that the OnlineEvaluator
            +   * evaluates periodically. This value is used to filter the traces with a
            +   * matching cloud.resource_id and link the evaluation results with relevant
            +   * dashboards/UIs.
            +   *
            +   * This field is immutable. Once set, it cannot be changed.
            +   * 
            + * + * + * string agent_resource = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE]; + * + * + * @return The bytes for agentResource. + */ + com.google.protobuf.ByteString getAgentResourceBytes(); + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getMetricSourcesList(); + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricSource getMetricSources(int index); + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getMetricSourcesCount(); + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List + getMetricSourcesOrBuilderList(); + + /** + * + * + *
            +   * Required. A list of metric sources to be used for evaluating samples.
            +   * At least one MetricSource must be provided.
            +   * Right now, only predefined metrics and registered metrics are supported.
            +   *
            +   * Every registered metric must have `display_name` (or `title`) and
            +   * `score_range` defined. Otherwise, the evaluations will fail.
            +   *
            +   * The maximum number of `metric_sources` is 25.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.MetricSource metric_sources = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.MetricSourceOrBuilder getMetricSourcesOrBuilder(int index); + + /** + * + * + *
            +   * Required. Configuration for the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the config field is set. + */ + boolean hasConfig(); + + /** + * + * + *
            +   * Required. Configuration for the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The config. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config getConfig(); + + /** + * + * + *
            +   * Required. Configuration for the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.Config config = 5 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.ConfigOrBuilder getConfigOrBuilder(); + + /** + * + * + *
            +   * Output only. The state of the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for state. + */ + int getStateValue(); + + /** + * + * + *
            +   * Output only. The state of the OnlineEvaluator.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The state. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.State getState(); + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List + getStateDetailsList(); + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails getStateDetails(int index); + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + int getStateDetailsCount(); + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + java.util.List< + ? extends com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder> + getStateDetailsOrBuilderList(); + + /** + * + * + *
            +   * Output only. Contains additional information about the state of the
            +   * OnlineEvaluator. This is used to provide more details in the event of a
            +   * failure.
            +   * 
            + * + * + * repeated .google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetails state_details = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.StateDetailsOrBuilder + getStateDetailsOrBuilder(int index); + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was created.
            +   * 
            + * + * .google.protobuf.Timestamp create_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
            +   * Output only. Timestamp when the OnlineEvaluator was last updated.
            +   * 
            + * + * .google.protobuf.Timestamp update_time = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
            +   * Optional. Human-readable name for the `OnlineEvaluator`.
            +   *
            +   * The name doesn't have to be unique.
            +   *
            +   * The name can consist of any UTF-8 characters. The maximum length is `63`
            +   * characters. If the display name exceeds max characters, an
            +   * `INVALID_ARGUMENT` error is returned.
            +   * 
            + * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Optional. Human-readable name for the `OnlineEvaluator`.
            +   *
            +   * The name doesn't have to be unique.
            +   *
            +   * The name can consist of any UTF-8 characters. The maximum length is `63`
            +   * characters. If the display name exceeds max characters, an
            +   * `INVALID_ARGUMENT` error is returned.
            +   * 
            + * + * string display_name = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.DataSourceCase getDataSourceCase(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorProto.java new file mode 100644 index 000000000000..0970a1e95632 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorProto.java @@ -0,0 +1,279 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public final class OnlineEvaluatorProto extends com.google.protobuf.GeneratedFile { + private OnlineEvaluatorProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OnlineEvaluatorProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "6google/cloud/aiplatform/v1beta1/online_evaluator.proto\022\037google.cloud.aiplatfor" + + "m.v1beta1\032\037google/api/field_behavior.pro" + + "to\032\031google/api/resource.proto\0328google/cl" + + "oud/aiplatform/v1beta1/evaluation_servic" + + "e.proto\032\037google/protobuf/timestamp.proto\"\232\021\n" + + "\017OnlineEvaluator\022b\n" + + "\023cloud_observability\030\004 \001(\0132C.google.cloud.aiplatform.v1be" + + "ta1.OnlineEvaluator.CloudObservabilityH\000\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\036\n" + + "\016agent_resource\030\002 \001(\tB\006\340A\002\340A\005\022J\n" + + "\016metric_sources\030\003 \003(\0132-.go" + + "ogle.cloud.aiplatform.v1beta1.MetricSourceB\003\340A\002\022L\n" + + "\006config\030\005 \001(\01327.google.cloud.a" + + "iplatform.v1beta1.OnlineEvaluator.ConfigB\003\340A\002\022J\n" + + "\005state\030\006 \001(\01626.google.cloud.aipl" + + "atform.v1beta1.OnlineEvaluator.StateB\003\340A\003\022Y\n\r" + + "state_details\030\n" + + " \003(\0132=.google.cloud." + + "aiplatform.v1beta1.OnlineEvaluator.StateDetailsB\003\340A\003\0224\n" + + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\010" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\031\n" + + "\014display_name\030\t \001(\tB\003\340A\001\032\244\010\n" + + "\022CloudObservability\022e\n" + + "\013trace_scope\030\003 \001(\0132N.google" + + ".cloud.aiplatform.v1beta1.OnlineEvaluator.CloudObservability.TraceScopeH\000\022k\n" + + "\016open_telemetry\030\004 \001(\0132Q.google.cloud.aiplatf" + + "orm.v1beta1.OnlineEvaluator.CloudObservability.OpenTelemetryH\001\022\025\n" + + "\010log_view\030\001 \001(\tB\003\340A\001\022\027\n\n" + + "trace_view\030\002 \001(\tB\003\340A\001\032\310\002\n" + + "\020NumericPredicate\022\211\001\n" + + "\023comparison_operator\030\001 \001(\0162g.google.cloud.aiplatform.v1beta1.Onli" + + "neEvaluator.CloudObservability.NumericPredicate.ComparisonOperatorB\003\340A\002\022\022\n" + + "\005value\030\002 \001(\002B\003\340A\002\"\223\001\n" + + "\022ComparisonOperator\022#\n" + + "\037COMPARISON_OPERATOR_UNSPECIFIED\020\000\022\010\n" + + "\004LESS\020\001\022\021\n\r" + + "LESS_OR_EQUAL\020\002\022\t\n" + + "\005EQUAL\020\003\022\r\n" + + "\tNOT_EQUAL\020\004\022\024\n" + + "\020GREATER_OR_EQUAL\020\005\022\013\n" + + "\007GREATER\020\006\032\363\002\n\n" + + "TraceScope\022m\n" + + "\006filter\030\001 \003(\0132X.google.cloud.aiplatform.v1beta1.OnlineEvaluat" + + "or.CloudObservability.TraceScope.PredicateB\003\340A\001\032\365\001\n" + + "\tPredicate\022h\n" + + "\010duration\030\001 \001(\0132T.google.cloud.aiplatform.v1beta1.Online" + + "Evaluator.CloudObservability.NumericPredicateH\000\022q\n" + + "\021total_token_usage\030\002 \001(\0132T.google.cloud.aiplatform.v1beta1.OnlineEvalu" + + "ator.CloudObservability.NumericPredicateH\000B\013\n" + + "\tpredicate\032-\n\r" + + "OpenTelemetry\022\034\n" + + "\017semconv_version\030\001 \001(\tB\003\340A\002B\014\n\n" + + "eval_scopeB\014\n\n" + + "convention\032\325\001\n" + + "\006Config\022a\n" + + "\017random_sampling\030\002 \001(\0132F.google.cloud.aiplatform.v1beta1" + + ".OnlineEvaluator.Config.RandomSamplingH\000\022*\n" + + "\035max_evaluated_samples_per_run\030\001 \001(\003B\003\340A\001\032)\n" + + "\016RandomSampling\022\027\n\n" + + "percentage\030\001 \001(\005B\003\340A\002B\021\n" + + "\017sampling_method\032$\n" + + "\014StateDetails\022\024\n" + + "\007message\030\001 \001(\tB\003\340A\003\"R\n" + + "\005State\022\025\n" + + "\021STATE_UNSPECIFIED\020\000\022\n\n" + + "\006ACTIVE\020\001\022\r\n" + + "\tSUSPENDED\020\002\022\n\n" + + "\006FAILED\020\003\022\013\n" + + "\007WARNING\020\004:\237\001\352A\233\001\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\022K" + + "projects/{project}/locations/{location}/" + + "onlineEvaluators/{online_evaluator}*\020onlineEvaluators2\017onlineEvaluatorB\r\n" + + "\013data_sourceB\353\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\024OnlineEvaluatorProtoP\001ZCcloud.goo" + + "gle.com/go/aiplatform/apiv1beta1/aiplatf" + + "ormpb;aiplatformpb\252\002\037Google.Cloud.AIPlat" + + "form.V1Beta1\312\002\037Google\\Cloud\\AIPlatform\\V" + + "1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor, + new java.lang.String[] { + "CloudObservability", + "Name", + "AgentResource", + "MetricSources", + "Config", + "State", + "StateDetails", + "CreateTime", + "UpdateTime", + "DisplayName", + "DataSource", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor.getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor, + new java.lang.String[] { + "TraceScope", "OpenTelemetry", "LogView", "TraceView", "EvalScope", "Convention", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor + .getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_NumericPredicate_descriptor, + new java.lang.String[] { + "ComparisonOperator", "Value", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor + .getNestedType(1); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor, + new java.lang.String[] { + "Filter", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_descriptor + .getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_TraceScope_Predicate_descriptor, + new java.lang.String[] { + "Duration", "TotalTokenUsage", "Predicate", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_descriptor + .getNestedType(2); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_CloudObservability_OpenTelemetry_descriptor, + new java.lang.String[] { + "SemconvVersion", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor.getNestedType(1); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor, + new java.lang.String[] { + "RandomSampling", "MaxEvaluatedSamplesPerRun", "SamplingMethod", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_descriptor + .getNestedType(0); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_Config_RandomSampling_descriptor, + new java.lang.String[] { + "Percentage", + }); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor = + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_descriptor.getNestedType(2); + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_OnlineEvaluator_StateDetails_descriptor, + new java.lang.String[] { + "Message", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceProto.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceProto.java new file mode 100644 index 000000000000..11ef6aa7419e --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/OnlineEvaluatorServiceProto.java @@ -0,0 +1,344 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public final class OnlineEvaluatorServiceProto extends com.google.protobuf.GeneratedFile { + private OnlineEvaluatorServiceProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "OnlineEvaluatorServiceProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + ">google/cloud/aiplatform/v1beta1/online_evaluator_service.proto\022\037google.cloud.a" + + "iplatform.v1beta1\032\034google/api/annotation" + + "s.proto\032\027google/api/client.proto\032\037google" + + "/api/field_behavior.proto\032\031google/api/re" + + "source.proto\0326google/cloud/aiplatform/v1beta1/online_evaluator.proto\032/google/clo" + + "ud/aiplatform/v1beta1/operation.proto\032#g" + + "oogle/longrunning/operations.proto\032\033google/protobuf/empty.proto\032" + + " google/protobuf/field_mask.proto\"\252\001\n" + + "\034CreateOnlineEvaluatorRequest\0229\n" + + "\006parent\030\001 \001(\tB)\340A\002\372A#\n" + + "!locations.googleapis.com/Location\022O\n" + + "\020online_evaluator\030\002" + + " \001(\01320.google.cloud.aiplatform.v1beta1.OnlineEvaluatorB\003\340A\002\"}\n" + + "&CreateOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"\\\n" + + "\031GetOnlineEvaluatorRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\"\245\001\n" + + "\034UpdateOnlineEvaluatorRequest\022O\n" + + "\020online_evaluator\030\001 \001(\01320.google." + + "cloud.aiplatform.v1beta1.OnlineEvaluatorB\003\340A\002\0224\n" + + "\013update_mask\030\002 \001(\0132\032.google.protobuf.FieldMaskB\003\340A\001\"}\n" + + "&UpdateOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata\"_\n" + + "\034DeleteOnlineEvaluatorRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\"}\n" + + "&DeleteOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001 \001(\01329.google" + + ".cloud.aiplatform.v1beta1.GenericOperationMetadata\"\275\001\n" + + "\033ListOnlineEvaluatorsRequest\022A\n" + + "\006parent\030\001 \001(" + + "\tB1\340A\002\372A+\022)aiplatform.googleapis.com/OnlineEvaluator\022\026\n" + + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + + "\010order_by\030\005 \001(\tB\003\340A\001\"\204\001\n" + + "\034ListOnlineEvaluatorsResponse\022K\n" + + "\021online_evaluators\030\001" + + " \003(\01320.google.cloud.aiplatform.v1beta1.OnlineEvaluator\022\027\n" + + "\017next_page_token\030\002 \001(\t\"a\n" + + "\036ActivateOnlineEvaluatorRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\"\177\n" + + "(ActivateOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001 \001(\01329.google.clou" + + "d.aiplatform.v1beta1.GenericOperationMetadata\"`\n" + + "\035SuspendOnlineEvaluatorRequest\022?\n" + + "\004name\030\001 \001(\tB1\340A\002\372A+\n" + + ")aiplatform.googleapis.com/OnlineEvaluator\"~\n" + + "\'SuspendOnlineEvaluatorOperationMetadata\022S\n" + + "\020generic_metadata\030\001" + + " \001(\01329.google.cloud.aiplatform.v1beta1.GenericOperationMetadata2\231\017\n" + + "\026OnlineEvaluatorService\022\241\002\n" + + "\025CreateOnlineEvaluator\022=.google.cloud.aiplatform.v1beta1.C" + + "reateOnlineEvaluatorRequest\032\035.google.longrunning.Operation\"\251\001\312A9\n" + + "\017OnlineEvaluator\022&CreateOnlineEvaluatorOperationMetadat" + + "a\332A\027parent,online_evaluator\202\323\344\223\002M\"9/v1be" + + "ta1/{parent=projects/*/locations/*}/onlineEvaluators:\020online_evaluator\022\314\001\n" + + "\022GetOnlineEvaluator\022:.google.cloud.aiplatform." + + "v1beta1.GetOnlineEvaluatorRequest\0320.google.cloud.aiplatform.v1beta1.OnlineEvalua" + + "tor\"H\332A\004name\202\323\344\223\002;\0229/v1beta1/{name=proje" + + "cts/*/locations/*/onlineEvaluators/*}\022\267\002\n" + + "\025UpdateOnlineEvaluator\022=.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorR" + + "equest\032\035.google.longrunning.Operation\"\277\001\312A9\n" + + "\017OnlineEvaluator\022&UpdateOnlineEvalua" + + "torOperationMetadata\332A\034online_evaluator," + + "update_mask\202\323\344\223\002^2J/v1beta1/{online_eval" + + "uator.name=projects/*/locations/*/onlineEvaluators/*}:\020online_evaluator\022\202\002\n" + + "\025DeleteOnlineEvaluator\022=.google.cloud.aiplatf" + + "orm.v1beta1.DeleteOnlineEvaluatorRequest\032\035.google.longrunning.Operation\"\212\001\312A?\n" + + "\025google.protobuf.Empty\022&DeleteOnlineEvalua" + + "torOperationMetadata\332A\004name\202\323\344\223\002;*9/v1be" + + "ta1/{name=projects/*/locations/*/onlineEvaluators/*}\022\337\001\n" + + "\024ListOnlineEvaluators\022<.google.cloud.aiplatform.v1beta1.ListOnli" + + "neEvaluatorsRequest\032=.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRespon" + + "se\"J\332A\006parent\202\323\344\223\002;\0229/v1beta1/{parent=pr" + + "ojects/*/locations/*}/onlineEvaluators\022\216\002\n" + + "\027ActivateOnlineEvaluator\022?.google.cloud.aiplatform.v1beta1.ActivateOnlineEvalu" + + "atorRequest\032\035.google.longrunning.Operation\"\222\001\312A;\n" + + "\017OnlineEvaluator\022(ActivateOnlin" + + "eEvaluatorOperationMetadata\332A\004name\202\323\344\223\002G" + + "\"B/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}:activate:\001*\022\212\002\n" + + "\026SuspendOnlineEvaluator\022>.google.cloud.aiplat" + + "form.v1beta1.SuspendOnlineEvaluatorRequest\032\035.google.longrunning.Operation\"\220\001\312A:\n" + + "\017OnlineEvaluator\022\'SuspendOnlineEvaluator" + + "OperationMetadata\332A\004name\202\323\344\223\002F\"A/v1beta1" + + "/{name=projects/*/locations/*/onlineEval" + + "uators/*}:suspend:\001*\032M\312A\031aiplatform.goog" + + "leapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\362\001\n" + + "#com.google.cloud.aiplatform.v1beta1B\033OnlineEvaluatorServ" + + "iceProtoP\001ZCcloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb\252" + + "\002\037Google.Cloud.AIPlatform.V1Beta1\312\002\037Goog" + + "le\\Cloud\\AIPlatform\\V1beta1\352\002\"Google::Cloud::AIPlatform::V1beta1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto.getDescriptor(), + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Parent", "OnlineEvaluator", + }); + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_CreateOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_GetOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "OnlineEvaluator", "UpdateMask", + }); + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_DeleteOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "Filter", "OrderBy", + }); + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor = + getDescriptor().getMessageType(8); + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ListOnlineEvaluatorsResponse_descriptor, + new java.lang.String[] { + "OnlineEvaluators", "NextPageToken", + }); + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(9); + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(10); + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_ActivateOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor = + getDescriptor().getMessageType(11); + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor = + getDescriptor().getMessageType(12); + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor, + new java.lang.String[] { + "GenericMetadata", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorProto.getDescriptor(); + com.google.cloud.aiplatform.v1beta1.OperationProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Rubric.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Rubric.java new file mode 100644 index 000000000000..a6d12bb28804 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/Rubric.java @@ -0,0 +1,3002 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Message representing a single testable criterion for evaluation.
            + * One input prompt could have multiple rubrics.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric} + */ +@com.google.protobuf.Generated +public final class Rubric extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Rubric) + RubricOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Rubric"); + } + + // Use Rubric.newBuilder() to construct. + private Rubric(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Rubric() { + rubricId_ = ""; + type_ = ""; + importance_ = 0; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder.class); + } + + /** + * + * + *
            +   * Importance level of the rubric.
            +   * 
            + * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.Rubric.Importance} + */ + public enum Importance implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * Importance is not specified.
            +     * 
            + * + * IMPORTANCE_UNSPECIFIED = 0; + */ + IMPORTANCE_UNSPECIFIED(0), + /** + * + * + *
            +     * High importance.
            +     * 
            + * + * HIGH = 1; + */ + HIGH(1), + /** + * + * + *
            +     * Medium importance.
            +     * 
            + * + * MEDIUM = 2; + */ + MEDIUM(2), + /** + * + * + *
            +     * Low importance.
            +     * 
            + * + * LOW = 3; + */ + LOW(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Importance"); + } + + /** + * + * + *
            +     * Importance is not specified.
            +     * 
            + * + * IMPORTANCE_UNSPECIFIED = 0; + */ + public static final int IMPORTANCE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * High importance.
            +     * 
            + * + * HIGH = 1; + */ + public static final int HIGH_VALUE = 1; + + /** + * + * + *
            +     * Medium importance.
            +     * 
            + * + * MEDIUM = 2; + */ + public static final int MEDIUM_VALUE = 2; + + /** + * + * + *
            +     * Low importance.
            +     * 
            + * + * LOW = 3; + */ + public static final int LOW_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Importance valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Importance forNumber(int value) { + switch (value) { + case 0: + return IMPORTANCE_UNSPECIFIED; + case 1: + return HIGH; + case 2: + return MEDIUM; + case 3: + return LOW; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Importance findValueByNumber(int number) { + return Importance.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.Rubric.getDescriptor().getEnumTypes().get(0); + } + + private static final Importance[] VALUES = values(); + + public static Importance valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Importance(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.Rubric.Importance) + } + + public interface ContentOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Rubric.Content) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +     * Evaluation criteria based on a specific property.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return Whether the property field is set. + */ + boolean hasProperty(); + + /** + * + * + *
            +     * Evaluation criteria based on a specific property.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return The property. + */ + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property getProperty(); + + /** + * + * + *
            +     * Evaluation criteria based on a specific property.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder getPropertyOrBuilder(); + + com.google.cloud.aiplatform.v1beta1.Rubric.Content.ContentTypeCase getContentTypeCase(); + } + + /** + * + * + *
            +   * Content of the rubric, defining the testable criteria.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric.Content} + */ + public static final class Content extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Rubric.Content) + ContentOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Content"); + } + + // Use Content.newBuilder() to construct. + private Content(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Content() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder.class); + } + + public interface PropertyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +       * Description of the property being evaluated.
            +       * Example: "The model's response is grammatically correct."
            +       * 
            + * + * string description = 1; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
            +       * Description of the property being evaluated.
            +       * Example: "The model's response is grammatically correct."
            +       * 
            + * + * string description = 1; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + } + + /** + * + * + *
            +     * Defines criteria based on a specific property.
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric.Content.Property} + */ + public static final class Property extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + PropertyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Property"); + } + + // Use Property.newBuilder() to construct. + private Property(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Property() { + description_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder.class); + } + + public static final int DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
            +       * Description of the property being evaluated.
            +       * Example: "The model's response is grammatically correct."
            +       * 
            + * + * string description = 1; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
            +       * Description of the property being evaluated.
            +       * Example: "The model's response is grammatically correct."
            +       * 
            + * + * string description = 1; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, description_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, description_); + } + 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.Rubric.Content.Property)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property other = + (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) obj; + + if (!getDescription().equals(other.getDescription())) 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) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property 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.Rubric.Content.Property parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property 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.Rubric.Content.Property parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property 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.Rubric.Content.Property parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +       * Defines criteria based on a specific property.
            +       * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric.Content.Property} + */ + public static final class Builder + extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_Property_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property build() { + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property buildPartial() { + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property result = + new com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property other) { + if (other + == com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance()) + return this; + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + 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: + { + description_ = 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 description_ = ""; + + /** + * + * + *
            +         * Description of the property being evaluated.
            +         * Example: "The model's response is grammatically correct."
            +         * 
            + * + * string description = 1; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +         * Description of the property being evaluated.
            +         * Example: "The model's response is grammatically correct."
            +         * 
            + * + * string description = 1; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +         * Description of the property being evaluated.
            +         * Example: "The model's response is grammatically correct."
            +         * 
            + * + * string description = 1; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +         * Description of the property being evaluated.
            +         * Example: "The model's response is grammatically correct."
            +         * 
            + * + * string description = 1; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +         * Description of the property being evaluated.
            +         * Example: "The model's response is grammatically correct."
            +         * 
            + * + * string description = 1; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Rubric.Content.Property) + private static final com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property(); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Property 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.Rubric.Content.Property + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int contentTypeCase_ = 0; + + @SuppressWarnings("serial") + private java.lang.Object contentType_; + + public enum ContentTypeCase + implements + com.google.protobuf.Internal.EnumLite, + com.google.protobuf.AbstractMessage.InternalOneOfEnum { + PROPERTY(1), + CONTENTTYPE_NOT_SET(0); + private final int value; + + private ContentTypeCase(int value) { + this.value = value; + } + + /** + * @param value The number of the enum to look for. + * @return The enum associated with the given number. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static ContentTypeCase valueOf(int value) { + return forNumber(value); + } + + public static ContentTypeCase forNumber(int value) { + switch (value) { + case 1: + return PROPERTY; + case 0: + return CONTENTTYPE_NOT_SET; + default: + return null; + } + } + + public int getNumber() { + return this.value; + } + }; + + public ContentTypeCase getContentTypeCase() { + return ContentTypeCase.forNumber(contentTypeCase_); + } + + public static final int PROPERTY_FIELD_NUMBER = 1; + + /** + * + * + *
            +     * Evaluation criteria based on a specific property.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return contentTypeCase_ == 1; + } + + /** + * + * + *
            +     * Evaluation criteria based on a specific property.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return The property. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property getProperty() { + if (contentTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_; + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + + /** + * + * + *
            +     * Evaluation criteria based on a specific property.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder + getPropertyOrBuilder() { + if (contentTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_; + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (contentTypeCase_ == 1) { + output.writeMessage( + 1, (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (contentTypeCase_ == 1) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize( + 1, (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_); + } + 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.Rubric.Content)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Rubric.Content other = + (com.google.cloud.aiplatform.v1beta1.Rubric.Content) obj; + + if (!getContentTypeCase().equals(other.getContentTypeCase())) return false; + switch (contentTypeCase_) { + case 1: + if (!getProperty().equals(other.getProperty())) return false; + break; + case 0: + default: + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + switch (contentTypeCase_) { + case 1: + hash = (37 * hash) + PROPERTY_FIELD_NUMBER; + hash = (53 * hash) + getProperty().hashCode(); + break; + case 0: + default: + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content 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.Rubric.Content parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content 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.Rubric.Content parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content 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.Rubric.Content parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Rubric.Content prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +     * Content of the rubric, defining the testable criteria.
            +     * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric.Content} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Rubric.Content) + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Rubric.Content.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (propertyBuilder_ != null) { + propertyBuilder_.clear(); + } + contentTypeCase_ = 0; + contentType_ = null; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_Content_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content build() { + com.google.cloud.aiplatform.v1beta1.Rubric.Content result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content buildPartial() { + com.google.cloud.aiplatform.v1beta1.Rubric.Content result = + new com.google.cloud.aiplatform.v1beta1.Rubric.Content(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + buildPartialOneofs(result); + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Rubric.Content result) { + int from_bitField0_ = bitField0_; + } + + private void buildPartialOneofs(com.google.cloud.aiplatform.v1beta1.Rubric.Content result) { + result.contentTypeCase_ = contentTypeCase_; + result.contentType_ = this.contentType_; + if (contentTypeCase_ == 1 && propertyBuilder_ != null) { + result.contentType_ = propertyBuilder_.build(); + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Rubric.Content) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Rubric.Content) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Rubric.Content other) { + if (other == com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance()) + return this; + switch (other.getContentTypeCase()) { + case PROPERTY: + { + mergeProperty(other.getProperty()); + break; + } + case CONTENTTYPE_NOT_SET: + { + break; + } + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetPropertyFieldBuilder().getBuilder(), extensionRegistry); + contentTypeCase_ = 1; + 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 contentTypeCase_ = 0; + private java.lang.Object contentType_; + + public ContentTypeCase getContentTypeCase() { + return ContentTypeCase.forNumber(contentTypeCase_); + } + + public Builder clearContentType() { + contentTypeCase_ = 0; + contentType_ = null; + onChanged(); + return this; + } + + private int bitField0_; + + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder> + propertyBuilder_; + + /** + * + * + *
            +       * Evaluation criteria based on a specific property.
            +       * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return Whether the property field is set. + */ + @java.lang.Override + public boolean hasProperty() { + return contentTypeCase_ == 1; + } + + /** + * + * + *
            +       * Evaluation criteria based on a specific property.
            +       * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + * + * @return The property. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property getProperty() { + if (propertyBuilder_ == null) { + if (contentTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_; + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } else { + if (contentTypeCase_ == 1) { + return propertyBuilder_.getMessage(); + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Evaluation criteria based on a specific property.
            +       * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public Builder setProperty( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property value) { + if (propertyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + contentType_ = value; + onChanged(); + } else { + propertyBuilder_.setMessage(value); + } + contentTypeCase_ = 1; + return this; + } + + /** + * + * + *
            +       * Evaluation criteria based on a specific property.
            +       * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public Builder setProperty( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder builderForValue) { + if (propertyBuilder_ == null) { + contentType_ = builderForValue.build(); + onChanged(); + } else { + propertyBuilder_.setMessage(builderForValue.build()); + } + contentTypeCase_ = 1; + return this; + } + + /** + * + * + *
            +       * Evaluation criteria based on a specific property.
            +       * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public Builder mergeProperty( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property value) { + if (propertyBuilder_ == null) { + if (contentTypeCase_ == 1 + && contentType_ + != com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property + .getDefaultInstance()) { + contentType_ = + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.newBuilder( + (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_) + .mergeFrom(value) + .buildPartial(); + } else { + contentType_ = value; + } + onChanged(); + } else { + if (contentTypeCase_ == 1) { + propertyBuilder_.mergeFrom(value); + } else { + propertyBuilder_.setMessage(value); + } + } + contentTypeCase_ = 1; + return this; + } + + /** + * + * + *
            +       * Evaluation criteria based on a specific property.
            +       * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public Builder clearProperty() { + if (propertyBuilder_ == null) { + if (contentTypeCase_ == 1) { + contentTypeCase_ = 0; + contentType_ = null; + onChanged(); + } + } else { + if (contentTypeCase_ == 1) { + contentTypeCase_ = 0; + contentType_ = null; + } + propertyBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +       * Evaluation criteria based on a specific property.
            +       * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder + getPropertyBuilder() { + return internalGetPropertyFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +       * Evaluation criteria based on a specific property.
            +       * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder + getPropertyOrBuilder() { + if ((contentTypeCase_ == 1) && (propertyBuilder_ != null)) { + return propertyBuilder_.getMessageOrBuilder(); + } else { + if (contentTypeCase_ == 1) { + return (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_; + } + return com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + } + + /** + * + * + *
            +       * Evaluation criteria based on a specific property.
            +       * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content.Property property = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder> + internalGetPropertyFieldBuilder() { + if (propertyBuilder_ == null) { + if (!(contentTypeCase_ == 1)) { + contentType_ = + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.getDefaultInstance(); + } + propertyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.PropertyOrBuilder>( + (com.google.cloud.aiplatform.v1beta1.Rubric.Content.Property) contentType_, + getParentForChildren(), + isClean()); + contentType_ = null; + } + contentTypeCase_ = 1; + onChanged(); + return propertyBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Rubric.Content) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Rubric.Content) + private static final com.google.cloud.aiplatform.v1beta1.Rubric.Content DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Rubric.Content(); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric.Content getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Content 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.Rubric.Content getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int RUBRIC_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object rubricId_ = ""; + + /** + * + * + *
            +   * Unique identifier for the rubric.
            +   * This ID is used to refer to this rubric, e.g., in RubricVerdict.
            +   * 
            + * + * string rubric_id = 1; + * + * @return The rubricId. + */ + @java.lang.Override + public java.lang.String getRubricId() { + java.lang.Object ref = rubricId_; + 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(); + rubricId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Unique identifier for the rubric.
            +   * This ID is used to refer to this rubric, e.g., in RubricVerdict.
            +   * 
            + * + * string rubric_id = 1; + * + * @return The bytes for rubricId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getRubricIdBytes() { + java.lang.Object ref = rubricId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rubricId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CONTENT_FIELD_NUMBER = 2; + private com.google.cloud.aiplatform.v1beta1.Rubric.Content content_; + + /** + * + * + *
            +   * Required. The actual testable criteria for the rubric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return Whether the content field is set. + */ + @java.lang.Override + public boolean hasContent() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The actual testable criteria for the rubric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return The content. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Content getContent() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance() + : content_; + } + + /** + * + * + *
            +   * Required. The actual testable criteria for the rubric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder getContentOrBuilder() { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance() + : content_; + } + + public static final int TYPE_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object type_ = ""; + + /** + * + * + *
            +   * Optional. A type designator for the rubric, which can inform how it's
            +   * evaluated or interpreted by systems or users.
            +   * It's recommended to use consistent, well-defined, upper snake_case strings.
            +   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +   * "INSTRUCTION_ADHERENCE".
            +   * 
            + * + * optional string type = 3; + * + * @return Whether the type field is set. + */ + @java.lang.Override + public boolean hasType() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. A type designator for the rubric, which can inform how it's
            +   * evaluated or interpreted by systems or users.
            +   * It's recommended to use consistent, well-defined, upper snake_case strings.
            +   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +   * "INSTRUCTION_ADHERENCE".
            +   * 
            + * + * optional string type = 3; + * + * @return The type. + */ + @java.lang.Override + public java.lang.String getType() { + java.lang.Object ref = type_; + 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(); + type_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. A type designator for the rubric, which can inform how it's
            +   * evaluated or interpreted by systems or users.
            +   * It's recommended to use consistent, well-defined, upper snake_case strings.
            +   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +   * "INSTRUCTION_ADHERENCE".
            +   * 
            + * + * optional string type = 3; + * + * @return The bytes for type. + */ + @java.lang.Override + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int IMPORTANCE_FIELD_NUMBER = 4; + private int importance_ = 0; + + /** + * + * + *
            +   * Optional. The relative importance of this rubric.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return Whether the importance field is set. + */ + @java.lang.Override + public boolean hasImportance() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +   * Optional. The relative importance of this rubric.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The enum numeric value on the wire for importance. + */ + @java.lang.Override + public int getImportanceValue() { + return importance_; + } + + /** + * + * + *
            +   * Optional. The relative importance of this rubric.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The importance. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Importance getImportance() { + com.google.cloud.aiplatform.v1beta1.Rubric.Importance result = + com.google.cloud.aiplatform.v1beta1.Rubric.Importance.forNumber(importance_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Importance.UNRECOGNIZED + : result; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rubricId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, rubricId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(2, getContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, type_); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeEnum(4, importance_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(rubricId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, rubricId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getContent()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, type_); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(4, importance_); + } + 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.Rubric)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.Rubric other = + (com.google.cloud.aiplatform.v1beta1.Rubric) obj; + + if (!getRubricId().equals(other.getRubricId())) return false; + if (hasContent() != other.hasContent()) return false; + if (hasContent()) { + if (!getContent().equals(other.getContent())) return false; + } + if (hasType() != other.hasType()) return false; + if (hasType()) { + if (!getType().equals(other.getType())) return false; + } + if (hasImportance() != other.hasImportance()) return false; + if (hasImportance()) { + if (importance_ != other.importance_) 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) + RUBRIC_ID_FIELD_NUMBER; + hash = (53 * hash) + getRubricId().hashCode(); + if (hasContent()) { + hash = (37 * hash) + CONTENT_FIELD_NUMBER; + hash = (53 * hash) + getContent().hashCode(); + } + if (hasType()) { + hash = (37 * hash) + TYPE_FIELD_NUMBER; + hash = (53 * hash) + getType().hashCode(); + } + if (hasImportance()) { + hash = (37 * hash) + IMPORTANCE_FIELD_NUMBER; + hash = (53 * hash) + importance_; + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric 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.Rubric parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric 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.Rubric parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric 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.Rubric parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.Rubric prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Message representing a single testable criterion for evaluation.
            +   * One input prompt could have multiple rubrics.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.Rubric} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.Rubric) + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.Rubric.class, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.Rubric.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetContentFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + rubricId_ = ""; + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + type_ = ""; + importance_ = 0; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_Rubric_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric build() { + com.google.cloud.aiplatform.v1beta1.Rubric result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric buildPartial() { + com.google.cloud.aiplatform.v1beta1.Rubric result = + new com.google.cloud.aiplatform.v1beta1.Rubric(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.Rubric result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.rubricId_ = rubricId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.content_ = contentBuilder_ == null ? content_ : contentBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.type_ = type_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.importance_ = importance_; + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.Rubric) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.Rubric) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.Rubric other) { + if (other == com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()) return this; + if (!other.getRubricId().isEmpty()) { + rubricId_ = other.rubricId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasContent()) { + mergeContent(other.getContent()); + } + if (other.hasType()) { + type_ = other.type_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasImportance()) { + setImportanceValue(other.getImportanceValue()); + } + 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: + { + rubricId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage(internalGetContentFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + type_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + importance_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 rubricId_ = ""; + + /** + * + * + *
            +     * Unique identifier for the rubric.
            +     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
            +     * 
            + * + * string rubric_id = 1; + * + * @return The rubricId. + */ + public java.lang.String getRubricId() { + java.lang.Object ref = rubricId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + rubricId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Unique identifier for the rubric.
            +     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
            +     * 
            + * + * string rubric_id = 1; + * + * @return The bytes for rubricId. + */ + public com.google.protobuf.ByteString getRubricIdBytes() { + java.lang.Object ref = rubricId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + rubricId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Unique identifier for the rubric.
            +     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
            +     * 
            + * + * string rubric_id = 1; + * + * @param value The rubricId to set. + * @return This builder for chaining. + */ + public Builder setRubricId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + rubricId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unique identifier for the rubric.
            +     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
            +     * 
            + * + * string rubric_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearRubricId() { + rubricId_ = getDefaultInstance().getRubricId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unique identifier for the rubric.
            +     * This ID is used to refer to this rubric, e.g., in RubricVerdict.
            +     * 
            + * + * string rubric_id = 1; + * + * @param value The bytes for rubricId to set. + * @return This builder for chaining. + */ + public Builder setRubricIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + rubricId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.Rubric.Content content_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder> + contentBuilder_; + + /** + * + * + *
            +     * Required. The actual testable criteria for the rubric.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return Whether the content field is set. + */ + public boolean hasContent() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Required. The actual testable criteria for the rubric.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return The content. + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Content getContent() { + if (contentBuilder_ == null) { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance() + : content_; + } else { + return contentBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The actual testable criteria for the rubric.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public Builder setContent(com.google.cloud.aiplatform.v1beta1.Rubric.Content value) { + if (contentBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + content_ = value; + } else { + contentBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The actual testable criteria for the rubric.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public Builder setContent( + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder builderForValue) { + if (contentBuilder_ == null) { + content_ = builderForValue.build(); + } else { + contentBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The actual testable criteria for the rubric.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public Builder mergeContent(com.google.cloud.aiplatform.v1beta1.Rubric.Content value) { + if (contentBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && content_ != null + && content_ + != com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance()) { + getContentBuilder().mergeFrom(value); + } else { + content_ = value; + } + } else { + contentBuilder_.mergeFrom(value); + } + if (content_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The actual testable criteria for the rubric.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public Builder clearContent() { + bitField0_ = (bitField0_ & ~0x00000002); + content_ = null; + if (contentBuilder_ != null) { + contentBuilder_.dispose(); + contentBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The actual testable criteria for the rubric.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder getContentBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetContentFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The actual testable criteria for the rubric.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder getContentOrBuilder() { + if (contentBuilder_ != null) { + return contentBuilder_.getMessageOrBuilder(); + } else { + return content_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Content.getDefaultInstance() + : content_; + } + } + + /** + * + * + *
            +     * Required. The actual testable criteria for the rubric.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder> + internalGetContentFieldBuilder() { + if (contentBuilder_ == null) { + contentBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric.Content, + com.google.cloud.aiplatform.v1beta1.Rubric.Content.Builder, + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder>( + getContent(), getParentForChildren(), isClean()); + content_ = null; + } + return contentBuilder_; + } + + private java.lang.Object type_ = ""; + + /** + * + * + *
            +     * Optional. A type designator for the rubric, which can inform how it's
            +     * evaluated or interpreted by systems or users.
            +     * It's recommended to use consistent, well-defined, upper snake_case strings.
            +     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +     * "INSTRUCTION_ADHERENCE".
            +     * 
            + * + * optional string type = 3; + * + * @return Whether the type field is set. + */ + public boolean hasType() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. A type designator for the rubric, which can inform how it's
            +     * evaluated or interpreted by systems or users.
            +     * It's recommended to use consistent, well-defined, upper snake_case strings.
            +     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +     * "INSTRUCTION_ADHERENCE".
            +     * 
            + * + * optional string type = 3; + * + * @return The type. + */ + public java.lang.String getType() { + java.lang.Object ref = type_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + type_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. A type designator for the rubric, which can inform how it's
            +     * evaluated or interpreted by systems or users.
            +     * It's recommended to use consistent, well-defined, upper snake_case strings.
            +     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +     * "INSTRUCTION_ADHERENCE".
            +     * 
            + * + * optional string type = 3; + * + * @return The bytes for type. + */ + public com.google.protobuf.ByteString getTypeBytes() { + java.lang.Object ref = type_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + type_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. A type designator for the rubric, which can inform how it's
            +     * evaluated or interpreted by systems or users.
            +     * It's recommended to use consistent, well-defined, upper snake_case strings.
            +     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +     * "INSTRUCTION_ADHERENCE".
            +     * 
            + * + * optional string type = 3; + * + * @param value The type to set. + * @return This builder for chaining. + */ + public Builder setType(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A type designator for the rubric, which can inform how it's
            +     * evaluated or interpreted by systems or users.
            +     * It's recommended to use consistent, well-defined, upper snake_case strings.
            +     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +     * "INSTRUCTION_ADHERENCE".
            +     * 
            + * + * optional string type = 3; + * + * @return This builder for chaining. + */ + public Builder clearType() { + type_ = getDefaultInstance().getType(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. A type designator for the rubric, which can inform how it's
            +     * evaluated or interpreted by systems or users.
            +     * It's recommended to use consistent, well-defined, upper snake_case strings.
            +     * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +     * "INSTRUCTION_ADHERENCE".
            +     * 
            + * + * optional string type = 3; + * + * @param value The bytes for type to set. + * @return This builder for chaining. + */ + public Builder setTypeBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + type_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int importance_ = 0; + + /** + * + * + *
            +     * Optional. The relative importance of this rubric.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return Whether the importance field is set. + */ + @java.lang.Override + public boolean hasImportance() { + return ((bitField0_ & 0x00000008) != 0); + } + + /** + * + * + *
            +     * Optional. The relative importance of this rubric.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The enum numeric value on the wire for importance. + */ + @java.lang.Override + public int getImportanceValue() { + return importance_; + } + + /** + * + * + *
            +     * Optional. The relative importance of this rubric.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @param value The enum numeric value on the wire for importance to set. + * @return This builder for chaining. + */ + public Builder setImportanceValue(int value) { + importance_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The relative importance of this rubric.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The importance. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric.Importance getImportance() { + com.google.cloud.aiplatform.v1beta1.Rubric.Importance result = + com.google.cloud.aiplatform.v1beta1.Rubric.Importance.forNumber(importance_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.Importance.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * Optional. The relative importance of this rubric.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @param value The importance to set. + * @return This builder for chaining. + */ + public Builder setImportance(com.google.cloud.aiplatform.v1beta1.Rubric.Importance value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + importance_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. The relative importance of this rubric.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return This builder for chaining. + */ + public Builder clearImportance() { + bitField0_ = (bitField0_ & ~0x00000008); + importance_ = 0; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.Rubric) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.Rubric) + private static final com.google.cloud.aiplatform.v1beta1.Rubric DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.Rubric(); + } + + public static com.google.cloud.aiplatform.v1beta1.Rubric getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Rubric 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.Rubric getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpec.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpec.java new file mode 100644 index 000000000000..5b6dde15c918 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpec.java @@ -0,0 +1,1646 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Specification for how rubrics should be generated.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricGenerationSpec} + */ +@com.google.protobuf.Generated +public final class RubricGenerationSpec extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + RubricGenerationSpecOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RubricGenerationSpec"); + } + + // Use RubricGenerationSpec.newBuilder() to construct. + private RubricGenerationSpec(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RubricGenerationSpec() { + promptTemplate_ = ""; + rubricContentType_ = 0; + rubricTypeOntology_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.class, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder.class); + } + + /** + * + * + *
            +   * Specifies the type of rubric content to generate.
            +   * 
            + * + * Protobuf enum {@code google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType} + */ + public enum RubricContentType implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
            +     * The content type to generate is not specified.
            +     * 
            + * + * RUBRIC_CONTENT_TYPE_UNSPECIFIED = 0; + */ + RUBRIC_CONTENT_TYPE_UNSPECIFIED(0), + /** + * + * + *
            +     * Generate rubrics based on properties.
            +     * 
            + * + * PROPERTY = 1; + */ + PROPERTY(1), + /** + * + * + *
            +     * Generate rubrics in an NL question answer format.
            +     * 
            + * + * NL_QUESTION_ANSWER = 2; + */ + NL_QUESTION_ANSWER(2), + /** + * + * + *
            +     * Generate rubrics in a unit test format.
            +     * 
            + * + * PYTHON_CODE_ASSERTION = 3; + */ + PYTHON_CODE_ASSERTION(3), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RubricContentType"); + } + + /** + * + * + *
            +     * The content type to generate is not specified.
            +     * 
            + * + * RUBRIC_CONTENT_TYPE_UNSPECIFIED = 0; + */ + public static final int RUBRIC_CONTENT_TYPE_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
            +     * Generate rubrics based on properties.
            +     * 
            + * + * PROPERTY = 1; + */ + public static final int PROPERTY_VALUE = 1; + + /** + * + * + *
            +     * Generate rubrics in an NL question answer format.
            +     * 
            + * + * NL_QUESTION_ANSWER = 2; + */ + public static final int NL_QUESTION_ANSWER_VALUE = 2; + + /** + * + * + *
            +     * Generate rubrics in a unit test format.
            +     * 
            + * + * PYTHON_CODE_ASSERTION = 3; + */ + public static final int PYTHON_CODE_ASSERTION_VALUE = 3; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static RubricContentType valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static RubricContentType forNumber(int value) { + switch (value) { + case 0: + return RUBRIC_CONTENT_TYPE_UNSPECIFIED; + case 1: + return PROPERTY; + case 2: + return NL_QUESTION_ANSWER; + case 3: + return PYTHON_CODE_ASSERTION; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public RubricContentType findValueByNumber(int number) { + return RubricContentType.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final RubricContentType[] VALUES = values(); + + public static RubricContentType valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private RubricContentType(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType) + } + + private int bitField0_; + public static final int PROMPT_TEMPLATE_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object promptTemplate_ = ""; + + /** + * + * + *
            +   * Template for the prompt used to generate rubrics.
            +   * The details should be updated based on the most-recent recipe requirements.
            +   * 
            + * + * string prompt_template = 1; + * + * @return The promptTemplate. + */ + @java.lang.Override + public java.lang.String getPromptTemplate() { + java.lang.Object ref = promptTemplate_; + 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(); + promptTemplate_ = s; + return s; + } + } + + /** + * + * + *
            +   * Template for the prompt used to generate rubrics.
            +   * The details should be updated based on the most-recent recipe requirements.
            +   * 
            + * + * string prompt_template = 1; + * + * @return The bytes for promptTemplate. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPromptTemplateBytes() { + java.lang.Object ref = promptTemplate_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + promptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int MODEL_CONFIG_FIELD_NUMBER = 4; + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig modelConfig_; + + /** + * + * + *
            +   * Configuration for the model used in rubric generation.
            +   * Configs including sampling count and base model can be specified here.
            +   * Flipping is not supported for rubric generation.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return Whether the modelConfig field is set. + */ + @java.lang.Override + public boolean hasModelConfig() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Configuration for the model used in rubric generation.
            +   * Configs including sampling count and base model can be specified here.
            +   * Flipping is not supported for rubric generation.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return The modelConfig. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getModelConfig() { + return modelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : modelConfig_; + } + + /** + * + * + *
            +   * Configuration for the model used in rubric generation.
            +   * Configs including sampling count and base model can be specified here.
            +   * Flipping is not supported for rubric generation.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder getModelConfigOrBuilder() { + return modelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : modelConfig_; + } + + public static final int RUBRIC_CONTENT_TYPE_FIELD_NUMBER = 5; + private int rubricContentType_ = 0; + + /** + * + * + *
            +   * The type of rubric content to be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The enum numeric value on the wire for rubricContentType. + */ + @java.lang.Override + public int getRubricContentTypeValue() { + return rubricContentType_; + } + + /** + * + * + *
            +   * The type of rubric content to be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The rubricContentType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType + getRubricContentType() { + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType result = + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType.forNumber( + rubricContentType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType.UNRECOGNIZED + : result; + } + + public static final int RUBRIC_TYPE_ONTOLOGY_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList rubricTypeOntology_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
            +   * Optional. An optional, pre-defined list of allowed types for generated
            +   * rubrics. If this field is provided, it implies `include_rubric_type` should
            +   * be true, and the generated rubric types should be chosen from this
            +   * ontology.
            +   * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the rubricTypeOntology. + */ + public com.google.protobuf.ProtocolStringList getRubricTypeOntologyList() { + return rubricTypeOntology_; + } + + /** + * + * + *
            +   * Optional. An optional, pre-defined list of allowed types for generated
            +   * rubrics. If this field is provided, it implies `include_rubric_type` should
            +   * be true, and the generated rubric types should be chosen from this
            +   * ontology.
            +   * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of rubricTypeOntology. + */ + public int getRubricTypeOntologyCount() { + return rubricTypeOntology_.size(); + } + + /** + * + * + *
            +   * Optional. An optional, pre-defined list of allowed types for generated
            +   * rubrics. If this field is provided, it implies `include_rubric_type` should
            +   * be true, and the generated rubric types should be chosen from this
            +   * ontology.
            +   * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The rubricTypeOntology at the given index. + */ + public java.lang.String getRubricTypeOntology(int index) { + return rubricTypeOntology_.get(index); + } + + /** + * + * + *
            +   * Optional. An optional, pre-defined list of allowed types for generated
            +   * rubrics. If this field is provided, it implies `include_rubric_type` should
            +   * be true, and the generated rubric types should be chosen from this
            +   * ontology.
            +   * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rubricTypeOntology at the given index. + */ + public com.google.protobuf.ByteString getRubricTypeOntologyBytes(int index) { + return rubricTypeOntology_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(promptTemplate_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, promptTemplate_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(4, getModelConfig()); + } + if (rubricContentType_ + != com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType + .RUBRIC_CONTENT_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, rubricContentType_); + } + for (int i = 0; i < rubricTypeOntology_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, rubricTypeOntology_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(promptTemplate_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, promptTemplate_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getModelConfig()); + } + if (rubricContentType_ + != com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType + .RUBRIC_CONTENT_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, rubricContentType_); + } + { + int dataSize = 0; + for (int i = 0; i < rubricTypeOntology_.size(); i++) { + dataSize += computeStringSizeNoTag(rubricTypeOntology_.getRaw(i)); + } + size += dataSize; + size += 1 * getRubricTypeOntologyList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec other = + (com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) obj; + + if (!getPromptTemplate().equals(other.getPromptTemplate())) return false; + if (hasModelConfig() != other.hasModelConfig()) return false; + if (hasModelConfig()) { + if (!getModelConfig().equals(other.getModelConfig())) return false; + } + if (rubricContentType_ != other.rubricContentType_) return false; + if (!getRubricTypeOntologyList().equals(other.getRubricTypeOntologyList())) 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) + PROMPT_TEMPLATE_FIELD_NUMBER; + hash = (53 * hash) + getPromptTemplate().hashCode(); + if (hasModelConfig()) { + hash = (37 * hash) + MODEL_CONFIG_FIELD_NUMBER; + hash = (53 * hash) + getModelConfig().hashCode(); + } + hash = (37 * hash) + RUBRIC_CONTENT_TYPE_FIELD_NUMBER; + hash = (53 * hash) + rubricContentType_; + if (getRubricTypeOntologyCount() > 0) { + hash = (37 * hash) + RUBRIC_TYPE_ONTOLOGY_FIELD_NUMBER; + hash = (53 * hash) + getRubricTypeOntologyList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec 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.RubricGenerationSpec parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec 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.RubricGenerationSpec parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec 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.RubricGenerationSpec parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Specification for how rubrics should be generated.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricGenerationSpec} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpecOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGenerationSpec_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.class, + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetModelConfigFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + promptTemplate_ = ""; + modelConfig_ = null; + if (modelConfigBuilder_ != null) { + modelConfigBuilder_.dispose(); + modelConfigBuilder_ = null; + } + rubricContentType_ = 0; + rubricTypeOntology_ = com.google.protobuf.LazyStringArrayList.emptyList(); + 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_RubricGenerationSpec_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec build() { + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec buildPartial() { + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec result = + new com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.promptTemplate_ = promptTemplate_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.modelConfig_ = + modelConfigBuilder_ == null ? modelConfig_ : modelConfigBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.rubricContentType_ = rubricContentType_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + rubricTypeOntology_.makeImmutable(); + result.rubricTypeOntology_ = rubricTypeOntology_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec other) { + if (other == com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.getDefaultInstance()) + return this; + if (!other.getPromptTemplate().isEmpty()) { + promptTemplate_ = other.promptTemplate_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasModelConfig()) { + mergeModelConfig(other.getModelConfig()); + } + if (other.rubricContentType_ != 0) { + setRubricContentTypeValue(other.getRubricContentTypeValue()); + } + if (!other.rubricTypeOntology_.isEmpty()) { + if (rubricTypeOntology_.isEmpty()) { + rubricTypeOntology_ = other.rubricTypeOntology_; + bitField0_ |= 0x00000008; + } else { + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.addAll(other.rubricTypeOntology_); + } + 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: + { + promptTemplate_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 34: + { + input.readMessage( + internalGetModelConfigFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 34 + case 40: + { + rubricContentType_ = input.readEnum(); + bitField0_ |= 0x00000004; + break; + } // case 40 + case 50: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.add(s); + break; + } // case 50 + 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 promptTemplate_ = ""; + + /** + * + * + *
            +     * Template for the prompt used to generate rubrics.
            +     * The details should be updated based on the most-recent recipe requirements.
            +     * 
            + * + * string prompt_template = 1; + * + * @return The promptTemplate. + */ + public java.lang.String getPromptTemplate() { + java.lang.Object ref = promptTemplate_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + promptTemplate_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Template for the prompt used to generate rubrics.
            +     * The details should be updated based on the most-recent recipe requirements.
            +     * 
            + * + * string prompt_template = 1; + * + * @return The bytes for promptTemplate. + */ + public com.google.protobuf.ByteString getPromptTemplateBytes() { + java.lang.Object ref = promptTemplate_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + promptTemplate_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Template for the prompt used to generate rubrics.
            +     * The details should be updated based on the most-recent recipe requirements.
            +     * 
            + * + * string prompt_template = 1; + * + * @param value The promptTemplate to set. + * @return This builder for chaining. + */ + public Builder setPromptTemplate(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + promptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Template for the prompt used to generate rubrics.
            +     * The details should be updated based on the most-recent recipe requirements.
            +     * 
            + * + * string prompt_template = 1; + * + * @return This builder for chaining. + */ + public Builder clearPromptTemplate() { + promptTemplate_ = getDefaultInstance().getPromptTemplate(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Template for the prompt used to generate rubrics.
            +     * The details should be updated based on the most-recent recipe requirements.
            +     * 
            + * + * string prompt_template = 1; + * + * @param value The bytes for promptTemplate to set. + * @return This builder for chaining. + */ + public Builder setPromptTemplateBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + promptTemplate_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.cloud.aiplatform.v1beta1.AutoraterConfig modelConfig_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + modelConfigBuilder_; + + /** + * + * + *
            +     * Configuration for the model used in rubric generation.
            +     * Configs including sampling count and base model can be specified here.
            +     * Flipping is not supported for rubric generation.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return Whether the modelConfig field is set. + */ + public boolean hasModelConfig() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Configuration for the model used in rubric generation.
            +     * Configs including sampling count and base model can be specified here.
            +     * Flipping is not supported for rubric generation.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return The modelConfig. + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig getModelConfig() { + if (modelConfigBuilder_ == null) { + return modelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : modelConfig_; + } else { + return modelConfigBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Configuration for the model used in rubric generation.
            +     * Configs including sampling count and base model can be specified here.
            +     * Flipping is not supported for rubric generation.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public Builder setModelConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (modelConfigBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + modelConfig_ = value; + } else { + modelConfigBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Configuration for the model used in rubric generation.
            +     * Configs including sampling count and base model can be specified here.
            +     * Flipping is not supported for rubric generation.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public Builder setModelConfig( + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder builderForValue) { + if (modelConfigBuilder_ == null) { + modelConfig_ = builderForValue.build(); + } else { + modelConfigBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Configuration for the model used in rubric generation.
            +     * Configs including sampling count and base model can be specified here.
            +     * Flipping is not supported for rubric generation.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public Builder mergeModelConfig(com.google.cloud.aiplatform.v1beta1.AutoraterConfig value) { + if (modelConfigBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && modelConfig_ != null + && modelConfig_ + != com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance()) { + getModelConfigBuilder().mergeFrom(value); + } else { + modelConfig_ = value; + } + } else { + modelConfigBuilder_.mergeFrom(value); + } + if (modelConfig_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Configuration for the model used in rubric generation.
            +     * Configs including sampling count and base model can be specified here.
            +     * Flipping is not supported for rubric generation.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public Builder clearModelConfig() { + bitField0_ = (bitField0_ & ~0x00000002); + modelConfig_ = null; + if (modelConfigBuilder_ != null) { + modelConfigBuilder_.dispose(); + modelConfigBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Configuration for the model used in rubric generation.
            +     * Configs including sampling count and base model can be specified here.
            +     * Flipping is not supported for rubric generation.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder getModelConfigBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetModelConfigFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Configuration for the model used in rubric generation.
            +     * Configs including sampling count and base model can be specified here.
            +     * Flipping is not supported for rubric generation.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + public com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder getModelConfigOrBuilder() { + if (modelConfigBuilder_ != null) { + return modelConfigBuilder_.getMessageOrBuilder(); + } else { + return modelConfig_ == null + ? com.google.cloud.aiplatform.v1beta1.AutoraterConfig.getDefaultInstance() + : modelConfig_; + } + } + + /** + * + * + *
            +     * Configuration for the model used in rubric generation.
            +     * Configs including sampling count and base model can be specified here.
            +     * Flipping is not supported for rubric generation.
            +     * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder> + internalGetModelConfigFieldBuilder() { + if (modelConfigBuilder_ == null) { + modelConfigBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.AutoraterConfig, + com.google.cloud.aiplatform.v1beta1.AutoraterConfig.Builder, + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder>( + getModelConfig(), getParentForChildren(), isClean()); + modelConfig_ = null; + } + return modelConfigBuilder_; + } + + private int rubricContentType_ = 0; + + /** + * + * + *
            +     * The type of rubric content to be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The enum numeric value on the wire for rubricContentType. + */ + @java.lang.Override + public int getRubricContentTypeValue() { + return rubricContentType_; + } + + /** + * + * + *
            +     * The type of rubric content to be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @param value The enum numeric value on the wire for rubricContentType to set. + * @return This builder for chaining. + */ + public Builder setRubricContentTypeValue(int value) { + rubricContentType_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * The type of rubric content to be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The rubricContentType. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType + getRubricContentType() { + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType result = + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType.forNumber( + rubricContentType_); + return result == null + ? com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType.UNRECOGNIZED + : result; + } + + /** + * + * + *
            +     * The type of rubric content to be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @param value The rubricContentType to set. + * @return This builder for chaining. + */ + public Builder setRubricContentType( + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + rubricContentType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
            +     * The type of rubric content to be generated.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return This builder for chaining. + */ + public Builder clearRubricContentType() { + bitField0_ = (bitField0_ & ~0x00000004); + rubricContentType_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList rubricTypeOntology_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRubricTypeOntologyIsMutable() { + if (!rubricTypeOntology_.isModifiable()) { + rubricTypeOntology_ = new com.google.protobuf.LazyStringArrayList(rubricTypeOntology_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
            +     * Optional. An optional, pre-defined list of allowed types for generated
            +     * rubrics. If this field is provided, it implies `include_rubric_type` should
            +     * be true, and the generated rubric types should be chosen from this
            +     * ontology.
            +     * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the rubricTypeOntology. + */ + public com.google.protobuf.ProtocolStringList getRubricTypeOntologyList() { + rubricTypeOntology_.makeImmutable(); + return rubricTypeOntology_; + } + + /** + * + * + *
            +     * Optional. An optional, pre-defined list of allowed types for generated
            +     * rubrics. If this field is provided, it implies `include_rubric_type` should
            +     * be true, and the generated rubric types should be chosen from this
            +     * ontology.
            +     * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of rubricTypeOntology. + */ + public int getRubricTypeOntologyCount() { + return rubricTypeOntology_.size(); + } + + /** + * + * + *
            +     * Optional. An optional, pre-defined list of allowed types for generated
            +     * rubrics. If this field is provided, it implies `include_rubric_type` should
            +     * be true, and the generated rubric types should be chosen from this
            +     * ontology.
            +     * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The rubricTypeOntology at the given index. + */ + public java.lang.String getRubricTypeOntology(int index) { + return rubricTypeOntology_.get(index); + } + + /** + * + * + *
            +     * Optional. An optional, pre-defined list of allowed types for generated
            +     * rubrics. If this field is provided, it implies `include_rubric_type` should
            +     * be true, and the generated rubric types should be chosen from this
            +     * ontology.
            +     * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rubricTypeOntology at the given index. + */ + public com.google.protobuf.ByteString getRubricTypeOntologyBytes(int index) { + return rubricTypeOntology_.getByteString(index); + } + + /** + * + * + *
            +     * Optional. An optional, pre-defined list of allowed types for generated
            +     * rubrics. If this field is provided, it implies `include_rubric_type` should
            +     * be true, and the generated rubric types should be chosen from this
            +     * ontology.
            +     * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The rubricTypeOntology to set. + * @return This builder for chaining. + */ + public Builder setRubricTypeOntology(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional, pre-defined list of allowed types for generated
            +     * rubrics. If this field is provided, it implies `include_rubric_type` should
            +     * be true, and the generated rubric types should be chosen from this
            +     * ontology.
            +     * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The rubricTypeOntology to add. + * @return This builder for chaining. + */ + public Builder addRubricTypeOntology(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional, pre-defined list of allowed types for generated
            +     * rubrics. If this field is provided, it implies `include_rubric_type` should
            +     * be true, and the generated rubric types should be chosen from this
            +     * ontology.
            +     * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The rubricTypeOntology to add. + * @return This builder for chaining. + */ + public Builder addAllRubricTypeOntology(java.lang.Iterable values) { + ensureRubricTypeOntologyIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rubricTypeOntology_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional, pre-defined list of allowed types for generated
            +     * rubrics. If this field is provided, it implies `include_rubric_type` should
            +     * be true, and the generated rubric types should be chosen from this
            +     * ontology.
            +     * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearRubricTypeOntology() { + rubricTypeOntology_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. An optional, pre-defined list of allowed types for generated
            +     * rubrics. If this field is provided, it implies `include_rubric_type` should
            +     * be true, and the generated rubric types should be chosen from this
            +     * ontology.
            +     * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the rubricTypeOntology to add. + * @return This builder for chaining. + */ + public Builder addRubricTypeOntologyBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRubricTypeOntologyIsMutable(); + rubricTypeOntology_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + private static final com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec(); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RubricGenerationSpec 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.RubricGenerationSpec getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpecOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpecOrBuilder.java new file mode 100644 index 000000000000..c795ae839129 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGenerationSpecOrBuilder.java @@ -0,0 +1,199 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface RubricGenerationSpecOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RubricGenerationSpec) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Template for the prompt used to generate rubrics.
            +   * The details should be updated based on the most-recent recipe requirements.
            +   * 
            + * + * string prompt_template = 1; + * + * @return The promptTemplate. + */ + java.lang.String getPromptTemplate(); + + /** + * + * + *
            +   * Template for the prompt used to generate rubrics.
            +   * The details should be updated based on the most-recent recipe requirements.
            +   * 
            + * + * string prompt_template = 1; + * + * @return The bytes for promptTemplate. + */ + com.google.protobuf.ByteString getPromptTemplateBytes(); + + /** + * + * + *
            +   * Configuration for the model used in rubric generation.
            +   * Configs including sampling count and base model can be specified here.
            +   * Flipping is not supported for rubric generation.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return Whether the modelConfig field is set. + */ + boolean hasModelConfig(); + + /** + * + * + *
            +   * Configuration for the model used in rubric generation.
            +   * Configs including sampling count and base model can be specified here.
            +   * Flipping is not supported for rubric generation.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + * + * @return The modelConfig. + */ + com.google.cloud.aiplatform.v1beta1.AutoraterConfig getModelConfig(); + + /** + * + * + *
            +   * Configuration for the model used in rubric generation.
            +   * Configs including sampling count and base model can be specified here.
            +   * Flipping is not supported for rubric generation.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.AutoraterConfig model_config = 4; + */ + com.google.cloud.aiplatform.v1beta1.AutoraterConfigOrBuilder getModelConfigOrBuilder(); + + /** + * + * + *
            +   * The type of rubric content to be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The enum numeric value on the wire for rubricContentType. + */ + int getRubricContentTypeValue(); + + /** + * + * + *
            +   * The type of rubric content to be generated.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType rubric_content_type = 5; + * + * + * @return The rubricContentType. + */ + com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec.RubricContentType getRubricContentType(); + + /** + * + * + *
            +   * Optional. An optional, pre-defined list of allowed types for generated
            +   * rubrics. If this field is provided, it implies `include_rubric_type` should
            +   * be true, and the generated rubric types should be chosen from this
            +   * ontology.
            +   * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the rubricTypeOntology. + */ + java.util.List getRubricTypeOntologyList(); + + /** + * + * + *
            +   * Optional. An optional, pre-defined list of allowed types for generated
            +   * rubrics. If this field is provided, it implies `include_rubric_type` should
            +   * be true, and the generated rubric types should be chosen from this
            +   * ontology.
            +   * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of rubricTypeOntology. + */ + int getRubricTypeOntologyCount(); + + /** + * + * + *
            +   * Optional. An optional, pre-defined list of allowed types for generated
            +   * rubrics. If this field is provided, it implies `include_rubric_type` should
            +   * be true, and the generated rubric types should be chosen from this
            +   * ontology.
            +   * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The rubricTypeOntology at the given index. + */ + java.lang.String getRubricTypeOntology(int index); + + /** + * + * + *
            +   * Optional. An optional, pre-defined list of allowed types for generated
            +   * rubrics. If this field is provided, it implies `include_rubric_type` should
            +   * be true, and the generated rubric types should be chosen from this
            +   * ontology.
            +   * 
            + * + * repeated string rubric_type_ontology = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the rubricTypeOntology at the given index. + */ + com.google.protobuf.ByteString getRubricTypeOntologyBytes(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroup.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroup.java new file mode 100644 index 000000000000..5f1f54e171f4 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroup.java @@ -0,0 +1,1321 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * A group of rubrics, used for grouping rubrics based on a metric or a version.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricGroup} + */ +@com.google.protobuf.Generated +public final class RubricGroup extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RubricGroup) + RubricGroupOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RubricGroup"); + } + + // Use RubricGroup.newBuilder() to construct. + private RubricGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RubricGroup() { + groupId_ = ""; + displayName_ = ""; + rubrics_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricGroup.class, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder.class); + } + + public static final int GROUP_ID_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object groupId_ = ""; + + /** + * + * + *
            +   * Unique identifier for the group.
            +   * 
            + * + * string group_id = 1; + * + * @return The groupId. + */ + @java.lang.Override + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + 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(); + groupId_ = s; + return s; + } + } + + /** + * + * + *
            +   * Unique identifier for the group.
            +   * 
            + * + * string group_id = 1; + * + * @return The bytes for groupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
            +   * Human-readable name for the group. This should be unique
            +   * within a given context if used for display or selection.
            +   * Example: "Instruction Following V1", "Content Quality - Summarization
            +   * Task".
            +   * 
            + * + * string display_name = 2; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
            +   * Human-readable name for the group. This should be unique
            +   * within a given context if used for display or selection.
            +   * Example: "Instruction Following V1", "Content Quality - Summarization
            +   * Task".
            +   * 
            + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RUBRICS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private java.util.List rubrics_; + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public java.util.List getRubricsList() { + return rubrics_; + } + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public java.util.List + getRubricsOrBuilderList() { + return rubrics_; + } + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public int getRubricsCount() { + return rubrics_.size(); + } + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric getRubrics(int index) { + return rubrics_.get(index); + } + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getRubricsOrBuilder(int index) { + return rubrics_.get(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(groupId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, groupId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, displayName_); + } + for (int i = 0; i < rubrics_.size(); i++) { + output.writeMessage(3, rubrics_.get(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(groupId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, groupId_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, displayName_); + } + for (int i = 0; i < rubrics_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, rubrics_.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.RubricGroup)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RubricGroup other = + (com.google.cloud.aiplatform.v1beta1.RubricGroup) obj; + + if (!getGroupId().equals(other.getGroupId())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getRubricsList().equals(other.getRubricsList())) 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) + GROUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getGroupId().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (getRubricsCount() > 0) { + hash = (37 * hash) + RUBRICS_FIELD_NUMBER; + hash = (53 * hash) + getRubricsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup 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.RubricGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup 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.RubricGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup 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.RubricGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.RubricGroup prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * A group of rubrics, used for grouping rubrics based on a metric or a version.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricGroup} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RubricGroup) + com.google.cloud.aiplatform.v1beta1.RubricGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricGroup.class, + com.google.cloud.aiplatform.v1beta1.RubricGroup.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RubricGroup.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + groupId_ = ""; + displayName_ = ""; + if (rubricsBuilder_ == null) { + rubrics_ = java.util.Collections.emptyList(); + } else { + rubrics_ = null; + rubricsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000004); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricGroup_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RubricGroup.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup build() { + com.google.cloud.aiplatform.v1beta1.RubricGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricGroup buildPartial() { + com.google.cloud.aiplatform.v1beta1.RubricGroup result = + new com.google.cloud.aiplatform.v1beta1.RubricGroup(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.cloud.aiplatform.v1beta1.RubricGroup result) { + if (rubricsBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0)) { + rubrics_ = java.util.Collections.unmodifiableList(rubrics_); + bitField0_ = (bitField0_ & ~0x00000004); + } + result.rubrics_ = rubrics_; + } else { + result.rubrics_ = rubricsBuilder_.build(); + } + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RubricGroup result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.groupId_ = groupId_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.RubricGroup) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RubricGroup) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RubricGroup other) { + if (other == com.google.cloud.aiplatform.v1beta1.RubricGroup.getDefaultInstance()) + return this; + if (!other.getGroupId().isEmpty()) { + groupId_ = other.groupId_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (rubricsBuilder_ == null) { + if (!other.rubrics_.isEmpty()) { + if (rubrics_.isEmpty()) { + rubrics_ = other.rubrics_; + bitField0_ = (bitField0_ & ~0x00000004); + } else { + ensureRubricsIsMutable(); + rubrics_.addAll(other.rubrics_); + } + onChanged(); + } + } else { + if (!other.rubrics_.isEmpty()) { + if (rubricsBuilder_.isEmpty()) { + rubricsBuilder_.dispose(); + rubricsBuilder_ = null; + rubrics_ = other.rubrics_; + bitField0_ = (bitField0_ & ~0x00000004); + rubricsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRubricsFieldBuilder() + : null; + } else { + rubricsBuilder_.addAllMessages(other.rubrics_); + } + } + } + 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: + { + groupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + com.google.cloud.aiplatform.v1beta1.Rubric m = + input.readMessage( + com.google.cloud.aiplatform.v1beta1.Rubric.parser(), extensionRegistry); + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.add(m); + } else { + rubricsBuilder_.addMessage(m); + } + 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 groupId_ = ""; + + /** + * + * + *
            +     * Unique identifier for the group.
            +     * 
            + * + * string group_id = 1; + * + * @return The groupId. + */ + public java.lang.String getGroupId() { + java.lang.Object ref = groupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + groupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Unique identifier for the group.
            +     * 
            + * + * string group_id = 1; + * + * @return The bytes for groupId. + */ + public com.google.protobuf.ByteString getGroupIdBytes() { + java.lang.Object ref = groupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + groupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Unique identifier for the group.
            +     * 
            + * + * string group_id = 1; + * + * @param value The groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + groupId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unique identifier for the group.
            +     * 
            + * + * string group_id = 1; + * + * @return This builder for chaining. + */ + public Builder clearGroupId() { + groupId_ = getDefaultInstance().getGroupId(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Unique identifier for the group.
            +     * 
            + * + * string group_id = 1; + * + * @param value The bytes for groupId to set. + * @return This builder for chaining. + */ + public Builder setGroupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + groupId_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
            +     * Human-readable name for the group. This should be unique
            +     * within a given context if used for display or selection.
            +     * Example: "Instruction Following V1", "Content Quality - Summarization
            +     * Task".
            +     * 
            + * + * string display_name = 2; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Human-readable name for the group. This should be unique
            +     * within a given context if used for display or selection.
            +     * Example: "Instruction Following V1", "Content Quality - Summarization
            +     * Task".
            +     * 
            + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Human-readable name for the group. This should be unique
            +     * within a given context if used for display or selection.
            +     * Example: "Instruction Following V1", "Content Quality - Summarization
            +     * Task".
            +     * 
            + * + * string display_name = 2; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Human-readable name for the group. This should be unique
            +     * within a given context if used for display or selection.
            +     * Example: "Instruction Following V1", "Content Quality - Summarization
            +     * Task".
            +     * 
            + * + * string display_name = 2; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Human-readable name for the group. This should be unique
            +     * within a given context if used for display or selection.
            +     * Example: "Instruction Following V1", "Content Quality - Summarization
            +     * Task".
            +     * 
            + * + * string display_name = 2; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.util.List rubrics_ = + java.util.Collections.emptyList(); + + private void ensureRubricsIsMutable() { + if (!((bitField0_ & 0x00000004) != 0)) { + rubrics_ = new java.util.ArrayList(rubrics_); + bitField0_ |= 0x00000004; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + rubricsBuilder_; + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public java.util.List getRubricsList() { + if (rubricsBuilder_ == null) { + return java.util.Collections.unmodifiableList(rubrics_); + } else { + return rubricsBuilder_.getMessageList(); + } + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public int getRubricsCount() { + if (rubricsBuilder_ == null) { + return rubrics_.size(); + } else { + return rubricsBuilder_.getCount(); + } + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric getRubrics(int index) { + if (rubricsBuilder_ == null) { + return rubrics_.get(index); + } else { + return rubricsBuilder_.getMessage(index); + } + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder setRubrics(int index, com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (rubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricsIsMutable(); + rubrics_.set(index, value); + onChanged(); + } else { + rubricsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder setRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.set(index, builderForValue.build()); + onChanged(); + } else { + rubricsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addRubrics(com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (rubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricsIsMutable(); + rubrics_.add(value); + onChanged(); + } else { + rubricsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addRubrics(int index, com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (rubricsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRubricsIsMutable(); + rubrics_.add(index, value); + onChanged(); + } else { + rubricsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addRubrics(com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.add(builderForValue.build()); + onChanged(); + } else { + rubricsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addRubrics( + int index, com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.add(index, builderForValue.build()); + onChanged(); + } else { + rubricsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder addAllRubrics( + java.lang.Iterable values) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rubrics_); + onChanged(); + } else { + rubricsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder clearRubrics() { + if (rubricsBuilder_ == null) { + rubrics_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + } else { + rubricsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public Builder removeRubrics(int index) { + if (rubricsBuilder_ == null) { + ensureRubricsIsMutable(); + rubrics_.remove(index); + onChanged(); + } else { + rubricsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder getRubricsBuilder(int index) { + return internalGetRubricsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getRubricsOrBuilder(int index) { + if (rubricsBuilder_ == null) { + return rubrics_.get(index); + } else { + return rubricsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public java.util.List + getRubricsOrBuilderList() { + if (rubricsBuilder_ != null) { + return rubricsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rubrics_); + } + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder addRubricsBuilder() { + return internalGetRubricsFieldBuilder() + .addBuilder(com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()); + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder addRubricsBuilder(int index) { + return internalGetRubricsFieldBuilder() + .addBuilder(index, com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()); + } + + /** + * + * + *
            +     * Rubrics that are part of this group.
            +     * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + public java.util.List + getRubricsBuilderList() { + return internalGetRubricsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + internalGetRubricsFieldBuilder() { + if (rubricsBuilder_ == null) { + rubricsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder>( + rubrics_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); + rubrics_ = null; + } + return rubricsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RubricGroup) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RubricGroup) + private static final com.google.cloud.aiplatform.v1beta1.RubricGroup DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RubricGroup(); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricGroup getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RubricGroup 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.RubricGroup getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroupOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroupOrBuilder.java new file mode 100644 index 000000000000..c10b72b84a85 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricGroupOrBuilder.java @@ -0,0 +1,142 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface RubricGroupOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RubricGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Unique identifier for the group.
            +   * 
            + * + * string group_id = 1; + * + * @return The groupId. + */ + java.lang.String getGroupId(); + + /** + * + * + *
            +   * Unique identifier for the group.
            +   * 
            + * + * string group_id = 1; + * + * @return The bytes for groupId. + */ + com.google.protobuf.ByteString getGroupIdBytes(); + + /** + * + * + *
            +   * Human-readable name for the group. This should be unique
            +   * within a given context if used for display or selection.
            +   * Example: "Instruction Following V1", "Content Quality - Summarization
            +   * Task".
            +   * 
            + * + * string display_name = 2; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
            +   * Human-readable name for the group. This should be unique
            +   * within a given context if used for display or selection.
            +   * Example: "Instruction Following V1", "Content Quality - Summarization
            +   * Task".
            +   * 
            + * + * string display_name = 2; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + java.util.List getRubricsList(); + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + com.google.cloud.aiplatform.v1beta1.Rubric getRubrics(int index); + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + int getRubricsCount(); + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + java.util.List + getRubricsOrBuilderList(); + + /** + * + * + *
            +   * Rubrics that are part of this group.
            +   * 
            + * + * repeated .google.cloud.aiplatform.v1beta1.Rubric rubrics = 3; + */ + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getRubricsOrBuilder(int index); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricOrBuilder.java new file mode 100644 index 000000000000..2b1bebe83170 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricOrBuilder.java @@ -0,0 +1,183 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface RubricOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.Rubric) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Unique identifier for the rubric.
            +   * This ID is used to refer to this rubric, e.g., in RubricVerdict.
            +   * 
            + * + * string rubric_id = 1; + * + * @return The rubricId. + */ + java.lang.String getRubricId(); + + /** + * + * + *
            +   * Unique identifier for the rubric.
            +   * This ID is used to refer to this rubric, e.g., in RubricVerdict.
            +   * 
            + * + * string rubric_id = 1; + * + * @return The bytes for rubricId. + */ + com.google.protobuf.ByteString getRubricIdBytes(); + + /** + * + * + *
            +   * Required. The actual testable criteria for the rubric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return Whether the content field is set. + */ + boolean hasContent(); + + /** + * + * + *
            +   * Required. The actual testable criteria for the rubric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + * + * @return The content. + */ + com.google.cloud.aiplatform.v1beta1.Rubric.Content getContent(); + + /** + * + * + *
            +   * Required. The actual testable criteria for the rubric.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric.Content content = 2; + */ + com.google.cloud.aiplatform.v1beta1.Rubric.ContentOrBuilder getContentOrBuilder(); + + /** + * + * + *
            +   * Optional. A type designator for the rubric, which can inform how it's
            +   * evaluated or interpreted by systems or users.
            +   * It's recommended to use consistent, well-defined, upper snake_case strings.
            +   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +   * "INSTRUCTION_ADHERENCE".
            +   * 
            + * + * optional string type = 3; + * + * @return Whether the type field is set. + */ + boolean hasType(); + + /** + * + * + *
            +   * Optional. A type designator for the rubric, which can inform how it's
            +   * evaluated or interpreted by systems or users.
            +   * It's recommended to use consistent, well-defined, upper snake_case strings.
            +   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +   * "INSTRUCTION_ADHERENCE".
            +   * 
            + * + * optional string type = 3; + * + * @return The type. + */ + java.lang.String getType(); + + /** + * + * + *
            +   * Optional. A type designator for the rubric, which can inform how it's
            +   * evaluated or interpreted by systems or users.
            +   * It's recommended to use consistent, well-defined, upper snake_case strings.
            +   * Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT",
            +   * "INSTRUCTION_ADHERENCE".
            +   * 
            + * + * optional string type = 3; + * + * @return The bytes for type. + */ + com.google.protobuf.ByteString getTypeBytes(); + + /** + * + * + *
            +   * Optional. The relative importance of this rubric.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return Whether the importance field is set. + */ + boolean hasImportance(); + + /** + * + * + *
            +   * Optional. The relative importance of this rubric.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The enum numeric value on the wire for importance. + */ + int getImportanceValue(); + + /** + * + * + *
            +   * Optional. The relative importance of this rubric.
            +   * 
            + * + * optional .google.cloud.aiplatform.v1beta1.Rubric.Importance importance = 4; + * + * @return The importance. + */ + com.google.cloud.aiplatform.v1beta1.Rubric.Importance getImportance(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdict.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdict.java new file mode 100644 index 000000000000..d86b6e7e4c7f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdict.java @@ -0,0 +1,1083 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Represents the verdict of an evaluation against a single rubric.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricVerdict} + */ +@com.google.protobuf.Generated +public final class RubricVerdict extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.RubricVerdict) + RubricVerdictOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "RubricVerdict"); + } + + // Use RubricVerdict.newBuilder() to construct. + private RubricVerdict(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private RubricVerdict() { + reasoning_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricVerdict.class, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder.class); + } + + private int bitField0_; + public static final int EVALUATED_RUBRIC_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.Rubric evaluatedRubric_; + + /** + * + * + *
            +   * Required. The full rubric definition that was evaluated.
            +   * Storing this ensures the verdict is self-contained and understandable,
            +   * especially if the original rubric definition changes or was dynamically
            +   * generated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return Whether the evaluatedRubric field is set. + */ + @java.lang.Override + public boolean hasEvaluatedRubric() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The full rubric definition that was evaluated.
            +   * Storing this ensures the verdict is self-contained and understandable,
            +   * especially if the original rubric definition changes or was dynamically
            +   * generated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return The evaluatedRubric. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.Rubric getEvaluatedRubric() { + return evaluatedRubric_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance() + : evaluatedRubric_; + } + + /** + * + * + *
            +   * Required. The full rubric definition that was evaluated.
            +   * Storing this ensures the verdict is self-contained and understandable,
            +   * especially if the original rubric definition changes or was dynamically
            +   * generated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getEvaluatedRubricOrBuilder() { + return evaluatedRubric_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance() + : evaluatedRubric_; + } + + public static final int VERDICT_FIELD_NUMBER = 2; + private boolean verdict_ = false; + + /** + * + * + *
            +   * Required. Outcome of the evaluation against the rubric, represented as a
            +   * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
            +   * 
            + * + * bool verdict = 2; + * + * @return The verdict. + */ + @java.lang.Override + public boolean getVerdict() { + return verdict_; + } + + public static final int REASONING_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object reasoning_ = ""; + + /** + * + * + *
            +   * Optional. Human-readable reasoning or explanation for the verdict.
            +   * This can include specific examples or details from the evaluated content
            +   * that justify the given verdict.
            +   * 
            + * + * optional string reasoning = 3; + * + * @return Whether the reasoning field is set. + */ + @java.lang.Override + public boolean hasReasoning() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Human-readable reasoning or explanation for the verdict.
            +   * This can include specific examples or details from the evaluated content
            +   * that justify the given verdict.
            +   * 
            + * + * optional string reasoning = 3; + * + * @return The reasoning. + */ + @java.lang.Override + public java.lang.String getReasoning() { + java.lang.Object ref = reasoning_; + 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(); + reasoning_ = s; + return s; + } + } + + /** + * + * + *
            +   * Optional. Human-readable reasoning or explanation for the verdict.
            +   * This can include specific examples or details from the evaluated content
            +   * that justify the given verdict.
            +   * 
            + * + * optional string reasoning = 3; + * + * @return The bytes for reasoning. + */ + @java.lang.Override + public com.google.protobuf.ByteString getReasoningBytes() { + java.lang.Object ref = reasoning_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reasoning_ = 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)) { + output.writeMessage(1, getEvaluatedRubric()); + } + if (verdict_ != false) { + output.writeBool(2, verdict_); + } + if (((bitField0_ & 0x00000002) != 0)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, reasoning_); + } + 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, getEvaluatedRubric()); + } + if (verdict_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, verdict_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, reasoning_); + } + 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.RubricVerdict)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.RubricVerdict other = + (com.google.cloud.aiplatform.v1beta1.RubricVerdict) obj; + + if (hasEvaluatedRubric() != other.hasEvaluatedRubric()) return false; + if (hasEvaluatedRubric()) { + if (!getEvaluatedRubric().equals(other.getEvaluatedRubric())) return false; + } + if (getVerdict() != other.getVerdict()) return false; + if (hasReasoning() != other.hasReasoning()) return false; + if (hasReasoning()) { + if (!getReasoning().equals(other.getReasoning())) 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 (hasEvaluatedRubric()) { + hash = (37 * hash) + EVALUATED_RUBRIC_FIELD_NUMBER; + hash = (53 * hash) + getEvaluatedRubric().hashCode(); + } + hash = (37 * hash) + VERDICT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getVerdict()); + if (hasReasoning()) { + hash = (37 * hash) + REASONING_FIELD_NUMBER; + hash = (53 * hash) + getReasoning().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict 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.RubricVerdict parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict 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.RubricVerdict parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict 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.RubricVerdict parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.aiplatform.v1beta1.RubricVerdict prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Represents the verdict of an evaluation against a single rubric.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.RubricVerdict} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.RubricVerdict) + com.google.cloud.aiplatform.v1beta1.RubricVerdictOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.RubricVerdict.class, + com.google.cloud.aiplatform.v1beta1.RubricVerdict.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.RubricVerdict.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetEvaluatedRubricFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + evaluatedRubric_ = null; + if (evaluatedRubricBuilder_ != null) { + evaluatedRubricBuilder_.dispose(); + evaluatedRubricBuilder_ = null; + } + verdict_ = false; + reasoning_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.EvaluationRubricProto + .internal_static_google_cloud_aiplatform_v1beta1_RubricVerdict_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdict getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.RubricVerdict.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdict build() { + com.google.cloud.aiplatform.v1beta1.RubricVerdict result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.RubricVerdict buildPartial() { + com.google.cloud.aiplatform.v1beta1.RubricVerdict result = + new com.google.cloud.aiplatform.v1beta1.RubricVerdict(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.aiplatform.v1beta1.RubricVerdict result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.evaluatedRubric_ = + evaluatedRubricBuilder_ == null ? evaluatedRubric_ : evaluatedRubricBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.verdict_ = verdict_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.reasoning_ = reasoning_; + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.RubricVerdict) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.RubricVerdict) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.aiplatform.v1beta1.RubricVerdict other) { + if (other == com.google.cloud.aiplatform.v1beta1.RubricVerdict.getDefaultInstance()) + return this; + if (other.hasEvaluatedRubric()) { + mergeEvaluatedRubric(other.getEvaluatedRubric()); + } + if (other.getVerdict() != false) { + setVerdict(other.getVerdict()); + } + if (other.hasReasoning()) { + reasoning_ = other.reasoning_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + input.readMessage( + internalGetEvaluatedRubricFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + verdict_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + reasoning_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.cloud.aiplatform.v1beta1.Rubric evaluatedRubric_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + evaluatedRubricBuilder_; + + /** + * + * + *
            +     * Required. The full rubric definition that was evaluated.
            +     * Storing this ensures the verdict is self-contained and understandable,
            +     * especially if the original rubric definition changes or was dynamically
            +     * generated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return Whether the evaluatedRubric field is set. + */ + public boolean hasEvaluatedRubric() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The full rubric definition that was evaluated.
            +     * Storing this ensures the verdict is self-contained and understandable,
            +     * especially if the original rubric definition changes or was dynamically
            +     * generated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return The evaluatedRubric. + */ + public com.google.cloud.aiplatform.v1beta1.Rubric getEvaluatedRubric() { + if (evaluatedRubricBuilder_ == null) { + return evaluatedRubric_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance() + : evaluatedRubric_; + } else { + return evaluatedRubricBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The full rubric definition that was evaluated.
            +     * Storing this ensures the verdict is self-contained and understandable,
            +     * especially if the original rubric definition changes or was dynamically
            +     * generated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public Builder setEvaluatedRubric(com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (evaluatedRubricBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + evaluatedRubric_ = value; + } else { + evaluatedRubricBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full rubric definition that was evaluated.
            +     * Storing this ensures the verdict is self-contained and understandable,
            +     * especially if the original rubric definition changes or was dynamically
            +     * generated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public Builder setEvaluatedRubric( + com.google.cloud.aiplatform.v1beta1.Rubric.Builder builderForValue) { + if (evaluatedRubricBuilder_ == null) { + evaluatedRubric_ = builderForValue.build(); + } else { + evaluatedRubricBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full rubric definition that was evaluated.
            +     * Storing this ensures the verdict is self-contained and understandable,
            +     * especially if the original rubric definition changes or was dynamically
            +     * generated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public Builder mergeEvaluatedRubric(com.google.cloud.aiplatform.v1beta1.Rubric value) { + if (evaluatedRubricBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && evaluatedRubric_ != null + && evaluatedRubric_ + != com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance()) { + getEvaluatedRubricBuilder().mergeFrom(value); + } else { + evaluatedRubric_ = value; + } + } else { + evaluatedRubricBuilder_.mergeFrom(value); + } + if (evaluatedRubric_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The full rubric definition that was evaluated.
            +     * Storing this ensures the verdict is self-contained and understandable,
            +     * especially if the original rubric definition changes or was dynamically
            +     * generated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public Builder clearEvaluatedRubric() { + bitField0_ = (bitField0_ & ~0x00000001); + evaluatedRubric_ = null; + if (evaluatedRubricBuilder_ != null) { + evaluatedRubricBuilder_.dispose(); + evaluatedRubricBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The full rubric definition that was evaluated.
            +     * Storing this ensures the verdict is self-contained and understandable,
            +     * especially if the original rubric definition changes or was dynamically
            +     * generated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public com.google.cloud.aiplatform.v1beta1.Rubric.Builder getEvaluatedRubricBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetEvaluatedRubricFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The full rubric definition that was evaluated.
            +     * Storing this ensures the verdict is self-contained and understandable,
            +     * especially if the original rubric definition changes or was dynamically
            +     * generated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + public com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getEvaluatedRubricOrBuilder() { + if (evaluatedRubricBuilder_ != null) { + return evaluatedRubricBuilder_.getMessageOrBuilder(); + } else { + return evaluatedRubric_ == null + ? com.google.cloud.aiplatform.v1beta1.Rubric.getDefaultInstance() + : evaluatedRubric_; + } + } + + /** + * + * + *
            +     * Required. The full rubric definition that was evaluated.
            +     * Storing this ensures the verdict is self-contained and understandable,
            +     * especially if the original rubric definition changes or was dynamically
            +     * generated.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder> + internalGetEvaluatedRubricFieldBuilder() { + if (evaluatedRubricBuilder_ == null) { + evaluatedRubricBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.Rubric, + com.google.cloud.aiplatform.v1beta1.Rubric.Builder, + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder>( + getEvaluatedRubric(), getParentForChildren(), isClean()); + evaluatedRubric_ = null; + } + return evaluatedRubricBuilder_; + } + + private boolean verdict_; + + /** + * + * + *
            +     * Required. Outcome of the evaluation against the rubric, represented as a
            +     * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
            +     * 
            + * + * bool verdict = 2; + * + * @return The verdict. + */ + @java.lang.Override + public boolean getVerdict() { + return verdict_; + } + + /** + * + * + *
            +     * Required. Outcome of the evaluation against the rubric, represented as a
            +     * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
            +     * 
            + * + * bool verdict = 2; + * + * @param value The verdict to set. + * @return This builder for chaining. + */ + public Builder setVerdict(boolean value) { + + verdict_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. Outcome of the evaluation against the rubric, represented as a
            +     * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
            +     * 
            + * + * bool verdict = 2; + * + * @return This builder for chaining. + */ + public Builder clearVerdict() { + bitField0_ = (bitField0_ & ~0x00000002); + verdict_ = false; + onChanged(); + return this; + } + + private java.lang.Object reasoning_ = ""; + + /** + * + * + *
            +     * Optional. Human-readable reasoning or explanation for the verdict.
            +     * This can include specific examples or details from the evaluated content
            +     * that justify the given verdict.
            +     * 
            + * + * optional string reasoning = 3; + * + * @return Whether the reasoning field is set. + */ + public boolean hasReasoning() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
            +     * Optional. Human-readable reasoning or explanation for the verdict.
            +     * This can include specific examples or details from the evaluated content
            +     * that justify the given verdict.
            +     * 
            + * + * optional string reasoning = 3; + * + * @return The reasoning. + */ + public java.lang.String getReasoning() { + java.lang.Object ref = reasoning_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + reasoning_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Optional. Human-readable reasoning or explanation for the verdict.
            +     * This can include specific examples or details from the evaluated content
            +     * that justify the given verdict.
            +     * 
            + * + * optional string reasoning = 3; + * + * @return The bytes for reasoning. + */ + public com.google.protobuf.ByteString getReasoningBytes() { + java.lang.Object ref = reasoning_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + reasoning_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Optional. Human-readable reasoning or explanation for the verdict.
            +     * This can include specific examples or details from the evaluated content
            +     * that justify the given verdict.
            +     * 
            + * + * optional string reasoning = 3; + * + * @param value The reasoning to set. + * @return This builder for chaining. + */ + public Builder setReasoning(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + reasoning_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Human-readable reasoning or explanation for the verdict.
            +     * This can include specific examples or details from the evaluated content
            +     * that justify the given verdict.
            +     * 
            + * + * optional string reasoning = 3; + * + * @return This builder for chaining. + */ + public Builder clearReasoning() { + reasoning_ = getDefaultInstance().getReasoning(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Human-readable reasoning or explanation for the verdict.
            +     * This can include specific examples or details from the evaluated content
            +     * that justify the given verdict.
            +     * 
            + * + * optional string reasoning = 3; + * + * @param value The bytes for reasoning to set. + * @return This builder for chaining. + */ + public Builder setReasoningBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + reasoning_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.RubricVerdict) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.RubricVerdict) + private static final com.google.cloud.aiplatform.v1beta1.RubricVerdict DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.RubricVerdict(); + } + + public static com.google.cloud.aiplatform.v1beta1.RubricVerdict getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public RubricVerdict 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.RubricVerdict getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdictOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdictOrBuilder.java new file mode 100644 index 000000000000..a7baa6c56407 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/RubricVerdictOrBuilder.java @@ -0,0 +1,133 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/evaluation_rubric.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface RubricVerdictOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.RubricVerdict) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The full rubric definition that was evaluated.
            +   * Storing this ensures the verdict is self-contained and understandable,
            +   * especially if the original rubric definition changes or was dynamically
            +   * generated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return Whether the evaluatedRubric field is set. + */ + boolean hasEvaluatedRubric(); + + /** + * + * + *
            +   * Required. The full rubric definition that was evaluated.
            +   * Storing this ensures the verdict is self-contained and understandable,
            +   * especially if the original rubric definition changes or was dynamically
            +   * generated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + * + * @return The evaluatedRubric. + */ + com.google.cloud.aiplatform.v1beta1.Rubric getEvaluatedRubric(); + + /** + * + * + *
            +   * Required. The full rubric definition that was evaluated.
            +   * Storing this ensures the verdict is self-contained and understandable,
            +   * especially if the original rubric definition changes or was dynamically
            +   * generated.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.Rubric evaluated_rubric = 1; + */ + com.google.cloud.aiplatform.v1beta1.RubricOrBuilder getEvaluatedRubricOrBuilder(); + + /** + * + * + *
            +   * Required. Outcome of the evaluation against the rubric, represented as a
            +   * boolean. `true` indicates a "Pass", `false` indicates a "Fail".
            +   * 
            + * + * bool verdict = 2; + * + * @return The verdict. + */ + boolean getVerdict(); + + /** + * + * + *
            +   * Optional. Human-readable reasoning or explanation for the verdict.
            +   * This can include specific examples or details from the evaluated content
            +   * that justify the given verdict.
            +   * 
            + * + * optional string reasoning = 3; + * + * @return Whether the reasoning field is set. + */ + boolean hasReasoning(); + + /** + * + * + *
            +   * Optional. Human-readable reasoning or explanation for the verdict.
            +   * This can include specific examples or details from the evaluated content
            +   * that justify the given verdict.
            +   * 
            + * + * optional string reasoning = 3; + * + * @return The reasoning. + */ + java.lang.String getReasoning(); + + /** + * + * + *
            +   * Optional. Human-readable reasoning or explanation for the verdict.
            +   * This can include specific examples or details from the evaluated content
            +   * that justify the given verdict.
            +   * 
            + * + * optional string reasoning = 3; + * + * @return The bytes for reasoning. + */ + com.google.protobuf.ByteString getReasoningBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..87a41a38fa69 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Metadata for the SuspendOnlineEvaluator operation.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class SuspendOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + SuspendOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SuspendOnlineEvaluatorOperationMetadata"); + } + + // Use SuspendOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private SuspendOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SuspendOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + 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.SuspendOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + 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.SuspendOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + 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.SuspendOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata for the SuspendOnlineEvaluator operation.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @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.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + .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( + internalGetGenericMetadataFieldBuilder().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.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
            +     * Common part of operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuspendOnlineEvaluatorOperationMetadata 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.SuspendOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..441a8064325d --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface SuspendOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
            +   * Common part of operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..f36ff5e22cd6 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequest.java @@ -0,0 +1,627 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Request message for SuspendOnlineEvaluator.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class SuspendOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + SuspendOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SuspendOnlineEvaluatorRequest"); + } + + // Use SuspendOnlineEvaluatorRequest.newBuilder() to construct. + private SuspendOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SuspendOnlineEvaluatorRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to suspend.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to suspend.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.SuspendOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest 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.SuspendOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest 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.SuspendOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest 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.SuspendOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for SuspendOnlineEvaluator.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.Builder.class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_SuspendOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to suspend.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to suspend.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to suspend.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to suspend.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The name of the OnlineEvaluator to suspend.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SuspendOnlineEvaluatorRequest 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.SuspendOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..be976ffeaecc --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/SuspendOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,60 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface SuspendOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to suspend.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
            +   * Required. The name of the OnlineEvaluator to suspend.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadata.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadata.java new file mode 100644 index 000000000000..7f1dcc00885a --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadata.java @@ -0,0 +1,733 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Metadata for the UpdateOnlineEvaluator operation.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata} + */ +@com.google.protobuf.Generated +public final class UpdateOnlineEvaluatorOperationMetadata + extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + UpdateOnlineEvaluatorOperationMetadataOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateOnlineEvaluatorOperationMetadata"); + } + + // Use UpdateOnlineEvaluatorOperationMetadata.newBuilder() to construct. + private UpdateOnlineEvaluatorOperationMetadata( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateOnlineEvaluatorOperationMetadata() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + private int bitField0_; + public static final int GENERIC_METADATA_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata genericMetadata_; + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + @java.lang.Override + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(1, getGenericMetadata()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getGenericMetadata()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj + instanceof com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata other = + (com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) obj; + + if (hasGenericMetadata() != other.hasGenericMetadata()) return false; + if (hasGenericMetadata()) { + if (!getGenericMetadata().equals(other.getGenericMetadata())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + if (hasGenericMetadata()) { + hash = (37 * hash) + GENERIC_METADATA_FIELD_NUMBER; + hash = (53 * hash) + getGenericMetadata().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + 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.UpdateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + 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.UpdateOnlineEvaluatorOperationMetadata + parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + 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.UpdateOnlineEvaluatorOperationMetadata + parseFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Metadata for the UpdateOnlineEvaluator operation.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.class, + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.Builder + .class); + } + + // Construct using + // com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetGenericMetadataFieldBuilder(); + } + } + + @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.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorOperationMetadata_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + .getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata build() { + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata result = + buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata result = + new com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata 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 mergeFrom(com.google.protobuf.Message other) { + if (other + instanceof com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) { + return mergeFrom( + (com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + .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( + internalGetGenericMetadataFieldBuilder().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.GenericOperationMetadata genericMetadata_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + genericMetadataBuilder_; + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + public boolean hasGenericMetadata() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata() { + if (genericMetadataBuilder_ == null) { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } else { + return genericMetadataBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + genericMetadata_ = value; + } else { + genericMetadataBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder setGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder builderForValue) { + if (genericMetadataBuilder_ == null) { + genericMetadata_ = builderForValue.build(); + } else { + genericMetadataBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder mergeGenericMetadata( + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata value) { + if (genericMetadataBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && genericMetadata_ != null + && genericMetadata_ + != com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata + .getDefaultInstance()) { + getGenericMetadataBuilder().mergeFrom(value); + } else { + genericMetadata_ = value; + } + } else { + genericMetadataBuilder_.mergeFrom(value); + } + if (genericMetadata_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public Builder clearGenericMetadata() { + bitField0_ = (bitField0_ & ~0x00000001); + genericMetadata_ = null; + if (genericMetadataBuilder_ != null) { + genericMetadataBuilder_.dispose(); + genericMetadataBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder + getGenericMetadataBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetGenericMetadataFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + public com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder() { + if (genericMetadataBuilder_ != null) { + return genericMetadataBuilder_.getMessageOrBuilder(); + } else { + return genericMetadata_ == null + ? com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.getDefaultInstance() + : genericMetadata_; + } + } + + /** + * + * + *
            +     * Generic operation metadata.
            +     * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder> + internalGetGenericMetadataFieldBuilder() { + if (genericMetadataBuilder_ == null) { + genericMetadataBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata.Builder, + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder>( + getGenericMetadata(), getParentForChildren(), isClean()); + genericMetadata_ = null; + } + return genericMetadataBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + private static final com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = + new com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOnlineEvaluatorOperationMetadata 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.UpdateOnlineEvaluatorOperationMetadata + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadataOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadataOrBuilder.java new file mode 100644 index 000000000000..92b03a6d22a2 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorOperationMetadataOrBuilder.java @@ -0,0 +1,66 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface UpdateOnlineEvaluatorOperationMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return Whether the genericMetadata field is set. + */ + boolean hasGenericMetadata(); + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + * + * @return The genericMetadata. + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadata getGenericMetadata(); + + /** + * + * + *
            +   * Generic operation metadata.
            +   * 
            + * + * .google.cloud.aiplatform.v1beta1.GenericOperationMetadata generic_metadata = 1; + */ + com.google.cloud.aiplatform.v1beta1.GenericOperationMetadataOrBuilder + getGenericMetadataOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequest.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequest.java new file mode 100644 index 000000000000..480e7b29f01f --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequest.java @@ -0,0 +1,1048 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +/** + * + * + *
            + * Request message for UpdateOnlineEvaluator.
            + * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest} + */ +@com.google.protobuf.Generated +public final class UpdateOnlineEvaluatorRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + UpdateOnlineEvaluatorRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateOnlineEvaluatorRequest"); + } + + // Use UpdateOnlineEvaluatorRequest.newBuilder() to construct. + private UpdateOnlineEvaluatorRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateOnlineEvaluatorRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.Builder.class); + } + + private int bitField0_; + public static final int ONLINE_EVALUATOR_FIELD_NUMBER = 1; + private com.google.cloud.aiplatform.v1beta1.OnlineEvaluator onlineEvaluator_; + + /** + * + * + *
            +   * Required. The OnlineEvaluator to update.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + @java.lang.Override + public boolean hasOnlineEvaluator() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +   * Required. The OnlineEvaluator to update.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator() { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + + /** + * + * + *
            +   * Required. The OnlineEvaluator to update.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorOrBuilder() { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + + public static final int UPDATE_MASK_FIELD_NUMBER = 2; + private com.google.protobuf.FieldMask updateMask_; + + /** + * + * + *
            +   * Optional. Field mask is used to control which fields get updated. If the
            +   * mask is not present, all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + @java.lang.Override + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +   * Optional. Field mask is used to control which fields get updated. If the
            +   * mask is not present, all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + @java.lang.Override + public com.google.protobuf.FieldMask getUpdateMask() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + /** + * + * + *
            +   * Optional. Field mask is used to control which fields get updated. If the
            +   * mask is not present, all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; + } + + 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, getOnlineEvaluator()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(2, getUpdateMask()); + } + 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, getOnlineEvaluator()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getUpdateMask()); + } + 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.UpdateOnlineEvaluatorRequest)) { + return super.equals(obj); + } + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest other = + (com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) obj; + + if (hasOnlineEvaluator() != other.hasOnlineEvaluator()) return false; + if (hasOnlineEvaluator()) { + if (!getOnlineEvaluator().equals(other.getOnlineEvaluator())) return false; + } + if (hasUpdateMask() != other.hasUpdateMask()) return false; + if (hasUpdateMask()) { + if (!getUpdateMask().equals(other.getUpdateMask())) 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 (hasOnlineEvaluator()) { + hash = (37 * hash) + ONLINE_EVALUATOR_FIELD_NUMBER; + hash = (53 * hash) + getOnlineEvaluator().hashCode(); + } + if (hasUpdateMask()) { + hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; + hash = (53 * hash) + getUpdateMask().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest 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.UpdateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest 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.UpdateOnlineEvaluatorRequest parseFrom( + byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest 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.UpdateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
            +   * Request message for UpdateOnlineEvaluator.
            +   * 
            + * + * Protobuf type {@code google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.class, + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.Builder.class); + } + + // Construct using com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOnlineEvaluatorFieldBuilder(); + internalGetUpdateMaskFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + onlineEvaluator_ = null; + if (onlineEvaluatorBuilder_ != null) { + onlineEvaluatorBuilder_.dispose(); + onlineEvaluatorBuilder_ = null; + } + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceProto + .internal_static_google_cloud_aiplatform_v1beta1_UpdateOnlineEvaluatorRequest_descriptor; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest build() { + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest buildPartial() { + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest result = + new com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.onlineEvaluator_ = + onlineEvaluatorBuilder_ == null ? onlineEvaluator_ : onlineEvaluatorBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.updateMask_ = updateMaskBuilder_ == null ? updateMask_ : updateMaskBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) { + return mergeFrom((com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom( + com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest other) { + if (other + == com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest.getDefaultInstance()) + return this; + if (other.hasOnlineEvaluator()) { + mergeOnlineEvaluator(other.getOnlineEvaluator()); + } + if (other.hasUpdateMask()) { + mergeUpdateMask(other.getUpdateMask()); + } + 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( + internalGetOnlineEvaluatorFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + internalGetUpdateMaskFieldBuilder().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.OnlineEvaluator onlineEvaluator_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + onlineEvaluatorBuilder_; + + /** + * + * + *
            +     * Required. The OnlineEvaluator to update.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + public boolean hasOnlineEvaluator() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to update.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator() { + if (onlineEvaluatorBuilder_ == null) { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } else { + return onlineEvaluatorBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to update.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + onlineEvaluator_ = value; + } else { + onlineEvaluatorBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to update.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOnlineEvaluator( + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder builderForValue) { + if (onlineEvaluatorBuilder_ == null) { + onlineEvaluator_ = builderForValue.build(); + } else { + onlineEvaluatorBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to update.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOnlineEvaluator(com.google.cloud.aiplatform.v1beta1.OnlineEvaluator value) { + if (onlineEvaluatorBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && onlineEvaluator_ != null + && onlineEvaluator_ + != com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance()) { + getOnlineEvaluatorBuilder().mergeFrom(value); + } else { + onlineEvaluator_ = value; + } + } else { + onlineEvaluatorBuilder_.mergeFrom(value); + } + if (onlineEvaluator_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to update.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOnlineEvaluator() { + bitField0_ = (bitField0_ & ~0x00000001); + onlineEvaluator_ = null; + if (onlineEvaluatorBuilder_ != null) { + onlineEvaluatorBuilder_.dispose(); + onlineEvaluatorBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to update.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder getOnlineEvaluatorBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetOnlineEvaluatorFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to update.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder + getOnlineEvaluatorOrBuilder() { + if (onlineEvaluatorBuilder_ != null) { + return onlineEvaluatorBuilder_.getMessageOrBuilder(); + } else { + return onlineEvaluator_ == null + ? com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.getDefaultInstance() + : onlineEvaluator_; + } + } + + /** + * + * + *
            +     * Required. The OnlineEvaluator to update.
            +     * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +     * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder> + internalGetOnlineEvaluatorFieldBuilder() { + if (onlineEvaluatorBuilder_ == null) { + onlineEvaluatorBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator.Builder, + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder>( + getOnlineEvaluator(), getParentForChildren(), isClean()); + onlineEvaluator_ = null; + } + return onlineEvaluatorBuilder_; + } + + private com.google.protobuf.FieldMask updateMask_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + updateMaskBuilder_; + + /** + * + * + *
            +     * Optional. Field mask is used to control which fields get updated. If the
            +     * mask is not present, all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + public boolean hasUpdateMask() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
            +     * Optional. Field mask is used to control which fields get updated. If the
            +     * mask is not present, all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + public com.google.protobuf.FieldMask getUpdateMask() { + if (updateMaskBuilder_ == null) { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } else { + return updateMaskBuilder_.getMessage(); + } + } + + /** + * + * + *
            +     * Optional. Field mask is used to control which fields get updated. If the
            +     * mask is not present, all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateMask_ = value; + } else { + updateMaskBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to control which fields get updated. If the
            +     * mask is not present, all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setUpdateMask(com.google.protobuf.FieldMask.Builder builderForValue) { + if (updateMaskBuilder_ == null) { + updateMask_ = builderForValue.build(); + } else { + updateMaskBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to control which fields get updated. If the
            +     * mask is not present, all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { + if (updateMaskBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && updateMask_ != null + && updateMask_ != com.google.protobuf.FieldMask.getDefaultInstance()) { + getUpdateMaskBuilder().mergeFrom(value); + } else { + updateMask_ = value; + } + } else { + updateMaskBuilder_.mergeFrom(value); + } + if (updateMask_ != null) { + bitField0_ |= 0x00000002; + onChanged(); + } + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to control which fields get updated. If the
            +     * mask is not present, all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearUpdateMask() { + bitField0_ = (bitField0_ & ~0x00000002); + updateMask_ = null; + if (updateMaskBuilder_ != null) { + updateMaskBuilder_.dispose(); + updateMaskBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
            +     * Optional. Field mask is used to control which fields get updated. If the
            +     * mask is not present, all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return internalGetUpdateMaskFieldBuilder().getBuilder(); + } + + /** + * + * + *
            +     * Optional. Field mask is used to control which fields get updated. If the
            +     * mask is not present, all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { + if (updateMaskBuilder_ != null) { + return updateMaskBuilder_.getMessageOrBuilder(); + } else { + return updateMask_ == null + ? com.google.protobuf.FieldMask.getDefaultInstance() + : updateMask_; + } + } + + /** + * + * + *
            +     * Optional. Field mask is used to control which fields get updated. If the
            +     * mask is not present, all fields will be updated.
            +     * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder> + internalGetUpdateMaskFieldBuilder() { + if (updateMaskBuilder_ == null) { + updateMaskBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.FieldMask, + com.google.protobuf.FieldMask.Builder, + com.google.protobuf.FieldMaskOrBuilder>( + getUpdateMask(), getParentForChildren(), isClean()); + updateMask_ = null; + } + return updateMaskBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + } + + // @@protoc_insertion_point(class_scope:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + private static final com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest + DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest(); + } + + public static com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest + getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateOnlineEvaluatorRequest 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.UpdateOnlineEvaluatorRequest + getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequestOrBuilder.java b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequestOrBuilder.java new file mode 100644 index 000000000000..8f8d1a67f7cd --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/java/com/google/cloud/aiplatform/v1beta1/UpdateOnlineEvaluatorRequestOrBuilder.java @@ -0,0 +1,117 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/aiplatform/v1beta1/online_evaluator_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.aiplatform.v1beta1; + +@com.google.protobuf.Generated +public interface UpdateOnlineEvaluatorRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
            +   * Required. The OnlineEvaluator to update.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the onlineEvaluator field is set. + */ + boolean hasOnlineEvaluator(); + + /** + * + * + *
            +   * Required. The OnlineEvaluator to update.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The onlineEvaluator. + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluator getOnlineEvaluator(); + + /** + * + * + *
            +   * Required. The OnlineEvaluator to update.
            +   * Format: projects/{project}/locations/{location}/onlineEvaluators/{id}.
            +   * 
            + * + * + * .google.cloud.aiplatform.v1beta1.OnlineEvaluator online_evaluator = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorOrBuilder getOnlineEvaluatorOrBuilder(); + + /** + * + * + *
            +   * Optional. Field mask is used to control which fields get updated. If the
            +   * mask is not present, all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the updateMask field is set. + */ + boolean hasUpdateMask(); + + /** + * + * + *
            +   * Optional. Field mask is used to control which fields get updated. If the
            +   * mask is not present, all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The updateMask. + */ + com.google.protobuf.FieldMask getUpdateMask(); + + /** + * + * + *
            +   * Optional. Field mask is used to control which fields get updated. If the
            +   * mask is not present, all fields will be updated.
            +   * 
            + * + * .google.protobuf.FieldMask update_mask = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto new file mode 100644 index 000000000000..94ca153b1604 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto @@ -0,0 +1,112 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/cloud/aiplatform/v1beta1/content.proto"; +import "google/cloud/aiplatform/v1beta1/tool.proto"; +import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "EvaluationAgentDataProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Represents data specific to multi-turn agent evaluations. +message AgentData { + // Optional. A map containing the static configurations for each agent in the + // system. Key: agent_id (matches the `author` field in events). Value: The + // static configuration of the agent. + map agents = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A chronological list of conversation turns. + // Each turn represents a logical execution cycle (e.g., User Input -> Agent + // Response). + repeated ConversationTurn turns = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents configuration for an Agent. +message AgentConfig { + // Required. Unique identifier of the agent. + // This ID is used to refer to this agent, e.g., in AgentEvent.author, or in + // the `sub_agents` field. It must be unique within the `agents` map. + optional string agent_id = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The type or class of the agent (e.g., "LlmAgent", "RouterAgent", + // "ToolUseAgent"). Useful for the autorater to understand the expected + // behavior of the agent. + string agent_type = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A high-level description of the agent's role and + // responsibilities. Critical for evaluating if the agent is routing tasks + // correctly. + string description = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Provides instructions for the LLM model, guiding the agent's + // behavior. Can be static or dynamic. Dynamic instructions can contain + // placeholders like {variable_name} that will be resolved at runtime using + // the `AgentEvent.state_delta` field. + string instruction = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of tools available to this agent. + repeated Tool tools = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of valid agent IDs that this agent can delegate to. + // This defines the directed edges in the multi-agent system graph topology. + repeated string sub_agents = 6 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a single turn/invocation in the conversation. +message ConversationTurn { + // Required. The 0-based index of the turn in the conversation sequence. + optional int32 turn_index = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. A unique identifier for the turn. + // Useful for referencing specific turns across systems. + string turn_id = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of events that occurred during this turn. + repeated AgentEvent events = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Represents a single event in the execution trace. +message AgentEvent { + // Required. The ID of the agent or entity that generated this event. + // Use "user" to denote events generated by the end-user. + optional string author = 1 [(google.api.field_behavior) = REQUIRED]; + + // Required. The content of the event (e.g., text response, tool call, tool + // response). + optional Content content = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The timestamp when the event occurred. + google.protobuf.Timestamp event_time = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The change in the session state caused by this event. This is a + // key-value map of fields that were modified or added by the event. + google.protobuf.Struct state_delta = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of tools that were active/available to the agent at the + // time of this event. This overrides the `AgentConfig.tools` if set. + repeated Tool active_tools = 5 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_rubric.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_rubric.proto new file mode 100644 index 000000000000..487b071ad278 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/evaluation_rubric.proto @@ -0,0 +1,110 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option java_multiple_files = true; +option java_outer_classname = "EvaluationRubricProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// Message representing a single testable criterion for evaluation. +// One input prompt could have multiple rubrics. +message Rubric { + // Content of the rubric, defining the testable criteria. + message Content { + // Defines criteria based on a specific property. + message Property { + // Description of the property being evaluated. + // Example: "The model's response is grammatically correct." + string description = 1; + } + + oneof content_type { + // Evaluation criteria based on a specific property. + Property property = 1; + } + } + + // Importance level of the rubric. + enum Importance { + // Importance is not specified. + IMPORTANCE_UNSPECIFIED = 0; + + // High importance. + HIGH = 1; + + // Medium importance. + MEDIUM = 2; + + // Low importance. + LOW = 3; + } + + // Unique identifier for the rubric. + // This ID is used to refer to this rubric, e.g., in RubricVerdict. + string rubric_id = 1; + + // Required. The actual testable criteria for the rubric. + Content content = 2; + + // Optional. A type designator for the rubric, which can inform how it's + // evaluated or interpreted by systems or users. + // It's recommended to use consistent, well-defined, upper snake_case strings. + // Examples: "SUMMARIZATION_QUALITY", "SAFETY_HARMFUL_CONTENT", + // "INSTRUCTION_ADHERENCE". + optional string type = 3; + + // Optional. The relative importance of this rubric. + optional Importance importance = 4; +} + +// A group of rubrics, used for grouping rubrics based on a metric or a version. +message RubricGroup { + // Unique identifier for the group. + string group_id = 1; + + // Human-readable name for the group. This should be unique + // within a given context if used for display or selection. + // Example: "Instruction Following V1", "Content Quality - Summarization + // Task". + string display_name = 2; + + // Rubrics that are part of this group. + repeated Rubric rubrics = 3; +} + +// Represents the verdict of an evaluation against a single rubric. +message RubricVerdict { + // Required. The full rubric definition that was evaluated. + // Storing this ensures the verdict is self-contained and understandable, + // especially if the original rubric definition changes or was dynamically + // generated. + Rubric evaluated_rubric = 1; + + // Required. Outcome of the evaluation against the rubric, represented as a + // boolean. `true` indicates a "Pass", `false` indicates a "Fail". + bool verdict = 2; + + // Optional. Human-readable reasoning or explanation for the verdict. + // This can include specific examples or details from the evaluated content + // that justify the given verdict. + optional string reasoning = 3; +} 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 f015bc4194bf..fc4d6b189f17 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 @@ -21,10 +21,14 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/aiplatform/v1beta1/content.proto"; +import "google/cloud/aiplatform/v1beta1/evaluation_agent_data.proto"; +import "google/cloud/aiplatform/v1beta1/evaluation_rubric.proto"; import "google/cloud/aiplatform/v1beta1/io.proto"; import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/cloud/aiplatform/v1beta1/tool.proto"; import "google/longrunning/operations.proto"; import "google/protobuf/struct.proto"; +import "google/protobuf/timestamp.proto"; import "google/rpc/status.proto"; option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; @@ -64,6 +68,20 @@ service EvaluationService { metadata_type: "EvaluateDatasetOperationMetadata" }; } + + // Generates rubrics for a given prompt. + // A rubric represents a single testable criterion for evaluation. + // One input prompt could have multiple rubrics + // This RPC allows users to get suggested rubrics based on provided prompt, + // which can then be reviewed and used for subsequent evaluations. + rpc GenerateInstanceRubrics(GenerateInstanceRubricsRequest) + returns (GenerateInstanceRubricsResponse) { + option (google.api.http) = { + post: "/v1beta1/{location=projects/*/locations/*}:generateInstanceRubrics" + body: "*" + additional_bindings { post: "/v1beta1:generateInstanceRubrics" body: "*" } + }; + } } // Pairwise prediction autorater preference. @@ -81,69 +99,117 @@ enum PairwiseChoice { TIE = 3; } -// Operation metadata for Dataset Evaluation. -message EvaluateDatasetOperationMetadata { - // Generic operation metadata. - GenericOperationMetadata generic_metadata = 1; -} +// Request message for EvaluationService.EvaluateInstances. +message EvaluateInstancesRequest { + // Instances and specs for evaluation + oneof metric_inputs { + // Auto metric instances. + // Instances and metric spec for exact match metric. + ExactMatchInput exact_match_input = 2; -// The results from an evaluation run performed by the EvaluationService. -message EvaluateDatasetResponse { - // Output only. Aggregation statistics derived from results of - // EvaluationService. - AggregationOutput aggregation_output = 1 - [(google.api.field_behavior) = OUTPUT_ONLY]; + // Instances and metric spec for bleu metric. + BleuInput bleu_input = 3; - // Output only. Output info for EvaluationService. - OutputInfo output_info = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; -} + // Instances and metric spec for rouge metric. + RougeInput rouge_input = 4; -// Describes the info for output of EvaluationService. -message OutputInfo { - // The output location into which evaluation output is written. - oneof output_location { - // Output only. The full path of the Cloud Storage directory created, into - // which the evaluation results and aggregation results are written. - string gcs_output_directory = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; - } -} + // LLM-based metric instance. + // General text generation metrics, applicable to other categories. + // Input for fluency metric. + FluencyInput fluency_input = 5; -// The aggregation result for the entire dataset and all metrics. -message AggregationOutput { - // The dataset used for evaluation & aggregation. - EvaluationDataset dataset = 1; + // Input for coherence metric. + CoherenceInput coherence_input = 6; - // One AggregationResult per metric. - repeated AggregationResult aggregation_results = 2; -} + // Input for safety metric. + SafetyInput safety_input = 8; -// The aggregation result for a single metric. -message AggregationResult { - // The aggregation result. - oneof aggregation_result { - // Result for pointwise metric. - PointwiseMetricResult pointwise_metric_result = 5; + // Input for groundedness metric. + GroundednessInput groundedness_input = 9; - // Result for pairwise metric. - PairwiseMetricResult pairwise_metric_result = 6; + // Input for fulfillment metric. + FulfillmentInput fulfillment_input = 12; - // Results for exact match metric. - ExactMatchMetricValue exact_match_metric_value = 7; + // Input for summarization quality metric. + SummarizationQualityInput summarization_quality_input = 7; - // Results for bleu metric. - BleuMetricValue bleu_metric_value = 8; + // Input for pairwise summarization quality metric. + PairwiseSummarizationQualityInput pairwise_summarization_quality_input = 23; - // Results for rouge metric. - RougeMetricValue rouge_metric_value = 9; - } + // Input for summarization helpfulness metric. + SummarizationHelpfulnessInput summarization_helpfulness_input = 14; - // Aggregation metric. - Metric.AggregationMetric aggregation_metric = 4; -} + // Input for summarization verbosity metric. + SummarizationVerbosityInput summarization_verbosity_input = 15; -// Request message for EvaluationService.EvaluateDataset. -message EvaluateDatasetRequest { - // Required. The resource name of the Location to evaluate the dataset. + // Input for question answering quality metric. + QuestionAnsweringQualityInput question_answering_quality_input = 10; + + // Input for pairwise question answering quality metric. + PairwiseQuestionAnsweringQualityInput + pairwise_question_answering_quality_input = 24; + + // Input for question answering relevance metric. + QuestionAnsweringRelevanceInput question_answering_relevance_input = 16; + + // Input for question answering helpfulness + // metric. + QuestionAnsweringHelpfulnessInput question_answering_helpfulness_input = 17; + + // Input for question answering correctness + // metric. + QuestionAnsweringCorrectnessInput question_answering_correctness_input = 18; + + // Input for pointwise metric. + PointwiseMetricInput pointwise_metric_input = 28; + + // Input for pairwise metric. + PairwiseMetricInput pairwise_metric_input = 29; + + // Tool call metric instances. + // Input for tool call valid metric. + ToolCallValidInput tool_call_valid_input = 19; + + // Input for tool name match metric. + ToolNameMatchInput tool_name_match_input = 20; + + // Input for tool parameter key match metric. + ToolParameterKeyMatchInput tool_parameter_key_match_input = 21; + + // Input for tool parameter key value match metric. + ToolParameterKVMatchInput tool_parameter_kv_match_input = 22; + + // Translation metrics. + // Input for Comet metric. + CometInput comet_input = 31; + + // Input for Metricx metric. + MetricxInput metricx_input = 32; + + // 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; + + // Rubric Based Instruction Following metric. + RubricBasedInstructionFollowingInput + rubric_based_instruction_following_input = 40; + } + + // Required. The resource name of the Location to evaluate the instances. // Format: `projects/{project}/locations/{location}` string location = 1 [ (google.api.field_behavior) = REQUIRED, @@ -152,28 +218,23 @@ message EvaluateDatasetRequest { } ]; - // Required. The dataset used for evaluation. - EvaluationDataset dataset = 2 [(google.api.field_behavior) = REQUIRED]; + // The metrics used for evaluation. + // Currently, we only support evaluating a single metric. If multiple metrics + // are provided, only the first one will be evaluated. + repeated Metric metrics = 49; - // Required. The metrics used for evaluation. - repeated Metric metrics = 3 [(google.api.field_behavior) = REQUIRED]; - - // Required. Config for evaluation output. - OutputConfig output_config = 4 [(google.api.field_behavior) = REQUIRED]; + // Optional. The metrics (either inline or registered) used for evaluation. + // Currently, we only support evaluating a single metric. If multiple metrics + // are provided, only the first one will be evaluated. + repeated MetricSource metric_sources = 52 + [(google.api.field_behavior) = OPTIONAL]; - // Optional. Autorater config used for evaluation. Currently only publisher - // Gemini models are supported. Format: - // `projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}.` - AutoraterConfig autorater_config = 5 [(google.api.field_behavior) = OPTIONAL]; -} + // The instance to be evaluated. + EvaluationInstance instance = 50; -// Config for evaluation output. -message OutputConfig { - // The destination for evaluation output. - oneof destination { - // Cloud storage destination for evaluation output. - GcsDestination gcs_destination = 1; - } + // Optional. Autorater config used for evaluation. + AutoraterConfig autorater_config = 30 + [(google.api.field_behavior) = OPTIONAL]; } // The metric used for running evaluations. @@ -227,6 +288,9 @@ message Metric { // Spec for an LLM based metric. LLMBasedMetricSpec llm_based_metric_spec = 10; + // Spec for Custom Code Execution metric. + CustomCodeExecutionSpec custom_code_execution_spec = 11; + // Spec for pointwise metric. PointwiseMetricSpec pointwise_metric_spec = 2; @@ -246,169 +310,294 @@ message Metric { // Optional. The aggregation metrics to use. repeated AggregationMetric aggregation_metrics = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Metadata about the metric, used for visualization and + // organization. + MetricMetadata metadata = 13 [(google.api.field_behavior) = OPTIONAL]; } -// The dataset used for evaluation. -message EvaluationDataset { - // The source of the dataset. - oneof source { - // Cloud storage source holds the dataset. Currently only one Cloud Storage - // file path is supported. - GcsSource gcs_source = 1; +// Metadata about the metric, used for visualization and organization. +message MetricMetadata { + // The range of possible scores for this metric, used for plotting. + message ScoreRange { + // Required. The minimum value of the score range (inclusive). + optional double min = 1 [(google.api.field_behavior) = REQUIRED]; - // BigQuery source holds the dataset. - BigQuerySource bigquery_source = 2; + // Required. The maximum value of the score range (inclusive). + optional double max = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The distance between discrete steps in the range. + // If unset, the range is assumed to be continuous. + optional double step = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of the score explaining the directionality etc. + string description = 4 [(google.api.field_behavior) = OPTIONAL]; } -} -// The configs for autorater. This is applicable to both EvaluateInstances and -// EvaluateDataset. -message AutoraterConfig { - // Optional. Number of samples for each instance in the dataset. - // If not specified, the default is 4. Minimum value is 1, maximum value - // is 32. - optional int32 sampling_count = 1 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The user-friendly name for the metric. If not set for a + // registered metric, it will default to the metric's display name. + string title = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Default is true. Whether to flip the candidate and baseline - // responses. This is only applicable to the pairwise metric. If enabled, also - // provide PairwiseMetricSpec.candidate_response_field_name and - // PairwiseMetricSpec.baseline_response_field_name. When rendering - // PairwiseMetricSpec.metric_prompt_template, the candidate and baseline - // fields will be flipped for half of the samples to reduce bias. - optional bool flip_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; + // Optional. The range of possible scores for this metric, used for plotting. + ScoreRange score_range = 2 [(google.api.field_behavior) = OPTIONAL]; - // Optional. The fully qualified name of the publisher model or tuned - // autorater endpoint to use. - // - // Publisher model format: - // `projects/{project}/locations/{location}/publishers/*/models/*` - // - // Tuned model endpoint format: - // `projects/{project}/locations/{location}/endpoints/{endpoint}` - string autorater_model = 3 [(google.api.field_behavior) = OPTIONAL]; + // Optional. Flexible metadata for user-defined attributes. + google.protobuf.Struct other_metadata = 3 + [(google.api.field_behavior) = OPTIONAL]; } -// Request message for EvaluationService.EvaluateInstances. -message EvaluateInstancesRequest { - // Instances and specs for evaluation - oneof metric_inputs { - // Auto metric instances. - // Instances and metric spec for exact match metric. - ExactMatchInput exact_match_input = 2; +// The metric source used for evaluation. +message MetricSource { + // The source of the metric. + oneof metric_source { + // Inline metric config. + Metric metric = 1; - // Instances and metric spec for bleu metric. - BleuInput bleu_input = 3; + // Resource name for registered metric. + string metric_resource_name = 2; + } +} - // Instances and metric spec for rouge metric. - RougeInput rouge_input = 4; +// A single instance to be evaluated. +// Instances are used to specify the input data for evaluation, from +// simple string comparisons to complex, multi-turn model evaluations +message EvaluationInstance { + // Instance data used to populate placeholders in a metric prompt template. + message InstanceData { + // List of standard Content messages from Gemini API. + message Contents { + // Optional. Repeated contents. + repeated Content contents = 1 [(google.api.field_behavior) = OPTIONAL]; + } - // LLM-based metric instance. - // General text generation metrics, applicable to other categories. - // Input for fluency metric. - FluencyInput fluency_input = 5; + // Supported formats for instance data. + oneof data { + // Text data. + string text = 1; - // Input for coherence metric. - CoherenceInput coherence_input = 6; + // List of Gemini content data. + Contents contents = 2; + } + } - // Input for safety metric. - SafetyInput safety_input = 8; + // Instance data specified as a map. + message MapInstance { + // Optional. Map of instance data. + map map_instance = 1 + [(google.api.field_behavior) = OPTIONAL]; + } - // Input for groundedness metric. - GroundednessInput groundedness_input = 9; + // Deprecated: Use `agent_eval_data` instead. + // Contains data specific to agent evaluations. + message DeprecatedAgentData { + option deprecated = true; - // Input for fulfillment metric. - FulfillmentInput fulfillment_input = 12; + // Represents a single turn/invocation in the conversation. + message ConversationTurn { + // Required. The 0-based index of the turn in the conversation sequence. + optional int32 turn_index = 1 [(google.api.field_behavior) = REQUIRED]; - // Input for summarization quality metric. - SummarizationQualityInput summarization_quality_input = 7; + // Optional. A unique identifier for the turn. + // Useful for referencing specific turns across systems. + string turn_id = 2 [(google.api.field_behavior) = OPTIONAL]; - // Input for pairwise summarization quality metric. - PairwiseSummarizationQualityInput pairwise_summarization_quality_input = 23; + // Optional. The list of events that occurred during this turn. + repeated AgentEvent events = 3 [(google.api.field_behavior) = OPTIONAL]; + } - // Input for summarization helpfulness metric. - SummarizationHelpfulnessInput summarization_helpfulness_input = 14; + // A single event in the execution trace. + message AgentEvent { + // Required. The ID of the agent or entity that generated this event. + optional string author = 1 [(google.api.field_behavior) = REQUIRED]; - // Input for summarization verbosity metric. - SummarizationVerbosityInput summarization_verbosity_input = 15; + // Required. The content of the event (e.g., text response, tool call, + // tool response). + Content content = 2 [(google.api.field_behavior) = REQUIRED]; - // Input for question answering quality metric. - QuestionAnsweringQualityInput question_answering_quality_input = 10; + // Optional. The timestamp when the event occurred. + google.protobuf.Timestamp event_time = 3 + [(google.api.field_behavior) = OPTIONAL]; - // Input for pairwise question answering quality metric. - PairwiseQuestionAnsweringQualityInput - pairwise_question_answering_quality_input = 24; + // Optional. The change in the session state caused by this event. This is + // a key-value map of fields that were modified or added by the event. + google.protobuf.Struct state_delta = 4 + [(google.api.field_behavior) = OPTIONAL]; - // Input for question answering relevance metric. - QuestionAnsweringRelevanceInput question_answering_relevance_input = 16; + // Optional. The list of tools that were active/available to the agent at + // the time of this event. This overrides the `AgentConfig.tools` if set. + repeated Tool active_tools = 5 [(google.api.field_behavior) = OPTIONAL]; + } - // Input for question answering helpfulness - // metric. - QuestionAnsweringHelpfulnessInput question_answering_helpfulness_input = 17; + // Deprecated: Use `agent_eval_data` instead. Represents a list of tools for + // an agent. + message Tools { + // Optional. List of tools: each tool can have multiple function + // declarations. + repeated Tool tool = 1 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + } - // Input for question answering correctness - // metric. - QuestionAnsweringCorrectnessInput question_answering_correctness_input = 18; + // Represents a list of events for an agent. + message Events { + // Optional. A list of events. + repeated Content event = 1 [(google.api.field_behavior) = OPTIONAL]; + } - // Input for pointwise metric. - PointwiseMetricInput pointwise_metric_input = 28; + // --- Legacy fields below. To be deprecated. --- + // Deprecated: Use `agents` instead. Data for the tools available to the + // agent. + oneof tools_data { + // A JSON string containing a list of tools available to an agent with + // info such as name, description, parameters and required parameters. + string tools_text = 1 [deprecated = true]; - // Input for pairwise metric. - PairwiseMetricInput pairwise_metric_input = 29; + // List of tools. + Tools tools = 2 [deprecated = true]; + } - // Tool call metric instances. - // Input for tool call valid metric. - ToolCallValidInput tool_call_valid_input = 19; + // The sequence of function calls and function responses that form the + // agent's trajectory. + oneof events_data { + // A list of events. + Events events = 5; + } - // Input for tool name match metric. - ToolNameMatchInput tool_name_match_input = 20; + // Optional. The static Agent Configuration. + // This map defines the graph structure of the agent system. + // Key: agent_id (matches the `author` field in events). + // Value: The static configuration of the agent (tools, instructions, + // sub-agents). + map agents = 7 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The chronological list of conversation turns. + // Each turn represents a logical execution cycle (e.g., User Input -> Agent + // Response). + repeated ConversationTurn turns = 8 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated: Use `agents.developer_instruction` or + // `turns.events.active_instruction` instead. + // A field containing instructions from the developer for the agent. + InstanceData developer_instruction = 3 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; + + // Optional. Deprecated: Use `agent_eval_data` instead. + // Agent configuration. + DeprecatedAgentConfig agent_config = 6 + [(google.api.field_behavior) = OPTIONAL]; + } - // Input for tool parameter key match metric. - ToolParameterKeyMatchInput tool_parameter_key_match_input = 21; + // Deprecated: Use `google.cloud.aiplatform.master.AgentConfig` in + // `agent_eval_data` instead. + // Configuration for an Agent. + message DeprecatedAgentConfig { + option deprecated = true; + + // Represents a list of tools for an agent. + message Tools { + // Optional. List of tools: each tool can have multiple function + // declarations. + repeated Tool tool = 1 [(google.api.field_behavior) = OPTIONAL]; + } - // Input for tool parameter key value match metric. - ToolParameterKVMatchInput tool_parameter_kv_match_input = 22; + // Data for the tools available to the agent. + oneof tools_data { + // A JSON string containing a list of tools available to an agent with + // info such as name, description, parameters and required parameters. + string tools_text = 1; - // Translation metrics. - // Input for Comet metric. - CometInput comet_input = 31; + // List of tools. + Tools tools = 2; + } - // Input for Metricx metric. - MetricxInput metricx_input = 32; + // Optional. Unique identifier of the agent. + // This ID is used to refer to this agent, e.g., in AgentEvent.author, or in + // the `sub_agents` field. It must be unique within the `agents` map. + string agent_id = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The type or class of the agent (e.g., "LlmAgent", + // "RouterAgent", "ToolUseAgent"). Useful for the autorater to understand + // the expected behavior of the agent. + string agent_type = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A high-level description of the agent's role and + // responsibilities. Critical for evaluating if the agent is routing tasks + // correctly. + string description = 6 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The list of valid agent IDs (names) that this agent can + // delegate to. This defines the directed edges in the agent system graph + // topology. + repeated string sub_agents = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Contains instructions from the developer for the agent. Can be + // static or a dynamic prompt template used with the + // `AgentEvent.state_delta` field. + InstanceData developer_instruction = 3 + [(google.api.field_behavior) = OPTIONAL]; + } - // Input for trajectory exact match metric. - TrajectoryExactMatchInput trajectory_exact_match_input = 33; + // Optional. Data used to populate placeholder `prompt` in a metric prompt + // template. + InstanceData prompt = 1 [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory in order match metric. - TrajectoryInOrderMatchInput trajectory_in_order_match_input = 34; + // Optional. Named groups of rubrics associated with the prompt. + // This is used for rubric-based evaluations where rubrics can be referenced + // by a key. The key could represent versions, associated metrics, etc. + map rubric_groups = 2 + [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory match any order metric. - TrajectoryAnyOrderMatchInput trajectory_any_order_match_input = 35; + // Optional. Data used to populate placeholder `response` in a metric prompt + // template. + InstanceData response = 3 [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory precision metric. - TrajectoryPrecisionInput trajectory_precision_input = 37; + // Optional. Data used to populate placeholder `reference` in a metric prompt + // template. + InstanceData reference = 4 [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory recall metric. - TrajectoryRecallInput trajectory_recall_input = 38; + // Optional. Other data used to populate placeholders based on their key. + // If a key conflicts with a field in the EvaluationInstance (e.g. `prompt`), + // the value of the field will take precedence over the value in other_data. + MapInstance other_data = 5 [(google.api.field_behavior) = OPTIONAL]; - // Input for trajectory single tool use metric. - TrajectorySingleToolUseInput trajectory_single_tool_use_input = 39; + // Optional. Deprecated: Use `agent_eval_data` instead. + // Data used for agent evaluation. + DeprecatedAgentData agent_data = 6 + [deprecated = true, (google.api.field_behavior) = OPTIONAL]; - // Rubric Based Instruction Following metric. - RubricBasedInstructionFollowingInput - rubric_based_instruction_following_input = 40; - } + // Optional. Data used for agent evaluation. + AgentData agent_eval_data = 7 [(google.api.field_behavior) = OPTIONAL]; +} - // Required. The resource name of the Location to evaluate the instances. - // Format: `projects/{project}/locations/{location}` - string location = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "locations.googleapis.com/Location" - } - ]; +// The configs for autorater. This is applicable to both EvaluateInstances and +// EvaluateDataset. +message AutoraterConfig { + // Optional. Number of samples for each instance in the dataset. + // If not specified, the default is 4. Minimum value is 1, maximum value + // is 32. + optional int32 sampling_count = 1 [(google.api.field_behavior) = OPTIONAL]; - // Optional. Autorater config used for evaluation. - AutoraterConfig autorater_config = 30 + // Optional. Default is true. Whether to flip the candidate and baseline + // responses. This is only applicable to the pairwise metric. If enabled, also + // provide PairwiseMetricSpec.candidate_response_field_name and + // PairwiseMetricSpec.baseline_response_field_name. When rendering + // PairwiseMetricSpec.metric_prompt_template, the candidate and baseline + // fields will be flipped for half of the samples to reduce bias. + optional bool flip_enabled = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The fully qualified name of the publisher model or tuned + // autorater endpoint to use. + // + // Publisher model format: + // `projects/{project}/locations/{location}/publishers/*/models/*` + // + // Tuned model endpoint format: + // `projects/{project}/locations/{location}/endpoints/{endpoint}` + string autorater_model = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Configuration options for model generation and outputs. + GenerationConfig generation_config = 4 [(google.api.field_behavior) = OPTIONAL]; } @@ -539,6 +728,10 @@ message MetricResult { // Please refer to each metric's documentation for the meaning of the score. optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. For rubric-based metrics, the verdicts for each rubric. + repeated RubricVerdict rubric_verdicts = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The explanation for the metric result. optional string explanation = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -547,6 +740,159 @@ message MetricResult { [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Request message for EvaluationService.GenerateInstanceRubrics. +message GenerateInstanceRubricsRequest { + // Required. The resource name of the Location to generate rubrics from. + // Format: `projects/{project}/locations/{location}` + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The prompt to generate rubrics from. + // For single-turn queries, this is a single instance. For multi-turn queries, + // this is a repeated field that contains conversation history + latest + // request. + repeated Content contents = 2 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Specification for using the rubric generation configs of a + // pre-defined metric, e.g. "generic_quality_v1" and + // "instruction_following_v1". Some of the configs may be only used in rubric + // generation and not supporting evaluation, e.g. + // "fully_customized_generic_quality_v1". If this field is set, the + // `rubric_generation_spec` field will be ignored. + PredefinedMetricSpec predefined_rubric_generation_spec = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specification for how the rubrics should be generated. + RubricGenerationSpec rubric_generation_spec = 3 + [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Agent configuration, required for agent-based rubric generation. + EvaluationInstance.DeprecatedAgentConfig agent_config = 5 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for EvaluationService.GenerateInstanceRubrics. +message GenerateInstanceRubricsResponse { + // Output only. A list of generated rubrics. + repeated Rubric generated_rubrics = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Request message for EvaluationService.EvaluateDataset. +message EvaluateDatasetRequest { + // Required. The resource name of the Location to evaluate the dataset. + // Format: `projects/{project}/locations/{location}` + string location = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The dataset used for evaluation. + EvaluationDataset dataset = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The metrics used for evaluation. + repeated Metric metrics = 3 [(google.api.field_behavior) = REQUIRED]; + + // Required. Config for evaluation output. + OutputConfig output_config = 4 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Autorater config used for evaluation. Currently only publisher + // Gemini models are supported. Format: + // `projects/{PROJECT}/locations/{LOCATION}/publishers/google/models/{MODEL}.` + AutoraterConfig autorater_config = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Config for evaluation output. +message OutputConfig { + // The destination for evaluation output. + oneof destination { + // Cloud storage destination for evaluation output. + GcsDestination gcs_destination = 1; + } +} + +// The dataset used for evaluation. +message EvaluationDataset { + // The source of the dataset. + oneof source { + // Cloud storage source holds the dataset. Currently only one Cloud Storage + // file path is supported. + GcsSource gcs_source = 1; + + // BigQuery source holds the dataset. + BigQuerySource bigquery_source = 2; + } +} + +// The results from an evaluation run performed by the EvaluationService. +message EvaluateDatasetResponse { + // Output only. Aggregation statistics derived from results of + // EvaluationService. + AggregationOutput aggregation_output = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Output info for EvaluationService. + OutputInfo output_info = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + +// Operation metadata for Dataset Evaluation. +message EvaluateDatasetOperationMetadata { + // Generic operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Describes the info for output of EvaluationService. +message OutputInfo { + // The output location into which evaluation output is written. + oneof output_location { + // Output only. The full path of the Cloud Storage directory created, into + // which the evaluation results and aggregation results are written. + string gcs_output_directory = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } +} + +// The aggregation result for the entire dataset and all metrics. +message AggregationOutput { + // The dataset used for evaluation & aggregation. + EvaluationDataset dataset = 1; + + // One AggregationResult per metric. + repeated AggregationResult aggregation_results = 2; +} + +// The aggregation result for a single metric. +message AggregationResult { + // The aggregation result. + oneof aggregation_result { + // Result for pointwise metric. + PointwiseMetricResult pointwise_metric_result = 5; + + // Result for pairwise metric. + PairwiseMetricResult pairwise_metric_result = 6; + + // Results for exact match metric. + ExactMatchMetricValue exact_match_metric_value = 7; + + // Results for bleu metric. + BleuMetricValue bleu_metric_value = 8; + + // Results for rouge metric. + RougeMetricValue rouge_metric_value = 9; + + // Result for code execution metric. + CustomCodeExecutionResult custom_code_execution_result = 10; + } + + // Aggregation metric. + Metric.AggregationMetric aggregation_metric = 4; +} + // The spec for a pre-defined metric. message PredefinedMetricSpec { // Required. The name of a pre-defined metric, such as @@ -593,6 +939,9 @@ message LLMBasedMetricSpec { // Refers to a key in the rubric_groups map of EvaluationInstance. string rubric_group_key = 4; + // Dynamically generate rubrics using this specification. + RubricGenerationSpec rubric_generation_spec = 5; + // Dynamically generate rubrics using a predefined spec. PredefinedMetricSpec predefined_rubric_generation_spec = 6; } @@ -612,6 +961,52 @@ message LLMBasedMetricSpec { // Optional. Optional additional configuration for the metric. optional google.protobuf.Struct additional_config = 7 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The parser config for the metric result. + EvaluationParserConfig result_parser_config = 8 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Specificies a metric that is populated by evaluating user-defined Python +// code. +message CustomCodeExecutionSpec { + // Required. Python function. + // Expected user to define the following function, e.g.: + // def evaluate(instance: dict[str, Any]) -> float: + // Please include this function signature in the code snippet. + // Instance is the evaluation instance, any fields populated in the instance + // are available to the function as instance[field_name]. + // + // Example: + // Example input: + // ``` + // instance= EvaluationInstance( + // response=EvaluationInstance.InstanceData(text="The answer is 4."), + // reference=EvaluationInstance.InstanceData(text="4") + // ) + // ``` + // + // Example converted input: + // ``` + // { + // 'response': {'text': 'The answer is 4.'}, + // 'reference': {'text': '4'} + // } + // ``` + // + // Example python function: + // ``` + // def evaluate(instance: dict[str, Any]) -> float: + // if instance['response']['text'] == instance['reference']['text']: + // return 1.0 + // return 0.0 + // ``` + // + // CustomCodeExecutionSpec is also supported in Batch Evaluation (EvalDataset + // RPC) and Tuning Evaluation. Each line in the input jsonl file will be + // converted to dict[str, Any] and passed to the evaluation function. + optional string evaluation_function = 1 + [(google.api.field_behavior) = REQUIRED]; } // Input for exact match metric. @@ -732,6 +1127,12 @@ message RougeMetricValue { optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// Result for custom code execution metric. +message CustomCodeExecutionResult { + // Output only. Custom code execution score. + optional float score = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // Input for coherence metric. message CoherenceInput { // Required. Spec for coherence score metric. @@ -2063,3 +2464,96 @@ message ContentMap { // Optional. Map of placeholder to contents. map values = 1 [(google.api.field_behavior) = OPTIONAL]; } + +// Config for parsing LLM responses. +// It can be used to parse the LLM response to be evaluated, or the LLM +// response from LLM-based metrics/Autoraters. +message EvaluationParserConfig { + // Configuration for parsing the LLM response using custom code. + message CustomCodeParserConfig { + // Required. Python function for parsing results. The function should be + // defined within this string. + // + // The function takes a list of strings (LLM responses) and should return + // either a list of dictionaries (for rubrics) or a single dictionary + // (for a metric result). + // + // Example function signature: + // def parse(responses: list[str]) -> list[dict[str, Any]] | dict[str, Any]: + // + // When parsing rubrics, return a list of dictionaries, where each + // dictionary represents a Rubric. + // Example for rubrics: + // [ + // { + // "content": {"property": {"description": "The response is + // factual."}}, + // "type": "FACTUALITY", + // "importance": "HIGH" + // }, + // { + // "content": {"property": {"description": "The response is + // fluent."}}, + // "type": "FLUENCY", + // "importance": "MEDIUM" + // } + // ] + // + // When parsing critique results, return a dictionary representing a + // MetricResult. + // Example for a metric result: + // { + // "score": 0.8, + // "explanation": "The model followed most instructions.", + // "rubric_verdicts": [...] + // } + // + // ... code for result extraction and aggregation + optional string parsing_function = 1 + [(google.api.field_behavior) = REQUIRED]; + } + + // The parser to use. + oneof parser { + // Optional. Use custom code to parse the LLM response. + CustomCodeParserConfig custom_code_parser_config = 2 + [(google.api.field_behavior) = OPTIONAL]; + } +} + +// Specification for how rubrics should be generated. +message RubricGenerationSpec { + // Specifies the type of rubric content to generate. + enum RubricContentType { + // The content type to generate is not specified. + RUBRIC_CONTENT_TYPE_UNSPECIFIED = 0; + + // Generate rubrics based on properties. + PROPERTY = 1; + + // Generate rubrics in an NL question answer format. + NL_QUESTION_ANSWER = 2; + + // Generate rubrics in a unit test format. + PYTHON_CODE_ASSERTION = 3; + } + + // Template for the prompt used to generate rubrics. + // The details should be updated based on the most-recent recipe requirements. + string prompt_template = 1; + + // Configuration for the model used in rubric generation. + // Configs including sampling count and base model can be specified here. + // Flipping is not supported for rubric generation. + optional AutoraterConfig model_config = 4; + + // The type of rubric content to be generated. + RubricContentType rubric_content_type = 5; + + // Optional. An optional, pre-defined list of allowed types for generated + // rubrics. If this field is provided, it implies `include_rubric_type` should + // be true, and the generated rubric types should be chosen from this + // ontology. + repeated string rubric_type_ontology = 6 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator.proto new file mode 100644 index 000000000000..e4f2c5224095 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator.proto @@ -0,0 +1,248 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/evaluation_service.proto"; +import "google/protobuf/timestamp.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "OnlineEvaluatorProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// An OnlineEvaluator contains the configuration for an Online Evaluation. +message OnlineEvaluator { + option (google.api.resource) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + pattern: "projects/{project}/locations/{location}/onlineEvaluators/{online_evaluator}" + plural: "onlineEvaluators" + singular: "onlineEvaluator" + }; + + // Data source for the OnlineEvaluator, based on GCP Observability stack + // (Cloud Trace & Cloud Logging). + message CloudObservability { + // Defines a predicate for filtering based on a numeric value. + message NumericPredicate { + // Comparison operators for numeric predicates. + enum ComparisonOperator { + // Unspecified comparison operator. This value should not be used. + COMPARISON_OPERATOR_UNSPECIFIED = 0; + + // Less than. + LESS = 1; + + // Less than or equal to. + LESS_OR_EQUAL = 2; + + // Equal to. + EQUAL = 3; + + // Not equal to. + NOT_EQUAL = 4; + + // Greater than or equal to. + GREATER_OR_EQUAL = 5; + + // Greater than. + GREATER = 6; + } + + // Required. The comparison operator to apply. + ComparisonOperator comparison_operator = 1 + [(google.api.field_behavior) = REQUIRED]; + + // Required. The value to compare against. + float value = 2 [(google.api.field_behavior) = REQUIRED]; + } + + // If chosen, the online evaluator will evaluate single traces matching + // specified `filter`. + message TraceScope { + // Defines a single filter predicate. + message Predicate { + // The type of predicate. + oneof predicate { + // Filter on the duration of a trace. + NumericPredicate duration = 1; + + // Filter on the total token usage within a trace. + NumericPredicate total_token_usage = 2; + } + } + + // Optional. A list of predicates to filter traces. Multiple predicates + // are combined using AND. + // + // The maximum number of predicates is 10. + repeated Predicate filter = 1 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for data source following OpenTelemetry. + message OpenTelemetry { + // Required. Defines which version OTel Semantic Convention the data + // follows. Can be "1.39.0" or newer. + string semconv_version = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. Defines the scope of data to be evaluated. + oneof eval_scope { + // Scope online evaluation to single traces. + TraceScope trace_scope = 3; + } + + // Required. Defines which convention the data source follows. + oneof convention { + // Data source follows OpenTelemetry convention. + OpenTelemetry open_telemetry = 4; + } + + // Optional. Optional log view that will be used to query logs. + // If empty, the `_Default` view will be used. + string log_view = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Optional trace view that will be used to query traces. + // If empty, the `_Default` view will be used. + // + // NOTE: This field is not supported yet and will be ignored if set. + string trace_view = 2 [(google.api.field_behavior) = OPTIONAL]; + } + + // Configuration for sampling behavior of the OnlineEvaluator. + // The OnlineEvaluator runs at a fixed interval of 10 minutes. + message Config { + // Configuration for random sampling. + message RandomSampling { + // Required. The percentage of traces to sample for evaluation. + // Must be an integer between `1` and `100`. + int32 percentage = 1 [(google.api.field_behavior) = REQUIRED]; + } + + // Required. The sampling method used to select traces for evaluation. + oneof sampling_method { + // Random sampling method. + RandomSampling random_sampling = 2; + } + + // Optional. The maximum number of evaluations to perform per run. + // If set to 0, the number is unbounded. + int64 max_evaluated_samples_per_run = 1 + [(google.api.field_behavior) = OPTIONAL]; + } + + // Contains additional information about the state of the OnlineEvaluator. + message StateDetails { + // Output only. Human-readable message describing the state of the + // OnlineEvaluator. + string message = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + } + + // The state of the OnlineEvaluator. + enum State { + // Default value. + STATE_UNSPECIFIED = 0; + + // Indicates that the OnlineEvaluator is active. + ACTIVE = 1; + + // Indicates that the OnlineEvaluator is suspended. In this state, the + // OnlineEvaluator will not evaluate any samples. + SUSPENDED = 2; + + // Indicates that the OnlineEvaluator is in a failed state. + // + // This can happen if, for example, the `log_view` or `trace_view` set on + // the `CloudObservability` does not exist. + FAILED = 3; + + // Indicates that the OnlineEvaluator is in a warning state. + // This can happen if, for example, some of the metrics in the + // `metric_sources` are invalid. Evaluation will still run with the + // remaining valid metrics. + WARNING = 4; + } + + // Required. The data source used to query samples for evaluations. + // More data sources will be supported in the future. + // + // This field is immutable. Once set, it cannot be changed. + oneof data_source { + // Data source for the OnlineEvaluator, based on GCP Observability stack + // (Cloud Trace & Cloud Logging). + CloudObservability cloud_observability = 4; + } + + // Identifier. The resource name of the OnlineEvaluator. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Required. Immutable. The name of the agent that the OnlineEvaluator + // evaluates periodically. This value is used to filter the traces with a + // matching cloud.resource_id and link the evaluation results with relevant + // dashboards/UIs. + // + // This field is immutable. Once set, it cannot be changed. + string agent_resource = 2 [ + (google.api.field_behavior) = REQUIRED, + (google.api.field_behavior) = IMMUTABLE + ]; + + // Required. A list of metric sources to be used for evaluating samples. + // At least one MetricSource must be provided. + // Right now, only predefined metrics and registered metrics are supported. + // + // Every registered metric must have `display_name` (or `title`) and + // `score_range` defined. Otherwise, the evaluations will fail. + // + // The maximum number of `metric_sources` is 25. + repeated MetricSource metric_sources = 3 + [(google.api.field_behavior) = REQUIRED]; + + // Required. Configuration for the OnlineEvaluator. + Config config = 5 [(google.api.field_behavior) = REQUIRED]; + + // Output only. The state of the OnlineEvaluator. + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Contains additional information about the state of the + // OnlineEvaluator. This is used to provide more details in the event of a + // failure. + repeated StateDetails state_details = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the OnlineEvaluator was created. + google.protobuf.Timestamp create_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Timestamp when the OnlineEvaluator was last updated. + google.protobuf.Timestamp update_time = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. Human-readable name for the `OnlineEvaluator`. + // + // The name doesn't have to be unique. + // + // The name can consist of any UTF-8 characters. The maximum length is `63` + // characters. If the display name exceeds max characters, an + // `INVALID_ARGUMENT` error is returned. + string display_name = 9 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator_service.proto b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator_service.proto new file mode 100644 index 000000000000..084fd3d95725 --- /dev/null +++ b/java-aiplatform/proto-google-cloud-aiplatform-v1beta1/src/main/proto/google/cloud/aiplatform/v1beta1/online_evaluator_service.proto @@ -0,0 +1,286 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. + +syntax = "proto3"; + +package google.cloud.aiplatform.v1beta1; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/cloud/aiplatform/v1beta1/online_evaluator.proto"; +import "google/cloud/aiplatform/v1beta1/operation.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; +import "google/protobuf/field_mask.proto"; + +option csharp_namespace = "Google.Cloud.AIPlatform.V1Beta1"; +option go_package = "cloud.google.com/go/aiplatform/apiv1beta1/aiplatformpb;aiplatformpb"; +option java_multiple_files = true; +option java_outer_classname = "OnlineEvaluatorServiceProto"; +option java_package = "com.google.cloud.aiplatform.v1beta1"; +option php_namespace = "Google\\Cloud\\AIPlatform\\V1beta1"; +option ruby_package = "Google::Cloud::AIPlatform::V1beta1"; + +// This service is used to create and manage Vertex AI OnlineEvaluators. +service OnlineEvaluatorService { + option (google.api.default_host) = "aiplatform.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates an OnlineEvaluator in the given project and location. + rpc CreateOnlineEvaluator(CreateOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{parent=projects/*/locations/*}/onlineEvaluators" + body: "online_evaluator" + }; + option (google.api.method_signature) = "parent,online_evaluator"; + option (google.longrunning.operation_info) = { + response_type: "OnlineEvaluator" + metadata_type: "CreateOnlineEvaluatorOperationMetadata" + }; + } + + // Gets details of an OnlineEvaluator. + rpc GetOnlineEvaluator(GetOnlineEvaluatorRequest) returns (OnlineEvaluator) { + option (google.api.http) = { + get: "/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}" + }; + option (google.api.method_signature) = "name"; + } + + // Updates the fields of an OnlineEvaluator. + rpc UpdateOnlineEvaluator(UpdateOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v1beta1/{online_evaluator.name=projects/*/locations/*/onlineEvaluators/*}" + body: "online_evaluator" + }; + option (google.api.method_signature) = "online_evaluator,update_mask"; + option (google.longrunning.operation_info) = { + response_type: "OnlineEvaluator" + metadata_type: "UpdateOnlineEvaluatorOperationMetadata" + }; + } + + // Deletes an OnlineEvaluator. + rpc DeleteOnlineEvaluator(DeleteOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "DeleteOnlineEvaluatorOperationMetadata" + }; + } + + // Lists the OnlineEvaluators for the given project and location. + rpc ListOnlineEvaluators(ListOnlineEvaluatorsRequest) + returns (ListOnlineEvaluatorsResponse) { + option (google.api.http) = { + get: "/v1beta1/{parent=projects/*/locations/*}/onlineEvaluators" + }; + option (google.api.method_signature) = "parent"; + } + + // Activates an OnlineEvaluator. + rpc ActivateOnlineEvaluator(ActivateOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}:activate" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "OnlineEvaluator" + metadata_type: "ActivateOnlineEvaluatorOperationMetadata" + }; + } + + // Suspends an OnlineEvaluator. When an OnlineEvaluator is suspended, it won't + // run any evaluations until it is activated again. + rpc SuspendOnlineEvaluator(SuspendOnlineEvaluatorRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v1beta1/{name=projects/*/locations/*/onlineEvaluators/*}:suspend" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "OnlineEvaluator" + metadata_type: "SuspendOnlineEvaluatorOperationMetadata" + }; + } +} + +// Request message for CreateOnlineEvaluator. +message CreateOnlineEvaluatorRequest { + // Required. The parent resource where the OnlineEvaluator will be created. + // Format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "locations.googleapis.com/Location" + } + ]; + + // Required. The OnlineEvaluator to create. + OnlineEvaluator online_evaluator = 2 [(google.api.field_behavior) = REQUIRED]; +} + +// Metadata for the CreateOnlineEvaluator operation. +message CreateOnlineEvaluatorOperationMetadata { + // Common part of operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for GetOnlineEvaluator. +message GetOnlineEvaluatorRequest { + // Required. The name of the OnlineEvaluator to retrieve. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; +} + +// Request message for UpdateOnlineEvaluator. +message UpdateOnlineEvaluatorRequest { + // Required. The OnlineEvaluator to update. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + OnlineEvaluator online_evaluator = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. Field mask is used to control which fields get updated. If the + // mask is not present, all fields will be updated. + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = OPTIONAL]; +} + +// Metadata for the UpdateOnlineEvaluator operation. +message UpdateOnlineEvaluatorOperationMetadata { + // Generic operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for DeleteOnlineEvaluator. +message DeleteOnlineEvaluatorRequest { + // Required. The name of the OnlineEvaluator to delete. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; +} + +// Metadata for the DeleteOnlineEvaluator operation. +message DeleteOnlineEvaluatorOperationMetadata { + // Generic operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for ListOnlineEvaluators. +message ListOnlineEvaluatorsRequest { + // Required. The parent resource of the OnlineEvaluators to list. + // Format: projects/{project}/locations/{location}. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; + + // Optional. The maximum number of OnlineEvaluators to return. The service may + // return fewer than this value. If unspecified, at most 50 OnlineEvaluators + // will be returned. The maximum value is 100; values above 100 will be + // coerced to 100. Based on aip.dev/158. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A token identifying a page of results the server should return. + // Based on aip.dev/158. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Standard list filter. + // Supported fields: + // * `create_time` + // * `update_time` + // * `agent_resource` + // Example: `create_time>"2026-01-01T00:00:00-04:00"` + // where the timestamp is in RFC 3339 format) + // Based on aip.dev/160. + string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A comma-separated list of fields to order by. The default sorting + // order is ascending. Use "desc" after a field name for descending. Supported + // fields: + // * `create_time` + // * `update_time` + // + // Example: `create_time desc`. + // Based on aip.dev/132. + string order_by = 5 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListOnlineEvaluators. +message ListOnlineEvaluatorsResponse { + // A list of OnlineEvaluators matching the request. + repeated OnlineEvaluator online_evaluators = 1; + + // A token to retrieve the next page. Absence of this field indicates there + // are no subsequent pages. + string next_page_token = 2; +} + +// Request message for ActivateOnlineEvaluator. +message ActivateOnlineEvaluatorRequest { + // Required. The name of the OnlineEvaluator to activate. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; +} + +// Metadata for the ActivateOnlineEvaluator operation. +message ActivateOnlineEvaluatorOperationMetadata { + // Common part of operation metadata. + GenericOperationMetadata generic_metadata = 1; +} + +// Request message for SuspendOnlineEvaluator. +message SuspendOnlineEvaluatorRequest { + // Required. The name of the OnlineEvaluator to suspend. + // Format: projects/{project}/locations/{location}/onlineEvaluators/{id}. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "aiplatform.googleapis.com/OnlineEvaluator" + } + ]; +} + +// Metadata for the SuspendOnlineEvaluator operation. +message SuspendOnlineEvaluatorOperationMetadata { + // Common part of operation metadata. + GenericOperationMetadata generic_metadata = 1; +} diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java index 6d0cf9a93808..09487f8c4a92 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/AsyncEvaluateInstances.java @@ -21,8 +21,12 @@ import com.google.cloud.aiplatform.v1beta1.AutoraterConfig; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.EvaluationInstance; import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.Metric; +import com.google.cloud.aiplatform.v1beta1.MetricSource; +import java.util.ArrayList; public class AsyncEvaluateInstances { @@ -40,6 +44,9 @@ public static void asyncEvaluateInstances() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllMetrics(new ArrayList()) + .addAllMetricSources(new ArrayList()) + .setInstance(EvaluationInstance.newBuilder().build()) .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); ApiFuture future = diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java index 80209ae00986..abf66bb5b3ff 100644 --- a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/evaluateinstances/SyncEvaluateInstances.java @@ -20,8 +20,12 @@ import com.google.cloud.aiplatform.v1beta1.AutoraterConfig; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesRequest; import com.google.cloud.aiplatform.v1beta1.EvaluateInstancesResponse; +import com.google.cloud.aiplatform.v1beta1.EvaluationInstance; import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.Metric; +import com.google.cloud.aiplatform.v1beta1.MetricSource; +import java.util.ArrayList; public class SyncEvaluateInstances { @@ -39,6 +43,9 @@ public static void syncEvaluateInstances() throws Exception { EvaluateInstancesRequest request = EvaluateInstancesRequest.newBuilder() .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllMetrics(new ArrayList()) + .addAllMetricSources(new ArrayList()) + .setInstance(EvaluationInstance.newBuilder().build()) .setAutoraterConfig(AutoraterConfig.newBuilder().build()) .build(); EvaluateInstancesResponse response = evaluationServiceClient.evaluateInstances(request); diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/AsyncGenerateInstanceRubrics.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/AsyncGenerateInstanceRubrics.java new file mode 100644 index 000000000000..ad95e0fa9fb2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/AsyncGenerateInstanceRubrics.java @@ -0,0 +1,59 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.EvaluationInstance; +import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec; +import com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec; +import java.util.ArrayList; + +public class AsyncGenerateInstanceRubrics { + + public static void main(String[] args) throws Exception { + asyncGenerateInstanceRubrics(); + } + + public static void asyncGenerateInstanceRubrics() 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + GenerateInstanceRubricsRequest request = + GenerateInstanceRubricsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build()) + .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build()) + .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build()) + .build(); + ApiFuture future = + evaluationServiceClient.generateInstanceRubricsCallable().futureCall(request); + // Do something. + GenerateInstanceRubricsResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/SyncGenerateInstanceRubrics.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/SyncGenerateInstanceRubrics.java new file mode 100644 index 000000000000..a7d0b589d4d5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/evaluationservice/generateinstancerubrics/SyncGenerateInstanceRubrics.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_sync] +import com.google.cloud.aiplatform.v1beta1.Content; +import com.google.cloud.aiplatform.v1beta1.EvaluationInstance; +import com.google.cloud.aiplatform.v1beta1.EvaluationServiceClient; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsRequest; +import com.google.cloud.aiplatform.v1beta1.GenerateInstanceRubricsResponse; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.PredefinedMetricSpec; +import com.google.cloud.aiplatform.v1beta1.RubricGenerationSpec; +import java.util.ArrayList; + +public class SyncGenerateInstanceRubrics { + + public static void main(String[] args) throws Exception { + syncGenerateInstanceRubrics(); + } + + public static void syncGenerateInstanceRubrics() 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 (EvaluationServiceClient evaluationServiceClient = EvaluationServiceClient.create()) { + GenerateInstanceRubricsRequest request = + GenerateInstanceRubricsRequest.newBuilder() + .setLocation(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .addAllContents(new ArrayList()) + .setPredefinedRubricGenerationSpec(PredefinedMetricSpec.newBuilder().build()) + .setRubricGenerationSpec(RubricGenerationSpec.newBuilder().build()) + .setAgentConfig(EvaluationInstance.DeprecatedAgentConfig.newBuilder().build()) + .build(); + GenerateInstanceRubricsResponse response = + evaluationServiceClient.generateInstanceRubrics(request); + } + } +} +// [END aiplatform_v1beta1_generated_EvaluationService_GenerateInstanceRubrics_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluator.java new file mode 100644 index 000000000000..dccb7c3ad43c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.longrunning.Operation; + +public class AsyncActivateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncActivateOnlineEvaluator(); + } + + public static void asyncActivateOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.activateOnlineEvaluatorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..9fa01b312834 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/AsyncActivateOnlineEvaluatorLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class AsyncActivateOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncActivateOnlineEvaluatorLRO(); + } + + public static void asyncActivateOnlineEvaluatorLRO() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient + .activateOnlineEvaluatorOperationCallable() + .futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluator.java new file mode 100644 index 000000000000..fbcfcd27410d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluator.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.ActivateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncActivateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncActivateOnlineEvaluator(); + } + + public static void syncActivateOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ActivateOnlineEvaluatorRequest request = + ActivateOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorOnlineevaluatorname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorOnlineevaluatorname.java new file mode 100644 index 000000000000..42d776a5356a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorOnlineevaluatorname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_Onlineevaluatorname_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncActivateOnlineEvaluatorOnlineevaluatorname { + + public static void main(String[] args) throws Exception { + syncActivateOnlineEvaluatorOnlineevaluatorname(); + } + + public static void syncActivateOnlineEvaluatorOnlineevaluatorname() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + OnlineEvaluator response = + onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_Onlineevaluatorname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorString.java new file mode 100644 index 000000000000..1a1f0d53030e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/activateonlineevaluator/SyncActivateOnlineEvaluatorString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_String_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncActivateOnlineEvaluatorString { + + public static void main(String[] args) throws Exception { + syncActivateOnlineEvaluatorString(); + } + + public static void syncActivateOnlineEvaluatorString() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.activateOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ActivateOnlineEvaluator_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetCredentialsProvider.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetCredentialsProvider.java new file mode 100644 index 000000000000..9823c6affcdf --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetCredentialsProvider.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_Create_SetCredentialsProvider_sync] +import com.google.api.gax.core.FixedCredentialsProvider; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceSettings; +import com.google.cloud.aiplatform.v1beta1.myCredentials; + +public class SyncCreateSetCredentialsProvider { + + public static void main(String[] args) throws Exception { + syncCreateSetCredentialsProvider(); + } + + public static void syncCreateSetCredentialsProvider() 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 + OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings = + OnlineEvaluatorServiceSettings.newBuilder() + .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials)) + .build(); + OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create(onlineEvaluatorServiceSettings); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_Create_SetCredentialsProvider_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetEndpoint.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetEndpoint.java new file mode 100644 index 000000000000..ee3228331097 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/create/SyncCreateSetEndpoint.java @@ -0,0 +1,42 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_Create_SetEndpoint_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceSettings; +import com.google.cloud.aiplatform.v1beta1.myEndpoint; + +public class SyncCreateSetEndpoint { + + public static void main(String[] args) throws Exception { + syncCreateSetEndpoint(); + } + + public static void syncCreateSetEndpoint() 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 + OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings = + OnlineEvaluatorServiceSettings.newBuilder().setEndpoint(myEndpoint).build(); + OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create(onlineEvaluatorServiceSettings); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_Create_SetEndpoint_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluator.java new file mode 100644 index 000000000000..d91ffb27fc44 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.longrunning.Operation; + +public class AsyncCreateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncCreateOnlineEvaluator(); + } + + public static void asyncCreateOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.createOnlineEvaluatorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..4609c4711b72 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/AsyncCreateOnlineEvaluatorLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class AsyncCreateOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncCreateOnlineEvaluatorLRO(); + } + + public static void asyncCreateOnlineEvaluatorLRO() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient.createOnlineEvaluatorOperationCallable().futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluator.java new file mode 100644 index 000000000000..12176b8c66c1 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluator.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.CreateOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncCreateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluator(); + } + + public static void syncCreateOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + CreateOnlineEvaluatorRequest request = + CreateOnlineEvaluatorRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorLocationnameOnlineevaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorLocationnameOnlineevaluator.java new file mode 100644 index 000000000000..3a039d212554 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorLocationnameOnlineevaluator.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_LocationnameOnlineevaluator_sync] +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncCreateOnlineEvaluatorLocationnameOnlineevaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluatorLocationnameOnlineevaluator(); + } + + public static void syncCreateOnlineEvaluatorLocationnameOnlineevaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_LocationnameOnlineevaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorStringOnlineevaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorStringOnlineevaluator.java new file mode 100644 index 000000000000..dacfa88d5ec2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/createonlineevaluator/SyncCreateOnlineEvaluatorStringOnlineevaluator.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_StringOnlineevaluator_sync] +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncCreateOnlineEvaluatorStringOnlineevaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluatorStringOnlineevaluator(); + } + + public static void syncCreateOnlineEvaluatorStringOnlineevaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.createOnlineEvaluatorAsync(parent, onlineEvaluator).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_CreateOnlineEvaluator_StringOnlineevaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluator.java new file mode 100644 index 000000000000..d8281cd0cc03 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.longrunning.Operation; + +public class AsyncDeleteOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncDeleteOnlineEvaluator(); + } + + public static void asyncDeleteOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.deleteOnlineEvaluatorCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..24c20a54a35d --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/AsyncDeleteOnlineEvaluatorLRO.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.Empty; + +public class AsyncDeleteOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncDeleteOnlineEvaluatorLRO(); + } + + public static void asyncDeleteOnlineEvaluatorLRO() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient.deleteOnlineEvaluatorOperationCallable().futureCall(request); + // Do something. + future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluator.java new file mode 100644 index 000000000000..8cac3650c261 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluator.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.DeleteOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncDeleteOnlineEvaluator(); + } + + public static void syncDeleteOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + DeleteOnlineEvaluatorRequest request = + DeleteOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorOnlineevaluatorname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorOnlineevaluatorname.java new file mode 100644 index 000000000000..65e6a2f8b2df --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorOnlineevaluatorname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_Onlineevaluatorname_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOnlineEvaluatorOnlineevaluatorname { + + public static void main(String[] args) throws Exception { + syncDeleteOnlineEvaluatorOnlineevaluatorname(); + } + + public static void syncDeleteOnlineEvaluatorOnlineevaluatorname() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_Onlineevaluatorname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorString.java new file mode 100644 index 000000000000..6ad3251f0954 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/deleteonlineevaluator/SyncDeleteOnlineEvaluatorString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_String_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.Empty; + +public class SyncDeleteOnlineEvaluatorString { + + public static void main(String[] args) throws Exception { + syncDeleteOnlineEvaluatorString(); + } + + public static void syncDeleteOnlineEvaluatorString() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString(); + onlineEvaluatorServiceClient.deleteOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_DeleteOnlineEvaluator_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/AsyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/AsyncGetIamPolicy.java new file mode 100644 index 000000000000..cb6f1ea36fdd --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/AsyncGetIamPolicy.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class AsyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncGetIamPolicy(); + } + + public static void asyncGetIamPolicy() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.getIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/SyncGetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/SyncGetIamPolicy.java new file mode 100644 index 000000000000..d789a691041a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getiampolicy/SyncGetIamPolicy.java @@ -0,0 +1,52 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetIamPolicy_sync] +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.GetPolicyOptions; +import com.google.iam.v1.Policy; + +public class SyncGetIamPolicy { + + public static void main(String[] args) throws Exception { + syncGetIamPolicy(); + } + + public static void syncGetIamPolicy() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetIamPolicyRequest request = + GetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setOptions(GetPolicyOptions.newBuilder().build()) + .build(); + Policy response = onlineEvaluatorServiceClient.getIamPolicy(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/AsyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/AsyncGetLocation.java new file mode 100644 index 000000000000..d90c014b6994 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/AsyncGetLocation.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetLocation_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class AsyncGetLocation { + + public static void main(String[] args) throws Exception { + asyncGetLocation(); + } + + public static void asyncGetLocation() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + ApiFuture future = + onlineEvaluatorServiceClient.getLocationCallable().futureCall(request); + // Do something. + Location response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetLocation_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/SyncGetLocation.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/SyncGetLocation.java new file mode 100644 index 000000000000..cd93ad78e611 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getlocation/SyncGetLocation.java @@ -0,0 +1,43 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetLocation_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.GetLocationRequest; +import com.google.cloud.location.Location; + +public class SyncGetLocation { + + public static void main(String[] args) throws Exception { + syncGetLocation(); + } + + public static void syncGetLocation() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build(); + Location response = onlineEvaluatorServiceClient.getLocation(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetLocation_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/AsyncGetOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/AsyncGetOnlineEvaluator.java new file mode 100644 index 000000000000..0427290e409c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/AsyncGetOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class AsyncGetOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncGetOnlineEvaluator(); + } + + public static void asyncGetOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetOnlineEvaluatorRequest request = + GetOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.getOnlineEvaluatorCallable().futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluator.java new file mode 100644 index 000000000000..d088b2ca1f0c --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluator.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.GetOnlineEvaluatorRequest; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncGetOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluator(); + } + + public static void syncGetOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + GetOnlineEvaluatorRequest request = + GetOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorOnlineevaluatorname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorOnlineevaluatorname.java new file mode 100644 index 000000000000..e91ac0ab0dc9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorOnlineevaluatorname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_Onlineevaluatorname_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncGetOnlineEvaluatorOnlineevaluatorname { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluatorOnlineevaluatorname(); + } + + public static void syncGetOnlineEvaluatorOnlineevaluatorname() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_Onlineevaluatorname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorString.java new file mode 100644 index 000000000000..60408e620275 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/getonlineevaluator/SyncGetOnlineEvaluatorString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_String_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncGetOnlineEvaluatorString { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluatorString(); + } + + public static void syncGetOnlineEvaluatorString() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString(); + OnlineEvaluator response = onlineEvaluatorServiceClient.getOnlineEvaluator(name); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_GetOnlineEvaluator_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocations.java new file mode 100644 index 000000000000..12b06e208d41 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocations.java @@ -0,0 +1,55 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class AsyncListLocations { + + public static void main(String[] args) throws Exception { + asyncListLocations(); + } + + public static void asyncListLocations() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.listLocationsPagedCallable().futureCall(request); + // Do something. + for (Location element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocationsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocationsPaged.java new file mode 100644 index 000000000000..c0d17db7d6e9 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/AsyncListLocationsPaged.java @@ -0,0 +1,63 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_Paged_async] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.ListLocationsResponse; +import com.google.cloud.location.Location; +import com.google.common.base.Strings; + +public class AsyncListLocationsPaged { + + public static void main(String[] args) throws Exception { + asyncListLocationsPaged(); + } + + public static void asyncListLocationsPaged() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + while (true) { + ListLocationsResponse response = + onlineEvaluatorServiceClient.listLocationsCallable().call(request); + for (Location element : response.getLocationsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/SyncListLocations.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/SyncListLocations.java new file mode 100644 index 000000000000..9b3f03945d28 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listlocations/SyncListLocations.java @@ -0,0 +1,51 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.location.ListLocationsRequest; +import com.google.cloud.location.Location; + +public class SyncListLocations { + + public static void main(String[] args) throws Exception { + syncListLocations(); + } + + public static void syncListLocations() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListLocationsRequest request = + ListLocationsRequest.newBuilder() + .setName("name3373707") + .setFilter("filter-1274492040") + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .build(); + for (Location element : onlineEvaluatorServiceClient.listLocations(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListLocations_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluators.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluators.java new file mode 100644 index 000000000000..342cefde5d04 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluators.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class AsyncListOnlineEvaluators { + + public static void main(String[] args) throws Exception { + asyncListOnlineEvaluators(); + } + + public static void asyncListOnlineEvaluators() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.listOnlineEvaluatorsPagedCallable().futureCall(request); + // Do something. + for (OnlineEvaluator element : future.get().iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluatorsPaged.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluatorsPaged.java new file mode 100644 index 000000000000..ce63c957f3de --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/AsyncListOnlineEvaluatorsPaged.java @@ -0,0 +1,65 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_Paged_async] +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsResponse; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.common.base.Strings; + +public class AsyncListOnlineEvaluatorsPaged { + + public static void main(String[] args) throws Exception { + asyncListOnlineEvaluatorsPaged(); + } + + public static void asyncListOnlineEvaluatorsPaged() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + while (true) { + ListOnlineEvaluatorsResponse response = + onlineEvaluatorServiceClient.listOnlineEvaluatorsCallable().call(request); + for (OnlineEvaluator element : response.getOnlineEvaluatorsList()) { + // doThingsWith(element); + } + String nextPageToken = response.getNextPageToken(); + if (!Strings.isNullOrEmpty(nextPageToken)) { + request = request.toBuilder().setPageToken(nextPageToken).build(); + } else { + break; + } + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_Paged_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluators.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluators.java new file mode 100644 index 000000000000..7c10250c73a5 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluators.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync] +import com.google.cloud.aiplatform.v1beta1.ListOnlineEvaluatorsRequest; +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncListOnlineEvaluators { + + public static void main(String[] args) throws Exception { + syncListOnlineEvaluators(); + } + + public static void syncListOnlineEvaluators() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + ListOnlineEvaluatorsRequest request = + ListOnlineEvaluatorsRequest.newBuilder() + .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString()) + .setPageSize(883849137) + .setPageToken("pageToken873572522") + .setFilter("filter-1274492040") + .setOrderBy("orderBy-1207110587") + .build(); + for (OnlineEvaluator element : + onlineEvaluatorServiceClient.listOnlineEvaluators(request).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsLocationname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsLocationname.java new file mode 100644 index 000000000000..669782ba949e --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsLocationname.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_Locationname_sync] +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncListOnlineEvaluatorsLocationname { + + public static void main(String[] args) throws Exception { + syncListOnlineEvaluatorsLocationname(); + } + + public static void syncListOnlineEvaluatorsLocationname() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (OnlineEvaluator element : + onlineEvaluatorServiceClient.listOnlineEvaluators(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_Locationname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsString.java new file mode 100644 index 000000000000..50e66522558a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/listonlineevaluators/SyncListOnlineEvaluatorsString.java @@ -0,0 +1,46 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_String_sync] +import com.google.cloud.aiplatform.v1beta1.LocationName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncListOnlineEvaluatorsString { + + public static void main(String[] args) throws Exception { + syncListOnlineEvaluatorsString(); + } + + public static void syncListOnlineEvaluatorsString() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString(); + for (OnlineEvaluator element : + onlineEvaluatorServiceClient.listOnlineEvaluators(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_ListOnlineEvaluators_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/AsyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/AsyncSetIamPolicy.java new file mode 100644 index 000000000000..b9fd1a975832 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/AsyncSetIamPolicy.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SetIamPolicy_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class AsyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + asyncSetIamPolicy(); + } + + public static void asyncSetIamPolicy() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.setIamPolicyCallable().futureCall(request); + // Do something. + Policy response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SetIamPolicy_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/SyncSetIamPolicy.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/SyncSetIamPolicy.java new file mode 100644 index 000000000000..440470fb6cc8 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/setiampolicy/SyncSetIamPolicy.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SetIamPolicy_sync] +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.protobuf.FieldMask; + +public class SyncSetIamPolicy { + + public static void main(String[] args) throws Exception { + syncSetIamPolicy(); + } + + public static void syncSetIamPolicy() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SetIamPolicyRequest request = + SetIamPolicyRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .setPolicy(Policy.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + Policy response = onlineEvaluatorServiceClient.setIamPolicy(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SetIamPolicy_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluator.java new file mode 100644 index 000000000000..7ef77f3b5644 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; +import com.google.longrunning.Operation; + +public class AsyncSuspendOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncSuspendOnlineEvaluator(); + } + + public static void asyncSuspendOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.suspendOnlineEvaluatorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..61a7e4621062 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/AsyncSuspendOnlineEvaluatorLRO.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; + +public class AsyncSuspendOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncSuspendOnlineEvaluatorLRO(); + } + + public static void asyncSuspendOnlineEvaluatorLRO() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient + .suspendOnlineEvaluatorOperationCallable() + .futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluator.java new file mode 100644 index 000000000000..d609da9bb247 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluator.java @@ -0,0 +1,50 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.SuspendOnlineEvaluatorRequest; + +public class SyncSuspendOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncSuspendOnlineEvaluator(); + } + + public static void syncSuspendOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + SuspendOnlineEvaluatorRequest request = + SuspendOnlineEvaluatorRequest.newBuilder() + .setName( + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]") + .toString()) + .build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorOnlineevaluatorname.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorOnlineevaluatorname.java new file mode 100644 index 000000000000..8234f6e76406 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorOnlineevaluatorname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_Onlineevaluatorname_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncSuspendOnlineEvaluatorOnlineevaluatorname { + + public static void main(String[] args) throws Exception { + syncSuspendOnlineEvaluatorOnlineevaluatorname(); + } + + public static void syncSuspendOnlineEvaluatorOnlineevaluatorname() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluatorName name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]"); + OnlineEvaluator response = + onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_Onlineevaluatorname_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorString.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorString.java new file mode 100644 index 000000000000..923ef023fa60 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/suspendonlineevaluator/SyncSuspendOnlineEvaluatorString.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_String_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; + +public class SyncSuspendOnlineEvaluatorString { + + public static void main(String[] args) throws Exception { + syncSuspendOnlineEvaluatorString(); + } + + public static void syncSuspendOnlineEvaluatorString() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + String name = + OnlineEvaluatorName.of("[PROJECT]", "[LOCATION]", "[ONLINE_EVALUATOR]").toString(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.suspendOnlineEvaluatorAsync(name).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_SuspendOnlineEvaluator_String_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/AsyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/AsyncTestIamPermissions.java new file mode 100644 index 000000000000..5f408484653a --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/AsyncTestIamPermissions.java @@ -0,0 +1,56 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_TestIamPermissions_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class AsyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + asyncTestIamPermissions(); + } + + public static void asyncTestIamPermissions() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.testIamPermissionsCallable().futureCall(request); + // Do something. + TestIamPermissionsResponse response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_TestIamPermissions_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/SyncTestIamPermissions.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/SyncTestIamPermissions.java new file mode 100644 index 000000000000..dcca60e9f224 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/testiampermissions/SyncTestIamPermissions.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_TestIamPermissions_sync] +import com.google.cloud.aiplatform.v1beta1.EndpointName; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import java.util.ArrayList; + +public class SyncTestIamPermissions { + + public static void main(String[] args) throws Exception { + syncTestIamPermissions(); + } + + public static void syncTestIamPermissions() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + TestIamPermissionsRequest request = + TestIamPermissionsRequest.newBuilder() + .setResource( + EndpointName.ofProjectLocationEndpointName( + "[PROJECT]", "[LOCATION]", "[ENDPOINT]") + .toString()) + .addAllPermissions(new ArrayList()) + .build(); + TestIamPermissionsResponse response = + onlineEvaluatorServiceClient.testIamPermissions(request); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_TestIamPermissions_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluator.java new file mode 100644 index 000000000000..6bf732bff222 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluator.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async] +import com.google.api.core.ApiFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.longrunning.Operation; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + asyncUpdateOnlineEvaluator(); + } + + public static void asyncUpdateOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + UpdateOnlineEvaluatorRequest request = + UpdateOnlineEvaluatorRequest.newBuilder() + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + ApiFuture future = + onlineEvaluatorServiceClient.updateOnlineEvaluatorCallable().futureCall(request); + // Do something. + Operation response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluatorLRO.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluatorLRO.java new file mode 100644 index 000000000000..4a012595a715 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/AsyncUpdateOnlineEvaluatorLRO.java @@ -0,0 +1,53 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_LRO_async] +import com.google.api.gax.longrunning.OperationFuture; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorOperationMetadata; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.protobuf.FieldMask; + +public class AsyncUpdateOnlineEvaluatorLRO { + + public static void main(String[] args) throws Exception { + asyncUpdateOnlineEvaluatorLRO(); + } + + public static void asyncUpdateOnlineEvaluatorLRO() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + UpdateOnlineEvaluatorRequest request = + UpdateOnlineEvaluatorRequest.newBuilder() + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OperationFuture future = + onlineEvaluatorServiceClient.updateOnlineEvaluatorOperationCallable().futureCall(request); + // Do something. + OnlineEvaluator response = future.get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_LRO_async] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluator.java new file mode 100644 index 000000000000..5e59a2a87e09 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluator.java @@ -0,0 +1,49 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.cloud.aiplatform.v1beta1.UpdateOnlineEvaluatorRequest; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncUpdateOnlineEvaluator(); + } + + public static void syncUpdateOnlineEvaluator() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + UpdateOnlineEvaluatorRequest request = + UpdateOnlineEvaluatorRequest.newBuilder() + .setOnlineEvaluator(OnlineEvaluator.newBuilder().build()) + .setUpdateMask(FieldMask.newBuilder().build()) + .build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient.updateOnlineEvaluatorAsync(request).get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluatorOnlineevaluatorFieldmask.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluatorOnlineevaluatorFieldmask.java new file mode 100644 index 000000000000..1af6cd030f76 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservice/updateonlineevaluator/SyncUpdateOnlineEvaluatorOnlineevaluatorFieldmask.java @@ -0,0 +1,47 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_OnlineevaluatorFieldmask_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluator; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceClient; +import com.google.protobuf.FieldMask; + +public class SyncUpdateOnlineEvaluatorOnlineevaluatorFieldmask { + + public static void main(String[] args) throws Exception { + syncUpdateOnlineEvaluatorOnlineevaluatorFieldmask(); + } + + public static void syncUpdateOnlineEvaluatorOnlineevaluatorFieldmask() 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 (OnlineEvaluatorServiceClient onlineEvaluatorServiceClient = + OnlineEvaluatorServiceClient.create()) { + OnlineEvaluator onlineEvaluator = OnlineEvaluator.newBuilder().build(); + FieldMask updateMask = FieldMask.newBuilder().build(); + OnlineEvaluator response = + onlineEvaluatorServiceClient + .updateOnlineEvaluatorAsync(onlineEvaluator, updateMask) + .get(); + } + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorService_UpdateOnlineEvaluator_OnlineevaluatorFieldmask_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/createonlineevaluator/SyncCreateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/createonlineevaluator/SyncCreateOnlineEvaluator.java new file mode 100644 index 000000000000..fde36c4c337f --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/createonlineevaluator/SyncCreateOnlineEvaluator.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorServiceSettings_CreateOnlineEvaluator_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceSettings; +import java.time.Duration; + +public class SyncCreateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluator(); + } + + public static void syncCreateOnlineEvaluator() 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 + OnlineEvaluatorServiceSettings.Builder onlineEvaluatorServiceSettingsBuilder = + OnlineEvaluatorServiceSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + onlineEvaluatorServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorServiceSettings_CreateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/getonlineevaluator/SyncGetOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/getonlineevaluator/SyncGetOnlineEvaluator.java new file mode 100644 index 000000000000..dfb1fbc53aa2 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/onlineevaluatorservicesettings/getonlineevaluator/SyncGetOnlineEvaluator.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorServiceSettings_GetOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.OnlineEvaluatorServiceSettings; +import java.time.Duration; + +public class SyncGetOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluator(); + } + + public static void syncGetOnlineEvaluator() 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 + OnlineEvaluatorServiceSettings.Builder onlineEvaluatorServiceSettingsBuilder = + OnlineEvaluatorServiceSettings.newBuilder(); + onlineEvaluatorServiceSettingsBuilder + .getOnlineEvaluatorSettings() + .setRetrySettings( + onlineEvaluatorServiceSettingsBuilder + .getOnlineEvaluatorSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + OnlineEvaluatorServiceSettings onlineEvaluatorServiceSettings = + onlineEvaluatorServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorServiceSettings_GetOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/createonlineevaluator/SyncCreateOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/createonlineevaluator/SyncCreateOnlineEvaluator.java new file mode 100644 index 000000000000..3f118fec8667 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/createonlineevaluator/SyncCreateOnlineEvaluator.java @@ -0,0 +1,54 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorServiceStubSettings_CreateOnlineEvaluator_sync] +import com.google.api.gax.longrunning.OperationalTimedPollAlgorithm; +import com.google.api.gax.retrying.RetrySettings; +import com.google.api.gax.retrying.TimedRetryAlgorithm; +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStubSettings; +import java.time.Duration; + +public class SyncCreateOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncCreateOnlineEvaluator(); + } + + public static void syncCreateOnlineEvaluator() 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 + OnlineEvaluatorServiceStubSettings.Builder onlineEvaluatorServiceSettingsBuilder = + OnlineEvaluatorServiceStubSettings.newBuilder(); + TimedRetryAlgorithm timedRetryAlgorithm = + OperationalTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelayDuration(Duration.ofMillis(500)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelayDuration(Duration.ofMillis(5000)) + .setTotalTimeoutDuration(Duration.ofHours(24)) + .build()); + onlineEvaluatorServiceSettingsBuilder + .createClusterOperationSettings() + .setPollingAlgorithm(timedRetryAlgorithm) + .build(); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorServiceStubSettings_CreateOnlineEvaluator_sync] diff --git a/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/getonlineevaluator/SyncGetOnlineEvaluator.java b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/getonlineevaluator/SyncGetOnlineEvaluator.java new file mode 100644 index 000000000000..1f1766b3fb29 --- /dev/null +++ b/java-aiplatform/samples/snippets/generated/com/google/cloud/aiplatform/v1beta1/stub/onlineevaluatorservicestubsettings/getonlineevaluator/SyncGetOnlineEvaluator.java @@ -0,0 +1,57 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.aiplatform.v1beta1.stub.samples; + +// [START aiplatform_v1beta1_generated_OnlineEvaluatorServiceStubSettings_GetOnlineEvaluator_sync] +import com.google.cloud.aiplatform.v1beta1.stub.OnlineEvaluatorServiceStubSettings; +import java.time.Duration; + +public class SyncGetOnlineEvaluator { + + public static void main(String[] args) throws Exception { + syncGetOnlineEvaluator(); + } + + public static void syncGetOnlineEvaluator() 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 + OnlineEvaluatorServiceStubSettings.Builder onlineEvaluatorServiceSettingsBuilder = + OnlineEvaluatorServiceStubSettings.newBuilder(); + onlineEvaluatorServiceSettingsBuilder + .getOnlineEvaluatorSettings() + .setRetrySettings( + onlineEvaluatorServiceSettingsBuilder + .getOnlineEvaluatorSettings() + .getRetrySettings() + .toBuilder() + .setInitialRetryDelayDuration(Duration.ofSeconds(1)) + .setInitialRpcTimeoutDuration(Duration.ofSeconds(5)) + .setMaxAttempts(5) + .setMaxRetryDelayDuration(Duration.ofSeconds(30)) + .setMaxRpcTimeoutDuration(Duration.ofSeconds(60)) + .setRetryDelayMultiplier(1.3) + .setRpcTimeoutMultiplier(1.5) + .setTotalTimeoutDuration(Duration.ofSeconds(300)) + .build()); + OnlineEvaluatorServiceStubSettings onlineEvaluatorServiceSettings = + onlineEvaluatorServiceSettingsBuilder.build(); + } +} +// [END aiplatform_v1beta1_generated_OnlineEvaluatorServiceStubSettings_GetOnlineEvaluator_sync] diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java index 01ae90057efe..c4e47187b97b 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/AuditClient.java @@ -155,7 +155,9 @@ * * *

            ListLocations - *

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

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

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

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

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

            *
              @@ -1010,6 +1012,18 @@ public final UnaryCallable getFramewor /** * Lists information about the supported locations for this service. * + *

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

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

              Sample code: * *

              {@code
              @@ -1043,6 +1057,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                 /**
                  * Lists information about the supported locations for this service.
                  *
              +   * 

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

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

              Sample code: * *

              {@code
              @@ -1076,6 +1102,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                 /**
                  * Lists information about the supported locations for this service.
                  *
              +   * 

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

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

              Sample code: * *

              {@code
              diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java
              index d879166fca09..2cbceb5b951c 100644
              --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java
              +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CmEnrollmentServiceClient.java
              @@ -108,7 +108,9 @@
                *    
                *    
                *      

              ListLocations - *

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

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

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

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

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

              *
                @@ -492,6 +494,18 @@ public final CalculateEffectiveCmEnrollmentResponse calculateEffectiveCmEnrollme /** * Lists information about the supported locations for this service. * + *

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

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

                Sample code: * *

                {@code
                @@ -525,6 +539,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                   /**
                    * Lists information about the supported locations for this service.
                    *
                +   * 

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

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

                Sample code: * *

                {@code
                @@ -559,6 +585,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                   /**
                    * Lists information about the supported locations for this service.
                    *
                +   * 

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

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

                Sample code: * *

                {@code
                diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java
                index 85f666336d98..3a86093174c7 100644
                --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java
                +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClient.java
                @@ -53,7 +53,9 @@
                  * // - 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 (ConfigClient configClient = ConfigClient.create()) {
                - *   FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]");
                + *   FrameworkName name =
                + *       FrameworkName.ofOrganizationLocationFrameworkName(
                + *           "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]");
                  *   Framework response = configClient.getFramework(name);
                  * }
                  * }
                @@ -78,6 +80,7 @@ *
              *

              "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

              *
                + *
              • listFrameworks(LocationName parent) *

              • listFrameworks(OrganizationLocationName parent) *

              • listFrameworks(String parent) *

              @@ -118,6 +121,7 @@ *
            *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            *
              + *
            • createFramework(LocationName parent, Framework framework, String frameworkId) *

            • createFramework(OrganizationLocationName parent, Framework framework, String frameworkId) *

            • createFramework(String parent, Framework framework, String frameworkId) *

            @@ -177,6 +181,7 @@ * *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            *
              + *
            • listCloudControls(LocationName parent) *

            • listCloudControls(OrganizationLocationName parent) *

            • listCloudControls(String parent) *

            @@ -217,6 +222,7 @@ * *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            *
              + *
            • createCloudControl(LocationName parent, CloudControl cloudControl, String cloudControlId) *

            • createCloudControl(OrganizationLocationName parent, CloudControl cloudControl, String cloudControlId) *

            • createCloudControl(String parent, CloudControl cloudControl, String cloudControlId) *

            @@ -268,7 +274,9 @@ * * *

            ListLocations - *

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

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

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

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

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

            *
              @@ -396,6 +404,41 @@ public ConfigStub getStub() { return stub; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the frameworks (both built-in and custom) that are available within the parent resource. + * The latest major version of each framework is returned. This method supports pagination. + * + *

              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 (ConfigClient configClient = ConfigClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   for (Framework element : configClient.listFrameworks(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}` - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFrameworksPagedResponse listFrameworks(LocationName parent) { + ListFrameworksRequest request = + ListFrameworksRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFrameworks(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the frameworks (both built-in and custom) that are available within the parent resource. @@ -417,9 +460,10 @@ public ConfigStub getStub() { * } * } * - * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}` - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworksPagedResponse listFrameworks(OrganizationLocationName parent) { @@ -451,9 +495,10 @@ public final ListFrameworksPagedResponse listFrameworks(OrganizationLocationName * } * } * - * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}` - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworksPagedResponse listFrameworks(String parent) { @@ -583,14 +628,17 @@ public final ListFrameworksPagedResponse listFrameworks(ListFrameworksRequest re * // - 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 (ConfigClient configClient = ConfigClient.create()) { - * FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + * FrameworkName name = + * FrameworkName.ofOrganizationLocationFrameworkName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); * Framework response = configClient.getFramework(name); * } * } * - * @param name Required. The name of the framework to retrieve, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` The only - * supported location is `global`. + * @param name Required. The name of the framework to retrieve, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Framework getFramework(FrameworkName name) { @@ -615,14 +663,18 @@ public final Framework getFramework(FrameworkName name) { * // - 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 (ConfigClient configClient = ConfigClient.create()) { - * String name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString(); + * String name = + * FrameworkName.ofOrganizationLocationFrameworkName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + * .toString(); * Framework response = configClient.getFramework(name); * } * } * - * @param name Required. The name of the framework to retrieve, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework_id}` The only - * supported location is `global`. + * @param name Required. The name of the framework to retrieve, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final Framework getFramework(String name) { @@ -648,7 +700,10 @@ public final Framework getFramework(String name) { * try (ConfigClient configClient = ConfigClient.create()) { * GetFrameworkRequest request = * GetFrameworkRequest.newBuilder() - * .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + * .setName( + * FrameworkName.ofOrganizationLocationFrameworkName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + * .toString()) * .setMajorRevisionId(612576889) * .build(); * Framework response = configClient.getFramework(request); @@ -680,7 +735,10 @@ public final Framework getFramework(GetFrameworkRequest request) { * try (ConfigClient configClient = ConfigClient.create()) { * GetFrameworkRequest request = * GetFrameworkRequest.newBuilder() - * .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + * .setName( + * FrameworkName.ofOrganizationLocationFrameworkName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + * .toString()) * .setMajorRevisionId(612576889) * .build(); * ApiFuture future = configClient.getFrameworkCallable().futureCall(request); @@ -693,6 +751,47 @@ public final UnaryCallable getFrameworkCallable( return stub.getFrameworkCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a custom framework in a given parent resource. You can't create built-in frameworks + * because those are managed by Google. + * + *

              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 (ConfigClient configClient = ConfigClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   Framework framework = Framework.newBuilder().build();
              +   *   String frameworkId = "frameworkId886666169";
              +   *   Framework response = configClient.createFramework(parent, framework, frameworkId);
              +   * }
              +   * }
              + * + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}` - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. + * @param framework Required. The resource being created. + * @param frameworkId Required. The identifier (ID) of the framework. The ID is not the full name + * of the framework; it's the last part of the full name of the framework. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final Framework createFramework( + LocationName parent, Framework framework, String frameworkId) { + CreateFrameworkRequest request = + CreateFrameworkRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFramework(framework) + .setFrameworkId(frameworkId) + .build(); + return createFramework(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a custom framework in a given parent resource. You can't create built-in frameworks @@ -714,9 +813,10 @@ public final UnaryCallable getFrameworkCallable( * } * } * - * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}` - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. * @param framework Required. The resource being created. * @param frameworkId Required. The identifier (ID) of the framework. The ID is not the full name * of the framework; it's the last part of the full name of the framework. @@ -754,9 +854,10 @@ public final Framework createFramework( * } * } * - * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}` - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. * @param framework Required. The resource being created. * @param frameworkId Required. The identifier (ID) of the framework. The ID is not the full name * of the framework; it's the last part of the full name of the framework. @@ -969,14 +1070,17 @@ public final UnaryCallable updateFrameworkCal * // - 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 (ConfigClient configClient = ConfigClient.create()) { - * FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + * FrameworkName name = + * FrameworkName.ofOrganizationLocationFrameworkName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); * configClient.deleteFramework(name); * } * } * - * @param name Required. The name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. The only - * supported location is `global`. + * @param name Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteFramework(FrameworkName name) { @@ -1003,14 +1107,18 @@ public final void deleteFramework(FrameworkName name) { * // - 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 (ConfigClient configClient = ConfigClient.create()) { - * String name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString(); + * String name = + * FrameworkName.ofOrganizationLocationFrameworkName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + * .toString(); * configClient.deleteFramework(name); * } * } * - * @param name Required. The name of the resource, in the format - * `organizations/{organization}/locations/{location}/frameworks/{framework}`. The only - * supported location is `global`. + * @param name Required. The name of the resource, in one of the following formats: + * `organizations/{organization}/locations/{location}/frameworks/{framework}` or + * `projects/{project}/locations/{location}/frameworks/{framework}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteFramework(String name) { @@ -1038,7 +1146,10 @@ public final void deleteFramework(String name) { * try (ConfigClient configClient = ConfigClient.create()) { * DeleteFrameworkRequest request = * DeleteFrameworkRequest.newBuilder() - * .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + * .setName( + * FrameworkName.ofOrganizationLocationFrameworkName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + * .toString()) * .build(); * configClient.deleteFramework(request); * } @@ -1071,7 +1182,10 @@ public final void deleteFramework(DeleteFrameworkRequest request) { * try (ConfigClient configClient = ConfigClient.create()) { * DeleteFrameworkRequest request = * DeleteFrameworkRequest.newBuilder() - * .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + * .setName( + * FrameworkName.ofOrganizationLocationFrameworkName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + * .toString()) * .build(); * ApiFuture future = configClient.deleteFrameworkCallable().futureCall(request); * // Do something. @@ -1083,6 +1197,42 @@ public final UnaryCallable deleteFrameworkCallabl return stub.deleteFrameworkCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the cloud controls (both built-in and custom) that are available in a given parent + * resource. The latest major version of each cloud control is returned. This method supports + * pagination. + * + *

              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 (ConfigClient configClient = ConfigClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   for (CloudControl element : configClient.listCloudControls(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}` - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudControlsPagedResponse listCloudControls(LocationName parent) { + ListCloudControlsRequest request = + ListCloudControlsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCloudControls(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the cloud controls (both built-in and custom) that are available in a given parent @@ -1105,9 +1255,10 @@ public final UnaryCallable deleteFrameworkCallabl * } * } * - * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}` - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlsPagedResponse listCloudControls(OrganizationLocationName parent) { @@ -1140,9 +1291,10 @@ public final ListCloudControlsPagedResponse listCloudControls(OrganizationLocati * } * } * - * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}` - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlsPagedResponse listCloudControls(String parent) { @@ -1279,14 +1431,16 @@ public final ListCloudControlsPagedResponse listCloudControls(ListCloudControlsR * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { * CloudControlName name = - * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + * CloudControlName.ofOrganizationLocationCloudControlName( + * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); * CloudControl response = configClient.getCloudControl(name); * } * } * - * @param name Required. The name of the cloud control to retrieve, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. The only - * supported location is `global`. + * @param name Required. The name of the cloud control to retrieve, in one of the following + * formats: `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControl getCloudControl(CloudControlName name) { @@ -1313,14 +1467,17 @@ public final CloudControl getCloudControl(CloudControlName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { * String name = - * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString(); + * CloudControlName.ofOrganizationLocationCloudControlName( + * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + * .toString(); * CloudControl response = configClient.getCloudControl(name); * } * } * - * @param name Required. The name of the cloud control to retrieve, in the format - * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. The only - * supported location is `global`. + * @param name Required. The name of the cloud control to retrieve, in one of the following + * formats: `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + * or `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final CloudControl getCloudControl(String name) { @@ -1348,7 +1505,9 @@ public final CloudControl getCloudControl(String name) { * GetCloudControlRequest request = * GetCloudControlRequest.newBuilder() * .setName( - * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + * CloudControlName.ofOrganizationLocationCloudControlName( + * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + * .toString()) * .setMajorRevisionId(612576889) * .build(); * CloudControl response = configClient.getCloudControl(request); @@ -1382,7 +1541,9 @@ public final CloudControl getCloudControl(GetCloudControlRequest request) { * GetCloudControlRequest request = * GetCloudControlRequest.newBuilder() * .setName( - * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + * CloudControlName.ofOrganizationLocationCloudControlName( + * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + * .toString()) * .setMajorRevisionId(612576889) * .build(); * ApiFuture future = configClient.getCloudControlCallable().futureCall(request); @@ -1395,6 +1556,47 @@ public final UnaryCallable getCloudControl return stub.getCloudControlCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a custom cloud control in a given parent resource. You can't create built-in cloud + * controls because those are managed by Google. + * + *

              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 (ConfigClient configClient = ConfigClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   CloudControl cloudControl = CloudControl.newBuilder().build();
              +   *   String cloudControlId = "cloudControlId657324195";
              +   *   CloudControl response = configClient.createCloudControl(parent, cloudControl, cloudControlId);
              +   * }
              +   * }
              + * + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}`. - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. + * @param cloudControl Required. The cloud control that's being created. + * @param cloudControlId Required. The identifier for the cloud control, which is the last segment + * of the cloud control name. The format is `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final CloudControl createCloudControl( + LocationName parent, CloudControl cloudControl, String cloudControlId) { + CreateCloudControlRequest request = + CreateCloudControlRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setCloudControl(cloudControl) + .setCloudControlId(cloudControlId) + .build(); + return createCloudControl(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a custom cloud control in a given parent resource. You can't create built-in cloud @@ -1416,9 +1618,10 @@ public final UnaryCallable getCloudControl * } * } * - * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}`. - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. * @param cloudControl Required. The cloud control that's being created. * @param cloudControlId Required. The identifier for the cloud control, which is the last segment * of the cloud control name. The format is `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. @@ -1456,9 +1659,10 @@ public final CloudControl createCloudControl( * } * } * - * @param parent Required. The parent resource name, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * @param parent Required. The parent resource name, in one of the following formats: - + * `organizations/{organization}/locations/{location}`. - + * `projects/{project}/locations/{location}`. + *

              The only supported location is `global`. * @param cloudControl Required. The cloud control that's being created. * @param cloudControlId Required. The identifier for the cloud control, which is the last segment * of the cloud control name. The format is `^[a-zA-Z][a-zA-Z0-9-]{0,61}[a-zA-Z0-9]$`. @@ -1675,14 +1879,16 @@ public final UnaryCallable updateCloudC * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { * CloudControlName name = - * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + * CloudControlName.ofOrganizationLocationCloudControlName( + * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); * configClient.deleteCloudControl(name); * } * } * - * @param name Required. The name of the cloud control to delete, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. The only - * supported location is `global`. + * @param name Required. The name of the cloud control to delete, in one of the following formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteCloudControl(CloudControlName name) { @@ -1712,14 +1918,17 @@ public final void deleteCloudControl(CloudControlName name) { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (ConfigClient configClient = ConfigClient.create()) { * String name = - * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString(); + * CloudControlName.ofOrganizationLocationCloudControlName( + * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + * .toString(); * configClient.deleteCloudControl(name); * } * } * - * @param name Required. The name of the cloud control to delete, in the format - * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. The only - * supported location is `global`. + * @param name Required. The name of the cloud control to delete, in one of the following formats: + * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` or + * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + *

              The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final void deleteCloudControl(String name) { @@ -1749,7 +1958,9 @@ public final void deleteCloudControl(String name) { * DeleteCloudControlRequest request = * DeleteCloudControlRequest.newBuilder() * .setName( - * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + * CloudControlName.ofOrganizationLocationCloudControlName( + * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + * .toString()) * .build(); * configClient.deleteCloudControl(request); * } @@ -1783,7 +1994,9 @@ public final void deleteCloudControl(DeleteCloudControlRequest request) { * DeleteCloudControlRequest request = * DeleteCloudControlRequest.newBuilder() * .setName( - * CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + * CloudControlName.ofOrganizationLocationCloudControlName( + * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + * .toString()) * .build(); * ApiFuture future = configClient.deleteCloudControlCallable().futureCall(request); * // Do something. @@ -1799,6 +2012,18 @@ public final UnaryCallable deleteCloudControlC /** * Lists information about the supported locations for this service. * + *

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

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

              Sample code: * *

              {@code
              @@ -1832,6 +2057,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                 /**
                  * Lists information about the supported locations for this service.
                  *
              +   * 

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

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

              Sample code: * *

              {@code
              @@ -1865,6 +2102,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                 /**
                  * Lists information about the supported locations for this service.
                  *
              +   * 

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

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

              Sample code: * *

              {@code
              diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java
              index b5fef23786a7..dc8a66e1d429 100644
              --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java
              +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClient.java
              @@ -58,7 +58,8 @@
                * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
                * try (DeploymentClient deploymentClient = DeploymentClient.create()) {
                *   FrameworkDeploymentName name =
              - *       FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]");
              + *       FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName(
              + *           "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]");
                *   FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name);
                * }
                * }
              @@ -83,6 +84,7 @@ *
            *

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

            *
              + *
            • createFrameworkDeploymentAsync(LocationName parent, FrameworkDeployment frameworkDeployment, String frameworkDeploymentId) *

            • createFrameworkDeploymentAsync(OrganizationLocationName parent, FrameworkDeployment frameworkDeployment, String frameworkDeploymentId) *

            • createFrameworkDeploymentAsync(String parent, FrameworkDeployment frameworkDeployment, String frameworkDeploymentId) *

            @@ -142,6 +144,7 @@ * *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            *
              + *
            • listFrameworkDeployments(LocationName parent) *

            • listFrameworkDeployments(OrganizationLocationName parent) *

            • listFrameworkDeployments(String parent) *

            @@ -181,6 +184,7 @@ * *

            "Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

            *
              + *
            • listCloudControlDeployments(LocationName parent) *

            • listCloudControlDeployments(OrganizationLocationName parent) *

            • listCloudControlDeployments(String parent) *

            @@ -193,7 +197,9 @@ * * *

            ListLocations - *

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

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

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

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

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

            *
              @@ -347,6 +353,53 @@ public final OperationsClient getHttpJsonOperationsClient() { return httpJsonOperationsClient; } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Creates a framework deployment in a given parent resource. A framework deployment lets you + * assign a particular framework version to an organization, folder, or project so that you can + * control and monitor those resources using the framework's cloud controls. + * + *

              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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build();
              +   *   String frameworkDeploymentId = "frameworkDeploymentId-1244700706";
              +   *   FrameworkDeployment response =
              +   *       deploymentClient
              +   *           .createFrameworkDeploymentAsync(parent, frameworkDeployment, frameworkDeploymentId)
              +   *           .get();
              +   * }
              +   * }
              + * + * @param parent Required. The parent resource of the framework deployment in the format + * `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. Only the global location is supported. + * @param frameworkDeployment Required. The framework deployment that you're creating. + * @param frameworkDeploymentId Optional. An identifier for the framework deployment that's unique + * in scope of the parent. If you don't specify a value, then a random UUID is generated. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture + createFrameworkDeploymentAsync( + LocationName parent, + FrameworkDeployment frameworkDeployment, + String frameworkDeploymentId) { + CreateFrameworkDeploymentRequest request = + CreateFrameworkDeploymentRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setFrameworkDeployment(frameworkDeployment) + .setFrameworkDeploymentId(frameworkDeploymentId) + .build(); + return createFrameworkDeploymentAsync(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Creates a framework deployment in a given parent resource. A framework deployment lets you @@ -373,7 +426,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * * @param parent Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}`. Only the global location is supported. + * `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. Only the global location is supported. * @param frameworkDeployment Required. The framework deployment that you're creating. * @param frameworkDeploymentId Optional. An identifier for the framework deployment that's unique * in scope of the parent. If you don't specify a value, then a random UUID is generated. @@ -419,7 +473,8 @@ public final OperationsClient getHttpJsonOperationsClient() { * } * * @param parent Required. The parent resource of the framework deployment in the format - * `organizations/{organization}/locations/{location}`. Only the global location is supported. + * `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. Only the global location is supported. * @param frameworkDeployment Required. The framework deployment that you're creating. * @param frameworkDeploymentId Optional. An identifier for the framework deployment that's unique * in scope of the parent. If you don't specify a value, then a random UUID is generated. @@ -551,14 +606,16 @@ public final OperationsClient getHttpJsonOperationsClient() { * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeploymentClient deploymentClient = DeploymentClient.create()) { * FrameworkDeploymentName name = - * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); * deploymentClient.deleteFrameworkDeploymentAsync(name).get(); * } * } * * @param name Required. The name of the framework deployment that you want to delete, in the * format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -585,7 +642,8 @@ public final OperationFuture deleteFrameworkDeployment * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeploymentClient deploymentClient = DeploymentClient.create()) { * String name = - * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") * .toString(); * deploymentClient.deleteFrameworkDeploymentAsync(name).get(); * } @@ -593,7 +651,8 @@ public final OperationFuture deleteFrameworkDeployment * * @param name Required. The name of the framework deployment that you want to delete, in the * format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -620,7 +679,7 @@ public final OperationFuture deleteFrameworkDeployment * DeleteFrameworkDeploymentRequest request = * DeleteFrameworkDeploymentRequest.newBuilder() * .setName( - * FrameworkDeploymentName.of( + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") * .toString()) * .setEtag("etag3123477") @@ -653,7 +712,7 @@ public final OperationFuture deleteFrameworkDeployment * DeleteFrameworkDeploymentRequest request = * DeleteFrameworkDeploymentRequest.newBuilder() * .setName( - * FrameworkDeploymentName.of( + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") * .toString()) * .setEtag("etag3123477") @@ -686,7 +745,7 @@ public final OperationFuture deleteFrameworkDeployment * DeleteFrameworkDeploymentRequest request = * DeleteFrameworkDeploymentRequest.newBuilder() * .setName( - * FrameworkDeploymentName.of( + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") * .toString()) * .setEtag("etag3123477") @@ -717,13 +776,15 @@ public final OperationFuture deleteFrameworkDeployment * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeploymentClient deploymentClient = DeploymentClient.create()) { * FrameworkDeploymentName name = - * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); * FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name); * } * } * * @param name Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -749,14 +810,16 @@ public final FrameworkDeployment getFrameworkDeployment(FrameworkDeploymentName * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeploymentClient deploymentClient = DeploymentClient.create()) { * String name = - * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") * .toString(); * FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name); * } * } * * @param name Required. The name of the framework deployment, in the format - * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + * or `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -782,7 +845,7 @@ public final FrameworkDeployment getFrameworkDeployment(String name) { * GetFrameworkDeploymentRequest request = * GetFrameworkDeploymentRequest.newBuilder() * .setName( - * FrameworkDeploymentName.of( + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") * .toString()) * .build(); @@ -813,7 +876,7 @@ public final FrameworkDeployment getFrameworkDeployment(GetFrameworkDeploymentRe * GetFrameworkDeploymentRequest request = * GetFrameworkDeploymentRequest.newBuilder() * .setName( - * FrameworkDeploymentName.of( + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") * .toString()) * .build(); @@ -829,6 +892,40 @@ public final FrameworkDeployment getFrameworkDeployment(GetFrameworkDeploymentRe return stub.getFrameworkDeploymentCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the framework deployments in a given parent resource. + * + *

              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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   for (FrameworkDeployment element :
              +   *       deploymentClient.listFrameworkDeployments(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent resource of the framework deployment, in the format + * `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. The only supported location is `global`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments(LocationName parent) { + ListFrameworkDeploymentsRequest request = + ListFrameworkDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listFrameworkDeployments(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the framework deployments in a given parent resource. @@ -851,8 +948,8 @@ public final FrameworkDeployment getFrameworkDeployment(GetFrameworkDeploymentRe * } * * @param parent Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( @@ -886,8 +983,8 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( * } * * @param parent Required. The parent resource of the framework deployment, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments(String parent) { @@ -1023,14 +1120,16 @@ public final ListFrameworkDeploymentsPagedResponse listFrameworkDeployments( * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeploymentClient deploymentClient = DeploymentClient.create()) { * CloudControlDeploymentName name = - * CloudControlDeploymentName.of( + * CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]"); * CloudControlDeployment response = deploymentClient.getCloudControlDeployment(name); * } * } * * @param name Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1056,7 +1155,7 @@ public final CloudControlDeployment getCloudControlDeployment(CloudControlDeploy * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeploymentClient deploymentClient = DeploymentClient.create()) { * String name = - * CloudControlDeploymentName.of( + * CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") * .toString(); * CloudControlDeployment response = deploymentClient.getCloudControlDeployment(name); @@ -1064,7 +1163,9 @@ public final CloudControlDeployment getCloudControlDeployment(CloudControlDeploy * } * * @param name Required. The name for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + * or + * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. * The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ @@ -1090,7 +1191,7 @@ public final CloudControlDeployment getCloudControlDeployment(String name) { * GetCloudControlDeploymentRequest request = * GetCloudControlDeploymentRequest.newBuilder() * .setName( - * CloudControlDeploymentName.of( + * CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") * .toString()) * .build(); @@ -1122,7 +1223,7 @@ public final CloudControlDeployment getCloudControlDeployment( * GetCloudControlDeploymentRequest request = * GetCloudControlDeploymentRequest.newBuilder() * .setName( - * CloudControlDeploymentName.of( + * CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( * "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") * .toString()) * .build(); @@ -1138,6 +1239,41 @@ public final CloudControlDeployment getCloudControlDeployment( return stub.getCloudControlDeploymentCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Lists the cloud conrol deployments in a given parent resource. + * + *

              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 (DeploymentClient deploymentClient = DeploymentClient.create()) {
              +   *   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
              +   *   for (CloudControlDeployment element :
              +   *       deploymentClient.listCloudControlDeployments(parent).iterateAll()) {
              +   *     // doThingsWith(element);
              +   *   }
              +   * }
              +   * }
              + * + * @param parent Required. The parent resource for the cloud control deployment, in the format + * `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. The only supported location is `global`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployments( + LocationName parent) { + ListCloudControlDeploymentsRequest request = + ListCloudControlDeploymentsRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .build(); + return listCloudControlDeployments(request); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists the cloud conrol deployments in a given parent resource. @@ -1160,8 +1296,8 @@ public final CloudControlDeployment getCloudControlDeployment( * } * * @param parent Required. The parent resource for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployments( @@ -1195,8 +1331,8 @@ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployment * } * * @param parent Required. The parent resource for the cloud control deployment, in the format - * `organizations/{organization}/locations/{location}`. The only supported location is - * `global`. + * `organizations/{organization}/locations/{location}` or + * `projects/{project}/locations/{location}`. The only supported location is `global`. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployments(String parent) { @@ -1324,6 +1460,18 @@ public final ListCloudControlDeploymentsPagedResponse listCloudControlDeployment /** * Lists information about the supported locations for this service. * + *

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

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

              Sample code: * *

              {@code
              @@ -1357,6 +1505,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                 /**
                  * Lists information about the supported locations for this service.
                  *
              +   * 

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

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

              Sample code: * *

              {@code
              @@ -1391,6 +1551,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                 /**
                  * Lists information about the supported locations for this service.
                  *
              +   * 

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

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

              Sample code: * *

              {@code
              diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java
              index 7bdc086060ca..c25e2c7492d3 100644
              --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java
              +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringClient.java
              @@ -171,7 +171,9 @@
                *    
                *    
                *      

              ListLocations - *

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

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

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

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

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

              *
                @@ -449,6 +451,7 @@ public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplian * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setView(FrameworkComplianceSummaryView.forNumber(0)) * .build(); * for (FrameworkComplianceSummary element : * monitoringClient.listFrameworkComplianceSummaries(request).iterateAll()) { @@ -484,6 +487,7 @@ public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplian * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setView(FrameworkComplianceSummaryView.forNumber(0)) * .build(); * ApiFuture future = * monitoringClient.listFrameworkComplianceSummariesPagedCallable().futureCall(request); @@ -519,6 +523,7 @@ public final ListFrameworkComplianceSummariesPagedResponse listFrameworkComplian * .setPageSize(883849137) * .setPageToken("pageToken873572522") * .setFilter("filter-1274492040") + * .setView(FrameworkComplianceSummaryView.forNumber(0)) * .build(); * while (true) { * ListFrameworkComplianceSummariesResponse response = @@ -859,6 +864,7 @@ public final FrameworkComplianceReport fetchFrameworkComplianceReport(String nam * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") * .toString()) * .setEndTime(Timestamp.newBuilder().build()) + * .setFilter("filter-1274492040") * .build(); * FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(request); * } @@ -892,6 +898,7 @@ public final FrameworkComplianceReport fetchFrameworkComplianceReport( * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") * .toString()) * .setEndTime(Timestamp.newBuilder().build()) + * .setFilter("filter-1274492040") * .build(); * ApiFuture future = * monitoringClient.fetchFrameworkComplianceReportCallable().futureCall(request); @@ -1241,6 +1248,18 @@ public final AggregateFrameworkComplianceReportResponse aggregateFrameworkCompli /** * Lists information about the supported locations for this service. * + *

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

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

                Sample code: * *

                {@code
                @@ -1274,6 +1293,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                   /**
                    * Lists information about the supported locations for this service.
                    *
                +   * 

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

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

                Sample code: * *

                {@code
                @@ -1308,6 +1339,18 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque
                   /**
                    * Lists information about the supported locations for this service.
                    *
                +   * 

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

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

                Sample code: * *

                {@code
                diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/gapic_metadata.json b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/gapic_metadata.json
                index 4e5c128adc6b..e04f52c60d3e 100644
                --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/gapic_metadata.json
                +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/gapic_metadata.json
                @@ -59,10 +59,10 @@
                           "libraryClient": "ConfigClient",
                           "rpcs": {
                             "CreateCloudControl": {
                -              "methods": ["createCloudControl", "createCloudControl", "createCloudControl", "createCloudControlCallable"]
                +              "methods": ["createCloudControl", "createCloudControl", "createCloudControl", "createCloudControl", "createCloudControlCallable"]
                             },
                             "CreateFramework": {
                -              "methods": ["createFramework", "createFramework", "createFramework", "createFrameworkCallable"]
                +              "methods": ["createFramework", "createFramework", "createFramework", "createFramework", "createFrameworkCallable"]
                             },
                             "DeleteCloudControl": {
                               "methods": ["deleteCloudControl", "deleteCloudControl", "deleteCloudControl", "deleteCloudControlCallable"]
                @@ -80,10 +80,10 @@
                               "methods": ["getLocation", "getLocationCallable"]
                             },
                             "ListCloudControls": {
                -              "methods": ["listCloudControls", "listCloudControls", "listCloudControls", "listCloudControlsPagedCallable", "listCloudControlsCallable"]
                +              "methods": ["listCloudControls", "listCloudControls", "listCloudControls", "listCloudControls", "listCloudControlsPagedCallable", "listCloudControlsCallable"]
                             },
                             "ListFrameworks": {
                -              "methods": ["listFrameworks", "listFrameworks", "listFrameworks", "listFrameworksPagedCallable", "listFrameworksCallable"]
                +              "methods": ["listFrameworks", "listFrameworks", "listFrameworks", "listFrameworks", "listFrameworksPagedCallable", "listFrameworksCallable"]
                             },
                             "ListLocations": {
                               "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
                @@ -104,7 +104,7 @@
                           "libraryClient": "DeploymentClient",
                           "rpcs": {
                             "CreateFrameworkDeployment": {
                -              "methods": ["createFrameworkDeploymentAsync", "createFrameworkDeploymentAsync", "createFrameworkDeploymentAsync", "createFrameworkDeploymentOperationCallable", "createFrameworkDeploymentCallable"]
                +              "methods": ["createFrameworkDeploymentAsync", "createFrameworkDeploymentAsync", "createFrameworkDeploymentAsync", "createFrameworkDeploymentAsync", "createFrameworkDeploymentOperationCallable", "createFrameworkDeploymentCallable"]
                             },
                             "DeleteFrameworkDeployment": {
                               "methods": ["deleteFrameworkDeploymentAsync", "deleteFrameworkDeploymentAsync", "deleteFrameworkDeploymentAsync", "deleteFrameworkDeploymentOperationCallable", "deleteFrameworkDeploymentCallable"]
                @@ -119,10 +119,10 @@
                               "methods": ["getLocation", "getLocationCallable"]
                             },
                             "ListCloudControlDeployments": {
                -              "methods": ["listCloudControlDeployments", "listCloudControlDeployments", "listCloudControlDeployments", "listCloudControlDeploymentsPagedCallable", "listCloudControlDeploymentsCallable"]
                +              "methods": ["listCloudControlDeployments", "listCloudControlDeployments", "listCloudControlDeployments", "listCloudControlDeployments", "listCloudControlDeploymentsPagedCallable", "listCloudControlDeploymentsCallable"]
                             },
                             "ListFrameworkDeployments": {
                -              "methods": ["listFrameworkDeployments", "listFrameworkDeployments", "listFrameworkDeployments", "listFrameworkDeploymentsPagedCallable", "listFrameworkDeploymentsCallable"]
                +              "methods": ["listFrameworkDeployments", "listFrameworkDeployments", "listFrameworkDeployments", "listFrameworkDeployments", "listFrameworkDeploymentsPagedCallable", "listFrameworkDeploymentsCallable"]
                             },
                             "ListLocations": {
                               "methods": ["listLocations", "listLocationsPagedCallable", "listLocationsCallable"]
                diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/package-info.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/package-info.java
                index ab03c35b5a54..d0a7c5840351 100644
                --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/package-info.java
                +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/package-info.java
                @@ -75,7 +75,9 @@
                  * // - 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 (ConfigClient configClient = ConfigClient.create()) {
                - *   FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]");
                + *   FrameworkName name =
                + *       FrameworkName.ofOrganizationLocationFrameworkName(
                + *           "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]");
                  *   Framework response = configClient.getFramework(name);
                  * }
                  * }
                @@ -95,7 +97,8 @@ * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library * try (DeploymentClient deploymentClient = DeploymentClient.create()) { * FrameworkDeploymentName name = - * FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + * FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + * "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); * FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name); * } * }
                diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditStub.java index 6830c585287b..04064efed5a0 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditStub.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonAuditStub.java @@ -259,6 +259,7 @@ public class HttpJsonAuditStub extends AuditStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*}/locations") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -293,6 +294,7 @@ public class HttpJsonAuditStub extends AuditStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -375,21 +377,37 @@ protected HttpJsonAuditStub( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/v1/{name=organizations/*/locations/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) .build()) .put( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/v1/{name=organizations/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/v1/{name=organizations/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/v1/{name=organizations/*/locations/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) .build()) .build()); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceStub.java index 35d9ecb0146a..b7d887434fe3 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceStub.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonCmEnrollmentServiceStub.java @@ -159,6 +159,7 @@ public class HttpJsonCmEnrollmentServiceStub extends CmEnrollmentServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*}/locations") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -193,6 +194,7 @@ public class HttpJsonCmEnrollmentServiceStub extends CmEnrollmentServiceStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonConfigStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonConfigStub.java index 1a42e60858f7..fa5a7795cd2e 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonConfigStub.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonConfigStub.java @@ -87,6 +87,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths("/v1/{parent=projects/*/locations/*}/frameworks") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -123,6 +124,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*/frameworks/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -159,6 +161,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths("/v1/{parent=projects/*/locations/*}/frameworks") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -199,6 +202,8 @@ public class HttpJsonConfigStub extends ConfigStub { fields, "framework.name", request.getFramework().getName()); return fields; }) + .setAdditionalPaths( + "/v1/{framework.name=projects/*/locations/*/frameworks/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -239,6 +244,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*/frameworks/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -273,6 +279,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths("/v1/{parent=projects/*/locations/*}/cloudControls") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -309,6 +316,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*/cloudControls/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -346,6 +354,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths("/v1/{parent=projects/*/locations/*}/cloudControls") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -387,6 +396,8 @@ public class HttpJsonConfigStub extends ConfigStub { fields, "cloudControl.name", request.getCloudControl().getName()); return fields; }) + .setAdditionalPaths( + "/v1/{cloudControl.name=projects/*/locations/*/cloudControls/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -426,6 +437,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*/cloudControls/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -460,6 +472,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*}/locations") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -494,6 +507,7 @@ public class HttpJsonConfigStub extends ConfigStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonDeploymentStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonDeploymentStub.java index 018d93a83be3..2f2babd20485 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonDeploymentStub.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonDeploymentStub.java @@ -96,6 +96,8 @@ public class HttpJsonDeploymentStub extends DeploymentStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*}/frameworkDeployments") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -144,6 +146,8 @@ public class HttpJsonDeploymentStub extends DeploymentStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/frameworkDeployments/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -183,6 +187,8 @@ public class HttpJsonDeploymentStub extends DeploymentStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/frameworkDeployments/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -220,6 +226,8 @@ public class HttpJsonDeploymentStub extends DeploymentStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*}/frameworkDeployments") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -259,6 +267,8 @@ public class HttpJsonDeploymentStub extends DeploymentStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths( + "/v1/{name=projects/*/locations/*/cloudControlDeployments/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -296,6 +306,8 @@ public class HttpJsonDeploymentStub extends DeploymentStub { serializer.putPathParam(fields, "parent", request.getParent()); return fields; }) + .setAdditionalPaths( + "/v1/{parent=projects/*/locations/*}/cloudControlDeployments") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -334,6 +346,7 @@ public class HttpJsonDeploymentStub extends DeploymentStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*}/locations") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -368,6 +381,7 @@ public class HttpJsonDeploymentStub extends DeploymentStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -466,21 +480,37 @@ protected HttpJsonDeploymentStub( "google.longrunning.Operations.CancelOperation", HttpRule.newBuilder() .setPost("/v1/{name=organizations/*/locations/*/operations/*}:cancel") + .addAdditionalBindings( + HttpRule.newBuilder() + .setPost("/v1/{name=projects/*/locations/*/operations/*}:cancel") + .build()) .build()) .put( "google.longrunning.Operations.DeleteOperation", HttpRule.newBuilder() .setDelete("/v1/{name=organizations/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setDelete("/v1/{name=projects/*/locations/*/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.GetOperation", HttpRule.newBuilder() .setGet("/v1/{name=organizations/*/locations/*/operations/*}") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*/operations/*}") + .build()) .build()) .put( "google.longrunning.Operations.ListOperations", HttpRule.newBuilder() .setGet("/v1/{name=organizations/*/locations/*}/operations") + .addAdditionalBindings( + HttpRule.newBuilder() + .setGet("/v1/{name=projects/*/locations/*}/operations") + .build()) .build()) .build()); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringStub.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringStub.java index 1f19fbfdeaf2..64cf74f2ec61 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringStub.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/stub/HttpJsonMonitoringStub.java @@ -98,6 +98,7 @@ public class HttpJsonMonitoringStub extends MonitoringStub { serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "pageSize", request.getPageSize()); serializer.putQueryParam(fields, "pageToken", request.getPageToken()); + serializer.putQueryParam(fields, "view", request.getViewValue()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -184,6 +185,7 @@ public class HttpJsonMonitoringStub extends MonitoringStub { ProtoRestSerializer serializer = ProtoRestSerializer.create(); serializer.putQueryParam(fields, "endTime", request.getEndTime()); + serializer.putQueryParam(fields, "filter", request.getFilter()); serializer.putQueryParam(fields, "$alt", "json;enum-encoding=int"); return fields; }) @@ -306,6 +308,7 @@ public class HttpJsonMonitoringStub extends MonitoringStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*}/locations") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); @@ -340,6 +343,7 @@ public class HttpJsonMonitoringStub extends MonitoringStub { serializer.putPathParam(fields, "name", request.getName()); return fields; }) + .setAdditionalPaths("/v1/{name=projects/*/locations/*}") .setQueryParamsExtractor( request -> { Map> fields = new HashMap<>(); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/resources/META-INF/native-image/com.google.cloud.cloudsecuritycompliance.v1/reflect-config.json b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/resources/META-INF/native-image/com.google.cloud.cloudsecuritycompliance.v1/reflect-config.json index e5b633328c89..8fa882ed4b9e 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/resources/META-INF/native-image/com.google.cloud.cloudsecuritycompliance.v1/reflect-config.json +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/main/resources/META-INF/native-image/com.google.cloud.cloudsecuritycompliance.v1/reflect-config.json @@ -899,6 +899,33 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.Control", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.Control$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.Control$Family", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails", "queryAllDeclaredConstructors": true, @@ -1322,6 +1349,15 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment", "queryAllDeclaredConstructors": true, @@ -2168,6 +2204,24 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.Trend", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.cloud.cloudsecuritycompliance.v1.Trend$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.cloud.cloudsecuritycompliance.v1.UpdateCloudControlRequest", "queryAllDeclaredConstructors": true, diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClientHttpJsonTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClientHttpJsonTest.java index 4cddb2f8dd4e..6372d8708312 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClientHttpJsonTest.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClientHttpJsonTest.java @@ -96,7 +96,7 @@ public void listFrameworksTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListFrameworksPagedResponse pagedListResponse = client.listFrameworks(parent); @@ -128,7 +128,7 @@ public void listFrameworksExceptionTest() throws Exception { mockService.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); client.listFrameworks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -146,7 +146,7 @@ public void listFrameworksTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "organizations/organization-9365/locations/location-9365"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); ListFrameworksPagedResponse pagedListResponse = client.listFrameworks(parent); @@ -177,6 +177,56 @@ public void listFrameworksExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFrameworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworksTest3() throws Exception { + Framework responsesElement = Framework.newBuilder().build(); + ListFrameworksResponse expectedResponse = + ListFrameworksResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworks(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListFrameworksPagedResponse pagedListResponse = client.listFrameworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworksList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFrameworksExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "organizations/organization-9365/locations/location-9365"; client.listFrameworks(parent); @@ -190,7 +240,10 @@ public void listFrameworksExceptionTest2() throws Exception { public void getFrameworkTest() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -202,7 +255,9 @@ public void getFrameworkTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); Framework actualResponse = client.getFramework(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -230,7 +285,9 @@ public void getFrameworkExceptionTest() throws Exception { mockService.addException(exception); try { - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); client.getFramework(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -242,7 +299,10 @@ public void getFrameworkExceptionTest() throws Exception { public void getFrameworkTest2() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -295,7 +355,10 @@ public void getFrameworkExceptionTest2() throws Exception { public void createFrameworkTest() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -307,7 +370,7 @@ public void createFrameworkTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Framework framework = Framework.newBuilder().build(); String frameworkId = "frameworkId886666169"; @@ -337,7 +400,7 @@ public void createFrameworkExceptionTest() throws Exception { mockService.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Framework framework = Framework.newBuilder().build(); String frameworkId = "frameworkId886666169"; client.createFramework(parent, framework, frameworkId); @@ -351,7 +414,10 @@ public void createFrameworkExceptionTest() throws Exception { public void createFrameworkTest2() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -363,7 +429,7 @@ public void createFrameworkTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "organizations/organization-9365/locations/location-9365"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); Framework framework = Framework.newBuilder().build(); String frameworkId = "frameworkId886666169"; @@ -392,6 +458,65 @@ public void createFrameworkExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Framework framework = Framework.newBuilder().build(); + String frameworkId = "frameworkId886666169"; + client.createFramework(parent, framework, frameworkId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFrameworkTest3() throws Exception { + Framework expectedResponse = + Framework.newBuilder() + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) + .setMajorRevisionId(612576889) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllCloudControlDetails(new ArrayList()) + .addAllCategory(new ArrayList()) + .addAllSupportedCloudProviders(new ArrayList()) + .addAllSupportedTargetResourceTypes(new ArrayList()) + .addAllSupportedEnforcementModes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + Framework framework = Framework.newBuilder().build(); + String frameworkId = "frameworkId886666169"; + + Framework actualResponse = client.createFramework(parent, framework, frameworkId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFrameworkExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "organizations/organization-9365/locations/location-9365"; Framework framework = Framework.newBuilder().build(); @@ -407,7 +532,10 @@ public void createFrameworkExceptionTest2() throws Exception { public void updateFrameworkTest() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -421,7 +549,10 @@ public void updateFrameworkTest() throws Exception { Framework framework = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -461,7 +592,10 @@ public void updateFrameworkExceptionTest() throws Exception { try { Framework framework = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -484,7 +618,9 @@ public void deleteFrameworkTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); client.deleteFramework(name); @@ -511,7 +647,9 @@ public void deleteFrameworkExceptionTest() throws Exception { mockService.addException(exception); try { - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); client.deleteFramework(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -570,7 +708,7 @@ public void listCloudControlsTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListCloudControlsPagedResponse pagedListResponse = client.listCloudControls(parent); @@ -602,7 +740,7 @@ public void listCloudControlsExceptionTest() throws Exception { mockService.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); client.listCloudControls(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -620,7 +758,7 @@ public void listCloudControlsTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "organizations/organization-9365/locations/location-9365"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); ListCloudControlsPagedResponse pagedListResponse = client.listCloudControls(parent); @@ -651,6 +789,56 @@ public void listCloudControlsExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listCloudControls(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCloudControlsTest3() throws Exception { + CloudControl responsesElement = CloudControl.newBuilder().build(); + ListCloudControlsResponse expectedResponse = + ListCloudControlsResponse.newBuilder() + .setNextPageToken("") + .addAllCloudControls(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListCloudControlsPagedResponse pagedListResponse = client.listCloudControls(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCloudControlsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCloudControlsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "organizations/organization-9365/locations/location-9365"; client.listCloudControls(parent); @@ -665,7 +853,9 @@ public void getCloudControlTest() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -683,7 +873,9 @@ public void getCloudControlTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - CloudControlName name = CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName name = + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); CloudControl actualResponse = client.getCloudControl(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -712,7 +904,8 @@ public void getCloudControlExceptionTest() throws Exception { try { CloudControlName name = - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); client.getCloudControl(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -725,7 +918,9 @@ public void getCloudControlTest2() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -786,7 +981,9 @@ public void createCloudControlTest() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -804,7 +1001,7 @@ public void createCloudControlTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); CloudControl cloudControl = CloudControl.newBuilder().build(); String cloudControlId = "cloudControlId657324195"; @@ -834,7 +1031,7 @@ public void createCloudControlExceptionTest() throws Exception { mockService.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); CloudControl cloudControl = CloudControl.newBuilder().build(); String cloudControlId = "cloudControlId657324195"; client.createCloudControl(parent, cloudControl, cloudControlId); @@ -849,7 +1046,9 @@ public void createCloudControlTest2() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -867,7 +1066,7 @@ public void createCloudControlTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "organizations/organization-9365/locations/location-9365"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); CloudControl cloudControl = CloudControl.newBuilder().build(); String cloudControlId = "cloudControlId657324195"; @@ -896,6 +1095,71 @@ public void createCloudControlExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + CloudControl cloudControl = CloudControl.newBuilder().build(); + String cloudControlId = "cloudControlId657324195"; + client.createCloudControl(parent, cloudControl, cloudControlId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCloudControlTest3() throws Exception { + CloudControl expectedResponse = + CloudControl.newBuilder() + .setName( + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) + .setMajorRevisionId(612576889) + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .addAllSupportedEnforcementModes(new ArrayList()) + .addAllParameterSpec(new ArrayList()) + .addAllRules(new ArrayList()) + .setSeverity(Severity.forNumber(0)) + .setFindingCategory("findingCategory-1495850073") + .addAllSupportedCloudProviders(new ArrayList()) + .addAllRelatedFrameworks(new ArrayList()) + .setRemediationSteps("remediationSteps1230652930") + .addAllCategories(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllSupportedTargetResourceTypes(new ArrayList()) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + CloudControl cloudControl = CloudControl.newBuilder().build(); + String cloudControlId = "cloudControlId657324195"; + + CloudControl actualResponse = client.createCloudControl(parent, cloudControl, cloudControlId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createCloudControlExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "organizations/organization-9365/locations/location-9365"; CloudControl cloudControl = CloudControl.newBuilder().build(); @@ -912,7 +1176,9 @@ public void updateCloudControlTest() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -933,7 +1199,9 @@ public void updateCloudControlTest() throws Exception { CloudControl cloudControl = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -980,7 +1248,9 @@ public void updateCloudControlExceptionTest() throws Exception { CloudControl cloudControl = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -1009,7 +1279,9 @@ public void deleteCloudControlTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockService.addResponse(expectedResponse); - CloudControlName name = CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName name = + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); client.deleteCloudControl(name); @@ -1037,7 +1309,8 @@ public void deleteCloudControlExceptionTest() throws Exception { try { CloudControlName name = - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); client.deleteCloudControl(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClientTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClientTest.java index 293716be3113..57067d648a2e 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClientTest.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigClientTest.java @@ -103,7 +103,7 @@ public void listFrameworksTest() throws Exception { .build(); mockConfig.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListFrameworksPagedResponse pagedListResponse = client.listFrameworks(parent); @@ -129,7 +129,7 @@ public void listFrameworksExceptionTest() throws Exception { mockConfig.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); client.listFrameworks(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -147,6 +147,50 @@ public void listFrameworksTest2() throws Exception { .build(); mockConfig.addResponse(expectedResponse); + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFrameworksPagedResponse pagedListResponse = client.listFrameworks(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworksList().get(0), resources.get(0)); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFrameworksRequest actualRequest = ((ListFrameworksRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFrameworksExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFrameworks(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworksTest3() throws Exception { + Framework responsesElement = Framework.newBuilder().build(); + ListFrameworksResponse expectedResponse = + ListFrameworksResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworks(Arrays.asList(responsesElement)) + .build(); + mockConfig.addResponse(expectedResponse); + String parent = "parent-995424086"; ListFrameworksPagedResponse pagedListResponse = client.listFrameworks(parent); @@ -168,7 +212,7 @@ public void listFrameworksTest2() throws Exception { } @Test - public void listFrameworksExceptionTest2() throws Exception { + public void listFrameworksExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockConfig.addException(exception); @@ -185,7 +229,10 @@ public void listFrameworksExceptionTest2() throws Exception { public void getFrameworkTest() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -197,7 +244,9 @@ public void getFrameworkTest() throws Exception { .build(); mockConfig.addResponse(expectedResponse); - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); Framework actualResponse = client.getFramework(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -219,7 +268,9 @@ public void getFrameworkExceptionTest() throws Exception { mockConfig.addException(exception); try { - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); client.getFramework(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -231,7 +282,10 @@ public void getFrameworkExceptionTest() throws Exception { public void getFrameworkTest2() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -277,7 +331,10 @@ public void getFrameworkExceptionTest2() throws Exception { public void createFrameworkTest() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -289,7 +346,7 @@ public void createFrameworkTest() throws Exception { .build(); mockConfig.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Framework framework = Framework.newBuilder().build(); String frameworkId = "frameworkId886666169"; @@ -315,7 +372,7 @@ public void createFrameworkExceptionTest() throws Exception { mockConfig.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); Framework framework = Framework.newBuilder().build(); String frameworkId = "frameworkId886666169"; client.createFramework(parent, framework, frameworkId); @@ -329,7 +386,65 @@ public void createFrameworkExceptionTest() throws Exception { public void createFrameworkTest2() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) + .setMajorRevisionId(612576889) + .setDisplayName("displayName1714148973") + .setDescription("description-1724546052") + .addAllCloudControlDetails(new ArrayList()) + .addAllCategory(new ArrayList()) + .addAllSupportedCloudProviders(new ArrayList()) + .addAllSupportedTargetResourceTypes(new ArrayList()) + .addAllSupportedEnforcementModes(new ArrayList()) + .build(); + mockConfig.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Framework framework = Framework.newBuilder().build(); + String frameworkId = "frameworkId886666169"; + + Framework actualResponse = client.createFramework(parent, framework, frameworkId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFrameworkRequest actualRequest = ((CreateFrameworkRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(framework, actualRequest.getFramework()); + Assert.assertEquals(frameworkId, actualRequest.getFrameworkId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFrameworkExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + Framework framework = Framework.newBuilder().build(); + String frameworkId = "frameworkId886666169"; + client.createFramework(parent, framework, frameworkId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createFrameworkTest3() throws Exception { + Framework expectedResponse = + Framework.newBuilder() + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -362,7 +477,7 @@ public void createFrameworkTest2() throws Exception { } @Test - public void createFrameworkExceptionTest2() throws Exception { + public void createFrameworkExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockConfig.addException(exception); @@ -381,7 +496,10 @@ public void createFrameworkExceptionTest2() throws Exception { public void updateFrameworkTest() throws Exception { Framework expectedResponse = Framework.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .setDisplayName("displayName1714148973") .setDescription("description-1724546052") @@ -431,7 +549,9 @@ public void deleteFrameworkTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockConfig.addResponse(expectedResponse); - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); client.deleteFramework(name); @@ -452,7 +572,9 @@ public void deleteFrameworkExceptionTest() throws Exception { mockConfig.addException(exception); try { - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); client.deleteFramework(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -504,7 +626,7 @@ public void listCloudControlsTest() throws Exception { .build(); mockConfig.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListCloudControlsPagedResponse pagedListResponse = client.listCloudControls(parent); @@ -530,7 +652,7 @@ public void listCloudControlsExceptionTest() throws Exception { mockConfig.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); client.listCloudControls(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -548,6 +670,50 @@ public void listCloudControlsTest2() throws Exception { .build(); mockConfig.addResponse(expectedResponse); + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListCloudControlsPagedResponse pagedListResponse = client.listCloudControls(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCloudControlsList().get(0), resources.get(0)); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCloudControlsRequest actualRequest = ((ListCloudControlsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCloudControlsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listCloudControls(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCloudControlsTest3() throws Exception { + CloudControl responsesElement = CloudControl.newBuilder().build(); + ListCloudControlsResponse expectedResponse = + ListCloudControlsResponse.newBuilder() + .setNextPageToken("") + .addAllCloudControls(Arrays.asList(responsesElement)) + .build(); + mockConfig.addResponse(expectedResponse); + String parent = "parent-995424086"; ListCloudControlsPagedResponse pagedListResponse = client.listCloudControls(parent); @@ -569,7 +735,7 @@ public void listCloudControlsTest2() throws Exception { } @Test - public void listCloudControlsExceptionTest2() throws Exception { + public void listCloudControlsExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockConfig.addException(exception); @@ -587,7 +753,9 @@ public void getCloudControlTest() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -605,7 +773,9 @@ public void getCloudControlTest() throws Exception { .build(); mockConfig.addResponse(expectedResponse); - CloudControlName name = CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName name = + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); CloudControl actualResponse = client.getCloudControl(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -628,7 +798,8 @@ public void getCloudControlExceptionTest() throws Exception { try { CloudControlName name = - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); client.getCloudControl(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -641,7 +812,9 @@ public void getCloudControlTest2() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -694,7 +867,9 @@ public void createCloudControlTest() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -712,7 +887,7 @@ public void createCloudControlTest() throws Exception { .build(); mockConfig.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); CloudControl cloudControl = CloudControl.newBuilder().build(); String cloudControlId = "cloudControlId657324195"; @@ -738,7 +913,7 @@ public void createCloudControlExceptionTest() throws Exception { mockConfig.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); CloudControl cloudControl = CloudControl.newBuilder().build(); String cloudControlId = "cloudControlId657324195"; client.createCloudControl(parent, cloudControl, cloudControlId); @@ -753,7 +928,70 @@ public void createCloudControlTest2() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) + .setMajorRevisionId(612576889) + .setDescription("description-1724546052") + .setDisplayName("displayName1714148973") + .addAllSupportedEnforcementModes(new ArrayList()) + .addAllParameterSpec(new ArrayList()) + .addAllRules(new ArrayList()) + .setSeverity(Severity.forNumber(0)) + .setFindingCategory("findingCategory-1495850073") + .addAllSupportedCloudProviders(new ArrayList()) + .addAllRelatedFrameworks(new ArrayList()) + .setRemediationSteps("remediationSteps1230652930") + .addAllCategories(new ArrayList()) + .setCreateTime(Timestamp.newBuilder().build()) + .addAllSupportedTargetResourceTypes(new ArrayList()) + .build(); + mockConfig.addResponse(expectedResponse); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + CloudControl cloudControl = CloudControl.newBuilder().build(); + String cloudControlId = "cloudControlId657324195"; + + CloudControl actualResponse = client.createCloudControl(parent, cloudControl, cloudControlId); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockConfig.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateCloudControlRequest actualRequest = ((CreateCloudControlRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(cloudControl, actualRequest.getCloudControl()); + Assert.assertEquals(cloudControlId, actualRequest.getCloudControlId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createCloudControlExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockConfig.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + CloudControl cloudControl = CloudControl.newBuilder().build(); + String cloudControlId = "cloudControlId657324195"; + client.createCloudControl(parent, cloudControl, cloudControlId); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void createCloudControlTest3() throws Exception { + CloudControl expectedResponse = + CloudControl.newBuilder() + .setName( + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -792,7 +1030,7 @@ public void createCloudControlTest2() throws Exception { } @Test - public void createCloudControlExceptionTest2() throws Exception { + public void createCloudControlExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockConfig.addException(exception); @@ -812,7 +1050,9 @@ public void updateCloudControlTest() throws Exception { CloudControl expectedResponse = CloudControl.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .setDescription("description-1724546052") .setDisplayName("displayName1714148973") @@ -868,7 +1108,9 @@ public void deleteCloudControlTest() throws Exception { Empty expectedResponse = Empty.newBuilder().build(); mockConfig.addResponse(expectedResponse); - CloudControlName name = CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName name = + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); client.deleteCloudControl(name); @@ -890,7 +1132,8 @@ public void deleteCloudControlExceptionTest() throws Exception { try { CloudControlName name = - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); client.deleteCloudControl(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClientHttpJsonTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClientHttpJsonTest.java index 9b4977fda5f7..c40d92b6fbbc 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClientHttpJsonTest.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClientHttpJsonTest.java @@ -92,7 +92,8 @@ public void createFrameworkDeploymentTest() throws Exception { FrameworkDeployment expectedResponse = FrameworkDeployment.newBuilder() .setName( - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) .setComputedTargetResource("computedTargetResource-479139540") @@ -115,7 +116,7 @@ public void createFrameworkDeploymentTest() throws Exception { .build(); mockService.addResponse(resultOperation); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; @@ -148,7 +149,7 @@ public void createFrameworkDeploymentExceptionTest() throws Exception { mockService.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; client @@ -164,7 +165,8 @@ public void createFrameworkDeploymentTest2() throws Exception { FrameworkDeployment expectedResponse = FrameworkDeployment.newBuilder() .setName( - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) .setComputedTargetResource("computedTargetResource-479139540") @@ -187,7 +189,7 @@ public void createFrameworkDeploymentTest2() throws Exception { .build(); mockService.addResponse(resultOperation); - String parent = "organizations/organization-9365/locations/location-9365"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; @@ -219,6 +221,79 @@ public void createFrameworkDeploymentExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); + String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; + client + .createFrameworkDeploymentAsync(parent, frameworkDeployment, frameworkDeploymentId) + .get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + } + } + + @Test + public void createFrameworkDeploymentTest3() throws Exception { + FrameworkDeployment expectedResponse = + FrameworkDeployment.newBuilder() + .setName( + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + .toString()) + .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) + .setComputedTargetResource("computedTargetResource-479139540") + .setFramework(FrameworkReference.newBuilder().build()) + .setDescription("description-1724546052") + .addAllCloudControlMetadata(new ArrayList()) + .setDeploymentState(DeploymentState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setTargetResourceDisplayName("targetResourceDisplayName-1474402258") + .addAllCloudControlDeploymentReferences( + new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFrameworkDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockService.addResponse(resultOperation); + + String parent = "organizations/organization-9365/locations/location-9365"; + FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); + String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; + + FrameworkDeployment actualResponse = + client + .createFrameworkDeploymentAsync(parent, frameworkDeployment, frameworkDeploymentId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void createFrameworkDeploymentExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "organizations/organization-9365/locations/location-9365"; FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); @@ -243,7 +318,8 @@ public void deleteFrameworkDeploymentTest() throws Exception { mockService.addResponse(resultOperation); FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); client.deleteFrameworkDeploymentAsync(name).get(); @@ -271,7 +347,8 @@ public void deleteFrameworkDeploymentExceptionTest() throws Exception { try { FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); client.deleteFrameworkDeploymentAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -330,7 +407,8 @@ public void getFrameworkDeploymentTest() throws Exception { FrameworkDeployment expectedResponse = FrameworkDeployment.newBuilder() .setName( - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) .setComputedTargetResource("computedTargetResource-479139540") @@ -348,7 +426,8 @@ public void getFrameworkDeploymentTest() throws Exception { mockService.addResponse(expectedResponse); FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); FrameworkDeployment actualResponse = client.getFrameworkDeployment(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -377,7 +456,8 @@ public void getFrameworkDeploymentExceptionTest() throws Exception { try { FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); client.getFrameworkDeployment(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -390,7 +470,8 @@ public void getFrameworkDeploymentTest2() throws Exception { FrameworkDeployment expectedResponse = FrameworkDeployment.newBuilder() .setName( - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) .setComputedTargetResource("computedTargetResource-479139540") @@ -455,7 +536,7 @@ public void listFrameworkDeploymentsTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListFrameworkDeploymentsPagedResponse pagedListResponse = client.listFrameworkDeployments(parent); @@ -488,7 +569,7 @@ public void listFrameworkDeploymentsExceptionTest() throws Exception { mockService.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); client.listFrameworkDeployments(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -506,7 +587,7 @@ public void listFrameworkDeploymentsTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "organizations/organization-9365/locations/location-9365"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); ListFrameworkDeploymentsPagedResponse pagedListResponse = client.listFrameworkDeployments(parent); @@ -538,6 +619,57 @@ public void listFrameworkDeploymentsExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFrameworkDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkDeploymentsTest3() throws Exception { + FrameworkDeployment responsesElement = FrameworkDeployment.newBuilder().build(); + ListFrameworkDeploymentsResponse expectedResponse = + ListFrameworkDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListFrameworkDeploymentsPagedResponse pagedListResponse = + client.listFrameworkDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworkDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listFrameworkDeploymentsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "organizations/organization-9365/locations/location-9365"; client.listFrameworkDeployments(parent); @@ -552,7 +684,7 @@ public void getCloudControlDeploymentTest() throws Exception { CloudControlDeployment expectedResponse = CloudControlDeployment.newBuilder() .setName( - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) @@ -570,7 +702,8 @@ public void getCloudControlDeploymentTest() throws Exception { mockService.addResponse(expectedResponse); CloudControlDeploymentName name = - CloudControlDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]"); + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]"); CloudControlDeployment actualResponse = client.getCloudControlDeployment(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -599,7 +732,7 @@ public void getCloudControlDeploymentExceptionTest() throws Exception { try { CloudControlDeploymentName name = - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]"); client.getCloudControlDeployment(name); Assert.fail("No exception raised"); @@ -613,7 +746,7 @@ public void getCloudControlDeploymentTest2() throws Exception { CloudControlDeployment expectedResponse = CloudControlDeployment.newBuilder() .setName( - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) @@ -678,7 +811,7 @@ public void listCloudControlDeploymentsTest() throws Exception { .build(); mockService.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListCloudControlDeploymentsPagedResponse pagedListResponse = client.listCloudControlDeployments(parent); @@ -711,7 +844,7 @@ public void listCloudControlDeploymentsExceptionTest() throws Exception { mockService.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); client.listCloudControlDeployments(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -729,7 +862,7 @@ public void listCloudControlDeploymentsTest2() throws Exception { .build(); mockService.addResponse(expectedResponse); - String parent = "organizations/organization-9365/locations/location-9365"; + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); ListCloudControlDeploymentsPagedResponse pagedListResponse = client.listCloudControlDeployments(parent); @@ -761,6 +894,57 @@ public void listCloudControlDeploymentsExceptionTest2() throws Exception { new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); mockService.addException(exception); + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listCloudControlDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCloudControlDeploymentsTest3() throws Exception { + CloudControlDeployment responsesElement = CloudControlDeployment.newBuilder().build(); + ListCloudControlDeploymentsResponse expectedResponse = + ListCloudControlDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllCloudControlDeployments(Arrays.asList(responsesElement)) + .build(); + mockService.addResponse(expectedResponse); + + String parent = "organizations/organization-9365/locations/location-9365"; + + ListCloudControlDeploymentsPagedResponse pagedListResponse = + client.listCloudControlDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCloudControlDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockService.getRequestPaths(); + Assert.assertEquals(1, actualRequests.size()); + + String apiClientHeaderKey = + mockService + .getRequestHeaders() + .get(ApiClientHeaderProvider.getDefaultApiClientHeaderKey()) + .iterator() + .next(); + Assert.assertTrue( + GaxHttpJsonProperties.getDefaultApiClientHeaderPattern() + .matcher(apiClientHeaderKey) + .matches()); + } + + @Test + public void listCloudControlDeploymentsExceptionTest3() throws Exception { + ApiException exception = + ApiExceptionFactory.createException( + new Exception(), FakeStatusCode.of(StatusCode.Code.INVALID_ARGUMENT), false); + mockService.addException(exception); + try { String parent = "organizations/organization-9365/locations/location-9365"; client.listCloudControlDeployments(parent); diff --git a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClientTest.java b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClientTest.java index 25b6e3ce9921..6f61962f7319 100644 --- a/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClientTest.java +++ b/java-cloudsecuritycompliance/google-cloud-cloudsecuritycompliance/src/test/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentClientTest.java @@ -100,7 +100,8 @@ public void createFrameworkDeploymentTest() throws Exception { FrameworkDeployment expectedResponse = FrameworkDeployment.newBuilder() .setName( - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) .setComputedTargetResource("computedTargetResource-479139540") @@ -123,7 +124,7 @@ public void createFrameworkDeploymentTest() throws Exception { .build(); mockDeployment.addResponse(resultOperation); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; @@ -153,7 +154,7 @@ public void createFrameworkDeploymentExceptionTest() throws Exception { mockDeployment.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; client @@ -172,7 +173,81 @@ public void createFrameworkDeploymentTest2() throws Exception { FrameworkDeployment expectedResponse = FrameworkDeployment.newBuilder() .setName( - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + .toString()) + .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) + .setComputedTargetResource("computedTargetResource-479139540") + .setFramework(FrameworkReference.newBuilder().build()) + .setDescription("description-1724546052") + .addAllCloudControlMetadata(new ArrayList()) + .setDeploymentState(DeploymentState.forNumber(0)) + .setCreateTime(Timestamp.newBuilder().build()) + .setUpdateTime(Timestamp.newBuilder().build()) + .setEtag("etag3123477") + .setTargetResourceDisplayName("targetResourceDisplayName-1474402258") + .addAllCloudControlDeploymentReferences( + new ArrayList()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("createFrameworkDeploymentTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockDeployment.addResponse(resultOperation); + + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); + String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; + + FrameworkDeployment actualResponse = + client + .createFrameworkDeploymentAsync(parent, frameworkDeployment, frameworkDeploymentId) + .get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockDeployment.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CreateFrameworkDeploymentRequest actualRequest = + ((CreateFrameworkDeploymentRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(frameworkDeployment, actualRequest.getFrameworkDeployment()); + Assert.assertEquals(frameworkDeploymentId, actualRequest.getFrameworkDeploymentId()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void createFrameworkDeploymentExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeployment.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); + String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; + client + .createFrameworkDeploymentAsync(parent, frameworkDeployment, frameworkDeploymentId) + .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 createFrameworkDeploymentTest3() throws Exception { + FrameworkDeployment expectedResponse = + FrameworkDeployment.newBuilder() + .setName( + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) .setComputedTargetResource("computedTargetResource-479139540") @@ -220,7 +295,7 @@ public void createFrameworkDeploymentTest2() throws Exception { } @Test - public void createFrameworkDeploymentExceptionTest2() throws Exception { + public void createFrameworkDeploymentExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDeployment.addException(exception); @@ -251,7 +326,8 @@ public void deleteFrameworkDeploymentTest() throws Exception { mockDeployment.addResponse(resultOperation); FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); client.deleteFrameworkDeploymentAsync(name).get(); @@ -274,7 +350,8 @@ public void deleteFrameworkDeploymentExceptionTest() throws Exception { try { FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); client.deleteFrameworkDeploymentAsync(name).get(); Assert.fail("No exception raised"); } catch (ExecutionException e) { @@ -332,7 +409,8 @@ public void getFrameworkDeploymentTest() throws Exception { FrameworkDeployment expectedResponse = FrameworkDeployment.newBuilder() .setName( - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) .setComputedTargetResource("computedTargetResource-479139540") @@ -350,7 +428,8 @@ public void getFrameworkDeploymentTest() throws Exception { mockDeployment.addResponse(expectedResponse); FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); FrameworkDeployment actualResponse = client.getFrameworkDeployment(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -374,7 +453,8 @@ public void getFrameworkDeploymentExceptionTest() throws Exception { try { FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); client.getFrameworkDeployment(name); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -387,7 +467,8 @@ public void getFrameworkDeploymentTest2() throws Exception { FrameworkDeployment expectedResponse = FrameworkDeployment.newBuilder() .setName( - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) .setComputedTargetResource("computedTargetResource-479139540") @@ -445,7 +526,7 @@ public void listFrameworkDeploymentsTest() throws Exception { .build(); mockDeployment.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListFrameworkDeploymentsPagedResponse pagedListResponse = client.listFrameworkDeployments(parent); @@ -473,7 +554,7 @@ public void listFrameworkDeploymentsExceptionTest() throws Exception { mockDeployment.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); client.listFrameworkDeployments(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -491,6 +572,52 @@ public void listFrameworkDeploymentsTest2() throws Exception { .build(); mockDeployment.addResponse(expectedResponse); + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListFrameworkDeploymentsPagedResponse pagedListResponse = + client.listFrameworkDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getFrameworkDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockDeployment.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListFrameworkDeploymentsRequest actualRequest = + ((ListFrameworkDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listFrameworkDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeployment.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listFrameworkDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listFrameworkDeploymentsTest3() throws Exception { + FrameworkDeployment responsesElement = FrameworkDeployment.newBuilder().build(); + ListFrameworkDeploymentsResponse expectedResponse = + ListFrameworkDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllFrameworkDeployments(Arrays.asList(responsesElement)) + .build(); + mockDeployment.addResponse(expectedResponse); + String parent = "parent-995424086"; ListFrameworkDeploymentsPagedResponse pagedListResponse = @@ -514,7 +641,7 @@ public void listFrameworkDeploymentsTest2() throws Exception { } @Test - public void listFrameworkDeploymentsExceptionTest2() throws Exception { + public void listFrameworkDeploymentsExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDeployment.addException(exception); @@ -532,7 +659,7 @@ public void getCloudControlDeploymentTest() throws Exception { CloudControlDeployment expectedResponse = CloudControlDeployment.newBuilder() .setName( - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) @@ -550,7 +677,8 @@ public void getCloudControlDeploymentTest() throws Exception { mockDeployment.addResponse(expectedResponse); CloudControlDeploymentName name = - CloudControlDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]"); + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]"); CloudControlDeployment actualResponse = client.getCloudControlDeployment(name); Assert.assertEquals(expectedResponse, actualResponse); @@ -574,7 +702,7 @@ public void getCloudControlDeploymentExceptionTest() throws Exception { try { CloudControlDeploymentName name = - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]"); client.getCloudControlDeployment(name); Assert.fail("No exception raised"); @@ -588,7 +716,7 @@ public void getCloudControlDeploymentTest2() throws Exception { CloudControlDeployment expectedResponse = CloudControlDeployment.newBuilder() .setName( - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") .toString()) .setTargetResourceConfig(TargetResourceConfig.newBuilder().build()) @@ -646,7 +774,7 @@ public void listCloudControlDeploymentsTest() throws Exception { .build(); mockDeployment.addResponse(expectedResponse); - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); ListCloudControlDeploymentsPagedResponse pagedListResponse = client.listCloudControlDeployments(parent); @@ -674,7 +802,7 @@ public void listCloudControlDeploymentsExceptionTest() throws Exception { mockDeployment.addException(exception); try { - OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); client.listCloudControlDeployments(parent); Assert.fail("No exception raised"); } catch (InvalidArgumentException e) { @@ -692,6 +820,52 @@ public void listCloudControlDeploymentsTest2() throws Exception { .build(); mockDeployment.addResponse(expectedResponse); + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + + ListCloudControlDeploymentsPagedResponse pagedListResponse = + client.listCloudControlDeployments(parent); + + List resources = Lists.newArrayList(pagedListResponse.iterateAll()); + + Assert.assertEquals(1, resources.size()); + Assert.assertEquals(expectedResponse.getCloudControlDeploymentsList().get(0), resources.get(0)); + + List actualRequests = mockDeployment.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + ListCloudControlDeploymentsRequest actualRequest = + ((ListCloudControlDeploymentsRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void listCloudControlDeploymentsExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockDeployment.addException(exception); + + try { + OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); + client.listCloudControlDeployments(parent); + Assert.fail("No exception raised"); + } catch (InvalidArgumentException e) { + // Expected exception. + } + } + + @Test + public void listCloudControlDeploymentsTest3() throws Exception { + CloudControlDeployment responsesElement = CloudControlDeployment.newBuilder().build(); + ListCloudControlDeploymentsResponse expectedResponse = + ListCloudControlDeploymentsResponse.newBuilder() + .setNextPageToken("") + .addAllCloudControlDeployments(Arrays.asList(responsesElement)) + .build(); + mockDeployment.addResponse(expectedResponse); + String parent = "parent-995424086"; ListCloudControlDeploymentsPagedResponse pagedListResponse = @@ -715,7 +889,7 @@ public void listCloudControlDeploymentsTest2() throws Exception { } @Test - public void listCloudControlDeploymentsExceptionTest2() throws Exception { + public void listCloudControlDeploymentsExceptionTest3() throws Exception { StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); mockDeployment.addException(exception); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControl.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControl.java index 3d51f27501c0..65fbbcf90a4b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControl.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControl.java @@ -264,8 +264,12 @@ private Type(int value) { * * *
                -   * Required. Identifier. The name of the cloud control, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                +   * Required. Identifier. The name of the cloud control, in either of the
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -292,8 +296,12 @@ public java.lang.String getName() { * * *
                -   * Required. Identifier. The name of the cloud control, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                +   * Required. Identifier. The name of the cloud control, in either of the
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -2311,8 +2319,12 @@ public Builder mergeFrom( * * *
                -     * Required. Identifier. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                +     * Required. Identifier. The name of the cloud control, in either of the
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -2338,8 +2350,12 @@ public java.lang.String getName() { * * *
                -     * Required. Identifier. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                +     * Required. Identifier. The name of the cloud control, in either of the
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -2365,8 +2381,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -     * Required. Identifier. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                +     * Required. Identifier. The name of the cloud control, in either of the
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -2391,8 +2411,12 @@ public Builder setName(java.lang.String value) { * * *
                -     * Required. Identifier. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                +     * Required. Identifier. The name of the cloud control, in either of the
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -2413,8 +2437,12 @@ public Builder clearName() { * * *
                -     * Required. Identifier. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                +     * Required. Identifier. The name of the cloud control, in either of the
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlCategory.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlCategory.java index a023e607d569..f69537342944 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlCategory.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlCategory.java @@ -191,6 +191,46 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE * CC_CATEGORY_BCDR = 15; */ CC_CATEGORY_BCDR(15), + /** + * + * + *
                +   * The admin access category.
                +   * 
                + * + * CC_CATEGORY_ADMIN_ACCESS = 16; + */ + CC_CATEGORY_ADMIN_ACCESS(16), + /** + * + * + *
                +   * DRZ (Data Residency).
                +   * 
                + * + * CC_CATEGORY_DATA_RESIDENCY = 17; + */ + CC_CATEGORY_DATA_RESIDENCY(17), + /** + * + * + *
                +   * RUR (Resource Usage Restriction).
                +   * 
                + * + * CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18; + */ + CC_CATEGORY_RESOURCE_USAGE_RESTRICTION(18), + /** + * + * + *
                +   * SERVICE SPECIFIC
                +   * 
                + * + * CC_CATEGORY_SERVICE_SPECIFIC = 19; + */ + CC_CATEGORY_SERVICE_SPECIFIC(19), UNRECOGNIZED(-1), ; @@ -380,6 +420,50 @@ public enum CloudControlCategory implements com.google.protobuf.ProtocolMessageE */ public static final int CC_CATEGORY_BCDR_VALUE = 15; + /** + * + * + *
                +   * The admin access category.
                +   * 
                + * + * CC_CATEGORY_ADMIN_ACCESS = 16; + */ + public static final int CC_CATEGORY_ADMIN_ACCESS_VALUE = 16; + + /** + * + * + *
                +   * DRZ (Data Residency).
                +   * 
                + * + * CC_CATEGORY_DATA_RESIDENCY = 17; + */ + public static final int CC_CATEGORY_DATA_RESIDENCY_VALUE = 17; + + /** + * + * + *
                +   * RUR (Resource Usage Restriction).
                +   * 
                + * + * CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18; + */ + public static final int CC_CATEGORY_RESOURCE_USAGE_RESTRICTION_VALUE = 18; + + /** + * + * + *
                +   * SERVICE SPECIFIC
                +   * 
                + * + * CC_CATEGORY_SERVICE_SPECIFIC = 19; + */ + public static final int CC_CATEGORY_SERVICE_SPECIFIC_VALUE = 19; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -436,6 +520,14 @@ public static CloudControlCategory forNumber(int value) { return CC_CATEGORY_PRIVACY; case 15: return CC_CATEGORY_BCDR; + case 16: + return CC_CATEGORY_ADMIN_ACCESS; + case 17: + return CC_CATEGORY_DATA_RESIDENCY; + case 18: + return CC_CATEGORY_RESOURCE_USAGE_RESTRICTION; + case 19: + return CC_CATEGORY_SERVICE_SPECIFIC; default: return null; } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeployment.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeployment.java index d97c17c41e47..4f69435183f5 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeployment.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeployment.java @@ -90,7 +90,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                    * Identifier. The name for the cloud control deployment, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -116,7 +118,9 @@ public java.lang.String getName() { * *
                    * Identifier. The name for the cloud control deployment, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -1533,7 +1537,9 @@ public Builder mergeFrom( * *
                      * Identifier. The name for the cloud control deployment, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -1558,7 +1564,9 @@ public java.lang.String getName() { * *
                      * Identifier. The name for the cloud control deployment, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -1583,7 +1591,9 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                      * Identifier. The name for the cloud control deployment, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -1607,7 +1617,9 @@ public Builder setName(java.lang.String value) { * *
                      * Identifier. The name for the cloud control deployment, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -1627,7 +1639,9 @@ public Builder clearName() { * *
                      * Identifier. The name for the cloud control deployment, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentName.java index 956cb5d67f53..ed7d6e3c6678 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentName.java @@ -17,6 +17,7 @@ package com.google.cloud.cloudsecuritycompliance.v1; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; @@ -32,22 +33,39 @@ public class CloudControlDeploymentName implements ResourceName { private static final PathTemplate ORGANIZATION_LOCATION_CLOUD_CONTROL_DEPLOYMENT = PathTemplate.createWithoutUrlEncoding( "organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}"); + private static final PathTemplate PROJECT_LOCATION_CLOUD_CONTROL_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String organization; private final String location; private final String cloudControlDeployment; + private final String project; @Deprecated protected CloudControlDeploymentName() { organization = null; location = null; cloudControlDeployment = null; + project = null; } private CloudControlDeploymentName(Builder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); location = Preconditions.checkNotNull(builder.getLocation()); cloudControlDeployment = Preconditions.checkNotNull(builder.getCloudControlDeployment()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_CLOUD_CONTROL_DEPLOYMENT; + } + + private CloudControlDeploymentName(ProjectLocationCloudControlDeploymentBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cloudControlDeployment = Preconditions.checkNotNull(builder.getCloudControlDeployment()); + organization = null; + pathTemplate = PROJECT_LOCATION_CLOUD_CONTROL_DEPLOYMENT; } public String getOrganization() { @@ -62,10 +80,23 @@ public String getCloudControlDeployment() { return cloudControlDeployment; } + public String getProject() { + return project; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newOrganizationLocationCloudControlDeploymentBuilder() { + return new Builder(); + } + + public static ProjectLocationCloudControlDeploymentBuilder + newProjectLocationCloudControlDeploymentBuilder() { + return new ProjectLocationCloudControlDeploymentBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -79,6 +110,24 @@ public static CloudControlDeploymentName of( .build(); } + public static CloudControlDeploymentName ofOrganizationLocationCloudControlDeploymentName( + String organization, String location, String cloudControlDeployment) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setCloudControlDeployment(cloudControlDeployment) + .build(); + } + + public static CloudControlDeploymentName ofProjectLocationCloudControlDeploymentName( + String project, String location, String cloudControlDeployment) { + return newProjectLocationCloudControlDeploymentBuilder() + .setProject(project) + .setLocation(location) + .setCloudControlDeployment(cloudControlDeployment) + .build(); + } + public static String format(String organization, String location, String cloudControlDeployment) { return newBuilder() .setOrganization(organization) @@ -88,18 +137,47 @@ public static String format(String organization, String location, String cloudCo .toString(); } + public static String formatOrganizationLocationCloudControlDeploymentName( + String organization, String location, String cloudControlDeployment) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setCloudControlDeployment(cloudControlDeployment) + .build() + .toString(); + } + + public static String formatProjectLocationCloudControlDeploymentName( + String project, String location, String cloudControlDeployment) { + return newProjectLocationCloudControlDeploymentBuilder() + .setProject(project) + .setLocation(location) + .setCloudControlDeployment(cloudControlDeployment) + .build() + .toString(); + } + public static CloudControlDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - ORGANIZATION_LOCATION_CLOUD_CONTROL_DEPLOYMENT.validatedMatch( - formattedString, - "CloudControlDeploymentName.parse: formattedString not in valid format"); - return of( - matchMap.get("organization"), - matchMap.get("location"), - matchMap.get("cloud_control_deployment")); + if (ORGANIZATION_LOCATION_CLOUD_CONTROL_DEPLOYMENT.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_CLOUD_CONTROL_DEPLOYMENT.match(formattedString); + return ofOrganizationLocationCloudControlDeploymentName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("cloud_control_deployment")); + } else if (PROJECT_LOCATION_CLOUD_CONTROL_DEPLOYMENT.matches(formattedString)) { + Map matchMap = + PROJECT_LOCATION_CLOUD_CONTROL_DEPLOYMENT.match(formattedString); + return ofProjectLocationCloudControlDeploymentName( + matchMap.get("project"), + matchMap.get("location"), + matchMap.get("cloud_control_deployment")); + } + throw new ValidationException( + "CloudControlDeploymentName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -123,7 +201,8 @@ public static List toStringList(List values) } public static boolean isParsableFrom(String formattedString) { - return ORGANIZATION_LOCATION_CLOUD_CONTROL_DEPLOYMENT.matches(formattedString); + return ORGANIZATION_LOCATION_CLOUD_CONTROL_DEPLOYMENT.matches(formattedString) + || PROJECT_LOCATION_CLOUD_CONTROL_DEPLOYMENT.matches(formattedString); } @Override @@ -141,6 +220,9 @@ public Map getFieldValuesMap() { if (cloudControlDeployment != null) { fieldMapBuilder.put("cloud_control_deployment", cloudControlDeployment); } + if (project != null) { + fieldMapBuilder.put("project", project); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -154,13 +236,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return ORGANIZATION_LOCATION_CLOUD_CONTROL_DEPLOYMENT.instantiate( - "organization", - organization, - "location", - location, - "cloud_control_deployment", - cloudControlDeployment); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -172,7 +248,8 @@ public boolean equals(Object o) { CloudControlDeploymentName that = ((CloudControlDeploymentName) o); return Objects.equals(this.organization, that.organization) && Objects.equals(this.location, that.location) - && Objects.equals(this.cloudControlDeployment, that.cloudControlDeployment); + && Objects.equals(this.cloudControlDeployment, that.cloudControlDeployment) + && Objects.equals(this.project, that.project); } return false; } @@ -181,11 +258,15 @@ public boolean equals(Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(organization); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(cloudControlDeployment); + h *= 1000003; + h ^= Objects.hashCode(project); return h; } @@ -228,6 +309,12 @@ public Builder setCloudControlDeployment(String cloudControlDeployment) { } private Builder(CloudControlDeploymentName cloudControlDeploymentName) { + Preconditions.checkArgument( + Objects.equals( + cloudControlDeploymentName.pathTemplate, + ORGANIZATION_LOCATION_CLOUD_CONTROL_DEPLOYMENT), + "toBuilder is only supported when CloudControlDeploymentName has the pattern of" + + " organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}"); this.organization = cloudControlDeploymentName.organization; this.location = cloudControlDeploymentName.location; this.cloudControlDeployment = cloudControlDeploymentName.cloudControlDeployment; @@ -237,4 +324,48 @@ public CloudControlDeploymentName build() { return new CloudControlDeploymentName(this); } } + + /** + * Builder for + * projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}. + */ + public static class ProjectLocationCloudControlDeploymentBuilder { + private String project; + private String location; + private String cloudControlDeployment; + + protected ProjectLocationCloudControlDeploymentBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudControlDeployment() { + return cloudControlDeployment; + } + + public ProjectLocationCloudControlDeploymentBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCloudControlDeploymentBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCloudControlDeploymentBuilder setCloudControlDeployment( + String cloudControlDeployment) { + this.cloudControlDeployment = cloudControlDeployment; + return this; + } + + public CloudControlDeploymentName build() { + return new CloudControlDeploymentName(this); + } + } } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentOrBuilder.java index a942beb3bf94..966a30034c63 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentOrBuilder.java @@ -31,7 +31,9 @@ public interface CloudControlDeploymentOrBuilder * *
                    * Identifier. The name for the cloud control deployment, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -46,7 +48,9 @@ public interface CloudControlDeploymentOrBuilder * *
                    * Identifier. The name for the cloud control deployment, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReference.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReference.java index a90fc565cdf3..0b8551c7e484 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReference.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReference.java @@ -81,7 +81,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                    * Output only. The name of the CloudControlDeployment. The format is
                -   * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -109,7 +111,9 @@ public java.lang.String getCloudControlDeployment() { * *
                    * Output only. The name of the CloudControlDeployment. The format is
                -   * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -468,7 +472,9 @@ public Builder mergeFrom( * *
                      * Output only. The name of the CloudControlDeployment. The format is
                -     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -495,7 +501,9 @@ public java.lang.String getCloudControlDeployment() { * *
                      * Output only. The name of the CloudControlDeployment. The format is
                -     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -522,7 +530,9 @@ public com.google.protobuf.ByteString getCloudControlDeploymentBytes() { * *
                      * Output only. The name of the CloudControlDeployment. The format is
                -     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -548,7 +558,9 @@ public Builder setCloudControlDeployment(java.lang.String value) { * *
                      * Output only. The name of the CloudControlDeployment. The format is
                -     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -570,7 +582,9 @@ public Builder clearCloudControlDeployment() { * *
                      * Output only. The name of the CloudControlDeployment. The format is
                -     * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReferenceOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReferenceOrBuilder.java index 48df2bd2b51b..dc226fc13ef4 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReferenceOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDeploymentReferenceOrBuilder.java @@ -31,7 +31,9 @@ public interface CloudControlDeploymentReferenceOrBuilder * *
                    * Output only. The name of the CloudControlDeployment. The format is
                -   * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -48,7 +50,9 @@ public interface CloudControlDeploymentReferenceOrBuilder * *
                    * Output only. The name of the CloudControlDeployment. The format is
                -   * `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetails.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetails.java index 9535f60f74ad..766cc0b5943d 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetails.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetails.java @@ -80,8 +80,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The name of the cloud control, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                +   * Required. The name of the cloud control, in one of the following formats:
                +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -106,8 +109,11 @@ public java.lang.String getName() { * * *
                -   * Required. The name of the cloud control, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                +   * Required. The name of the cloud control, in one of the following formats:
                +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -665,8 +671,11 @@ public Builder mergeFrom( * * *
                -     * Required. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                +     * Required. The name of the cloud control, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -690,8 +699,11 @@ public java.lang.String getName() { * * *
                -     * Required. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                +     * Required. The name of the cloud control, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -715,8 +727,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -     * Required. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                +     * Required. The name of the cloud control, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -739,8 +754,11 @@ public Builder setName(java.lang.String value) { * * *
                -     * Required. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                +     * Required. The name of the cloud control, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -759,8 +777,11 @@ public Builder clearName() { * * *
                -     * Required. The name of the cloud control, in the format
                -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                +     * Required. The name of the cloud control, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +     * or
                +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetailsOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetailsOrBuilder.java index 6f8b2fe004ca..e82101fcf5b2 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetailsOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlDetailsOrBuilder.java @@ -30,8 +30,11 @@ public interface CloudControlDetailsOrBuilder * * *
                -   * Required. The name of the cloud control, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                +   * Required. The name of the cloud control, in one of the following formats:
                +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -45,8 +48,11 @@ public interface CloudControlDetailsOrBuilder * * *
                -   * Required. The name of the cloud control, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`.
                +   * Required. The name of the cloud control, in one of the following formats:
                +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlName.java index 909a227ddb40..091b257377c7 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlName.java @@ -17,6 +17,7 @@ package com.google.cloud.cloudsecuritycompliance.v1; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; @@ -32,22 +33,39 @@ public class CloudControlName implements ResourceName { private static final PathTemplate ORGANIZATION_LOCATION_CLOUD_CONTROL = PathTemplate.createWithoutUrlEncoding( "organizations/{organization}/locations/{location}/cloudControls/{cloud_control}"); + private static final PathTemplate PROJECT_LOCATION_CLOUD_CONTROL = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/cloudControls/{cloud_control}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String organization; private final String location; private final String cloudControl; + private final String project; @Deprecated protected CloudControlName() { organization = null; location = null; cloudControl = null; + project = null; } private CloudControlName(Builder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); location = Preconditions.checkNotNull(builder.getLocation()); cloudControl = Preconditions.checkNotNull(builder.getCloudControl()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_CLOUD_CONTROL; + } + + private CloudControlName(ProjectLocationCloudControlBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + cloudControl = Preconditions.checkNotNull(builder.getCloudControl()); + organization = null; + pathTemplate = PROJECT_LOCATION_CLOUD_CONTROL; } public String getOrganization() { @@ -62,10 +80,22 @@ public String getCloudControl() { return cloudControl; } + public String getProject() { + return project; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newOrganizationLocationCloudControlBuilder() { + return new Builder(); + } + + public static ProjectLocationCloudControlBuilder newProjectLocationCloudControlBuilder() { + return new ProjectLocationCloudControlBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -78,6 +108,24 @@ public static CloudControlName of(String organization, String location, String c .build(); } + public static CloudControlName ofOrganizationLocationCloudControlName( + String organization, String location, String cloudControl) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setCloudControl(cloudControl) + .build(); + } + + public static CloudControlName ofProjectLocationCloudControlName( + String project, String location, String cloudControl) { + return newProjectLocationCloudControlBuilder() + .setProject(project) + .setLocation(location) + .setCloudControl(cloudControl) + .build(); + } + public static String format(String organization, String location, String cloudControl) { return newBuilder() .setOrganization(organization) @@ -87,15 +135,40 @@ public static String format(String organization, String location, String cloudCo .toString(); } + public static String formatOrganizationLocationCloudControlName( + String organization, String location, String cloudControl) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setCloudControl(cloudControl) + .build() + .toString(); + } + + public static String formatProjectLocationCloudControlName( + String project, String location, String cloudControl) { + return newProjectLocationCloudControlBuilder() + .setProject(project) + .setLocation(location) + .setCloudControl(cloudControl) + .build() + .toString(); + } + public static CloudControlName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - ORGANIZATION_LOCATION_CLOUD_CONTROL.validatedMatch( - formattedString, "CloudControlName.parse: formattedString not in valid format"); - return of( - matchMap.get("organization"), matchMap.get("location"), matchMap.get("cloud_control")); + if (ORGANIZATION_LOCATION_CLOUD_CONTROL.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_CLOUD_CONTROL.match(formattedString); + return ofOrganizationLocationCloudControlName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("cloud_control")); + } else if (PROJECT_LOCATION_CLOUD_CONTROL.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_CLOUD_CONTROL.match(formattedString); + return ofProjectLocationCloudControlName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("cloud_control")); + } + throw new ValidationException("CloudControlName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -119,7 +192,8 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return ORGANIZATION_LOCATION_CLOUD_CONTROL.matches(formattedString); + return ORGANIZATION_LOCATION_CLOUD_CONTROL.matches(formattedString) + || PROJECT_LOCATION_CLOUD_CONTROL.matches(formattedString); } @Override @@ -137,6 +211,9 @@ public Map getFieldValuesMap() { if (cloudControl != null) { fieldMapBuilder.put("cloud_control", cloudControl); } + if (project != null) { + fieldMapBuilder.put("project", project); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -150,8 +227,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return ORGANIZATION_LOCATION_CLOUD_CONTROL.instantiate( - "organization", organization, "location", location, "cloud_control", cloudControl); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -163,7 +239,8 @@ public boolean equals(Object o) { CloudControlName that = ((CloudControlName) o); return Objects.equals(this.organization, that.organization) && Objects.equals(this.location, that.location) - && Objects.equals(this.cloudControl, that.cloudControl); + && Objects.equals(this.cloudControl, that.cloudControl) + && Objects.equals(this.project, that.project); } return false; } @@ -172,11 +249,15 @@ public boolean equals(Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(organization); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(cloudControl); + h *= 1000003; + h ^= Objects.hashCode(project); return h; } @@ -218,6 +299,10 @@ public Builder setCloudControl(String cloudControl) { } private Builder(CloudControlName cloudControlName) { + Preconditions.checkArgument( + Objects.equals(cloudControlName.pathTemplate, ORGANIZATION_LOCATION_CLOUD_CONTROL), + "toBuilder is only supported when CloudControlName has the pattern of" + + " organizations/{organization}/locations/{location}/cloudControls/{cloud_control}"); this.organization = cloudControlName.organization; this.location = cloudControlName.location; this.cloudControl = cloudControlName.cloudControl; @@ -227,4 +312,44 @@ public CloudControlName build() { return new CloudControlName(this); } } + + /** Builder for projects/{project}/locations/{location}/cloudControls/{cloud_control}. */ + public static class ProjectLocationCloudControlBuilder { + private String project; + private String location; + private String cloudControl; + + protected ProjectLocationCloudControlBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getCloudControl() { + return cloudControl; + } + + public ProjectLocationCloudControlBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationCloudControlBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationCloudControlBuilder setCloudControl(String cloudControl) { + this.cloudControl = cloudControl; + return this; + } + + public CloudControlName build() { + return new CloudControlName(this); + } + } } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlOrBuilder.java index 819a10f363f3..dfeb84ff6223 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CloudControlOrBuilder.java @@ -30,8 +30,12 @@ public interface CloudControlOrBuilder * * *
                -   * Required. Identifier. The name of the cloud control, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                +   * Required. Identifier. The name of the cloud control, in either of the
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -47,8 +51,12 @@ public interface CloudControlOrBuilder * * *
                -   * Required. Identifier. The name of the cloud control, in the format
                -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`.
                +   * Required. Identifier. The name of the cloud control, in either of the
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
                +   * or
                +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CommonProto.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CommonProto.java index a05e8b7da139..6ce952cb003d 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CommonProto.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CommonProto.java @@ -112,6 +112,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_cloudsecuritycompliance_v1_OperationMetadata_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_cloudsecuritycompliance_v1_OperationMetadata_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_Control_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_Control_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable @@ -128,7 +132,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "\n" + "4google/cloud/cloudsecuritycompliance/v1/common.proto\022\'google.cloud.cloudsecuri" + "tycompliance.v1\032\037google/api/field_behavi" - + "or.proto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\224\007\n" + + "or.proto\032\031google/api/resource.proto\032\037google/protobuf/timestamp.proto\"\324\007\n" + "\tFramework\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\022\036\n" + "\021major_revision_id\030\002 \001(\003B\003\340A\003\022\031\n" @@ -150,71 +154,74 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "FrameworkType\022\036\n" + "\032FRAMEWORK_TYPE_UNSPECIFIED\020\000\022\014\n" + "\010BUILT_IN\020\001\022\n\n" - + "\006CUSTOM\020\002:\227\001\352A\223\001\n" + + "\006CUSTOM\020\002:\327\001\352A\323\001\n" + "0cloudsecuritycompliance.googleapis.com/Framework\022Horganizations/{organization}" - + "/locations/{location}/frameworks/{framework}*\n" + + "/locations/{location}/frameworks/{framew" + + "ork}\022>projects/{project}/locations/{location}/frameworks/{framework}*\n" + "frameworks2\tframework\"\225\001\n" + "\023CloudControlDetails\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\036\n" + "\021major_revision_id\030\002 \001(\003B\003\340A\002\022K\n\n" - + "parameters\030\004 \003" - + "(\01322.google.cloud.cloudsecuritycompliance.v1.ParameterB\003\340A\001\"g\n" - + "\022FrameworkReference\022\026\n" - + "\tframework\030\001 \001(\tB\003\340A\002\022#\n" + + "parameters\030\004 \003(\01322.google.clou" + + "d.cloudsecuritycompliance.v1.ParameterB\003\340A\001\"\234\001\n" + + "\022FrameworkReference\022K\n" + + "\tframework\030\001 \001(\tB8\340A\002\372A2\n" + + "0cloudsecuritycompliance.googleapis.com/Framework\022#\n" + "\021major_revision_id\030\002 \001(\003B\003\340A\001H\000\210\001\001B\024\n" + "\022_major_revision_id\"q\n" + "\tParameter\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022Q\n" - + "\017parameter_value\030\002 \001(\01323.google.cloud.clo" - + "udsecuritycompliance.v1.ParamValueB\003\340A\002\"\332\010\n" + + "\017parameter_value\030\002" + + " \001(\01323.google.cloud.cloudsecuritycompliance.v1.ParamValueB\003\340A\002\"\241" + + "\t\n" + "\014CloudControl\022\024\n" + "\004name\030\001 \001(\tB\006\340A\002\340A\010\022\036\n" + "\021major_revision_id\030\002 \001(\003B\003\340A\003\022\030\n" + "\013description\030\004 \001(\tB\003\340A\001\022\031\n" + "\014display_name\030\005 \001(\tB\003\340A\001\022b\n" - + "\033supported_enforcement_modes\030\007 \003(\016" - + "28.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\003\340A\003\022S\n" + + "\033supported_enforcement_modes\030\007 \003(\01628" + + ".google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\003\340A\003\022S\n" + "\016parameter_spec\030\010" + " \003(\01326.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\003\340A\001\022A\n" - + "\005rules\030\t " - + "\003(\0132-.google.cloud.cloudsecuritycompliance.v1.RuleB\003\340A\001\022H\n" - + "\010severity\030\013 \001(\01621.goog" - + "le.cloud.cloudsecuritycompliance.v1.SeverityB\003\340A\001\022\035\n" + + "\005rules\030\t \003(" + + "\0132-.google.cloud.cloudsecuritycompliance.v1.RuleB\003\340A\001\022H\n" + + "\010severity\030\013 \001(\01621.google" + + ".cloud.cloudsecuritycompliance.v1.SeverityB\003\340A\001\022\035\n" + "\020finding_category\030\014 \001(\tB\003\340A\001\022^\n" + "\031supported_cloud_providers\030\r" - + " \003(\01626.go" - + "ogle.cloud.cloudsecuritycompliance.v1.CloudProviderB\003\340A\001\022\037\n" + + " \003(\01626.goog" + + "le.cloud.cloudsecuritycompliance.v1.CloudProviderB\003\340A\001\022\037\n" + "\022related_frameworks\030\016 \003(\tB\003\340A\003\022\036\n" + "\021remediation_steps\030\017 \001(\tB\003\340A\001\022V\n\n" - + "categories\030\020 \003(\0162=.google.cloud.clo" - + "udsecuritycompliance.v1.CloudControlCategoryB\003\340A\001\0224\n" + + "categories\030\020 \003(\0162=.google.cloud.cloud" + + "securitycompliance.v1.CloudControlCategoryB\003\340A\001\0224\n" + "\013create_time\030\021 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022i\n" - + "\037supported_target_resource_types\030\022 \003(\0162;.google.cloud." - + "cloudsecuritycompliance.v1.TargetResourceTypeB\003\340A\001\"6\n" + + "\037supported_target_resource_types\030\022 \003(\0162;.google.cloud.cl" + + "oudsecuritycompliance.v1.TargetResourceTypeB\003\340A\001\"6\n" + "\004Type\022\024\n" - + "\020TYPE_UNSPECIFIED\020\000\022\n\n" + + "\020TYPE_UNSPECIFIED\020\000\022\n" + + "\n" + "\006CUSTOM\020\001\022\014\n" - + "\010BUILT_IN\020\002:\247\001\352A\243\001\n" - + "3cloudsecuritycompliance.googleapis.com/CloudC" - + "ontrol\022Oorganizations/{organization}/loc" - + "ations/{location}/cloudControls/{cloud_control}*\r" - + "cloudControls2\014cloudControl\"\216\005\n" - + "\r" + + "\010BUILT_IN\020\002:\356\001\352A\352\001\n" + + "3cloudsecuritycompliance.googleapis.com/CloudCon" + + "trol\022Oorganizations/{organization}/locations/{location}/cloudControls/{cloud_con" + + "trol}\022Eprojects/{project}/locations/{location}/cloudControls/{cloud_control}*\r" + + "cloudControls2\014cloudControl\"\216\005\n\r" + "ParameterSpec\022\021\n" + "\004name\030\001 \001(\tB\003\340A\002\022\031\n" + "\014display_name\030\002 \001(\tB\003\340A\001\022\030\n" + "\013description\030\003 \001(\tB\003\340A\001\022\030\n" + "\013is_required\030\004 \001(\010B\003\340A\002\022Y\n\n" - + "value_type\030\005 \001(\0162@.google.cloud.cloudsecurit" - + "ycompliance.v1.ParameterSpec.ValueTypeB\003\340A\002\022O\n\r" - + "default_value\030\006 \001(\01323.google.clou" - + "d.cloudsecuritycompliance.v1.ParamValueB\003\340A\001\022c\n" - + "\022substitution_rules\030\007 \003(\0132B.googl" - + "e.cloud.cloudsecuritycompliance.v1.ParameterSubstitutionRuleB\003\340A\001\022S\n" - + "\016sub_parameters\030\010" - + " \003(\01326.google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\003\340A\001\022L\n\n" - + "validation\030\t" - + " \001(\01323.google.cloud.cloudsecuritycompliance.v1.ValidationB\003\340A\001\"g\n" + + "value_type\030\005 \001(" + + "\0162@.google.cloud.cloudsecuritycompliance.v1.ParameterSpec.ValueTypeB\003\340A\002\022O\n\r" + + "default_value\030\006" + + " \001(\01323.google.cloud.cloudsecuritycompliance.v1.ParamValueB\003\340A\001\022c\n" + + "\022substitution_rules\030\007 \003(\0132B.google.cloud.clo" + + "udsecuritycompliance.v1.ParameterSubstitutionRuleB\003\340A\001\022S\n" + + "\016sub_parameters\030\010 \003(\01326" + + ".google.cloud.cloudsecuritycompliance.v1.ParameterSpecB\003\340A\001\022L\n\n" + + "validation\030\t \001(\0132" + + "3.google.cloud.cloudsecuritycompliance.v1.ValidationB\003\340A\001\"g\n" + "\tValueType\022\032\n" + "\026VALUE_TYPE_UNSPECIFIED\020\000\022\n\n" + "\006STRING\020\003\022\013\n" @@ -223,53 +230,53 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006NUMBER\020\006\022\t\n" + "\005ONEOF\020\007\"\206\002\n\n" + "Validation\022P\n" - + "\016allowed_values\030\001" - + " \001(\01326.google.cloud.cloudsecuritycompliance.v1.AllowedValuesH\000\022F\n" - + "\tint_range\030\002" - + " \001(\01321.google.cloud.cloudsecuritycompliance.v1.IntRangeH\000\022P\n" - + "\016regexp_pattern\030\003" - + " \001(\01326.google.cloud.cloudsecuritycompliance.v1.RegexpPatternH\000B\014\n\n" + + "\016allowed_values\030\001 \001(" + + "\01326.google.cloud.cloudsecuritycompliance.v1.AllowedValuesH\000\022F\n" + + "\tint_range\030\002 \001(\01321" + + ".google.cloud.cloudsecuritycompliance.v1.IntRangeH\000\022P\n" + + "\016regexp_pattern\030\003 \001(\01326.go" + + "ogle.cloud.cloudsecuritycompliance.v1.RegexpPatternH\000B\014\n\n" + "constraint\"Y\n\r" + "AllowedValues\022H\n" - + "\006values\030\001 \003(\01323.google" - + ".cloud.cloudsecuritycompliance.v1.ParamValueB\003\340A\002\"%\n\r" + + "\006values\030\001 \003(\01323.google.cloud.clou" + + "dsecuritycompliance.v1.ParamValueB\003\340A\002\"%\n\r" + "RegexpPattern\022\024\n" + "\007pattern\030\001 \001(\tB\003\340A\002\".\n" + "\010IntRange\022\020\n" + "\003min\030\001 \001(\003B\003\340A\002\022\020\n" + "\003max\030\002 \001(\003B\003\340A\002\"!\n\n" + "StringList\022\023\n" - + "\006values\030\001 \003(\tB\003\340A\002\"\367\001\n\n" - + "ParamValue\022\026\n" - + "\014string_value\030\003 \001(\tH\000\022\024\n\n" - + "bool_value\030\004 \001(\010H\000\022P\n" - + "\021string_list_value\030\005" - + " \001(\01323.google.cloud.cloudsecuritycompliance.v1.StringListH\000\022\026\n" - + "\014number_value\030\006 \001(\001H\000\022I\n" - + "\013oneof_value\030\007 \001(\0132" - + "2.google.cloud.cloudsecuritycompliance.v1.ParameterH\000B\006\n" + + "\006values\030\001 \003(\tB\003\340A\002\"\220\002\n\n" + + "ParamValue\022\033\n" + + "\014string_value\030\003 \001(\tB\003\340A\001H\000\022\031\n\n" + + "bool_value\030\004 \001(\010B\003\340A\001H\000\022U\n" + + "\021string_list_value\030\005 \001(\01323.google.cloud.clouds" + + "ecuritycompliance.v1.StringListB\003\340A\001H\000\022\033\n" + + "\014number_value\030\006 \001(\001B\003\340A\001H\000\022N\n" + + "\013oneof_value\030\007" + + " \001(\01322.google.cloud.cloudsecuritycompliance.v1.ParameterB\003\340A\001H\000B\006\n" + "\004kind\"\212\002\n" + "\031ParameterSubstitutionRule\022m\n" - + "\035placeholder_substitution_rule\030\001 \001(\0132D.google.cloud.cloudsecurityc" - + "ompliance.v1.PlaceholderSubstitutionRuleH\000\022i\n" - + "\033attribute_substitution_rule\030\002 \001(\0132" - + "B.google.cloud.cloudsecuritycompliance.v1.AttributeSubstitutionRuleH\000B\023\n" + + "\035placeholder_substitution_rule\030\001 \001(\0132D.google.cloud." + + "cloudsecuritycompliance.v1.PlaceholderSubstitutionRuleH\000\022i\n" + + "\033attribute_substitution_rule\030\002 \001(\0132B.google.cloud.cloudsecuri" + + "tycompliance.v1.AttributeSubstitutionRuleH\000B\023\n" + "\021substitution_type\".\n" + "\031AttributeSubstitutionRule\022\021\n" + "\tattribute\030\001 \001(\t\"0\n" + "\033PlaceholderSubstitutionRule\022\021\n" + "\tattribute\030\001 \001(\t\"\335\001\n" + "\004Rule\022P\n" - + "\016cel_expression\030\001 \001(\01326.google.cloud.clo" - + "udsecuritycompliance.v1.CELExpressionH\000\022\030\n" + + "\016cel_expression\030\001 \001(\01326.go" + + "ogle.cloud.cloudsecuritycompliance.v1.CELExpressionH\000\022\030\n" + "\013description\030\n" + " \001(\tB\003\340A\001\022W\n" - + "\021rule_action_types\030\020" - + " \003(\01627.google.cloud.cloudsecuritycompliance.v1.RuleActionTypeB\003\340A\002B\020\n" + + "\021rule_action_types\030\020 \003(\01627.google.clou" + + "d.cloudsecuritycompliance.v1.RuleActionTypeB\003\340A\002B\020\n" + "\016implementation\"\212\001\n\r" + "CELExpression\022T\n" - + "\025resource_types_values\030\003" - + " \001(\01323.google.cloud.cloudsecuritycompliance.v1.StringListH\000\022\027\n\n" + + "\025resource_types_values\030\003 \001(\01323.go" + + "ogle.cloud.cloudsecuritycompliance.v1.StringListH\000\022\027\n\n" + "expression\030\001 \001(\tB\003\340A\002B\n\n" + "\010criteria\"\200\002\n" + "\021OperationMetadata\0224\n" @@ -279,7 +286,51 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004verb\030\004 \001(\tB\003\340A\003\022\033\n" + "\016status_message\030\005 \001(\tB\003\340A\003\022#\n" + "\026requested_cancellation\030\006 \001(\010B\003\340A\003\022\030\n" - + "\013api_version\030\007 \001(\tB\003\340A\003\"8\n\r" + + "\013api_version\030\007 \001(\tB\003\340A\003\"\243\010\n" + + "\007Control\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\003\022\031\n" + + "\014display_name\030\003 \001(\tB\003\340A\003\022\030\n" + + "\013description\030\004 \001(\tB\003\340A\003\022L\n" + + "\006family\030\005" + + " \001(\01627.google.cloud.cloudsecuritycompliance.v1.Control.FamilyB\003\340A\003\022S\n" + + "\016control_family\030\006" + + " \001(\01326.google.cloud.cloudsecuritycompliance.v1.ControlFamilyB\003\340A\003\022n\n" + + "\023responsibility_type\030\007 \001(\0162L.google.cloud.cl" + + "oudsecuritycompliance.v1.RegulatoryControlResponsibilityTypeB\003\340A\003\022.\n" + + "!google_responsibility_description\030\010 \001(\tB\003\340A\003\0221\n" + + "$google_responsibility_implementation\030\t \001(\tB\003\340A\003\0220\n" + + "#customer_responsibility_description\030\n" + + " \001(\tB\003\340A\003\0223\n" + + "&customer_responsibility_implementation\030\013 \001(\tB\003\340A\003\022.\n" + + "!shared_responsibility_description\030\014 \001(\tB\003\340A\003\022#\n" + + "\026additional_content_uri\030\r" + + " \001(\tB\003\340A\003\022\037\n" + + "\022related_frameworks\030\016 \003(\tB\003\340A\003\"\260\001\n" + + "\006Family\022\026\n" + + "\022FAMILY_UNSPECIFIED\020\000\022\006\n" + + "\002AC\020\001\022\006\n" + + "\002AT\020\002\022\006\n" + + "\002AU\020\003\022\006\n" + + "\002CA\020\004\022\006\n" + + "\002CM\020\005\022\006\n" + + "\002CP\020\006\022\006\n" + + "\002IA\020\007\022\006\n" + + "\002IR\020\010\022\006\n" + + "\002MA\020\t\022\006\n" + + "\002MP\020\n" + + "\022\006\n" + + "\002PE\020\013\022\006\n" + + "\002PL\020\014\022\006\n" + + "\002PS\020\r" + + "\022\006\n" + + "\002RA\020\016\022\006\n" + + "\002SA\020\017\022\006\n" + + "\002SC\020\020\022\006\n" + + "\002SI\020\021\022\006\n" + + "\002SR\020\022:\311\001\352A\305\001\n" + + ".cloudsecuritycompliance.googleapis.com/Control\022Dorganizations/{orga" + + "nization}/locations/{location}/controls/{control}\022:projects/{project}/locations/" + + "{location}/controls/{control}*\010controls2\007control\"8\n\r" + "ControlFamily\022\021\n" + "\tfamily_id\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t*\203\001\n" @@ -299,7 +350,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021ASSURED_WORKLOADS\020\002\022\021\n\r" + "DATA_SECURITY\020\003\022\031\n" + "\025GOOGLE_BEST_PRACTICES\020\004\022\024\n" - + "\020CUSTOM_FRAMEWORK\020\005*\362\004\n" + + "\020CUSTOM_FRAMEWORK\020\005*\376\005\n" + "\024CloudControlCategory\022&\n" + "\"CLOUD_CONTROL_CATEGORY_UNSPECIFIED\020\000\022\036\n" + "\032CC_CATEGORY_INFRASTRUCTURE\020\001\022\'\n" @@ -318,7 +369,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "$CC_CATEGORY_VULNERABILITY_MANAGEMENT\020\r" + "\022\027\n" + "\023CC_CATEGORY_PRIVACY\020\016\022\024\n" - + "\020CC_CATEGORY_BCDR\020\017*L\n\r" + + "\020CC_CATEGORY_BCDR\020\017\022\034\n" + + "\030CC_CATEGORY_ADMIN_ACCESS\020\020\022\036\n" + + "\032CC_CATEGORY_DATA_RESIDENCY\020\021\022*\n" + + "&CC_CATEGORY_RESOURCE_USAGE_RESTRICTION\020\022\022 \n" + + "\034CC_CATEGORY_SERVICE_SPECIFIC\020\023*L\n\r" + "CloudProvider\022\036\n" + "\032CLOUD_PROVIDER_UNSPECIFIED\020\000\022\007\n" + "\003AWS\020\001\022\t\n" @@ -341,14 +396,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\037TARGET_RESOURCE_CRM_TYPE_FOLDER\020\002\022$\n" + " TARGET_RESOURCE_CRM_TYPE_PROJECT\020\003\022$\n" + " TARGET_RESOURCE_TYPE_APPLICATION\020\004B\227\003\n" - + "+com.google.cloud.cloudsecuritycompliance.v1B\013CommonP" - + "rotoP\001Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycomplianc" - + "epb;cloudsecuritycompliancepb\252\002\'Google.C" - + "loud.CloudSecurityCompliance.V1\312\002\'Google" - + "\\Cloud\\CloudSecurityCompliance\\V1\352\002*Goog" - + "le::Cloud::CloudSecurityCompliance::V1\352Ap\n" - + ";cloudsecuritycompliance.googleapis.com/OrganizationLocation\0221organizations/{o" - + "rganization}/locations/{location}b\006proto3" + + "+com.google.cloud.cloudsecuritycompliance.v1B\013CommonProtoP\001Zecloud.google.com" + + "/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cloudsecuritycomplia" + + "ncepb\252\002\'Google.Cloud.CloudSecurityCompli" + + "ance.V1\312\002\'Google\\Cloud\\CloudSecurityComp" + + "liance\\V1\352\002*Google::Cloud::CloudSecurityCompliance::V1\352Ap\n" + + ";cloudsecuritycompliance.googleapis.com/OrganizationLocation\0221" + + "organizations/{organization}/locations/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -539,8 +593,28 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "RequestedCancellation", "ApiVersion", }); - internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_descriptor = + internal_static_google_cloud_cloudsecuritycompliance_v1_Control_descriptor = getDescriptor().getMessageType(18); + internal_static_google_cloud_cloudsecuritycompliance_v1_Control_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_Control_descriptor, + new java.lang.String[] { + "Name", + "DisplayName", + "Description", + "Family", + "ControlFamily", + "ResponsibilityType", + "GoogleResponsibilityDescription", + "GoogleResponsibilityImplementation", + "CustomerResponsibilityDescription", + "CustomerResponsibilityImplementation", + "SharedResponsibilityDescription", + "AdditionalContentUri", + "RelatedFrameworks", + }); + internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_descriptor = + getDescriptor().getMessageType(19); internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_cloudsecuritycompliance_v1_ControlFamily_descriptor, @@ -556,6 +630,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); registry.add(com.google.api.ResourceProto.resource); registry.add(com.google.api.ResourceProto.resourceDefinition); + registry.add(com.google.api.ResourceProto.resourceReference); com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( descriptor, registry); } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigProto.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigProto.java index 3169ced377b5..1c05380921c9 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigProto.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ConfigProto.java @@ -158,60 +158,70 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + " \001(\01325.google.cloud.cloudsecuritycompliance.v1.CloudControlB\003\340A\002\"f\n" + "\031DeleteCloudControlRequest\022I\n" + "\004name\030\001 \001(\tB;\340A\002\372A5\n" - + "3cloudsecuritycompliance.googleapis.com/CloudControl2\241\022\n" - + "\006Config\022\327\001\n" + + "3cloudsecuritycompliance.googleapis.com/CloudControl2\367\026\n" + + "\006Config\022\211\002\n" + "\016ListFrameworks\022>.google.cloud.cloudsecuritycomplianc" + "e.v1.ListFrameworksRequest\032?.google.cloud.cloudsecuritycompliance.v1.ListFramewo" - + "rksResponse\"D\332A\006parent\202\323\344\223\0025\0223/v1/{paren" - + "t=organizations/*/locations/*}/frameworks\022\304\001\n" - + "\014GetFramework\022<.google.cloud.cloudsecuritycompliance.v1.GetFrameworkRequest" - + "\0322.google.cloud.cloudsecuritycompliance." - + "v1.Framework\"B\332A\004name\202\323\344\223\0025\0223/v1/{name=o" - + "rganizations/*/locations/*/frameworks/*}\022\356\001\n" - + "\017CreateFramework\022?.google.cloud.cloudsecuritycompliance.v1.CreateFrameworkRe" - + "quest\0322.google.cloud.cloudsecuritycompli" - + "ance.v1.Framework\"f\332A\035parent,framework,f" - + "ramework_id\202\323\344\223\002@\"3/v1/{parent=organizations/*/locations/*}/frameworks:" - + "\tframework\022\360\001\n" - + "\017UpdateFramework\022?.google.cloud.cloudsecuritycompliance.v1.UpdateFrameworkR" - + "equest\0322.google.cloud.cloudsecuritycompl" - + "iance.v1.Framework\"h\332A\025framework,update_" - + "mask\202\323\344\223\002J2=/v1/{framework.name=organizations/*/locations/*/frameworks/*}:" - + "\tframework\022\256\001\n" - + "\017DeleteFramework\022?.google.cloud.cloudsecuritycompliance.v1.DeleteFramewo" - + "rkRequest\032\026.google.protobuf.Empty\"B\332A\004na" - + "me\202\323\344\223\0025*3/v1/{name=organizations/*/locations/*/frameworks/*}\022\343\001\n" - + "\021ListCloudControls\022A.google.cloud.cloudsecuritycomplian" - + "ce.v1.ListCloudControlsRequest\032B.google.cloud.cloudsecuritycompliance.v1.ListClo" - + "udControlsResponse\"G\332A\006parent\202\323\344\223\0028\0226/v1" - + "/{parent=organizations/*/locations/*}/cloudControls\022\320\001\n" - + "\017GetCloudControl\022?.google.cloud.cloudsecuritycompliance.v1.GetClo" - + "udControlRequest\0325.google.cloud.cloudsec" - + "uritycompliance.v1.CloudControl\"E\332A\004name" - + "\202\323\344\223\0028\0226/v1/{name=organizations/*/locations/*/cloudControls/*}\022\206\002\n" - + "\022CreateCloudControl\022B.google.cloud.cloudsecuritycompli" - + "ance.v1.CreateCloudControlRequest\0325.google.cloud.cloudsecuritycompliance.v1.Clou" - + "dControl\"u\332A%parent,cloud_control,cloud_" - + "control_id\202\323\344\223\002G\"6/v1/{parent=organizations/*/locations/*}/cloudControls:\r" - + "cloud_control\022\210\002\n" - + "\022UpdateCloudControl\022B.google.cloud.cloudsecuritycompliance.v1.UpdateC" - + "loudControlRequest\0325.google.cloud.clouds" - + "ecuritycompliance.v1.CloudControl\"w\332A\031cl" - + "oud_control,update_mask\202\323\344\223\002U2D/v1/{clou" - + "d_control.name=organizations/*/locations/*/cloudControls/*}:\r" - + "cloud_control\022\267\001\n" - + "\022DeleteCloudControl\022B.google.cloud.cloudse" - + "curitycompliance.v1.DeleteCloudControlRe" - + "quest\032\026.google.protobuf.Empty\"E\332A\004name\202\323" - + "\344\223\0028*6/v1/{name=organizations/*/location" - + "s/*/cloudControls/*}\032Z\312A&cloudsecurityco" - + "mpliance.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\244\002\n" - + "+com.google.cloud.cloudsecuritycompliance.v1" - + "B\013ConfigProtoP\001Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecurity" - + "compliancepb;cloudsecuritycompliancepb\252\002" - + "\'Google.Cloud.CloudSecurityCompliance.V1" - + "\312\002\'Google\\Cloud\\CloudSecurityCompliance\\" - + "V1\352\002*Google::Cloud::CloudSecurityCompliance::V1b\006proto3" + + "rksResponse\"v\332A\006parent\202\323\344\223\002g\0223/v1/{paren" + + "t=organizations/*/locations/*}/framework" + + "sZ0\022./v1/{parent=projects/*/locations/*}/frameworks\022\366\001\n" + + "\014GetFramework\022<.google.cloud.cloudsecuritycompliance.v1.GetFramew" + + "orkRequest\0322.google.cloud.cloudsecurityc" + + "ompliance.v1.Framework\"t\332A\004name\202\323\344\223\002g\0223/" + + "v1/{name=organizations/*/locations/*/fra" + + "meworks/*}Z0\022./v1/{name=projects/*/locations/*/frameworks/*}\022\254\002\n" + + "\017CreateFramework\022?.google.cloud.cloudsecuritycompliance." + + "v1.CreateFrameworkRequest\0322.google.cloud" + + ".cloudsecuritycompliance.v1.Framework\"\243\001" + + "\332A\035parent,framework,framework_id\202\323\344\223\002}\"3" + + "/v1/{parent=organizations/*/locations/*}/frameworks:" + + "\tframeworkZ;\"./v1/{parent=projects/*/locations/*}/frameworks:" + + "\tframework\022\271\002\n" + + "\017UpdateFramework\022?.google.cloud.cloudsecuritycompliance.v1.UpdateFramewor" + + "kRequest\0322.google.cloud.cloudsecuritycom" + + "pliance.v1.Framework\"\260\001\332A\025framework,upda" + + "te_mask\202\323\344\223\002\221\0012=/v1/{framework.name=organizations/*/locations/*/frameworks/*}:" + + "\tframeworkZE28/v1/{framework.name=projects/*/locations/*/frameworks/*}:" + + "\tframework\022\340\001\n" + + "\017DeleteFramework\022?.google.cloud.cloudsecuritycompliance.v1.DeleteFrameworkReq" + + "uest\032\026.google.protobuf.Empty\"t\332A\004name\202\323\344" + + "\223\002g*3/v1/{name=organizations/*/locations" + + "/*/frameworks/*}Z0*./v1/{name=projects/*/locations/*/frameworks/*}\022\230\002\n" + + "\021ListCloudControls\022A.google.cloud.cloudsecuritycom" + + "pliance.v1.ListCloudControlsRequest\032B.google.cloud.cloudsecuritycompliance.v1.Li" + + "stCloudControlsResponse\"|\332A\006parent\202\323\344\223\002m" + + "\0226/v1/{parent=organizations/*/locations/" + + "*}/cloudControlsZ3\0221/v1/{parent=projects/*/locations/*}/cloudControls\022\205\002\n" + + "\017GetCloudControl\022?.google.cloud.cloudsecurityco" + + "mpliance.v1.GetCloudControlRequest\0325.google.cloud.cloudsecuritycompliance.v1.Clo" + + "udControl\"z\332A\004name\202\323\344\223\002m\0226/v1/{name=orga" + + "nizations/*/locations/*/cloudControls/*}" + + "Z3\0221/v1/{name=projects/*/locations/*/cloudControls/*}\022\314\002\n" + + "\022CreateCloudControl\022B.google.cloud.cloudsecuritycompliance.v1.C" + + "reateCloudControlRequest\0325.google.cloud.cloudsecuritycompliance.v1.CloudControl\"" + + "\272\001\332A%parent,cloud_control,cloud_control_" + + "id\202\323\344\223\002\213\001\"6/v1/{parent=organizations/*/locations/*}/cloudControls:\r" + + "cloud_controlZB\"1/v1/{parent=projects/*/locations/*}/cloudControls:\r" + + "cloud_control\022\334\002\n" + + "\022UpdateCloudControl\022B.google.cloud.cloudsecurity" + + "compliance.v1.UpdateCloudControlRequest\0325.google.cloud.cloudsecuritycompliance.v" + + "1.CloudControl\"\312\001\332A\031cloud_control,update" + + "_mask\202\323\344\223\002\247\0012D/v1/{cloud_control.name=or" + + "ganizations/*/locations/*/cloudControls/*}:\r" + + "cloud_controlZP2?/v1/{cloud_control.name=projects/*/locations/*/cloudControls/*}:\r" + + "cloud_control\022\354\001\n" + + "\022DeleteCloudControl\022B.google.cloud.cloudsecuritycomplianc" + + "e.v1.DeleteCloudControlRequest\032\026.google." + + "protobuf.Empty\"z\332A\004name\202\323\344\223\002m*6/v1/{name" + + "=organizations/*/locations/*/cloudControls/*}Z3*1/v1/{name=projects/*/locations/" + + "*/cloudControls/*}\032Z\312A&cloudsecuritycomp" + + "liance.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\244\002\n" + + "+com.google.cloud.cloudsecuritycompliance.v1B\013" + + "ConfigProtoP\001Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecurityco" + + "mpliancepb;cloudsecuritycompliancepb\252\002\'G" + + "oogle.Cloud.CloudSecurityCompliance.V1\312\002" + + "\'Google\\Cloud\\CloudSecurityCompliance\\V1" + + "\352\002*Google::Cloud::CloudSecurityCompliance::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Control.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Control.java new file mode 100644 index 000000000000..36523a1cf8b4 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Control.java @@ -0,0 +1,3810 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/cloudsecuritycompliance/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                + * The regulatory control.
                + * 
                + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Control} + */ +@com.google.protobuf.Generated +public final class Control extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.Control) + ControlOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Control"); + } + + // Use Control.newBuilder() to construct. + private Control(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Control() { + name_ = ""; + displayName_ = ""; + description_ = ""; + family_ = 0; + responsibilityType_ = 0; + googleResponsibilityDescription_ = ""; + googleResponsibilityImplementation_ = ""; + customerResponsibilityDescription_ = ""; + customerResponsibilityImplementation_ = ""; + sharedResponsibilityDescription_ = ""; + additionalContentUri_ = ""; + relatedFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Control_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Control_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.Control.class, + com.google.cloud.cloudsecuritycompliance.v1.Control.Builder.class); + } + + /** + * + * + *
                +   * The regulatory control family.
                +   * 
                + * + * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.Control.Family} + */ + public enum Family implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +     * Default value. This value is unused.
                +     * 
                + * + * FAMILY_UNSPECIFIED = 0; + */ + FAMILY_UNSPECIFIED(0), + /** + * + * + *
                +     * Access control
                +     * 
                + * + * AC = 1; + */ + AC(1), + /** + * + * + *
                +     * Awareness and araining
                +     * 
                + * + * AT = 2; + */ + AT(2), + /** + * + * + *
                +     * Audit and accountability
                +     * 
                + * + * AU = 3; + */ + AU(3), + /** + * + * + *
                +     * Certification, accreditation, and security assessments
                +     * 
                + * + * CA = 4; + */ + CA(4), + /** + * + * + *
                +     * Configuration management
                +     * 
                + * + * CM = 5; + */ + CM(5), + /** + * + * + *
                +     * Contingency planning
                +     * 
                + * + * CP = 6; + */ + CP(6), + /** + * + * + *
                +     * Identification and authentication
                +     * 
                + * + * IA = 7; + */ + IA(7), + /** + * + * + *
                +     * Incident response
                +     * 
                + * + * IR = 8; + */ + IR(8), + /** + * + * + *
                +     * Maintenance
                +     * 
                + * + * MA = 9; + */ + MA(9), + /** + * + * + *
                +     * Media protection
                +     * 
                + * + * MP = 10; + */ + MP(10), + /** + * + * + *
                +     * Physical and environmental protection
                +     * 
                + * + * PE = 11; + */ + PE(11), + /** + * + * + *
                +     * Security planning
                +     * 
                + * + * PL = 12; + */ + PL(12), + /** + * + * + *
                +     * Personnel aecurity
                +     * 
                + * + * PS = 13; + */ + PS(13), + /** + * + * + *
                +     * Risk assessment
                +     * 
                + * + * RA = 14; + */ + RA(14), + /** + * + * + *
                +     * System services and acquisition
                +     * 
                + * + * SA = 15; + */ + SA(15), + /** + * + * + *
                +     * System and communications protection
                +     * 
                + * + * SC = 16; + */ + SC(16), + /** + * + * + *
                +     * System and information integrity
                +     * 
                + * + * SI = 17; + */ + SI(17), + /** + * + * + *
                +     * Supply chain risk management
                +     * 
                + * + * SR = 18; + */ + SR(18), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Family"); + } + + /** + * + * + *
                +     * Default value. This value is unused.
                +     * 
                + * + * FAMILY_UNSPECIFIED = 0; + */ + public static final int FAMILY_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +     * Access control
                +     * 
                + * + * AC = 1; + */ + public static final int AC_VALUE = 1; + + /** + * + * + *
                +     * Awareness and araining
                +     * 
                + * + * AT = 2; + */ + public static final int AT_VALUE = 2; + + /** + * + * + *
                +     * Audit and accountability
                +     * 
                + * + * AU = 3; + */ + public static final int AU_VALUE = 3; + + /** + * + * + *
                +     * Certification, accreditation, and security assessments
                +     * 
                + * + * CA = 4; + */ + public static final int CA_VALUE = 4; + + /** + * + * + *
                +     * Configuration management
                +     * 
                + * + * CM = 5; + */ + public static final int CM_VALUE = 5; + + /** + * + * + *
                +     * Contingency planning
                +     * 
                + * + * CP = 6; + */ + public static final int CP_VALUE = 6; + + /** + * + * + *
                +     * Identification and authentication
                +     * 
                + * + * IA = 7; + */ + public static final int IA_VALUE = 7; + + /** + * + * + *
                +     * Incident response
                +     * 
                + * + * IR = 8; + */ + public static final int IR_VALUE = 8; + + /** + * + * + *
                +     * Maintenance
                +     * 
                + * + * MA = 9; + */ + public static final int MA_VALUE = 9; + + /** + * + * + *
                +     * Media protection
                +     * 
                + * + * MP = 10; + */ + public static final int MP_VALUE = 10; + + /** + * + * + *
                +     * Physical and environmental protection
                +     * 
                + * + * PE = 11; + */ + public static final int PE_VALUE = 11; + + /** + * + * + *
                +     * Security planning
                +     * 
                + * + * PL = 12; + */ + public static final int PL_VALUE = 12; + + /** + * + * + *
                +     * Personnel aecurity
                +     * 
                + * + * PS = 13; + */ + public static final int PS_VALUE = 13; + + /** + * + * + *
                +     * Risk assessment
                +     * 
                + * + * RA = 14; + */ + public static final int RA_VALUE = 14; + + /** + * + * + *
                +     * System services and acquisition
                +     * 
                + * + * SA = 15; + */ + public static final int SA_VALUE = 15; + + /** + * + * + *
                +     * System and communications protection
                +     * 
                + * + * SC = 16; + */ + public static final int SC_VALUE = 16; + + /** + * + * + *
                +     * System and information integrity
                +     * 
                + * + * SI = 17; + */ + public static final int SI_VALUE = 17; + + /** + * + * + *
                +     * Supply chain risk management
                +     * 
                + * + * SR = 18; + */ + public static final int SR_VALUE = 18; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Family valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Family forNumber(int value) { + switch (value) { + case 0: + return FAMILY_UNSPECIFIED; + case 1: + return AC; + case 2: + return AT; + case 3: + return AU; + case 4: + return CA; + case 5: + return CM; + case 6: + return CP; + case 7: + return IA; + case 8: + return IR; + case 9: + return MA; + case 10: + return MP; + case 11: + return PE; + case 12: + return PL; + case 13: + return PS; + case 14: + return RA; + case 15: + return SA; + case 16: + return SC; + case 17: + return SI; + case 18: + return SR; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Family findValueByNumber(int number) { + return Family.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.Control.getDescriptor() + .getEnumTypes() + .get(0); + } + + private static final Family[] VALUES = values(); + + public static Family valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Family(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.Control.Family) + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
                +   * Output only. The name of a regulatory control, in one of the following
                +   * formats:
                +   * - `organizations/{organization}/locations/{location}/controls/{control}`
                +   * - `projects/{project}/locations/{location}/controls/{control}`.
                +   *
                +   * The only supported location is `global`.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. The name of a regulatory control, in one of the following
                +   * formats:
                +   * - `organizations/{organization}/locations/{location}/controls/{control}`
                +   * - `projects/{project}/locations/{location}/controls/{control}`.
                +   *
                +   * The only supported location is `global`.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
                +   * Output only. The friendly name for the regulatory control.
                +   * 
                + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. The friendly name for the regulatory control.
                +   * 
                + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DESCRIPTION_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
                +   * Output only. The description of the regulatory control.
                +   * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. The description of the regulatory control.
                +   * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FAMILY_FIELD_NUMBER = 5; + private int family_ = 0; + + /** + * + * + *
                +   * Output only. The regulatory group that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for family. + */ + @java.lang.Override + public int getFamilyValue() { + return family_; + } + + /** + * + * + *
                +   * Output only. The regulatory group that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The family. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Control.Family getFamily() { + com.google.cloud.cloudsecuritycompliance.v1.Control.Family result = + com.google.cloud.cloudsecuritycompliance.v1.Control.Family.forNumber(family_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Control.Family.UNRECOGNIZED + : result; + } + + public static final int CONTROL_FAMILY_FIELD_NUMBER = 6; + private com.google.cloud.cloudsecuritycompliance.v1.ControlFamily controlFamily_; + + /** + * + * + *
                +   * Output only. The regulatory family that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlFamily field is set. + */ + @java.lang.Override + public boolean hasControlFamily() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
                +   * Output only. The regulatory family that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlFamily. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamily getControlFamily() { + return controlFamily_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance() + : controlFamily_; + } + + /** + * + * + *
                +   * Output only. The regulatory family that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder + getControlFamilyOrBuilder() { + return controlFamily_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance() + : controlFamily_; + } + + public static final int RESPONSIBILITY_TYPE_FIELD_NUMBER = 7; + private int responsibilityType_ = 0; + + /** + * + * + *
                +   * Output only. The entity that's responsible for the control, whether Google,
                +   * you as the customer, or both.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for responsibilityType. + */ + @java.lang.Override + public int getResponsibilityTypeValue() { + return responsibilityType_; + } + + /** + * + * + *
                +   * Output only. The entity that's responsible for the control, whether Google,
                +   * you as the customer, or both.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The responsibilityType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + getResponsibilityType() { + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType result = + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType.forNumber( + responsibilityType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + .UNRECOGNIZED + : result; + } + + public static final int GOOGLE_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER = 8; + + @SuppressWarnings("serial") + private volatile java.lang.Object googleResponsibilityDescription_ = ""; + + /** + * + * + *
                +   * Output only. A description of Google's responsibility for the regulatory
                +   * control.
                +   * 
                + * + * + * string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityDescription. + */ + @java.lang.Override + public java.lang.String getGoogleResponsibilityDescription() { + java.lang.Object ref = googleResponsibilityDescription_; + 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(); + googleResponsibilityDescription_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. A description of Google's responsibility for the regulatory
                +   * control.
                +   * 
                + * + * + * string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGoogleResponsibilityDescriptionBytes() { + java.lang.Object ref = googleResponsibilityDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int GOOGLE_RESPONSIBILITY_IMPLEMENTATION_FIELD_NUMBER = 9; + + @SuppressWarnings("serial") + private volatile java.lang.Object googleResponsibilityImplementation_ = ""; + + /** + * + * + *
                +   * Output only. A description of Google's responsibility for implementing the
                +   * regulatory control.
                +   * 
                + * + * + * string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityImplementation. + */ + @java.lang.Override + public java.lang.String getGoogleResponsibilityImplementation() { + java.lang.Object ref = googleResponsibilityImplementation_; + 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(); + googleResponsibilityImplementation_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. A description of Google's responsibility for implementing the
                +   * regulatory control.
                +   * 
                + * + * + * string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityImplementation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getGoogleResponsibilityImplementationBytes() { + java.lang.Object ref = googleResponsibilityImplementation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleResponsibilityImplementation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOMER_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object customerResponsibilityDescription_ = ""; + + /** + * + * + *
                +   * Output only. A description of your responsibility for the regulatory
                +   * control.
                +   * 
                + * + * + * string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityDescription. + */ + @java.lang.Override + public java.lang.String getCustomerResponsibilityDescription() { + java.lang.Object ref = customerResponsibilityDescription_; + 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(); + customerResponsibilityDescription_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. A description of your responsibility for the regulatory
                +   * control.
                +   * 
                + * + * + * string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerResponsibilityDescriptionBytes() { + java.lang.Object ref = customerResponsibilityDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int CUSTOMER_RESPONSIBILITY_IMPLEMENTATION_FIELD_NUMBER = 11; + + @SuppressWarnings("serial") + private volatile java.lang.Object customerResponsibilityImplementation_ = ""; + + /** + * + * + *
                +   * Output only. A description of the your responsibility for implementing the
                +   * regulatory control.
                +   * 
                + * + * + * string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityImplementation. + */ + @java.lang.Override + public java.lang.String getCustomerResponsibilityImplementation() { + java.lang.Object ref = customerResponsibilityImplementation_; + 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(); + customerResponsibilityImplementation_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. A description of the your responsibility for implementing the
                +   * regulatory control.
                +   * 
                + * + * + * string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityImplementation. + */ + @java.lang.Override + public com.google.protobuf.ByteString getCustomerResponsibilityImplementationBytes() { + java.lang.Object ref = customerResponsibilityImplementation_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerResponsibilityImplementation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SHARED_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER = 12; + + @SuppressWarnings("serial") + private volatile java.lang.Object sharedResponsibilityDescription_ = ""; + + /** + * + * + *
                +   * Output only. A description of the responsibility that's shared between
                +   * Google and you in implementing this control.
                +   * 
                + * + * + * string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sharedResponsibilityDescription. + */ + @java.lang.Override + public java.lang.String getSharedResponsibilityDescription() { + java.lang.Object ref = sharedResponsibilityDescription_; + 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(); + sharedResponsibilityDescription_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. A description of the responsibility that's shared between
                +   * Google and you in implementing this control.
                +   * 
                + * + * + * string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for sharedResponsibilityDescription. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSharedResponsibilityDescriptionBytes() { + java.lang.Object ref = sharedResponsibilityDescription_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sharedResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ADDITIONAL_CONTENT_URI_FIELD_NUMBER = 13; + + @SuppressWarnings("serial") + private volatile java.lang.Object additionalContentUri_ = ""; + + /** + * + * + *
                +   * Output only. A link to the documentation that's related to this control.
                +   * 
                + * + * string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The additionalContentUri. + */ + @java.lang.Override + public java.lang.String getAdditionalContentUri() { + java.lang.Object ref = additionalContentUri_; + 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(); + additionalContentUri_ = s; + return s; + } + } + + /** + * + * + *
                +   * Output only. A link to the documentation that's related to this control.
                +   * 
                + * + * string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for additionalContentUri. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAdditionalContentUriBytes() { + java.lang.Object ref = additionalContentUri_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int RELATED_FRAMEWORKS_FIELD_NUMBER = 14; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList relatedFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
                +   * Output only. The frameworks that include this control.
                +   * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the relatedFrameworks. + */ + public com.google.protobuf.ProtocolStringList getRelatedFrameworksList() { + return relatedFrameworks_; + } + + /** + * + * + *
                +   * Output only. The frameworks that include this control.
                +   * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of relatedFrameworks. + */ + public int getRelatedFrameworksCount() { + return relatedFrameworks_.size(); + } + + /** + * + * + *
                +   * Output only. The frameworks that include this control.
                +   * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The relatedFrameworks at the given index. + */ + public java.lang.String getRelatedFrameworks(int index) { + return relatedFrameworks_.get(index); + } + + /** + * + * + *
                +   * Output only. The frameworks that include this control.
                +   * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the relatedFrameworks at the given index. + */ + public com.google.protobuf.ByteString getRelatedFrameworksBytes(int index) { + return relatedFrameworks_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, description_); + } + if (family_ + != com.google.cloud.cloudsecuritycompliance.v1.Control.Family.FAMILY_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, family_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getControlFamily()); + } + if (responsibilityType_ + != com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + .REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED + .getNumber()) { + output.writeEnum(7, responsibilityType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(googleResponsibilityDescription_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 8, googleResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(googleResponsibilityImplementation_)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 9, googleResponsibilityImplementation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customerResponsibilityDescription_)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 10, customerResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty( + customerResponsibilityImplementation_)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 11, customerResponsibilityImplementation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sharedResponsibilityDescription_)) { + com.google.protobuf.GeneratedMessage.writeString( + output, 12, sharedResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(additionalContentUri_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 13, additionalContentUri_); + } + for (int i = 0; i < relatedFrameworks_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 14, relatedFrameworks_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, displayName_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(description_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, description_); + } + if (family_ + != com.google.cloud.cloudsecuritycompliance.v1.Control.Family.FAMILY_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, family_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getControlFamily()); + } + if (responsibilityType_ + != com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + .REGULATORY_CONTROL_RESPONSIBILITY_TYPE_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(7, responsibilityType_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(googleResponsibilityDescription_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 8, googleResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(googleResponsibilityImplementation_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 9, googleResponsibilityImplementation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(customerResponsibilityDescription_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 10, customerResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty( + customerResponsibilityImplementation_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 11, customerResponsibilityImplementation_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(sharedResponsibilityDescription_)) { + size += + com.google.protobuf.GeneratedMessage.computeStringSize( + 12, sharedResponsibilityDescription_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(additionalContentUri_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(13, additionalContentUri_); + } + { + int dataSize = 0; + for (int i = 0; i < relatedFrameworks_.size(); i++) { + dataSize += computeStringSizeNoTag(relatedFrameworks_.getRaw(i)); + } + size += dataSize; + size += 1 * getRelatedFrameworksList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.cloud.cloudsecuritycompliance.v1.Control)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.Control other = + (com.google.cloud.cloudsecuritycompliance.v1.Control) obj; + + if (!getName().equals(other.getName())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!getDescription().equals(other.getDescription())) return false; + if (family_ != other.family_) return false; + if (hasControlFamily() != other.hasControlFamily()) return false; + if (hasControlFamily()) { + if (!getControlFamily().equals(other.getControlFamily())) return false; + } + if (responsibilityType_ != other.responsibilityType_) return false; + if (!getGoogleResponsibilityDescription().equals(other.getGoogleResponsibilityDescription())) + return false; + if (!getGoogleResponsibilityImplementation() + .equals(other.getGoogleResponsibilityImplementation())) return false; + if (!getCustomerResponsibilityDescription() + .equals(other.getCustomerResponsibilityDescription())) return false; + if (!getCustomerResponsibilityImplementation() + .equals(other.getCustomerResponsibilityImplementation())) return false; + if (!getSharedResponsibilityDescription().equals(other.getSharedResponsibilityDescription())) + return false; + if (!getAdditionalContentUri().equals(other.getAdditionalContentUri())) return false; + if (!getRelatedFrameworksList().equals(other.getRelatedFrameworksList())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + hash = (37 * hash) + FAMILY_FIELD_NUMBER; + hash = (53 * hash) + family_; + if (hasControlFamily()) { + hash = (37 * hash) + CONTROL_FAMILY_FIELD_NUMBER; + hash = (53 * hash) + getControlFamily().hashCode(); + } + hash = (37 * hash) + RESPONSIBILITY_TYPE_FIELD_NUMBER; + hash = (53 * hash) + responsibilityType_; + hash = (37 * hash) + GOOGLE_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getGoogleResponsibilityDescription().hashCode(); + hash = (37 * hash) + GOOGLE_RESPONSIBILITY_IMPLEMENTATION_FIELD_NUMBER; + hash = (53 * hash) + getGoogleResponsibilityImplementation().hashCode(); + hash = (37 * hash) + CUSTOMER_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getCustomerResponsibilityDescription().hashCode(); + hash = (37 * hash) + CUSTOMER_RESPONSIBILITY_IMPLEMENTATION_FIELD_NUMBER; + hash = (53 * hash) + getCustomerResponsibilityImplementation().hashCode(); + hash = (37 * hash) + SHARED_RESPONSIBILITY_DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getSharedResponsibilityDescription().hashCode(); + hash = (37 * hash) + ADDITIONAL_CONTENT_URI_FIELD_NUMBER; + hash = (53 * hash) + getAdditionalContentUri().hashCode(); + if (getRelatedFrameworksCount() > 0) { + hash = (37 * hash) + RELATED_FRAMEWORKS_FIELD_NUMBER; + hash = (53 * hash) + getRelatedFrameworksList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control 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.cloudsecuritycompliance.v1.Control parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control 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.cloudsecuritycompliance.v1.Control parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.cloudsecuritycompliance.v1.Control prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
                +   * The regulatory control.
                +   * 
                + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Control} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.Control) + com.google.cloud.cloudsecuritycompliance.v1.ControlOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Control_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Control_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.Control.class, + com.google.cloud.cloudsecuritycompliance.v1.Control.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.Control.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetControlFamilyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + displayName_ = ""; + description_ = ""; + family_ = 0; + controlFamily_ = null; + if (controlFamilyBuilder_ != null) { + controlFamilyBuilder_.dispose(); + controlFamilyBuilder_ = null; + } + responsibilityType_ = 0; + googleResponsibilityDescription_ = ""; + googleResponsibilityImplementation_ = ""; + customerResponsibilityDescription_ = ""; + customerResponsibilityImplementation_ = ""; + sharedResponsibilityDescription_ = ""; + additionalContentUri_ = ""; + relatedFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.CommonProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Control_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Control getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.Control.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Control build() { + com.google.cloud.cloudsecuritycompliance.v1.Control result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Control buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.Control result = + new com.google.cloud.cloudsecuritycompliance.v1.Control(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.Control result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.description_ = description_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.family_ = family_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000010) != 0)) { + result.controlFamily_ = + controlFamilyBuilder_ == null ? controlFamily_ : controlFamilyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.responsibilityType_ = responsibilityType_; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.googleResponsibilityDescription_ = googleResponsibilityDescription_; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.googleResponsibilityImplementation_ = googleResponsibilityImplementation_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { + result.customerResponsibilityDescription_ = customerResponsibilityDescription_; + } + if (((from_bitField0_ & 0x00000200) != 0)) { + result.customerResponsibilityImplementation_ = customerResponsibilityImplementation_; + } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.sharedResponsibilityDescription_ = sharedResponsibilityDescription_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.additionalContentUri_ = additionalContentUri_; + } + if (((from_bitField0_ & 0x00001000) != 0)) { + relatedFrameworks_.makeImmutable(); + result.relatedFrameworks_ = relatedFrameworks_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.Control) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.Control) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.Control other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.Control.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getDescription().isEmpty()) { + description_ = other.description_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.family_ != 0) { + setFamilyValue(other.getFamilyValue()); + } + if (other.hasControlFamily()) { + mergeControlFamily(other.getControlFamily()); + } + if (other.responsibilityType_ != 0) { + setResponsibilityTypeValue(other.getResponsibilityTypeValue()); + } + if (!other.getGoogleResponsibilityDescription().isEmpty()) { + googleResponsibilityDescription_ = other.googleResponsibilityDescription_; + bitField0_ |= 0x00000040; + onChanged(); + } + if (!other.getGoogleResponsibilityImplementation().isEmpty()) { + googleResponsibilityImplementation_ = other.googleResponsibilityImplementation_; + bitField0_ |= 0x00000080; + onChanged(); + } + if (!other.getCustomerResponsibilityDescription().isEmpty()) { + customerResponsibilityDescription_ = other.customerResponsibilityDescription_; + bitField0_ |= 0x00000100; + onChanged(); + } + if (!other.getCustomerResponsibilityImplementation().isEmpty()) { + customerResponsibilityImplementation_ = other.customerResponsibilityImplementation_; + bitField0_ |= 0x00000200; + onChanged(); + } + if (!other.getSharedResponsibilityDescription().isEmpty()) { + sharedResponsibilityDescription_ = other.sharedResponsibilityDescription_; + bitField0_ |= 0x00000400; + onChanged(); + } + if (!other.getAdditionalContentUri().isEmpty()) { + additionalContentUri_ = other.additionalContentUri_; + bitField0_ |= 0x00000800; + onChanged(); + } + if (!other.relatedFrameworks_.isEmpty()) { + if (relatedFrameworks_.isEmpty()) { + relatedFrameworks_ = other.relatedFrameworks_; + bitField0_ |= 0x00001000; + } else { + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.addAll(other.relatedFrameworks_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 26: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 26 + case 34: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 34 + case 40: + { + family_ = input.readEnum(); + bitField0_ |= 0x00000008; + break; + } // case 40 + case 50: + { + input.readMessage( + internalGetControlFamilyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 50 + case 56: + { + responsibilityType_ = input.readEnum(); + bitField0_ |= 0x00000020; + break; + } // case 56 + case 66: + { + googleResponsibilityDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000040; + break; + } // case 66 + case 74: + { + googleResponsibilityImplementation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000080; + break; + } // case 74 + case 82: + { + customerResponsibilityDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000100; + break; + } // case 82 + case 90: + { + customerResponsibilityImplementation_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000200; + break; + } // case 90 + case 98: + { + sharedResponsibilityDescription_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000400; + break; + } // case 98 + case 106: + { + additionalContentUri_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000800; + break; + } // case 106 + case 114: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.add(s); + 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 name_ = ""; + + /** + * + * + *
                +     * Output only. The name of a regulatory control, in one of the following
                +     * formats:
                +     * - `organizations/{organization}/locations/{location}/controls/{control}`
                +     * - `projects/{project}/locations/{location}/controls/{control}`.
                +     *
                +     * The only supported location is `global`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. The name of a regulatory control, in one of the following
                +     * formats:
                +     * - `organizations/{organization}/locations/{location}/controls/{control}`
                +     * - `projects/{project}/locations/{location}/controls/{control}`.
                +     *
                +     * The only supported location is `global`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. The name of a regulatory control, in one of the following
                +     * formats:
                +     * - `organizations/{organization}/locations/{location}/controls/{control}`
                +     * - `projects/{project}/locations/{location}/controls/{control}`.
                +     *
                +     * The only supported location is `global`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The name of a regulatory control, in one of the following
                +     * formats:
                +     * - `organizations/{organization}/locations/{location}/controls/{control}`
                +     * - `projects/{project}/locations/{location}/controls/{control}`.
                +     *
                +     * The only supported location is `global`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The name of a regulatory control, in one of the following
                +     * formats:
                +     * - `organizations/{organization}/locations/{location}/controls/{control}`
                +     * - `projects/{project}/locations/{location}/controls/{control}`.
                +     *
                +     * The only supported location is `global`.
                +     * 
                + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
                +     * Output only. The friendly name for the regulatory control.
                +     * 
                + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. The friendly name for the regulatory control.
                +     * 
                + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. The friendly name for the regulatory control.
                +     * 
                + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The friendly name for the regulatory control.
                +     * 
                + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The friendly name for the regulatory control.
                +     * 
                + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object description_ = ""; + + /** + * + * + *
                +     * Output only. The description of the regulatory control.
                +     * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. The description of the regulatory control.
                +     * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. The description of the regulatory control.
                +     * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The description of the regulatory control.
                +     * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The description of the regulatory control.
                +     * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private int family_ = 0; + + /** + * + * + *
                +     * Output only. The regulatory group that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for family. + */ + @java.lang.Override + public int getFamilyValue() { + return family_; + } + + /** + * + * + *
                +     * Output only. The regulatory group that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for family to set. + * @return This builder for chaining. + */ + public Builder setFamilyValue(int value) { + family_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The regulatory group that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The family. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Control.Family getFamily() { + com.google.cloud.cloudsecuritycompliance.v1.Control.Family result = + com.google.cloud.cloudsecuritycompliance.v1.Control.Family.forNumber(family_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.Control.Family.UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Output only. The regulatory group that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The family to set. + * @return This builder for chaining. + */ + public Builder setFamily(com.google.cloud.cloudsecuritycompliance.v1.Control.Family value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + family_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The regulatory group that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearFamily() { + bitField0_ = (bitField0_ & ~0x00000008); + family_ = 0; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.ControlFamily controlFamily_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder> + controlFamilyBuilder_; + + /** + * + * + *
                +     * Output only. The regulatory family that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlFamily field is set. + */ + public boolean hasControlFamily() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
                +     * Output only. The regulatory family that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlFamily. + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamily getControlFamily() { + if (controlFamilyBuilder_ == null) { + return controlFamily_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance() + : controlFamily_; + } else { + return controlFamilyBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Output only. The regulatory family that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setControlFamily( + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily value) { + if (controlFamilyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + controlFamily_ = value; + } else { + controlFamilyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The regulatory family that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setControlFamily( + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder builderForValue) { + if (controlFamilyBuilder_ == null) { + controlFamily_ = builderForValue.build(); + } else { + controlFamilyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The regulatory family that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeControlFamily( + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily value) { + if (controlFamilyBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && controlFamily_ != null + && controlFamily_ + != com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance()) { + getControlFamilyBuilder().mergeFrom(value); + } else { + controlFamily_ = value; + } + } else { + controlFamilyBuilder_.mergeFrom(value); + } + if (controlFamily_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Output only. The regulatory family that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearControlFamily() { + bitField0_ = (bitField0_ & ~0x00000010); + controlFamily_ = null; + if (controlFamilyBuilder_ != null) { + controlFamilyBuilder_.dispose(); + controlFamilyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The regulatory family that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder + getControlFamilyBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetControlFamilyFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. The regulatory family that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder + getControlFamilyOrBuilder() { + if (controlFamilyBuilder_ != null) { + return controlFamilyBuilder_.getMessageOrBuilder(); + } else { + return controlFamily_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.getDefaultInstance() + : controlFamily_; + } + } + + /** + * + * + *
                +     * Output only. The regulatory family that the control belongs to.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder> + internalGetControlFamilyFieldBuilder() { + if (controlFamilyBuilder_ == null) { + controlFamilyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily.Builder, + com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder>( + getControlFamily(), getParentForChildren(), isClean()); + controlFamily_ = null; + } + return controlFamilyBuilder_; + } + + private int responsibilityType_ = 0; + + /** + * + * + *
                +     * Output only. The entity that's responsible for the control, whether Google,
                +     * you as the customer, or both.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for responsibilityType. + */ + @java.lang.Override + public int getResponsibilityTypeValue() { + return responsibilityType_; + } + + /** + * + * + *
                +     * Output only. The entity that's responsible for the control, whether Google,
                +     * you as the customer, or both.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The enum numeric value on the wire for responsibilityType to set. + * @return This builder for chaining. + */ + public Builder setResponsibilityTypeValue(int value) { + responsibilityType_ = value; + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The entity that's responsible for the control, whether Google,
                +     * you as the customer, or both.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The responsibilityType. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + getResponsibilityType() { + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType result = + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType.forNumber( + responsibilityType_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + .UNRECOGNIZED + : result; + } + + /** + * + * + *
                +     * Output only. The entity that's responsible for the control, whether Google,
                +     * you as the customer, or both.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The responsibilityType to set. + * @return This builder for chaining. + */ + public Builder setResponsibilityType( + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000020; + responsibilityType_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The entity that's responsible for the control, whether Google,
                +     * you as the customer, or both.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearResponsibilityType() { + bitField0_ = (bitField0_ & ~0x00000020); + responsibilityType_ = 0; + onChanged(); + return this; + } + + private java.lang.Object googleResponsibilityDescription_ = ""; + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityDescription. + */ + public java.lang.String getGoogleResponsibilityDescription() { + java.lang.Object ref = googleResponsibilityDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleResponsibilityDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityDescription. + */ + public com.google.protobuf.ByteString getGoogleResponsibilityDescriptionBytes() { + java.lang.Object ref = googleResponsibilityDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The googleResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setGoogleResponsibilityDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + googleResponsibilityDescription_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGoogleResponsibilityDescription() { + googleResponsibilityDescription_ = getDefaultInstance().getGoogleResponsibilityDescription(); + bitField0_ = (bitField0_ & ~0x00000040); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for googleResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setGoogleResponsibilityDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + googleResponsibilityDescription_ = value; + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + private java.lang.Object googleResponsibilityImplementation_ = ""; + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityImplementation. + */ + public java.lang.String getGoogleResponsibilityImplementation() { + java.lang.Object ref = googleResponsibilityImplementation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + googleResponsibilityImplementation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityImplementation. + */ + public com.google.protobuf.ByteString getGoogleResponsibilityImplementationBytes() { + java.lang.Object ref = googleResponsibilityImplementation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + googleResponsibilityImplementation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The googleResponsibilityImplementation to set. + * @return This builder for chaining. + */ + public Builder setGoogleResponsibilityImplementation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + googleResponsibilityImplementation_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearGoogleResponsibilityImplementation() { + googleResponsibilityImplementation_ = + getDefaultInstance().getGoogleResponsibilityImplementation(); + bitField0_ = (bitField0_ & ~0x00000080); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of Google's responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for googleResponsibilityImplementation to set. + * @return This builder for chaining. + */ + public Builder setGoogleResponsibilityImplementationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + googleResponsibilityImplementation_ = value; + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + private java.lang.Object customerResponsibilityDescription_ = ""; + + /** + * + * + *
                +     * Output only. A description of your responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityDescription. + */ + public java.lang.String getCustomerResponsibilityDescription() { + java.lang.Object ref = customerResponsibilityDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerResponsibilityDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of your responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityDescription. + */ + public com.google.protobuf.ByteString getCustomerResponsibilityDescriptionBytes() { + java.lang.Object ref = customerResponsibilityDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of your responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The customerResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setCustomerResponsibilityDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerResponsibilityDescription_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of your responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCustomerResponsibilityDescription() { + customerResponsibilityDescription_ = + getDefaultInstance().getCustomerResponsibilityDescription(); + bitField0_ = (bitField0_ & ~0x00000100); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of your responsibility for the regulatory
                +     * control.
                +     * 
                + * + * + * string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for customerResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setCustomerResponsibilityDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerResponsibilityDescription_ = value; + bitField0_ |= 0x00000100; + onChanged(); + return this; + } + + private java.lang.Object customerResponsibilityImplementation_ = ""; + + /** + * + * + *
                +     * Output only. A description of the your responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityImplementation. + */ + public java.lang.String getCustomerResponsibilityImplementation() { + java.lang.Object ref = customerResponsibilityImplementation_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + customerResponsibilityImplementation_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of the your responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityImplementation. + */ + public com.google.protobuf.ByteString getCustomerResponsibilityImplementationBytes() { + java.lang.Object ref = customerResponsibilityImplementation_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + customerResponsibilityImplementation_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of the your responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The customerResponsibilityImplementation to set. + * @return This builder for chaining. + */ + public Builder setCustomerResponsibilityImplementation(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + customerResponsibilityImplementation_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of the your responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearCustomerResponsibilityImplementation() { + customerResponsibilityImplementation_ = + getDefaultInstance().getCustomerResponsibilityImplementation(); + bitField0_ = (bitField0_ & ~0x00000200); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of the your responsibility for implementing the
                +     * regulatory control.
                +     * 
                + * + * + * string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for customerResponsibilityImplementation to set. + * @return This builder for chaining. + */ + public Builder setCustomerResponsibilityImplementationBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + customerResponsibilityImplementation_ = value; + bitField0_ |= 0x00000200; + onChanged(); + return this; + } + + private java.lang.Object sharedResponsibilityDescription_ = ""; + + /** + * + * + *
                +     * Output only. A description of the responsibility that's shared between
                +     * Google and you in implementing this control.
                +     * 
                + * + * + * string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sharedResponsibilityDescription. + */ + public java.lang.String getSharedResponsibilityDescription() { + java.lang.Object ref = sharedResponsibilityDescription_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sharedResponsibilityDescription_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of the responsibility that's shared between
                +     * Google and you in implementing this control.
                +     * 
                + * + * + * string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for sharedResponsibilityDescription. + */ + public com.google.protobuf.ByteString getSharedResponsibilityDescriptionBytes() { + java.lang.Object ref = sharedResponsibilityDescription_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sharedResponsibilityDescription_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. A description of the responsibility that's shared between
                +     * Google and you in implementing this control.
                +     * 
                + * + * + * string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The sharedResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setSharedResponsibilityDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sharedResponsibilityDescription_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of the responsibility that's shared between
                +     * Google and you in implementing this control.
                +     * 
                + * + * + * string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearSharedResponsibilityDescription() { + sharedResponsibilityDescription_ = getDefaultInstance().getSharedResponsibilityDescription(); + bitField0_ = (bitField0_ & ~0x00000400); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A description of the responsibility that's shared between
                +     * Google and you in implementing this control.
                +     * 
                + * + * + * string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes for sharedResponsibilityDescription to set. + * @return This builder for chaining. + */ + public Builder setSharedResponsibilityDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sharedResponsibilityDescription_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + private java.lang.Object additionalContentUri_ = ""; + + /** + * + * + *
                +     * Output only. A link to the documentation that's related to this control.
                +     * 
                + * + * string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The additionalContentUri. + */ + public java.lang.String getAdditionalContentUri() { + java.lang.Object ref = additionalContentUri_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + additionalContentUri_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Output only. A link to the documentation that's related to this control.
                +     * 
                + * + * string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for additionalContentUri. + */ + public com.google.protobuf.ByteString getAdditionalContentUriBytes() { + java.lang.Object ref = additionalContentUri_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + additionalContentUri_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Output only. A link to the documentation that's related to this control.
                +     * 
                + * + * string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The additionalContentUri to set. + * @return This builder for chaining. + */ + public Builder setAdditionalContentUri(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + additionalContentUri_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A link to the documentation that's related to this control.
                +     * 
                + * + * string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearAdditionalContentUri() { + additionalContentUri_ = getDefaultInstance().getAdditionalContentUri(); + bitField0_ = (bitField0_ & ~0x00000800); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. A link to the documentation that's related to this control.
                +     * 
                + * + * string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for additionalContentUri to set. + * @return This builder for chaining. + */ + public Builder setAdditionalContentUriBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + additionalContentUri_ = value; + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList relatedFrameworks_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureRelatedFrameworksIsMutable() { + if (!relatedFrameworks_.isModifiable()) { + relatedFrameworks_ = new com.google.protobuf.LazyStringArrayList(relatedFrameworks_); + } + bitField0_ |= 0x00001000; + } + + /** + * + * + *
                +     * Output only. The frameworks that include this control.
                +     * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the relatedFrameworks. + */ + public com.google.protobuf.ProtocolStringList getRelatedFrameworksList() { + relatedFrameworks_.makeImmutable(); + return relatedFrameworks_; + } + + /** + * + * + *
                +     * Output only. The frameworks that include this control.
                +     * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of relatedFrameworks. + */ + public int getRelatedFrameworksCount() { + return relatedFrameworks_.size(); + } + + /** + * + * + *
                +     * Output only. The frameworks that include this control.
                +     * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The relatedFrameworks at the given index. + */ + public java.lang.String getRelatedFrameworks(int index) { + return relatedFrameworks_.get(index); + } + + /** + * + * + *
                +     * Output only. The frameworks that include this control.
                +     * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the relatedFrameworks at the given index. + */ + public com.google.protobuf.ByteString getRelatedFrameworksBytes(int index) { + return relatedFrameworks_.getByteString(index); + } + + /** + * + * + *
                +     * Output only. The frameworks that include this control.
                +     * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index to set the value at. + * @param value The relatedFrameworks to set. + * @return This builder for chaining. + */ + public Builder setRelatedFrameworks(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.set(index, value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The frameworks that include this control.
                +     * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The relatedFrameworks to add. + * @return This builder for chaining. + */ + public Builder addRelatedFrameworks(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The frameworks that include this control.
                +     * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param values The relatedFrameworks to add. + * @return This builder for chaining. + */ + public Builder addAllRelatedFrameworks(java.lang.Iterable values) { + ensureRelatedFrameworksIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, relatedFrameworks_); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The frameworks that include this control.
                +     * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return This builder for chaining. + */ + public Builder clearRelatedFrameworks() { + relatedFrameworks_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00001000); + ; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The frameworks that include this control.
                +     * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param value The bytes of the relatedFrameworks to add. + * @return This builder for chaining. + */ + public Builder addRelatedFrameworksBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureRelatedFrameworksIsMutable(); + relatedFrameworks_.add(value); + bitField0_ |= 0x00001000; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.Control) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.Control) + private static final com.google.cloud.cloudsecuritycompliance.v1.Control DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.Control(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Control getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Control 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.cloudsecuritycompliance.v1.Control getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlOrBuilder.java new file mode 100644 index 000000000000..6edd89097c01 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ControlOrBuilder.java @@ -0,0 +1,466 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/cloudsecuritycompliance/v1/common.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.cloudsecuritycompliance.v1; + +@com.google.protobuf.Generated +public interface ControlOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.Control) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
                +   * Output only. The name of a regulatory control, in one of the following
                +   * formats:
                +   * - `organizations/{organization}/locations/{location}/controls/{control}`
                +   * - `projects/{project}/locations/{location}/controls/{control}`.
                +   *
                +   * The only supported location is `global`.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
                +   * Output only. The name of a regulatory control, in one of the following
                +   * formats:
                +   * - `organizations/{organization}/locations/{location}/controls/{control}`
                +   * - `projects/{project}/locations/{location}/controls/{control}`.
                +   *
                +   * The only supported location is `global`.
                +   * 
                + * + * string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
                +   * Output only. The friendly name for the regulatory control.
                +   * 
                + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
                +   * Output only. The friendly name for the regulatory control.
                +   * 
                + * + * string display_name = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
                +   * Output only. The description of the regulatory control.
                +   * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
                +   * Output only. The description of the regulatory control.
                +   * 
                + * + * string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
                +   * Output only. The regulatory group that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for family. + */ + int getFamilyValue(); + + /** + * + * + *
                +   * Output only. The regulatory group that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Control.Family family = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The family. + */ + com.google.cloud.cloudsecuritycompliance.v1.Control.Family getFamily(); + + /** + * + * + *
                +   * Output only. The regulatory family that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlFamily field is set. + */ + boolean hasControlFamily(); + + /** + * + * + *
                +   * Output only. The regulatory family that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlFamily. + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlFamily getControlFamily(); + + /** + * + * + *
                +   * Output only. The regulatory family that the control belongs to.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.ControlFamily control_family = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.ControlFamilyOrBuilder getControlFamilyOrBuilder(); + + /** + * + * + *
                +   * Output only. The entity that's responsible for the control, whether Google,
                +   * you as the customer, or both.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The enum numeric value on the wire for responsibilityType. + */ + int getResponsibilityTypeValue(); + + /** + * + * + *
                +   * Output only. The entity that's responsible for the control, whether Google,
                +   * you as the customer, or both.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType responsibility_type = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The responsibilityType. + */ + com.google.cloud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType + getResponsibilityType(); + + /** + * + * + *
                +   * Output only. A description of Google's responsibility for the regulatory
                +   * control.
                +   * 
                + * + * + * string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityDescription. + */ + java.lang.String getGoogleResponsibilityDescription(); + + /** + * + * + *
                +   * Output only. A description of Google's responsibility for the regulatory
                +   * control.
                +   * 
                + * + * + * string google_responsibility_description = 8 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityDescription. + */ + com.google.protobuf.ByteString getGoogleResponsibilityDescriptionBytes(); + + /** + * + * + *
                +   * Output only. A description of Google's responsibility for implementing the
                +   * regulatory control.
                +   * 
                + * + * + * string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The googleResponsibilityImplementation. + */ + java.lang.String getGoogleResponsibilityImplementation(); + + /** + * + * + *
                +   * Output only. A description of Google's responsibility for implementing the
                +   * regulatory control.
                +   * 
                + * + * + * string google_responsibility_implementation = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for googleResponsibilityImplementation. + */ + com.google.protobuf.ByteString getGoogleResponsibilityImplementationBytes(); + + /** + * + * + *
                +   * Output only. A description of your responsibility for the regulatory
                +   * control.
                +   * 
                + * + * + * string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityDescription. + */ + java.lang.String getCustomerResponsibilityDescription(); + + /** + * + * + *
                +   * Output only. A description of your responsibility for the regulatory
                +   * control.
                +   * 
                + * + * + * string customer_responsibility_description = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityDescription. + */ + com.google.protobuf.ByteString getCustomerResponsibilityDescriptionBytes(); + + /** + * + * + *
                +   * Output only. A description of the your responsibility for implementing the
                +   * regulatory control.
                +   * 
                + * + * + * string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The customerResponsibilityImplementation. + */ + java.lang.String getCustomerResponsibilityImplementation(); + + /** + * + * + *
                +   * Output only. A description of the your responsibility for implementing the
                +   * regulatory control.
                +   * 
                + * + * + * string customer_responsibility_implementation = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for customerResponsibilityImplementation. + */ + com.google.protobuf.ByteString getCustomerResponsibilityImplementationBytes(); + + /** + * + * + *
                +   * Output only. A description of the responsibility that's shared between
                +   * Google and you in implementing this control.
                +   * 
                + * + * + * string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The sharedResponsibilityDescription. + */ + java.lang.String getSharedResponsibilityDescription(); + + /** + * + * + *
                +   * Output only. A description of the responsibility that's shared between
                +   * Google and you in implementing this control.
                +   * 
                + * + * + * string shared_responsibility_description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The bytes for sharedResponsibilityDescription. + */ + com.google.protobuf.ByteString getSharedResponsibilityDescriptionBytes(); + + /** + * + * + *
                +   * Output only. A link to the documentation that's related to this control.
                +   * 
                + * + * string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The additionalContentUri. + */ + java.lang.String getAdditionalContentUri(); + + /** + * + * + *
                +   * Output only. A link to the documentation that's related to this control.
                +   * 
                + * + * string additional_content_uri = 13 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for additionalContentUri. + */ + com.google.protobuf.ByteString getAdditionalContentUriBytes(); + + /** + * + * + *
                +   * Output only. The frameworks that include this control.
                +   * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return A list containing the relatedFrameworks. + */ + java.util.List getRelatedFrameworksList(); + + /** + * + * + *
                +   * Output only. The frameworks that include this control.
                +   * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The count of relatedFrameworks. + */ + int getRelatedFrameworksCount(); + + /** + * + * + *
                +   * Output only. The frameworks that include this control.
                +   * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the element to return. + * @return The relatedFrameworks at the given index. + */ + java.lang.String getRelatedFrameworks(int index); + + /** + * + * + *
                +   * Output only. The frameworks that include this control.
                +   * 
                + * + * repeated string related_frameworks = 14 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @param index The index of the value to return. + * @return The bytes of the relatedFrameworks at the given index. + */ + com.google.protobuf.ByteString getRelatedFrameworksBytes(int index); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequest.java index 3611a251d534..feed36fdedbc 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequest.java @@ -81,8 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The parent resource name, in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * Required. The parent resource name, in one of the following formats:
                +   * - `organizations/{organization}/locations/{location}`.
                +   * - `projects/{project}/locations/{location}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -109,8 +111,10 @@ public java.lang.String getParent() { * * *
                -   * Required. The parent resource name, in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * Required. The parent resource name, in one of the following formats:
                +   * - `organizations/{organization}/locations/{location}`.
                +   * - `projects/{project}/locations/{location}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -644,8 +648,10 @@ public Builder mergeFrom( * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`.
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -671,8 +677,10 @@ public java.lang.String getParent() { * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`.
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -698,8 +706,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`.
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -724,8 +734,10 @@ public Builder setParent(java.lang.String value) { * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`.
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -746,8 +758,10 @@ public Builder clearParent() { * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`.
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequestOrBuilder.java index fa59f797cac0..9653f0908e8c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateCloudControlRequestOrBuilder.java @@ -30,8 +30,10 @@ public interface CreateCloudControlRequestOrBuilder * * *
                -   * Required. The parent resource name, in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * Required. The parent resource name, in one of the following formats:
                +   * - `organizations/{organization}/locations/{location}`.
                +   * - `projects/{project}/locations/{location}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -47,8 +49,10 @@ public interface CreateCloudControlRequestOrBuilder * * *
                -   * Required. The parent resource name, in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * Required. The parent resource name, in one of the following formats:
                +   * - `organizations/{organization}/locations/{location}`.
                +   * - `projects/{project}/locations/{location}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequest.java index 85d462cc10eb..8403dfc4ad0b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequest.java @@ -84,7 +84,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                    * Required. The parent resource of the framework deployment in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * `organizations/{organization}/locations/{location}`
                +   * or
                +   * `projects/{project}/locations/{location}`.
                    * Only the global location is supported.
                    * 
                * @@ -112,7 +114,9 @@ public java.lang.String getParent() { * *
                    * Required. The parent resource of the framework deployment in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * `organizations/{organization}/locations/{location}`
                +   * or
                +   * `projects/{project}/locations/{location}`.
                    * Only the global location is supported.
                    * 
                * @@ -659,7 +663,9 @@ public Builder mergeFrom( * *
                      * Required. The parent resource of the framework deployment in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * `organizations/{organization}/locations/{location}`
                +     * or
                +     * `projects/{project}/locations/{location}`.
                      * Only the global location is supported.
                      * 
                * @@ -686,7 +692,9 @@ public java.lang.String getParent() { * *
                      * Required. The parent resource of the framework deployment in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * `organizations/{organization}/locations/{location}`
                +     * or
                +     * `projects/{project}/locations/{location}`.
                      * Only the global location is supported.
                      * 
                * @@ -713,7 +721,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                      * Required. The parent resource of the framework deployment in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * `organizations/{organization}/locations/{location}`
                +     * or
                +     * `projects/{project}/locations/{location}`.
                      * Only the global location is supported.
                      * 
                * @@ -739,7 +749,9 @@ public Builder setParent(java.lang.String value) { * *
                      * Required. The parent resource of the framework deployment in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * `organizations/{organization}/locations/{location}`
                +     * or
                +     * `projects/{project}/locations/{location}`.
                      * Only the global location is supported.
                      * 
                * @@ -761,7 +773,9 @@ public Builder clearParent() { * *
                      * Required. The parent resource of the framework deployment in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * `organizations/{organization}/locations/{location}`
                +     * or
                +     * `projects/{project}/locations/{location}`.
                      * Only the global location is supported.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequestOrBuilder.java index d36170a65ebb..629eb4b4e030 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkDeploymentRequestOrBuilder.java @@ -31,7 +31,9 @@ public interface CreateFrameworkDeploymentRequestOrBuilder * *
                    * Required. The parent resource of the framework deployment in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * `organizations/{organization}/locations/{location}`
                +   * or
                +   * `projects/{project}/locations/{location}`.
                    * Only the global location is supported.
                    * 
                * @@ -48,7 +50,9 @@ public interface CreateFrameworkDeploymentRequestOrBuilder * *
                    * Required. The parent resource of the framework deployment in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * `organizations/{organization}/locations/{location}`
                +   * or
                +   * `projects/{project}/locations/{location}`.
                    * Only the global location is supported.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequest.java index a48f36ec1f0d..50598cf1a7a1 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequest.java @@ -81,8 +81,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The parent resource name, in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * Required. The parent resource name, in one of the following formats:
                +   * - `organizations/{organization}/locations/{location}`
                +   * - `projects/{project}/locations/{location}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -109,8 +111,10 @@ public java.lang.String getParent() { * * *
                -   * Required. The parent resource name, in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * Required. The parent resource name, in one of the following formats:
                +   * - `organizations/{organization}/locations/{location}`
                +   * - `projects/{project}/locations/{location}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -640,8 +644,10 @@ public Builder mergeFrom( * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -667,8 +673,10 @@ public java.lang.String getParent() { * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -694,8 +702,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -720,8 +730,10 @@ public Builder setParent(java.lang.String value) { * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -742,8 +754,10 @@ public Builder clearParent() { * * *
                -     * Required. The parent resource name, in the format
                -     * `organizations/{organization}/locations/{location}`.
                +     * Required. The parent resource name, in one of the following formats:
                +     * - `organizations/{organization}/locations/{location}`
                +     * - `projects/{project}/locations/{location}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequestOrBuilder.java index 5b4ef0a7d533..542f0dca042b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/CreateFrameworkRequestOrBuilder.java @@ -30,8 +30,10 @@ public interface CreateFrameworkRequestOrBuilder * * *
                -   * Required. The parent resource name, in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * Required. The parent resource name, in one of the following formats:
                +   * - `organizations/{organization}/locations/{location}`
                +   * - `projects/{project}/locations/{location}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -47,8 +49,10 @@ public interface CreateFrameworkRequestOrBuilder * * *
                -   * Required. The parent resource name, in the format
                -   * `organizations/{organization}/locations/{location}`.
                +   * Required. The parent resource name, in one of the following formats:
                +   * - `organizations/{organization}/locations/{location}`
                +   * - `projects/{project}/locations/{location}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequest.java index beb3704af263..8d597cda5dce 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequest.java @@ -79,8 +79,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The name of the cloud control to delete, in the format
                -   * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                +   * Required. The name of the cloud control to delete, in one of the following
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
                +   * or
                +   * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -107,8 +111,12 @@ public java.lang.String getName() { * * *
                -   * Required. The name of the cloud control to delete, in the format
                -   * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                +   * Required. The name of the cloud control to delete, in one of the following
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
                +   * or
                +   * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -456,8 +464,12 @@ public Builder mergeFrom( * * *
                -     * Required. The name of the cloud control to delete, in the format
                -     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                +     * Required. The name of the cloud control to delete, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
                +     * or
                +     * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -483,8 +495,12 @@ public java.lang.String getName() { * * *
                -     * Required. The name of the cloud control to delete, in the format
                -     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                +     * Required. The name of the cloud control to delete, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
                +     * or
                +     * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -510,8 +526,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -     * Required. The name of the cloud control to delete, in the format
                -     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                +     * Required. The name of the cloud control to delete, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
                +     * or
                +     * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -536,8 +556,12 @@ public Builder setName(java.lang.String value) { * * *
                -     * Required. The name of the cloud control to delete, in the format
                -     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                +     * Required. The name of the cloud control to delete, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
                +     * or
                +     * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -558,8 +582,12 @@ public Builder clearName() { * * *
                -     * Required. The name of the cloud control to delete, in the format
                -     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                +     * Required. The name of the cloud control to delete, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
                +     * or
                +     * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequestOrBuilder.java index 50436704793d..91d854a5c584 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteCloudControlRequestOrBuilder.java @@ -30,8 +30,12 @@ public interface DeleteCloudControlRequestOrBuilder * * *
                -   * Required. The name of the cloud control to delete, in the format
                -   * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                +   * Required. The name of the cloud control to delete, in one of the following
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
                +   * or
                +   * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -47,8 +51,12 @@ public interface DeleteCloudControlRequestOrBuilder * * *
                -   * Required. The name of the cloud control to delete, in the format
                -   * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`.
                +   * Required. The name of the cloud control to delete, in one of the following
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`
                +   * or
                +   * `projects/{project}/locations/{location}/CloudControls/{CloudControl}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequest.java index 8face7cdd1d3..725fa01e64f2 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequest.java @@ -84,7 +84,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
                    * Required. The name of the framework deployment that you want to delete,
                    * in the format
                -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -113,7 +115,9 @@ public java.lang.String getName() { *
                    * Required. The name of the framework deployment that you want to delete,
                    * in the format
                -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -564,7 +568,9 @@ public Builder mergeFrom( *
                      * Required. The name of the framework deployment that you want to delete,
                      * in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -592,7 +598,9 @@ public java.lang.String getName() { *
                      * Required. The name of the framework deployment that you want to delete,
                      * in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -620,7 +628,9 @@ public com.google.protobuf.ByteString getNameBytes() { *
                      * Required. The name of the framework deployment that you want to delete,
                      * in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -647,7 +657,9 @@ public Builder setName(java.lang.String value) { *
                      * Required. The name of the framework deployment that you want to delete,
                      * in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -670,7 +682,9 @@ public Builder clearName() { *
                      * Required. The name of the framework deployment that you want to delete,
                      * in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequestOrBuilder.java index ac647de7f9d2..6318d7d0c7ce 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkDeploymentRequestOrBuilder.java @@ -32,7 +32,9 @@ public interface DeleteFrameworkDeploymentRequestOrBuilder *
                    * Required. The name of the framework deployment that you want to delete,
                    * in the format
                -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -50,7 +52,9 @@ public interface DeleteFrameworkDeploymentRequestOrBuilder *
                    * Required. The name of the framework deployment that you want to delete,
                    * in the format
                -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequest.java index edc4e8fc7d7a..31cd63c3cd6f 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequest.java @@ -79,8 +79,11 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
                -   * Required. The name of the resource, in the format
                -   * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                +   * Required. The name of the resource, in one of the following formats:
                +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -107,8 +110,11 @@ public java.lang.String getName() { * * *
                -   * Required. The name of the resource, in the format
                -   * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                +   * Required. The name of the resource, in one of the following formats:
                +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -456,8 +462,11 @@ public Builder mergeFrom( * * *
                -     * Required. The name of the resource, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                +     * Required. The name of the resource, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -483,8 +492,11 @@ public java.lang.String getName() { * * *
                -     * Required. The name of the resource, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                +     * Required. The name of the resource, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -510,8 +522,11 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -     * Required. The name of the resource, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                +     * Required. The name of the resource, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -536,8 +551,11 @@ public Builder setName(java.lang.String value) { * * *
                -     * Required. The name of the resource, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                +     * Required. The name of the resource, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -558,8 +576,11 @@ public Builder clearName() { * * *
                -     * Required. The name of the resource, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                +     * Required. The name of the resource, in one of the following formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequestOrBuilder.java index cdadd0afb765..66d3c4f72b77 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeleteFrameworkRequestOrBuilder.java @@ -30,8 +30,11 @@ public interface DeleteFrameworkRequestOrBuilder * * *
                -   * Required. The name of the resource, in the format
                -   * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                +   * Required. The name of the resource, in one of the following formats:
                +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -47,8 +50,11 @@ public interface DeleteFrameworkRequestOrBuilder * * *
                -   * Required. The name of the resource, in the format
                -   * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                +   * Required. The name of the resource, in one of the following formats:
                +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentProto.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentProto.java index cd55f334180e..9185517a4186 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentProto.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentProto.java @@ -124,7 +124,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "le/api/field_behavior.proto\032\031google/api/" + "resource.proto\0324google/cloud/cloudsecuritycompliance/v1/common.proto\032#google/lon" + "grunning/operations.proto\032\033google/protob" - + "uf/empty.proto\032\037google/protobuf/timestamp.proto\"\322\007\n" + + "uf/empty.proto\032\037google/protobuf/timestamp.proto\"\247\010\n" + "\023FrameworkDeployment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022b\n" + "\026target_resource_config\030\002 \001" @@ -144,42 +144,45 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034target_resource_display_name\030\r" + " \001(\tB\003\340A\003\022z\n" + "#cloud_control_deployment_references\030\016 \003(\0132H.google.cloud." - + "cloudsecuritycompliance.v1.CloudControlDeploymentReferenceB\003\340A\003:\312\001\352A\306\001\n" + + "cloudsecuritycompliance.v1.CloudControlDeploymentReferenceB\003\340A\003:\237\002\352A\233\002\n" + ":cloudsecuritycompliance.googleapis.com/Framework" + "Deployment\022]organizations/{organization}/locations/{location}/frameworkDeploymen" - + "ts/{framework_deployment}*\024frameworkDeployments2\023frameworkDeployment\"\351\007\n" + + "ts/{framework_deployment}\022Sprojects/{project}/locations/{location}/frameworkDepl" + + "oyments/{framework_deployment}*\024frameworkDeployments2\023frameworkDeployment\"\305\010\n" + "\026CloudControlDeployment\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022b\n" - + "\026target_resource_config\030\002 \001(\0132=.google.clou" - + "d.cloudsecuritycompliance.v1.TargetResourceConfigB\003\340A\002\022\034\n" + + "\026target_resource_config\030\002 \001(\0132=.google" + + ".cloud.cloudsecuritycompliance.v1.TargetResourceConfigB\003\340A\002\022\034\n" + "\017target_resource\030\003 \001(\tB\003\340A\003\022b\n" - + "\026cloud_control_metadata\030\004 \001(\0132=.g" - + "oogle.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\003\340A\002\022\030\n" + + "\026cloud_control_metadata\030\004 \001(" + + "\0132=.google.cloud.cloudsecuritycompliance.v1.CloudControlMetadataB\003\340A\002\022\030\n" + "\013description\030\005 \001(\tB\003\340A\001\022W\n" - + "\020deployment_state\030\006 \001(\01628.g" - + "oogle.cloud.cloudsecuritycompliance.v1.DeploymentStateB\003\340A\003\0224\n" + + "\020deployment_state\030\006 \001(" + + "\01628.google.cloud.cloudsecuritycompliance.v1.DeploymentStateB\003\340A\003\0224\n" + "\013create_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\010" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\021\n" + "\004etag\030\t \001(\tB\003\340A\001\022g\n" + "#parameter_substituted_cloud_control\030\n" + " \001(\01325.google.cloud.cloudsecuritycompliance.v1.CloudControlB\003\340A\003\022s\n" - + "\037framework_deployment_references\030\013 \003(\0132E.google.cloud.cloudsecurit" - + "ycompliance.v1.FrameworkDeploymentReferenceB\003\340A\003\022)\n" - + "\034target_resource_display_name\030\014 \001(\tB\003\340A\003:\332\001\352A\326\001\n" - + "=cloudsecuritycompliance.googleapis.com/CloudControlDeploymen" - + "t\022dorganizations/{organization}/locations/{location}/cloudControlDeployments/{cl" - + "oud_control_deployment}*\027cloudControlDeployments2\026cloudControlDeployment\"\311\001\n" + + "\037framework_deployment_references\030\013 \003(\0132E.google.cloud.cloudse" + + "curitycompliance.v1.FrameworkDeploymentReferenceB\003\340A\003\022)\n" + + "\034target_resource_display_name\030\014 \001(\tB\003\340A\003:\266\002\352A\262\002\n" + + "=cloudsecuritycompliance.googleapis.com/CloudControlDepl" + + "oyment\022dorganizations/{organization}/locations/{location}/cloudControlDeployment" + + "s/{cloud_control_deployment}\022Zprojects/{project}/locations/{location}/cloudContr" + + "olDeployments/{cloud_control_deployment}" + + "*\027cloudControlDeployments2\026cloudControlDeployment\"\311\001\n" + "\024TargetResourceConfig\022\'\n" + "\030existing_target_resource\030\001 \001(\tB\003\340A\001H\000\022u\n" - + "\037target_resource_creation_config\030\002 \001(\0132E.google.cloud.cloud" - + "securitycompliance.v1.TargetResourceCreationConfigB\003\340A\001H\000B\021\n" + + "\037target_resource_creation_config\030\002 \001(\0132E.g" + + "oogle.cloud.cloudsecuritycompliance.v1.TargetResourceCreationConfigB\003\340A\001H\000B\021\n" + "\017resource_config\"\210\002\n" + "\034TargetResourceCreationConfig\022d\n" - + "\026folder_creation_config\030\001 \001(\0132=.google.cloud.clo" - + "udsecuritycompliance.v1.FolderCreationConfigB\003\340A\001H\000\022f\n" - + "\027project_creation_config\030\002" - + " \001(\0132>.google.cloud.cloudsecuritycompliance.v1.ProjectCreationConfigB\003\340A\001H\000B\032\n" + + "\026folder_creation_config\030\001 \001(\0132=" + + ".google.cloud.cloudsecuritycompliance.v1.FolderCreationConfigB\003\340A\001H\000\022f\n" + + "\027project_creation_config\030\002 \001(\0132>.google.cloud.clo" + + "udsecuritycompliance.v1.ProjectCreationConfigB\003\340A\001H\000B\032\n" + "\030resource_creation_config\"M\n" + "\024FolderCreationConfig\022\023\n" + "\006parent\030\001 \001(\tB\003\340A\002\022 \n" @@ -189,16 +192,16 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\024project_display_name\030\002 \001(\tB\003\340A\002\022\037\n" + "\022billing_account_id\030\003 \001(\tB\003\340A\002\"\321\001\n" + "\024CloudControlMetadata\022`\n" - + "\025cloud_control_details\030\001 \001(\0132<.googl" - + "e.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\003\340A\002\022W\n" - + "\020enforcement_mode\030\002" - + " \001(\01628.google.cloud.cloudsecuritycompliance.v1.EnforcementModeB\003\340A\002\"\375\001\n" + + "\025cloud_control_details\030\001" + + " \001(\0132<.google.cloud.cloudsecuritycompliance.v1.CloudControlDetailsB\003\340A\002\022W\n" + + "\020enforcement_mode\030\002 \001(\01628.google.cloud.cl" + + "oudsecuritycompliance.v1.EnforcementModeB\003\340A\002\"\375\001\n" + " CreateFrameworkDeploymentRequest\022R\n" - + "\006parent\030\001 \001(" - + "\tBB\340A\002\372A<\022:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\022$\n" + + "\006parent\030\001 \001(\tBB\340A\002\372A<\022:cloudsecurit" + + "ycompliance.googleapis.com/FrameworkDeployment\022$\n" + "\027framework_deployment_id\030\002 \001(\tB\003\340A\001\022_\n" - + "\024framework_deployment\030\003 \001(\0132<.google.cloud.cloudse" - + "curitycompliance.v1.FrameworkDeploymentB\003\340A\002\"\207\001\n" + + "\024framework_deployment\030\003 \001(\0132<.goo" + + "gle.cloud.cloudsecuritycompliance.v1.FrameworkDeploymentB\003\340A\002\"\207\001\n" + " DeleteFrameworkDeploymentRequest\022P\n" + "\004name\030\001 \001(\tBB\340A\002\372A<\n" + ":cloudsecuritycompliance.googleapis.com/FrameworkDeployment\022\021\n" @@ -207,29 +210,29 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\004name\030\001 \001(\tBB\340A\002\372A<\n" + ":cloudsecuritycompliance.googleapis.com/FrameworkDeployment\"\322\001\n" + "\037ListFrameworkDeploymentsRequest\022R\n" - + "\006parent\030\001 \001(\tBB\340A\002\372A<\022:c" - + "loudsecuritycompliance.googleapis.com/FrameworkDeployment\022\026\n" + + "\006parent\030\001 \001(" + + "\tBB\340A\002\372A<\022:cloudsecuritycompliance.googleapis.com/FrameworkDeployment\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\230\001\n" + " ListFrameworkDeploymentsResponse\022[\n" - + "\025framework_deployments\030\001 \003(\0132<.google.cloud.clouds" - + "ecuritycompliance.v1.FrameworkDeployment\022\027\n" + + "\025framework_deployments\030\001 \003(\0132<.go" + + "ogle.cloud.cloudsecuritycompliance.v1.FrameworkDeployment\022\027\n" + "\017next_page_token\030\002 \001(\t\"w\n" + " GetCloudControlDeploymentRequest\022S\n" + "\004name\030\001 \001(\tBE\340A\002\372A?\n" + "=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\"\330\001\n" + "\"ListCloudControlDeploymentsRequest\022U\n" - + "\006parent\030\001 \001(" - + "\tBE\340A\002\372A?\022=cloudsecuritycompliance.googleapis.com/CloudControlDeployment\022\026\n" + + "\006parent\030\001 \001(\tBE\340A\002\372A?\022=cloudsecurit" + + "ycompliance.googleapis.com/CloudControlDeployment\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\022\025\n" + "\010order_by\030\005 \001(\tB\003\340A\001\"\242\001\n" + "#ListCloudControlDeploymentsResponse\022b\n" - + "\031cloud_control_deployments\030\001 \003(\013" - + "2?.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment\022\027\n" + + "\031cloud_control_deployments\030\001 \003(\0132?.google.cloud.cloudse" + + "curitycompliance.v1.CloudControlDeployment\022\027\n" + "\017next_page_token\030\002 \001(\t\"\212\001\n" + "\037CloudControlDeploymentReference\022g\n" + "\030cloud_control_deployment\030\001 \001(\tBE\340A\003\372A?\n" @@ -237,56 +240,64 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\034FrameworkDeploymentReference\022`\n" + "\024framework_deployment\030\001 \001(\tBB\340A\003\372A<\n" + ":cloudsecuritycompliance.googleapis.com/FrameworkDeployment\022]\n" - + "\023framework_reference\030\002 \001(\0132;.google" - + ".cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\003\340A\001\022#\n" - + "\026framework_display_name\030\003 \001(\tB\003\340A\001*\234\002\n" + + "\023framework_reference\030\002" + + " \001(\0132;.google.cloud.cloudsecuritycompliance.v1.FrameworkReferenceB\003\340A\001\022#\n" + + "\026framework_display_name\030\003 \001(\tB\003\340A\001*\273\002\n" + "\017DeploymentState\022 \n" + "\034DEPLOYMENT_STATE_UNSPECIFIED\020\000\022\037\n" + "\033DEPLOYMENT_STATE_VALIDATING\020\001\022\035\n" + "\031DEPLOYMENT_STATE_CREATING\020\002\022\035\n" - + "\031DEPLOYMENT_STATE_DELETING\020\003\022\033\n" + + "\031DEPLOYMENT_STATE_DELETING\020\003\022\035\n" + + "\031DEPLOYMENT_STATE_UPDATING\020\010\022\033\n" + "\027DEPLOYMENT_STATE_FAILED\020\004\022\032\n" + "\026DEPLOYMENT_STATE_READY\020\005\022\'\n" + "#DEPLOYMENT_STATE_PARTIALLY_DEPLOYED\020\006\022&\n" - + "\"DEPLOYMENT_STATE_PARTIALLY_DELETED\020\0072\375\r\n\n" - + "Deployment\022\354\002\n" - + "\031CreateFrameworkDeployment\022I.google.cloud.cloudsecuritycompliance.v1.CreateFrame" - + "workDeploymentRequest\032\035.google.longrunning.Operation\"\344\001\312AP\n" - + "\023FrameworkDeployment\0229google.cloud.cloudsecuritycompliance.v1" - + ".OperationMetadata\332A3parent,framework_de" - + "ployment,framework_deployment_id\202\323\344\223\002U\"=" - + "/v1/{parent=organizations/*/locations/*}" - + "/frameworkDeployments:\024framework_deployment\022\251\002\n" - + "\031DeleteFrameworkDeployment\022I.google.cloud.cloudsecuritycompliance.v1.Dele" - + "teFrameworkDeploymentRequest\032\035.google.longrunning.Operation\"\241\001\312AR\n" - + "\025google.protobuf.Empty\0229google.cloud.cloudsecuritycomp" - + "liance.v1.OperationMetadata\332A\004name\202\323\344\223\002?" - + "*=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}\022\354\001\n" - + "\026GetFrameworkDeployment\022F.google.cloud.cloudsecurityc" - + "ompliance.v1.GetFrameworkDeploymentRequest\032<.google.cloud.cloudsecuritycomplianc" - + "e.v1.FrameworkDeployment\"L\332A\004name\202\323\344\223\002?\022" - + "=/v1/{name=organizations/*/locations/*/frameworkDeployments/*}\022\377\001\n" - + "\030ListFrameworkDeployments\022H.google.cloud.cloudsecurity" - + "compliance.v1.ListFrameworkDeploymentsRequest\032I.google.cloud.cloudsecuritycompli" - + "ance.v1.ListFrameworkDeploymentsResponse" - + "\"N\332A\006parent\202\323\344\223\002?\022=/v1/{parent=organizat" - + "ions/*/locations/*}/frameworkDeployments\022\370\001\n" - + "\031GetCloudControlDeployment\022I.google.cloud.cloudsecuritycompliance.v1.GetClou" - + "dControlDeploymentRequest\032?.google.cloud.cloudsecuritycompliance.v1.CloudControl" - + "Deployment\"O\332A\004name\202\323\344\223\002B\022@/v1/{name=org" - + "anizations/*/locations/*/cloudControlDeployments/*}\022\213\002\n" - + "\033ListCloudControlDeployments\022K.google.cloud.cloudsecuritycomplian" - + "ce.v1.ListCloudControlDeploymentsRequest\032L.google.cloud.cloudsecuritycompliance." - + "v1.ListCloudControlDeploymentsResponse\"Q" - + "\332A\006parent\202\323\344\223\002B\022@/v1/{parent=organizatio" - + "ns/*/locations/*}/cloudControlDeployments\032Z\312A&cloudsecuritycompliance.googleapis" - + ".com\322A.https://www.googleapis.com/auth/cloud-platformB\250\002\n" - + "+com.google.cloud.cloudsecuritycompliance.v1B\017DeploymentProtoP\001" - + "Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb;cl" - + "oudsecuritycompliancepb\252\002\'Google.Cloud.C" - + "loudSecurityCompliance.V1\312\002\'Google\\Cloud" - + "\\CloudSecurityCompliance\\V1\352\002*Google::Cl" - + "oud::CloudSecurityCompliance::V1b\006proto3" + + "\"DEPLOYMENT_STATE_PARTIALLY_DELETED\020\0072\210\021\n\n" + + "Deployment\022\277\003\n" + + "\031CreateFrameworkDeployment\022I.google.cloud.cloudsecuritycompliance.v1.Cre" + + "ateFrameworkDeploymentRequest\032\035.google.longrunning.Operation\"\267\002\312AP\n" + + "\023FrameworkDeployment\0229google.cloud.cloudsecuritycompl" + + "iance.v1.OperationMetadata\332A3parent,framework_deployment,framework_deployment_id" + + "\202\323\344\223\002\247\001\"=/v1/{parent=organizations/*/loc" + + "ations/*}/frameworkDeployments:\024framework_deploymentZP\"8/v1/{parent=projects/*/l" + + "ocations/*}/frameworkDeployments:\024framework_deployment\022\345\002\n" + + "\031DeleteFrameworkDeployment\022I.google.cloud.cloudsecuritycomplia" + + "nce.v1.DeleteFrameworkDeploymentRequest\032\035.google.longrunning.Operation\"\335\001\312AR\n" + + "\025google.protobuf.Empty\0229google.cloud.clouds" + + "ecuritycompliance.v1.OperationMetadata\332A" + + "\004name\202\323\344\223\002{*=/v1/{name=organizations/*/l" + + "ocations/*/frameworkDeployments/*}Z:*8/v" + + "1/{name=projects/*/locations/*/frameworkDeployments/*}\022\251\002\n" + + "\026GetFrameworkDeployment\022F.google.cloud.cloudsecuritycompliance" + + ".v1.GetFrameworkDeploymentRequest\032<.google.cloud.cloudsecuritycompliance.v1.Fram" + + "eworkDeployment\"\210\001\332A\004name\202\323\344\223\002{\022=/v1/{na" + + "me=organizations/*/locations/*/framework" + + "Deployments/*}Z:\0228/v1/{name=projects/*/locations/*/frameworkDeployments/*}\022\274\002\n" + + "\030ListFrameworkDeployments\022H.google.cloud.c" + + "loudsecuritycompliance.v1.ListFrameworkDeploymentsRequest\032I.google.cloud.cloudse" + + "curitycompliance.v1.ListFrameworkDeploym" + + "entsResponse\"\212\001\332A\006parent\202\323\344\223\002{\022=/v1/{par" + + "ent=organizations/*/locations/*}/framewo" + + "rkDeploymentsZ:\0228/v1/{parent=projects/*/locations/*}/frameworkDeployments\022\271\002\n" + + "\031GetCloudControlDeployment\022I.google.cloud.c" + + "loudsecuritycompliance.v1.GetCloudControlDeploymentRequest\032?.google.cloud.clouds" + + "ecuritycompliance.v1.CloudControlDeploym" + + "ent\"\217\001\332A\004name\202\323\344\223\002\201\001\022@/v1/{name=organiza" + + "tions/*/locations/*/cloudControlDeployme" + + "nts/*}Z=\022;/v1/{name=projects/*/locations/*/cloudControlDeployments/*}\022\314\002\n" + + "\033ListCloudControlDeployments\022K.google.cloud.clo" + + "udsecuritycompliance.v1.ListCloudControlDeploymentsRequest\032L.google.cloud.clouds" + + "ecuritycompliance.v1.ListCloudControlDep" + + "loymentsResponse\"\221\001\332A\006parent\202\323\344\223\002\201\001\022@/v1" + + "/{parent=organizations/*/locations/*}/cloudControlDeploymentsZ=\022;/v1/{parent=pro" + + "jects/*/locations/*}/cloudControlDeployments\032Z\312A&cloudsecuritycompliance.googlea" + + "pis.com\322A.https://www.googleapis.com/auth/cloud-platformB\250\002\n" + + "+com.google.cloud.cloudsecuritycompliance.v1B\017DeploymentProt" + + "oP\001Zecloud.google.com/go/cloudsecuritycompliance/apiv1/cloudsecuritycompliancepb" + + ";cloudsecuritycompliancepb\252\002\'Google.Clou" + + "d.CloudSecurityCompliance.V1\312\002\'Google\\Cl" + + "oud\\CloudSecurityCompliance\\V1\352\002*Google:" + + ":Cloud::CloudSecurityCompliance::V1b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentState.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentState.java index 699204478642..3adafff00c04 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentState.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/DeploymentState.java @@ -71,6 +71,16 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { * DEPLOYMENT_STATE_DELETING = 3; */ DEPLOYMENT_STATE_DELETING(3), + /** + * + * + *
                +   * Deployment is being updated.
                +   * 
                + * + * DEPLOYMENT_STATE_UPDATING = 8; + */ + DEPLOYMENT_STATE_UPDATING(8), /** * * @@ -174,6 +184,17 @@ public enum DeploymentState implements com.google.protobuf.ProtocolMessageEnum { */ public static final int DEPLOYMENT_STATE_DELETING_VALUE = 3; + /** + * + * + *
                +   * Deployment is being updated.
                +   * 
                + * + * DEPLOYMENT_STATE_UPDATING = 8; + */ + public static final int DEPLOYMENT_STATE_UPDATING_VALUE = 8; + /** * * @@ -256,6 +277,8 @@ public static DeploymentState forNumber(int value) { return DEPLOYMENT_STATE_CREATING; case 3: return DEPLOYMENT_STATE_DELETING; + case 8: + return DEPLOYMENT_STATE_UPDATING; case 4: return DEPLOYMENT_STATE_FAILED; case 5: diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequest.java index 987a7c459340..07823bf3c56b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequest.java @@ -56,6 +56,7 @@ private FetchFrameworkComplianceReportRequest( private FetchFrameworkComplianceReportRequest() { name_ = ""; + filter_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -181,6 +182,59 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; } + public static final int FILTER_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
                +   * Optional. The filtering results.
                +   * 
                + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
                +   * Optional. The filtering results.
                +   * 
                + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -201,6 +255,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getEndTime()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, filter_); + } getUnknownFields().writeTo(output); } @@ -216,6 +273,9 @@ public int getSerializedSize() { if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime()); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -239,6 +299,7 @@ public boolean equals(final java.lang.Object obj) { if (hasEndTime()) { if (!getEndTime().equals(other.getEndTime())) return false; } + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -256,6 +317,8 @@ public int hashCode() { hash = (37 * hash) + END_TIME_FIELD_NUMBER; hash = (53 * hash) + getEndTime().hashCode(); } + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -422,6 +485,7 @@ public Builder clear() { endTimeBuilder_.dispose(); endTimeBuilder_ = null; } + filter_ = ""; return this; } @@ -473,6 +537,9 @@ private void buildPartial0( result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); to_bitField0_ |= 0x00000001; } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.filter_ = filter_; + } result.bitField0_ |= to_bitField0_; } @@ -503,6 +570,11 @@ public Builder mergeFrom( if (other.hasEndTime()) { mergeEndTime(other.getEndTime()); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000004; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -541,6 +613,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000002; break; } // case 18 + case 26: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -880,6 +958,117 @@ public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { return endTimeBuilder_; } + private java.lang.Object filter_ = ""; + + /** + * + * + *
                +     * Optional. The filtering results.
                +     * 
                + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
                +     * Optional. The filtering results.
                +     * 
                + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
                +     * Optional. The filtering results.
                +     * 
                + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The filtering results.
                +     * 
                + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
                +     * Optional. The filtering results.
                +     * 
                + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.FetchFrameworkComplianceReportRequest) } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequestOrBuilder.java index 1767978607d9..193258f71cf6 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FetchFrameworkComplianceReportRequestOrBuilder.java @@ -92,4 +92,30 @@ public interface FetchFrameworkComplianceReportRequestOrBuilder * .google.protobuf.Timestamp end_time = 2 [(.google.api.field_behavior) = OPTIONAL]; */ com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); + + /** + * + * + *
                +   * Optional. The filtering results.
                +   * 
                + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
                +   * Optional. The filtering results.
                +   * 
                + * + * string filter = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Framework.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Framework.java index ba575d81d5ce..efc57a7b4a23 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Framework.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Framework.java @@ -260,8 +260,12 @@ private FrameworkType(int value) { * * *
                -   * Required. Identifier. The name of the framework, in the format
                -   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                +   * Required. Identifier. The name of the framework, in one of the following
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -288,8 +292,12 @@ public java.lang.String getName() { * * *
                -   * Required. Identifier. The name of the framework, in the format
                -   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                +   * Required. Identifier. The name of the framework, in one of the following
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -1780,8 +1788,12 @@ public Builder mergeFrom( * * *
                -     * Required. Identifier. The name of the framework, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                +     * Required. Identifier. The name of the framework, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -1807,8 +1819,12 @@ public java.lang.String getName() { * * *
                -     * Required. Identifier. The name of the framework, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                +     * Required. Identifier. The name of the framework, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -1834,8 +1850,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
                -     * Required. Identifier. The name of the framework, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                +     * Required. Identifier. The name of the framework, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -1860,8 +1880,12 @@ public Builder setName(java.lang.String value) { * * *
                -     * Required. Identifier. The name of the framework, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                +     * Required. Identifier. The name of the framework, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * @@ -1882,8 +1906,12 @@ public Builder clearName() { * * *
                -     * Required. Identifier. The name of the framework, in the format
                -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                +     * Required. Identifier. The name of the framework, in one of the following
                +     * formats:
                +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +     *
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummary.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummary.java index a939e8f4942a..7215936bc23c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummary.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummary.java @@ -703,6 +703,85 @@ public com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails getTarg return targetResourceDetails_.get(index); } + public static final int FINDING_COUNT_FIELD_NUMBER = 11; + private long findingCount_ = 0L; + + /** + * + * + *
                +   * Output only. The count of the findings generated against the framework.
                +   * 
                + * + * int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The findingCount. + */ + @java.lang.Override + public long getFindingCount() { + return findingCount_; + } + + public static final int CONTROLS_PASSING_TREND_FIELD_NUMBER = 12; + private com.google.cloud.cloudsecuritycompliance.v1.Trend controlsPassingTrend_; + + /** + * + * + *
                +   * Output only. The trend of controls that are passing for the given duration.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlsPassingTrend field is set. + */ + @java.lang.Override + public boolean hasControlsPassingTrend() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
                +   * Output only. The trend of controls that are passing for the given duration.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlsPassingTrend. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Trend getControlsPassingTrend() { + return controlsPassingTrend_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.Trend.getDefaultInstance() + : controlsPassingTrend_; + } + + /** + * + * + *
                +   * Output only. The trend of controls that are passing for the given duration.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.TrendOrBuilder + getControlsPassingTrendOrBuilder() { + return controlsPassingTrend_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.Trend.getDefaultInstance() + : controlsPassingTrend_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -759,6 +838,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io for (int i = 0; i < targetResourceDetails_.size(); i++) { output.writeMessage(10, targetResourceDetails_.get(i)); } + if (findingCount_ != 0L) { + output.writeInt64(11, findingCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(12, getControlsPassingTrend()); + } getUnknownFields().writeTo(output); } @@ -827,6 +912,13 @@ public int getSerializedSize() { com.google.protobuf.CodedOutputStream.computeMessageSize( 10, targetResourceDetails_.get(i)); } + if (findingCount_ != 0L) { + size += com.google.protobuf.CodedOutputStream.computeInt64Size(11, findingCount_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += + com.google.protobuf.CodedOutputStream.computeMessageSize(12, getControlsPassingTrend()); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -856,6 +948,11 @@ public boolean equals(final java.lang.Object obj) { if (getMajorRevisionId() != other.getMajorRevisionId()) return false; if (getMinorRevisionId() != other.getMinorRevisionId()) return false; if (!getTargetResourceDetailsList().equals(other.getTargetResourceDetailsList())) return false; + if (getFindingCount() != other.getFindingCount()) return false; + if (hasControlsPassingTrend() != other.hasControlsPassingTrend()) return false; + if (hasControlsPassingTrend()) { + if (!getControlsPassingTrend().equals(other.getControlsPassingTrend())) return false; + } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -895,6 +992,12 @@ public int hashCode() { hash = (37 * hash) + TARGET_RESOURCE_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getTargetResourceDetailsList().hashCode(); } + hash = (37 * hash) + FINDING_COUNT_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashLong(getFindingCount()); + if (hasControlsPassingTrend()) { + hash = (37 * hash) + CONTROLS_PASSING_TREND_FIELD_NUMBER; + hash = (53 * hash) + getControlsPassingTrend().hashCode(); + } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -1041,6 +1144,7 @@ private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { internalGetControlAssessmentDetailsFieldBuilder(); internalGetTargetResourceDetailsFieldBuilder(); + internalGetControlsPassingTrendFieldBuilder(); } } @@ -1068,6 +1172,12 @@ public Builder clear() { targetResourceDetailsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); + findingCount_ = 0L; + controlsPassingTrend_ = null; + if (controlsPassingTrendBuilder_ != null) { + controlsPassingTrendBuilder_.dispose(); + controlsPassingTrendBuilder_ = null; + } return this; } @@ -1156,6 +1266,16 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000100) != 0)) { result.minorRevisionId_ = minorRevisionId_; } + if (((from_bitField0_ & 0x00000400) != 0)) { + result.findingCount_ = findingCount_; + } + if (((from_bitField0_ & 0x00000800) != 0)) { + result.controlsPassingTrend_ = + controlsPassingTrendBuilder_ == null + ? controlsPassingTrend_ + : controlsPassingTrendBuilder_.build(); + to_bitField0_ |= 0x00000002; + } result.bitField0_ |= to_bitField0_; } @@ -1251,6 +1371,12 @@ public Builder mergeFrom( } } } + if (other.getFindingCount() != 0L) { + setFindingCount(other.getFindingCount()); + } + if (other.hasControlsPassingTrend()) { + mergeControlsPassingTrend(other.getControlsPassingTrend()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -1371,6 +1497,19 @@ public Builder mergeFrom( } break; } // case 82 + case 88: + { + findingCount_ = input.readInt64(); + bitField0_ |= 0x00000400; + break; + } // case 88 + case 98: + { + input.readMessage( + internalGetControlsPassingTrendFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000800; + break; + } // case 98 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -3118,6 +3257,280 @@ public Builder removeTargetResourceDetails(int index) { return targetResourceDetailsBuilder_; } + private long findingCount_; + + /** + * + * + *
                +     * Output only. The count of the findings generated against the framework.
                +     * 
                + * + * int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The findingCount. + */ + @java.lang.Override + public long getFindingCount() { + return findingCount_; + } + + /** + * + * + *
                +     * Output only. The count of the findings generated against the framework.
                +     * 
                + * + * int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The findingCount to set. + * @return This builder for chaining. + */ + public Builder setFindingCount(long value) { + + findingCount_ = value; + bitField0_ |= 0x00000400; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The count of the findings generated against the framework.
                +     * 
                + * + * int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearFindingCount() { + bitField0_ = (bitField0_ & ~0x00000400); + findingCount_ = 0L; + onChanged(); + return this; + } + + private com.google.cloud.cloudsecuritycompliance.v1.Trend controlsPassingTrend_; + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.cloudsecuritycompliance.v1.Trend, + com.google.cloud.cloudsecuritycompliance.v1.Trend.Builder, + com.google.cloud.cloudsecuritycompliance.v1.TrendOrBuilder> + controlsPassingTrendBuilder_; + + /** + * + * + *
                +     * Output only. The trend of controls that are passing for the given duration.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlsPassingTrend field is set. + */ + public boolean hasControlsPassingTrend() { + return ((bitField0_ & 0x00000800) != 0); + } + + /** + * + * + *
                +     * Output only. The trend of controls that are passing for the given duration.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlsPassingTrend. + */ + public com.google.cloud.cloudsecuritycompliance.v1.Trend getControlsPassingTrend() { + if (controlsPassingTrendBuilder_ == null) { + return controlsPassingTrend_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.Trend.getDefaultInstance() + : controlsPassingTrend_; + } else { + return controlsPassingTrendBuilder_.getMessage(); + } + } + + /** + * + * + *
                +     * Output only. The trend of controls that are passing for the given duration.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setControlsPassingTrend( + com.google.cloud.cloudsecuritycompliance.v1.Trend value) { + if (controlsPassingTrendBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + controlsPassingTrend_ = value; + } else { + controlsPassingTrendBuilder_.setMessage(value); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The trend of controls that are passing for the given duration.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setControlsPassingTrend( + com.google.cloud.cloudsecuritycompliance.v1.Trend.Builder builderForValue) { + if (controlsPassingTrendBuilder_ == null) { + controlsPassingTrend_ = builderForValue.build(); + } else { + controlsPassingTrendBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000800; + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The trend of controls that are passing for the given duration.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeControlsPassingTrend( + com.google.cloud.cloudsecuritycompliance.v1.Trend value) { + if (controlsPassingTrendBuilder_ == null) { + if (((bitField0_ & 0x00000800) != 0) + && controlsPassingTrend_ != null + && controlsPassingTrend_ + != com.google.cloud.cloudsecuritycompliance.v1.Trend.getDefaultInstance()) { + getControlsPassingTrendBuilder().mergeFrom(value); + } else { + controlsPassingTrend_ = value; + } + } else { + controlsPassingTrendBuilder_.mergeFrom(value); + } + if (controlsPassingTrend_ != null) { + bitField0_ |= 0x00000800; + onChanged(); + } + return this; + } + + /** + * + * + *
                +     * Output only. The trend of controls that are passing for the given duration.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearControlsPassingTrend() { + bitField0_ = (bitField0_ & ~0x00000800); + controlsPassingTrend_ = null; + if (controlsPassingTrendBuilder_ != null) { + controlsPassingTrendBuilder_.dispose(); + controlsPassingTrendBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
                +     * Output only. The trend of controls that are passing for the given duration.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.Trend.Builder + getControlsPassingTrendBuilder() { + bitField0_ |= 0x00000800; + onChanged(); + return internalGetControlsPassingTrendFieldBuilder().getBuilder(); + } + + /** + * + * + *
                +     * Output only. The trend of controls that are passing for the given duration.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.cloud.cloudsecuritycompliance.v1.TrendOrBuilder + getControlsPassingTrendOrBuilder() { + if (controlsPassingTrendBuilder_ != null) { + return controlsPassingTrendBuilder_.getMessageOrBuilder(); + } else { + return controlsPassingTrend_ == null + ? com.google.cloud.cloudsecuritycompliance.v1.Trend.getDefaultInstance() + : controlsPassingTrend_; + } + } + + /** + * + * + *
                +     * Output only. The trend of controls that are passing for the given duration.
                +     * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.cloud.cloudsecuritycompliance.v1.Trend, + com.google.cloud.cloudsecuritycompliance.v1.Trend.Builder, + com.google.cloud.cloudsecuritycompliance.v1.TrendOrBuilder> + internalGetControlsPassingTrendFieldBuilder() { + if (controlsPassingTrendBuilder_ == null) { + controlsPassingTrendBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.cloud.cloudsecuritycompliance.v1.Trend, + com.google.cloud.cloudsecuritycompliance.v1.Trend.Builder, + com.google.cloud.cloudsecuritycompliance.v1.TrendOrBuilder>( + getControlsPassingTrend(), getParentForChildren(), isClean()); + controlsPassingTrend_ = null; + } + return controlsPassingTrendBuilder_; + } + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary) } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryOrBuilder.java index c57fe4957ec8..1269a8718dde 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryOrBuilder.java @@ -428,4 +428,60 @@ com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails getTargetResou */ com.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetailsOrBuilder getTargetResourceDetailsOrBuilder(int index); + + /** + * + * + *
                +   * Output only. The count of the findings generated against the framework.
                +   * 
                + * + * int64 finding_count = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The findingCount. + */ + long getFindingCount(); + + /** + * + * + *
                +   * Output only. The trend of controls that are passing for the given duration.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the controlsPassingTrend field is set. + */ + boolean hasControlsPassingTrend(); + + /** + * + * + *
                +   * Output only. The trend of controls that are passing for the given duration.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The controlsPassingTrend. + */ + com.google.cloud.cloudsecuritycompliance.v1.Trend getControlsPassingTrend(); + + /** + * + * + *
                +   * Output only. The trend of controls that are passing for the given duration.
                +   * 
                + * + * + * .google.cloud.cloudsecuritycompliance.v1.Trend controls_passing_trend = 12 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.cloud.cloudsecuritycompliance.v1.TrendOrBuilder getControlsPassingTrendOrBuilder(); } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryView.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryView.java new file mode 100644 index 000000000000..f3507c3a994c --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkComplianceSummaryView.java @@ -0,0 +1,205 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
                + * Specifies the view of the framework compliance summary to be returned.
                + * New values may be added in the future.
                + * 
                + * + * Protobuf enum {@code google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView} + */ +@com.google.protobuf.Generated +public enum FrameworkComplianceSummaryView implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
                +   * The default / unset value. The API will default to the BASIC view.
                +   * 
                + * + * FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED = 0; + */ + FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED(0), + /** + * + * + *
                +   * Includes basic compliance metadata, but omits trend data.
                +   * 
                + * + * FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC = 1; + */ + FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC(1), + /** + * + * + *
                +   * Includes all information, including
                +   * [finding_count][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.finding_count]
                +   * and
                +   * [controls_passing_trend][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.controls_passing_trend].
                +   * Trend data is provided for the last 30 days.
                +   * 
                + * + * FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL = 2; + */ + FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "FrameworkComplianceSummaryView"); + } + + /** + * + * + *
                +   * The default / unset value. The API will default to the BASIC view.
                +   * 
                + * + * FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED = 0; + */ + public static final int FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
                +   * Includes basic compliance metadata, but omits trend data.
                +   * 
                + * + * FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC = 1; + */ + public static final int FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC_VALUE = 1; + + /** + * + * + *
                +   * Includes all information, including
                +   * [finding_count][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.finding_count]
                +   * and
                +   * [controls_passing_trend][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.controls_passing_trend].
                +   * Trend data is provided for the last 30 days.
                +   * 
                + * + * FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL = 2; + */ + public static final int FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static FrameworkComplianceSummaryView valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static FrameworkComplianceSummaryView forNumber(int value) { + switch (value) { + case 0: + return FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED; + case 1: + return FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC; + case 2: + return FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap + internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap + internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public FrameworkComplianceSummaryView findValueByNumber(int number) { + return FrameworkComplianceSummaryView.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto.getDescriptor() + .getEnumTypes() + .get(2); + } + + private static final FrameworkComplianceSummaryView[] VALUES = values(); + + public static FrameworkComplianceSummaryView valueOf( + com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private FrameworkComplianceSummaryView(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView) +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeployment.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeployment.java index e001ad395ce9..30af93e03996 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeployment.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeployment.java @@ -90,7 +90,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                    * Identifier. The name of the framework deployment, in the format
                -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -116,7 +118,9 @@ public java.lang.String getName() { * *
                    * Identifier. The name of the framework deployment, in the format
                -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -1666,7 +1670,9 @@ public Builder mergeFrom( * *
                      * Identifier. The name of the framework deployment, in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -1691,7 +1697,9 @@ public java.lang.String getName() { * *
                      * Identifier. The name of the framework deployment, in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -1716,7 +1724,9 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                      * Identifier. The name of the framework deployment, in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -1740,7 +1750,9 @@ public Builder setName(java.lang.String value) { * *
                      * Identifier. The name of the framework deployment, in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -1760,7 +1772,9 @@ public Builder clearName() { * *
                      * Identifier. The name of the framework deployment, in the format
                -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentName.java index df1adc8ea8ac..de3db346973b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentName.java @@ -17,6 +17,7 @@ package com.google.cloud.cloudsecuritycompliance.v1; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; @@ -32,22 +33,39 @@ public class FrameworkDeploymentName implements ResourceName { private static final PathTemplate ORGANIZATION_LOCATION_FRAMEWORK_DEPLOYMENT = PathTemplate.createWithoutUrlEncoding( "organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}"); + private static final PathTemplate PROJECT_LOCATION_FRAMEWORK_DEPLOYMENT = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String organization; private final String location; private final String frameworkDeployment; + private final String project; @Deprecated protected FrameworkDeploymentName() { organization = null; location = null; frameworkDeployment = null; + project = null; } private FrameworkDeploymentName(Builder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); location = Preconditions.checkNotNull(builder.getLocation()); frameworkDeployment = Preconditions.checkNotNull(builder.getFrameworkDeployment()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_FRAMEWORK_DEPLOYMENT; + } + + private FrameworkDeploymentName(ProjectLocationFrameworkDeploymentBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + frameworkDeployment = Preconditions.checkNotNull(builder.getFrameworkDeployment()); + organization = null; + pathTemplate = PROJECT_LOCATION_FRAMEWORK_DEPLOYMENT; } public String getOrganization() { @@ -62,10 +80,23 @@ public String getFrameworkDeployment() { return frameworkDeployment; } + public String getProject() { + return project; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newOrganizationLocationFrameworkDeploymentBuilder() { + return new Builder(); + } + + public static ProjectLocationFrameworkDeploymentBuilder + newProjectLocationFrameworkDeploymentBuilder() { + return new ProjectLocationFrameworkDeploymentBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -79,6 +110,24 @@ public static FrameworkDeploymentName of( .build(); } + public static FrameworkDeploymentName ofOrganizationLocationFrameworkDeploymentName( + String organization, String location, String frameworkDeployment) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkDeployment(frameworkDeployment) + .build(); + } + + public static FrameworkDeploymentName ofProjectLocationFrameworkDeploymentName( + String project, String location, String frameworkDeployment) { + return newProjectLocationFrameworkDeploymentBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkDeployment(frameworkDeployment) + .build(); + } + public static String format(String organization, String location, String frameworkDeployment) { return newBuilder() .setOrganization(organization) @@ -88,17 +137,44 @@ public static String format(String organization, String location, String framewo .toString(); } + public static String formatOrganizationLocationFrameworkDeploymentName( + String organization, String location, String frameworkDeployment) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFrameworkDeployment(frameworkDeployment) + .build() + .toString(); + } + + public static String formatProjectLocationFrameworkDeploymentName( + String project, String location, String frameworkDeployment) { + return newProjectLocationFrameworkDeploymentBuilder() + .setProject(project) + .setLocation(location) + .setFrameworkDeployment(frameworkDeployment) + .build() + .toString(); + } + public static FrameworkDeploymentName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - ORGANIZATION_LOCATION_FRAMEWORK_DEPLOYMENT.validatedMatch( - formattedString, "FrameworkDeploymentName.parse: formattedString not in valid format"); - return of( - matchMap.get("organization"), - matchMap.get("location"), - matchMap.get("framework_deployment")); + if (ORGANIZATION_LOCATION_FRAMEWORK_DEPLOYMENT.matches(formattedString)) { + Map matchMap = + ORGANIZATION_LOCATION_FRAMEWORK_DEPLOYMENT.match(formattedString); + return ofOrganizationLocationFrameworkDeploymentName( + matchMap.get("organization"), + matchMap.get("location"), + matchMap.get("framework_deployment")); + } else if (PROJECT_LOCATION_FRAMEWORK_DEPLOYMENT.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_FRAMEWORK_DEPLOYMENT.match(formattedString); + return ofProjectLocationFrameworkDeploymentName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("framework_deployment")); + } + throw new ValidationException( + "FrameworkDeploymentName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -122,7 +198,8 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return ORGANIZATION_LOCATION_FRAMEWORK_DEPLOYMENT.matches(formattedString); + return ORGANIZATION_LOCATION_FRAMEWORK_DEPLOYMENT.matches(formattedString) + || PROJECT_LOCATION_FRAMEWORK_DEPLOYMENT.matches(formattedString); } @Override @@ -140,6 +217,9 @@ public Map getFieldValuesMap() { if (frameworkDeployment != null) { fieldMapBuilder.put("framework_deployment", frameworkDeployment); } + if (project != null) { + fieldMapBuilder.put("project", project); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -153,13 +233,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return ORGANIZATION_LOCATION_FRAMEWORK_DEPLOYMENT.instantiate( - "organization", - organization, - "location", - location, - "framework_deployment", - frameworkDeployment); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -171,7 +245,8 @@ public boolean equals(Object o) { FrameworkDeploymentName that = ((FrameworkDeploymentName) o); return Objects.equals(this.organization, that.organization) && Objects.equals(this.location, that.location) - && Objects.equals(this.frameworkDeployment, that.frameworkDeployment); + && Objects.equals(this.frameworkDeployment, that.frameworkDeployment) + && Objects.equals(this.project, that.project); } return false; } @@ -180,11 +255,15 @@ public boolean equals(Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(organization); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(frameworkDeployment); + h *= 1000003; + h ^= Objects.hashCode(project); return h; } @@ -227,6 +306,11 @@ public Builder setFrameworkDeployment(String frameworkDeployment) { } private Builder(FrameworkDeploymentName frameworkDeploymentName) { + Preconditions.checkArgument( + Objects.equals( + frameworkDeploymentName.pathTemplate, ORGANIZATION_LOCATION_FRAMEWORK_DEPLOYMENT), + "toBuilder is only supported when FrameworkDeploymentName has the pattern of" + + " organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}"); this.organization = frameworkDeploymentName.organization; this.location = frameworkDeploymentName.location; this.frameworkDeployment = frameworkDeploymentName.frameworkDeployment; @@ -236,4 +320,48 @@ public FrameworkDeploymentName build() { return new FrameworkDeploymentName(this); } } + + /** + * Builder for + * projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}. + */ + public static class ProjectLocationFrameworkDeploymentBuilder { + private String project; + private String location; + private String frameworkDeployment; + + protected ProjectLocationFrameworkDeploymentBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFrameworkDeployment() { + return frameworkDeployment; + } + + public ProjectLocationFrameworkDeploymentBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationFrameworkDeploymentBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationFrameworkDeploymentBuilder setFrameworkDeployment( + String frameworkDeployment) { + this.frameworkDeployment = frameworkDeployment; + return this; + } + + public FrameworkDeploymentName build() { + return new FrameworkDeploymentName(this); + } + } } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentOrBuilder.java index 06e0af29c91f..5ad1ae87a891 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentOrBuilder.java @@ -31,7 +31,9 @@ public interface FrameworkDeploymentOrBuilder * *
                    * Identifier. The name of the framework deployment, in the format
                -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -46,7 +48,9 @@ public interface FrameworkDeploymentOrBuilder * *
                    * Identifier. The name of the framework deployment, in the format
                -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReference.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReference.java index 99e770d39cff..9d434454f02c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReference.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReference.java @@ -82,7 +82,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                    * Output only. The name of the framework deployment, in the format
                -   * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -110,7 +112,9 @@ public java.lang.String getFrameworkDeployment() { * *
                    * Output only. The name of the framework deployment, in the format
                -   * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -146,7 +150,7 @@ public com.google.protobuf.ByteString getFrameworkDeploymentBytes() { * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -175,7 +179,7 @@ public boolean hasFrameworkReference() { * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -206,7 +210,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference getFramewo * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -682,7 +686,9 @@ public Builder mergeFrom( * *
                      * Output only. The name of the framework deployment, in the format
                -     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -709,7 +715,9 @@ public java.lang.String getFrameworkDeployment() { * *
                      * Output only. The name of the framework deployment, in the format
                -     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -736,7 +744,9 @@ public com.google.protobuf.ByteString getFrameworkDeploymentBytes() { * *
                      * Output only. The name of the framework deployment, in the format
                -     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -762,7 +772,9 @@ public Builder setFrameworkDeployment(java.lang.String value) { * *
                      * Output only. The name of the framework deployment, in the format
                -     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -784,7 +796,9 @@ public Builder clearFrameworkDeployment() { * *
                      * Output only. The name of the framework deployment, in the format
                -     * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +     * or
                +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                      * The only supported location is `global`.
                      * 
                * @@ -823,7 +837,7 @@ public Builder setFrameworkDeploymentBytes(com.google.protobuf.ByteString value) * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -851,7 +865,7 @@ public boolean hasFrameworkReference() { * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -885,7 +899,7 @@ public com.google.cloud.cloudsecuritycompliance.v1.FrameworkReference getFramewo * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -922,7 +936,7 @@ public Builder setFrameworkReference( * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -956,7 +970,7 @@ public Builder setFrameworkReference( * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -1000,7 +1014,7 @@ public Builder mergeFrameworkReference( * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -1033,7 +1047,7 @@ public Builder clearFrameworkReference() { * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -1062,7 +1076,7 @@ public Builder clearFrameworkReference() { * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -1095,7 +1109,7 @@ public Builder clearFrameworkReference() { * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReferenceOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReferenceOrBuilder.java index d4e5635271aa..e59c2359025b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReferenceOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkDeploymentReferenceOrBuilder.java @@ -31,7 +31,9 @@ public interface FrameworkDeploymentReferenceOrBuilder * *
                    * Output only. The name of the framework deployment, in the format
                -   * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -48,7 +50,9 @@ public interface FrameworkDeploymentReferenceOrBuilder * *
                    * Output only. The name of the framework deployment, in the format
                -   * `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
                +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
                * @@ -70,7 +74,7 @@ public interface FrameworkDeploymentReferenceOrBuilder * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -96,7 +100,7 @@ public interface FrameworkDeploymentReferenceOrBuilder * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` @@ -122,7 +126,7 @@ public interface FrameworkDeploymentReferenceOrBuilder * ``` * { * framework: - * "organizations/{org}/locations/{location}/frameworks/{framework}", + * "organizations/{organization}/locations/{location}/frameworks/{framework}", * major_revision_id: 1 * } * ``` diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkName.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkName.java index da6635c61393..e29c07ee888c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkName.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkName.java @@ -17,6 +17,7 @@ package com.google.cloud.cloudsecuritycompliance.v1; import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; import com.google.api.resourcenames.ResourceName; import com.google.common.base.Preconditions; import com.google.common.collect.ImmutableMap; @@ -32,22 +33,39 @@ public class FrameworkName implements ResourceName { private static final PathTemplate ORGANIZATION_LOCATION_FRAMEWORK = PathTemplate.createWithoutUrlEncoding( "organizations/{organization}/locations/{location}/frameworks/{framework}"); + private static final PathTemplate PROJECT_LOCATION_FRAMEWORK = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/frameworks/{framework}"); private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; private final String organization; private final String location; private final String framework; + private final String project; @Deprecated protected FrameworkName() { organization = null; location = null; framework = null; + project = null; } private FrameworkName(Builder builder) { organization = Preconditions.checkNotNull(builder.getOrganization()); location = Preconditions.checkNotNull(builder.getLocation()); framework = Preconditions.checkNotNull(builder.getFramework()); + project = null; + pathTemplate = ORGANIZATION_LOCATION_FRAMEWORK; + } + + private FrameworkName(ProjectLocationFrameworkBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + framework = Preconditions.checkNotNull(builder.getFramework()); + organization = null; + pathTemplate = PROJECT_LOCATION_FRAMEWORK; } public String getOrganization() { @@ -62,10 +80,22 @@ public String getFramework() { return framework; } + public String getProject() { + return project; + } + public static Builder newBuilder() { return new Builder(); } + public static Builder newOrganizationLocationFrameworkBuilder() { + return new Builder(); + } + + public static ProjectLocationFrameworkBuilder newProjectLocationFrameworkBuilder() { + return new ProjectLocationFrameworkBuilder(); + } + public Builder toBuilder() { return new Builder(this); } @@ -78,6 +108,24 @@ public static FrameworkName of(String organization, String location, String fram .build(); } + public static FrameworkName ofOrganizationLocationFrameworkName( + String organization, String location, String framework) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFramework(framework) + .build(); + } + + public static FrameworkName ofProjectLocationFrameworkName( + String project, String location, String framework) { + return newProjectLocationFrameworkBuilder() + .setProject(project) + .setLocation(location) + .setFramework(framework) + .build(); + } + public static String format(String organization, String location, String framework) { return newBuilder() .setOrganization(organization) @@ -87,14 +135,40 @@ public static String format(String organization, String location, String framewo .toString(); } + public static String formatOrganizationLocationFrameworkName( + String organization, String location, String framework) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setFramework(framework) + .build() + .toString(); + } + + public static String formatProjectLocationFrameworkName( + String project, String location, String framework) { + return newProjectLocationFrameworkBuilder() + .setProject(project) + .setLocation(location) + .setFramework(framework) + .build() + .toString(); + } + public static FrameworkName parse(String formattedString) { if (formattedString.isEmpty()) { return null; } - Map matchMap = - ORGANIZATION_LOCATION_FRAMEWORK.validatedMatch( - formattedString, "FrameworkName.parse: formattedString not in valid format"); - return of(matchMap.get("organization"), matchMap.get("location"), matchMap.get("framework")); + if (ORGANIZATION_LOCATION_FRAMEWORK.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_FRAMEWORK.match(formattedString); + return ofOrganizationLocationFrameworkName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("framework")); + } else if (PROJECT_LOCATION_FRAMEWORK.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_FRAMEWORK.match(formattedString); + return ofProjectLocationFrameworkName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("framework")); + } + throw new ValidationException("FrameworkName.parse: formattedString not in valid format"); } public static List parseList(List formattedStrings) { @@ -118,7 +192,8 @@ public static List toStringList(List values) { } public static boolean isParsableFrom(String formattedString) { - return ORGANIZATION_LOCATION_FRAMEWORK.matches(formattedString); + return ORGANIZATION_LOCATION_FRAMEWORK.matches(formattedString) + || PROJECT_LOCATION_FRAMEWORK.matches(formattedString); } @Override @@ -136,6 +211,9 @@ public Map getFieldValuesMap() { if (framework != null) { fieldMapBuilder.put("framework", framework); } + if (project != null) { + fieldMapBuilder.put("project", project); + } fieldValuesMap = fieldMapBuilder.build(); } } @@ -149,8 +227,7 @@ public String getFieldValue(String fieldName) { @Override public String toString() { - return ORGANIZATION_LOCATION_FRAMEWORK.instantiate( - "organization", organization, "location", location, "framework", framework); + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); } @Override @@ -162,7 +239,8 @@ public boolean equals(Object o) { FrameworkName that = ((FrameworkName) o); return Objects.equals(this.organization, that.organization) && Objects.equals(this.location, that.location) - && Objects.equals(this.framework, that.framework); + && Objects.equals(this.framework, that.framework) + && Objects.equals(this.project, that.project); } return false; } @@ -171,11 +249,15 @@ public boolean equals(Object o) { public int hashCode() { int h = 1; h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; h ^= Objects.hashCode(organization); h *= 1000003; h ^= Objects.hashCode(location); h *= 1000003; h ^= Objects.hashCode(framework); + h *= 1000003; + h ^= Objects.hashCode(project); return h; } @@ -215,6 +297,10 @@ public Builder setFramework(String framework) { } private Builder(FrameworkName frameworkName) { + Preconditions.checkArgument( + Objects.equals(frameworkName.pathTemplate, ORGANIZATION_LOCATION_FRAMEWORK), + "toBuilder is only supported when FrameworkName has the pattern of" + + " organizations/{organization}/locations/{location}/frameworks/{framework}"); this.organization = frameworkName.organization; this.location = frameworkName.location; this.framework = frameworkName.framework; @@ -224,4 +310,44 @@ public FrameworkName build() { return new FrameworkName(this); } } + + /** Builder for projects/{project}/locations/{location}/frameworks/{framework}. */ + public static class ProjectLocationFrameworkBuilder { + private String project; + private String location; + private String framework; + + protected ProjectLocationFrameworkBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getFramework() { + return framework; + } + + public ProjectLocationFrameworkBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationFrameworkBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationFrameworkBuilder setFramework(String framework) { + this.framework = framework; + return this; + } + + public FrameworkName build() { + return new FrameworkName(this); + } + } } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkOrBuilder.java index 815dab1a46a3..1344303528e9 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkOrBuilder.java @@ -30,8 +30,12 @@ public interface FrameworkOrBuilder * * *
                -   * Required. Identifier. The name of the framework, in the format
                -   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                +   * Required. Identifier. The name of the framework, in one of the following
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * @@ -47,8 +51,12 @@ public interface FrameworkOrBuilder * * *
                -   * Required. Identifier. The name of the framework, in the format
                -   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`.
                +   * Required. Identifier. The name of the framework, in one of the following
                +   * formats:
                +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
                +   * or
                +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
                +   *
                    * The only supported location is `global`.
                    * 
                * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReference.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReference.java index 57652ecd37a1..3ba9ac9cc092 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReference.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReference.java @@ -24,8 +24,10 @@ * * *
                - * The reference of a framework, in the format
                - * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
                + * The reference of a framework, in one of the following formats:
                + * - `organizations/{organization}/locations/{location}/frameworks/{framework}`
                + * - `projects/{project}/locations/{location}/frameworks/{framework}`.
                + *
                  * The only supported location is `global`.
                  * 
                * @@ -86,7 +88,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * corresponds to the latest version of the framework. *
                * - * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The framework. */ @@ -111,7 +115,9 @@ public java.lang.String getFramework() { * corresponds to the latest version of the framework. *
              * - * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for framework. */ @@ -344,8 +350,10 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
              -   * The reference of a framework, in the format
              -   * `organizations/{organization}/locations/{location}/frameworks/{framework}`.
              +   * The reference of a framework, in one of the following formats:
              +   * - `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +   * - `projects/{project}/locations/{location}/frameworks/{framework}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -521,7 +529,9 @@ public Builder mergeFrom( * corresponds to the latest version of the framework. *
              * - * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The framework. */ @@ -545,7 +555,9 @@ public java.lang.String getFramework() { * corresponds to the latest version of the framework. *
              * - * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for framework. */ @@ -569,7 +581,9 @@ public com.google.protobuf.ByteString getFrameworkBytes() { * corresponds to the latest version of the framework. * * - * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The framework to set. * @return This builder for chaining. @@ -592,7 +606,9 @@ public Builder setFramework(java.lang.String value) { * corresponds to the latest version of the framework. * * - * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return This builder for chaining. */ @@ -611,7 +627,9 @@ public Builder clearFramework() { * corresponds to the latest version of the framework. * * - * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @param value The bytes for framework to set. * @return This builder for chaining. diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReferenceOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReferenceOrBuilder.java index 59e3d24305f7..e0362b6bc67f 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReferenceOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/FrameworkReferenceOrBuilder.java @@ -34,7 +34,9 @@ public interface FrameworkReferenceOrBuilder * corresponds to the latest version of the framework. * * - * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The framework. */ @@ -48,7 +50,9 @@ public interface FrameworkReferenceOrBuilder * corresponds to the latest version of the framework. * * - * string framework = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * string framework = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * * * @return The bytes for framework. */ diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequest.java index ccbfb185524e..8e90fb8232d6 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequest.java @@ -82,7 +82,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                  * Required. The name for the cloud control deployment, in the format
              -   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
              +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
              +   * or
              +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                  * The only supported location is `global`.
                  * 
              * @@ -110,7 +112,9 @@ public java.lang.String getName() { * *
                  * Required. The name for the cloud control deployment, in the format
              -   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
              +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
              +   * or
              +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                  * The only supported location is `global`.
                  * 
              * @@ -469,7 +473,9 @@ public Builder mergeFrom( * *
                    * Required. The name for the cloud control deployment, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
              * @@ -496,7 +502,9 @@ public java.lang.String getName() { * *
                    * Required. The name for the cloud control deployment, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
              * @@ -523,7 +531,9 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                    * Required. The name for the cloud control deployment, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
              * @@ -549,7 +559,9 @@ public Builder setName(java.lang.String value) { * *
                    * Required. The name for the cloud control deployment, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
              * @@ -571,7 +583,9 @@ public Builder clearName() { * *
                    * Required. The name for the cloud control deployment, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                    * The only supported location is `global`.
                    * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequestOrBuilder.java index 2c143b6d579c..e5bd23ded566 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlDeploymentRequestOrBuilder.java @@ -31,7 +31,9 @@ public interface GetCloudControlDeploymentRequestOrBuilder * *
                  * Required. The name for the cloud control deployment, in the format
              -   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
              +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
              +   * or
              +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                  * The only supported location is `global`.
                  * 
              * @@ -48,7 +50,9 @@ public interface GetCloudControlDeploymentRequestOrBuilder * *
                  * Required. The name for the cloud control deployment, in the format
              -   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`.
              +   * `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`
              +   * or
              +   * `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`.
                  * The only supported location is `global`.
                  * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequest.java index 37178917bad7..7003e0688bcc 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequest.java @@ -79,8 +79,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
              -   * Required. The name of the cloud control to retrieve, in the format
              -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
              +   * Required. The name of the cloud control to retrieve, in one of the
              +   * following formats:
              +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
              +   * or
              +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -107,8 +111,12 @@ public java.lang.String getName() { * * *
              -   * Required. The name of the cloud control to retrieve, in the format
              -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
              +   * Required. The name of the cloud control to retrieve, in one of the
              +   * following formats:
              +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
              +   * or
              +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -498,8 +506,12 @@ public Builder mergeFrom( * * *
              -     * Required. The name of the cloud control to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
              +     * Required. The name of the cloud control to retrieve, in one of the
              +     * following formats:
              +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -525,8 +537,12 @@ public java.lang.String getName() { * * *
              -     * Required. The name of the cloud control to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
              +     * Required. The name of the cloud control to retrieve, in one of the
              +     * following formats:
              +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -552,8 +568,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
              -     * Required. The name of the cloud control to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
              +     * Required. The name of the cloud control to retrieve, in one of the
              +     * following formats:
              +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -578,8 +598,12 @@ public Builder setName(java.lang.String value) { * * *
              -     * Required. The name of the cloud control to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
              +     * Required. The name of the cloud control to retrieve, in one of the
              +     * following formats:
              +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -600,8 +624,12 @@ public Builder clearName() { * * *
              -     * Required. The name of the cloud control to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
              +     * Required. The name of the cloud control to retrieve, in one of the
              +     * following formats:
              +     * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
              +     * or
              +     * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequestOrBuilder.java index 9d8d842befb2..402bc5bb54fb 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetCloudControlRequestOrBuilder.java @@ -30,8 +30,12 @@ public interface GetCloudControlRequestOrBuilder * * *
              -   * Required. The name of the cloud control to retrieve, in the format
              -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
              +   * Required. The name of the cloud control to retrieve, in one of the
              +   * following formats:
              +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
              +   * or
              +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -47,8 +51,12 @@ public interface GetCloudControlRequestOrBuilder * * *
              -   * Required. The name of the cloud control to retrieve, in the format
              -   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`.
              +   * Required. The name of the cloud control to retrieve, in one of the
              +   * following formats:
              +   * `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`
              +   * or
              +   * `projects/{project}/locations/{location}/cloudControls/{cloud_control}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequest.java index 2ebffd6e956a..01f59b56d28d 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequest.java @@ -81,7 +81,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                  * Required. The name of the framework deployment, in the format
              -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
              +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
              +   * or
              +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                  * The only supported location is `global`.
                  * 
              * @@ -109,7 +111,9 @@ public java.lang.String getName() { * *
                  * Required. The name of the framework deployment, in the format
              -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
              +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
              +   * or
              +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                  * The only supported location is `global`.
                  * 
              * @@ -463,7 +467,9 @@ public Builder mergeFrom( * *
                    * Required. The name of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
              * @@ -490,7 +496,9 @@ public java.lang.String getName() { * *
                    * Required. The name of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
              * @@ -517,7 +525,9 @@ public com.google.protobuf.ByteString getNameBytes() { * *
                    * Required. The name of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
              * @@ -543,7 +553,9 @@ public Builder setName(java.lang.String value) { * *
                    * Required. The name of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
              * @@ -565,7 +577,9 @@ public Builder clearName() { * *
                    * Required. The name of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
              +     * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                    * The only supported location is `global`.
                    * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequestOrBuilder.java index d38e4befbdbb..7cdd8c1c58b9 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkDeploymentRequestOrBuilder.java @@ -31,7 +31,9 @@ public interface GetFrameworkDeploymentRequestOrBuilder * *
                  * Required. The name of the framework deployment, in the format
              -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
              +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
              +   * or
              +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                  * The only supported location is `global`.
                  * 
              * @@ -48,7 +50,9 @@ public interface GetFrameworkDeploymentRequestOrBuilder * *
                  * Required. The name of the framework deployment, in the format
              -   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`.
              +   * `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}`
              +   * or
              +   * `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`.
                  * The only supported location is `global`.
                  * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequest.java index 390cb98a7203..f37fc2940405 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequest.java @@ -79,8 +79,12 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
              -   * Required. The name of the framework to retrieve, in the format
              -   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
              +   * Required. The name of the framework to retrieve, in one of the following
              +   * formats:
              +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +   * or
              +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -107,8 +111,12 @@ public java.lang.String getName() { * * *
              -   * Required. The name of the framework to retrieve, in the format
              -   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
              +   * Required. The name of the framework to retrieve, in one of the following
              +   * formats:
              +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +   * or
              +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -494,8 +502,12 @@ public Builder mergeFrom( * * *
              -     * Required. The name of the framework to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
              +     * Required. The name of the framework to retrieve, in one of the following
              +     * formats:
              +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -521,8 +533,12 @@ public java.lang.String getName() { * * *
              -     * Required. The name of the framework to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
              +     * Required. The name of the framework to retrieve, in one of the following
              +     * formats:
              +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -548,8 +564,12 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
              -     * Required. The name of the framework to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
              +     * Required. The name of the framework to retrieve, in one of the following
              +     * formats:
              +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -574,8 +594,12 @@ public Builder setName(java.lang.String value) { * * *
              -     * Required. The name of the framework to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
              +     * Required. The name of the framework to retrieve, in one of the following
              +     * formats:
              +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -596,8 +620,12 @@ public Builder clearName() { * * *
              -     * Required. The name of the framework to retrieve, in the format
              -     * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
              +     * Required. The name of the framework to retrieve, in one of the following
              +     * formats:
              +     * `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +     * or
              +     * `projects/{project}/locations/{location}/frameworks/{framework}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequestOrBuilder.java index 0507ead9b49e..751d42883902 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/GetFrameworkRequestOrBuilder.java @@ -30,8 +30,12 @@ public interface GetFrameworkRequestOrBuilder * * *
              -   * Required. The name of the framework to retrieve, in the format
              -   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
              +   * Required. The name of the framework to retrieve, in one of the following
              +   * formats:
              +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +   * or
              +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -47,8 +51,12 @@ public interface GetFrameworkRequestOrBuilder * * *
              -   * Required. The name of the framework to retrieve, in the format
              -   * `organizations/{organization}/locations/{location}/frameworks/{framework_id}`
              +   * Required. The name of the framework to retrieve, in one of the following
              +   * formats:
              +   * `organizations/{organization}/locations/{location}/frameworks/{framework}`
              +   * or
              +   * `projects/{project}/locations/{location}/frameworks/{framework}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequest.java index b32275aab245..25165fe1b55d 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequest.java @@ -85,8 +85,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                  * Required. The parent resource for the cloud control deployment, in the
              -   * format `organizations/{organization}/locations/{location}`. The only
              -   * supported location is `global`.
              +   * format `organizations/{organization}/locations/{location}` or
              +   * `projects/{project}/locations/{location}`.
              +   * The only supported location is `global`.
                  * 
              * * @@ -113,8 +114,9 @@ public java.lang.String getParent() { * *
                  * Required. The parent resource for the cloud control deployment, in the
              -   * format `organizations/{organization}/locations/{location}`. The only
              -   * supported location is `global`.
              +   * format `organizations/{organization}/locations/{location}` or
              +   * `projects/{project}/locations/{location}`.
              +   * The only supported location is `global`.
                  * 
              * * @@ -765,8 +767,9 @@ public Builder mergeFrom( * *
                    * Required. The parent resource for the cloud control deployment, in the
              -     * format `organizations/{organization}/locations/{location}`. The only
              -     * supported location is `global`.
              +     * format `organizations/{organization}/locations/{location}` or
              +     * `projects/{project}/locations/{location}`.
              +     * The only supported location is `global`.
                    * 
              * * @@ -792,8 +795,9 @@ public java.lang.String getParent() { * *
                    * Required. The parent resource for the cloud control deployment, in the
              -     * format `organizations/{organization}/locations/{location}`. The only
              -     * supported location is `global`.
              +     * format `organizations/{organization}/locations/{location}` or
              +     * `projects/{project}/locations/{location}`.
              +     * The only supported location is `global`.
                    * 
              * * @@ -819,8 +823,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                    * Required. The parent resource for the cloud control deployment, in the
              -     * format `organizations/{organization}/locations/{location}`. The only
              -     * supported location is `global`.
              +     * format `organizations/{organization}/locations/{location}` or
              +     * `projects/{project}/locations/{location}`.
              +     * The only supported location is `global`.
                    * 
              * * @@ -845,8 +850,9 @@ public Builder setParent(java.lang.String value) { * *
                    * Required. The parent resource for the cloud control deployment, in the
              -     * format `organizations/{organization}/locations/{location}`. The only
              -     * supported location is `global`.
              +     * format `organizations/{organization}/locations/{location}` or
              +     * `projects/{project}/locations/{location}`.
              +     * The only supported location is `global`.
                    * 
              * * @@ -867,8 +873,9 @@ public Builder clearParent() { * *
                    * Required. The parent resource for the cloud control deployment, in the
              -     * format `organizations/{organization}/locations/{location}`. The only
              -     * supported location is `global`.
              +     * format `organizations/{organization}/locations/{location}` or
              +     * `projects/{project}/locations/{location}`.
              +     * The only supported location is `global`.
                    * 
              * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequestOrBuilder.java index e642be6dc48c..736f2e24b8bd 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlDeploymentsRequestOrBuilder.java @@ -31,8 +31,9 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * *
                  * Required. The parent resource for the cloud control deployment, in the
              -   * format `organizations/{organization}/locations/{location}`. The only
              -   * supported location is `global`.
              +   * format `organizations/{organization}/locations/{location}` or
              +   * `projects/{project}/locations/{location}`.
              +   * The only supported location is `global`.
                  * 
              * * @@ -48,8 +49,9 @@ public interface ListCloudControlDeploymentsRequestOrBuilder * *
                  * Required. The parent resource for the cloud control deployment, in the
              -   * format `organizations/{organization}/locations/{location}`. The only
              -   * supported location is `global`.
              +   * format `organizations/{organization}/locations/{location}` or
              +   * `projects/{project}/locations/{location}`.
              +   * The only supported location is `global`.
                  * 
              * * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequest.java index d41c5a07d363..6da7099f560b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequest.java @@ -80,8 +80,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
              -   * Required. The parent resource name, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * Required. The parent resource name, in one of the following formats:
              +   * - `organizations/{organization}/locations/{location}`
              +   * - `projects/{project}/locations/{location}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -108,8 +110,10 @@ public java.lang.String getParent() { * * *
              -   * Required. The parent resource name, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * Required. The parent resource name, in one of the following formats:
              +   * - `organizations/{organization}/locations/{location}`
              +   * - `projects/{project}/locations/{location}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -591,8 +595,10 @@ public Builder mergeFrom( * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -618,8 +624,10 @@ public java.lang.String getParent() { * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -645,8 +653,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -671,8 +681,10 @@ public Builder setParent(java.lang.String value) { * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -693,8 +705,10 @@ public Builder clearParent() { * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequestOrBuilder.java index 3b53ed9330f5..fec1c3120797 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListCloudControlsRequestOrBuilder.java @@ -30,8 +30,10 @@ public interface ListCloudControlsRequestOrBuilder * * *
              -   * Required. The parent resource name, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * Required. The parent resource name, in one of the following formats:
              +   * - `organizations/{organization}/locations/{location}`
              +   * - `projects/{project}/locations/{location}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -47,8 +49,10 @@ public interface ListCloudControlsRequestOrBuilder * * *
              -   * Required. The parent resource name, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * Required. The parent resource name, in one of the following formats:
              +   * - `organizations/{organization}/locations/{location}`
              +   * - `projects/{project}/locations/{location}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequest.java index 62beac74d2db..b514941cb702 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequest.java @@ -150,7 +150,7 @@ public com.google.protobuf.ByteString getParentBytes() { * * @deprecated * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=344 * @return Whether the endTime field is set. */ @java.lang.Override @@ -172,7 +172,7 @@ public boolean hasEndTime() { * * @deprecated * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=344 * @return The endTime. */ @java.lang.Override @@ -916,7 +916,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * @deprecated * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=344 * @return Whether the endTime field is set. */ @java.lang.Deprecated @@ -937,7 +937,7 @@ public boolean hasEndTime() { * * @deprecated * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=344 * @return The endTime. */ @java.lang.Deprecated diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequestOrBuilder.java index bd1836c926c3..d989781d7235 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListControlComplianceSummariesRequestOrBuilder.java @@ -69,7 +69,7 @@ public interface ListControlComplianceSummariesRequestOrBuilder * * @deprecated * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=344 * @return Whether the endTime field is set. */ @java.lang.Deprecated @@ -88,7 +88,7 @@ public interface ListControlComplianceSummariesRequestOrBuilder * * @deprecated * google.cloud.cloudsecuritycompliance.v1.ListControlComplianceSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=319 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=344 * @return The endTime. */ @java.lang.Deprecated diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequest.java index 69c8bd8c829c..24bfd296f9dc 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequest.java @@ -273,7 +273,7 @@ public com.google.protobuf.ByteString getFilterBytes() { *
              * * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=320 * @return Whether the endTime field is set. */ @java.lang.Override @@ -294,7 +294,7 @@ public boolean hasEndTime() { *
              * * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=320 * @return The endTime. */ @java.lang.Override @@ -1181,7 +1181,7 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { *
              * * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=320 * @return Whether the endTime field is set. */ @java.lang.Deprecated @@ -1201,7 +1201,7 @@ public boolean hasEndTime() { *
              * * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=320 * @return The endTime. */ @java.lang.Deprecated diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequestOrBuilder.java index 946c541d1fa7..5c8042eddf57 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFindingSummariesRequestOrBuilder.java @@ -136,7 +136,7 @@ public interface ListFindingSummariesRequestOrBuilder *
              * * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=320 * @return Whether the endTime field is set. */ @java.lang.Deprecated @@ -154,7 +154,7 @@ public interface ListFindingSummariesRequestOrBuilder *
              * * @deprecated google.cloud.cloudsecuritycompliance.v1.ListFindingSummariesRequest.end_time is - * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=295 + * deprecated. See google/cloud/cloudsecuritycompliance/v1/monitoring.proto;l=320 * @return The endTime. */ @java.lang.Deprecated diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequest.java index e6b14a7e6b07..6dc217f0baaf 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequest.java @@ -59,6 +59,7 @@ private ListFrameworkComplianceSummariesRequest() { parent_ = ""; pageToken_ = ""; filter_ = ""; + view_ = 0; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -263,6 +264,49 @@ public com.google.protobuf.ByteString getFilterBytes() { } } + public static final int VIEW_FIELD_NUMBER = 5; + private int view_ = 0; + + /** + * + * + *
              +   * Optional. Specifies the level of detail to return in the response.
              +   * 
              + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
              +   * Optional. Specifies the level of detail to return in the response.
              +   * 
              + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView getView() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView result = + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView.forNumber(view_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView.UNRECOGNIZED + : result; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -289,6 +333,12 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { com.google.protobuf.GeneratedMessage.writeString(output, 4, filter_); } + if (view_ + != com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView + .FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED + .getNumber()) { + output.writeEnum(5, view_); + } getUnknownFields().writeTo(output); } @@ -310,6 +360,12 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(4, filter_); } + if (view_ + != com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView + .FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED + .getNumber()) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, view_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -332,6 +388,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!getFilter().equals(other.getFilter())) return false; + if (view_ != other.view_) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -351,6 +408,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + FILTER_FIELD_NUMBER; hash = (53 * hash) + getFilter().hashCode(); + hash = (37 * hash) + VIEW_FIELD_NUMBER; + hash = (53 * hash) + view_; hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -508,6 +567,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; filter_ = ""; + view_ = 0; return this; } @@ -564,6 +624,9 @@ private void buildPartial0( if (((from_bitField0_ & 0x00000008) != 0)) { result.filter_ = filter_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.view_ = view_; + } } @java.lang.Override @@ -603,6 +666,9 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; onChanged(); } + if (other.view_ != 0) { + setViewValue(other.getViewValue()); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -653,6 +719,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 40: + { + view_ = input.readEnum(); + bitField0_ |= 0x00000010; + break; + } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1079,6 +1151,115 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { return this; } + private int view_ = 0; + + /** + * + * + *
              +     * Optional. Specifies the level of detail to return in the response.
              +     * 
              + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + @java.lang.Override + public int getViewValue() { + return view_; + } + + /** + * + * + *
              +     * Optional. Specifies the level of detail to return in the response.
              +     * 
              + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The enum numeric value on the wire for view to set. + * @return This builder for chaining. + */ + public Builder setViewValue(int value) { + view_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Specifies the level of detail to return in the response.
              +     * 
              + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView getView() { + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView result = + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView.forNumber( + view_); + return result == null + ? com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView.UNRECOGNIZED + : result; + } + + /** + * + * + *
              +     * Optional. Specifies the level of detail to return in the response.
              +     * 
              + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The view to set. + * @return This builder for chaining. + */ + public Builder setView( + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000010; + view_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Specifies the level of detail to return in the response.
              +     * 
              + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearView() { + bitField0_ = (bitField0_ & ~0x00000010); + view_ = 0; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest) } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequestOrBuilder.java index dfaf6a971536..59ee4554517c 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkComplianceSummariesRequestOrBuilder.java @@ -123,4 +123,34 @@ public interface ListFrameworkComplianceSummariesRequestOrBuilder * @return The bytes for filter. */ com.google.protobuf.ByteString getFilterBytes(); + + /** + * + * + *
              +   * Optional. Specifies the level of detail to return in the response.
              +   * 
              + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The enum numeric value on the wire for view. + */ + int getViewValue(); + + /** + * + * + *
              +   * Optional. Specifies the level of detail to return in the response.
              +   * 
              + * + * + * .google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView view = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The view. + */ + com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView getView(); } diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequest.java index 6698d4e1b95c..fd3937e64c8e 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequest.java @@ -84,7 +84,9 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * *
                  * Required. The parent resource of the framework deployment, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * `organizations/{organization}/locations/{location}`
              +   * or
              +   * `projects/{project}/locations/{location}`.
                  * The only supported location is `global`.
                  * 
              * @@ -112,7 +114,9 @@ public java.lang.String getParent() { * *
                  * Required. The parent resource of the framework deployment, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * `organizations/{organization}/locations/{location}`
              +   * or
              +   * `projects/{project}/locations/{location}`.
                  * The only supported location is `global`.
                  * 
              * @@ -761,7 +765,9 @@ public Builder mergeFrom( * *
                    * Required. The parent resource of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * `organizations/{organization}/locations/{location}`
              +     * or
              +     * `projects/{project}/locations/{location}`.
                    * The only supported location is `global`.
                    * 
              * @@ -788,7 +794,9 @@ public java.lang.String getParent() { * *
                    * Required. The parent resource of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * `organizations/{organization}/locations/{location}`
              +     * or
              +     * `projects/{project}/locations/{location}`.
                    * The only supported location is `global`.
                    * 
              * @@ -815,7 +823,9 @@ public com.google.protobuf.ByteString getParentBytes() { * *
                    * Required. The parent resource of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * `organizations/{organization}/locations/{location}`
              +     * or
              +     * `projects/{project}/locations/{location}`.
                    * The only supported location is `global`.
                    * 
              * @@ -841,7 +851,9 @@ public Builder setParent(java.lang.String value) { * *
                    * Required. The parent resource of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * `organizations/{organization}/locations/{location}`
              +     * or
              +     * `projects/{project}/locations/{location}`.
                    * The only supported location is `global`.
                    * 
              * @@ -863,7 +875,9 @@ public Builder clearParent() { * *
                    * Required. The parent resource of the framework deployment, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * `organizations/{organization}/locations/{location}`
              +     * or
              +     * `projects/{project}/locations/{location}`.
                    * The only supported location is `global`.
                    * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequestOrBuilder.java index 90bc565ce6e8..d6a1dea7e8dd 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworkDeploymentsRequestOrBuilder.java @@ -31,7 +31,9 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * *
                  * Required. The parent resource of the framework deployment, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * `organizations/{organization}/locations/{location}`
              +   * or
              +   * `projects/{project}/locations/{location}`.
                  * The only supported location is `global`.
                  * 
              * @@ -48,7 +50,9 @@ public interface ListFrameworkDeploymentsRequestOrBuilder * *
                  * Required. The parent resource of the framework deployment, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * `organizations/{organization}/locations/{location}`
              +   * or
              +   * `projects/{project}/locations/{location}`.
                  * The only supported location is `global`.
                  * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequest.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequest.java index b2e88cd0637d..96ae9046536f 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequest.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequest.java @@ -80,8 +80,10 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
              -   * Required. The parent resource name, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * Required. The parent resource name, in one of the following formats:
              +   * - `organizations/{organization}/locations/{location}`
              +   * - `projects/{project}/locations/{location}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -108,8 +110,10 @@ public java.lang.String getParent() { * * *
              -   * Required. The parent resource name, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * Required. The parent resource name, in one of the following formats:
              +   * - `organizations/{organization}/locations/{location}`
              +   * - `projects/{project}/locations/{location}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -579,8 +583,10 @@ public Builder mergeFrom( * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -606,8 +612,10 @@ public java.lang.String getParent() { * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -633,8 +641,10 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -659,8 +669,10 @@ public Builder setParent(java.lang.String value) { * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * @@ -681,8 +693,10 @@ public Builder clearParent() { * * *
              -     * Required. The parent resource name, in the format
              -     * `organizations/{organization}/locations/{location}`.
              +     * Required. The parent resource name, in one of the following formats:
              +     * - `organizations/{organization}/locations/{location}`
              +     * - `projects/{project}/locations/{location}`.
              +     *
                    * The only supported location is `global`.
                    * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequestOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequestOrBuilder.java index c0ef74dc3d9f..19e8e990ff12 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequestOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ListFrameworksRequestOrBuilder.java @@ -30,8 +30,10 @@ public interface ListFrameworksRequestOrBuilder * * *
              -   * Required. The parent resource name, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * Required. The parent resource name, in one of the following formats:
              +   * - `organizations/{organization}/locations/{location}`
              +   * - `projects/{project}/locations/{location}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * @@ -47,8 +49,10 @@ public interface ListFrameworksRequestOrBuilder * * *
              -   * Required. The parent resource name, in the format
              -   * `organizations/{organization}/locations/{location}`.
              +   * Required. The parent resource name, in one of the following formats:
              +   * - `organizations/{organization}/locations/{location}`
              +   * - `projects/{project}/locations/{location}`.
              +   *
                  * The only supported location is `global`.
                  * 
              * diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringProto.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringProto.java index 4c67838069d5..b8005fcdab3f 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringProto.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/MonitoringProto.java @@ -120,6 +120,10 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_descriptor; static final com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_google_cloud_cloudsecuritycompliance_v1_TargetResourceDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -135,28 +139,31 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "ons.proto\032\027google/api/client.proto\032\037goog" + "le/api/field_behavior.proto\032\031google/api/" + "resource.proto\0324google/cloud/cloudsecuri" - + "tycompliance/v1/common.proto\032\037google/pro" - + "tobuf/timestamp.proto\032\032google/type/interval.proto\"\312\001\n" + + "tycompliance/v1/common.proto\032\036google/pro" + + "tobuf/duration.proto\032\037google/protobuf/ti" + + "mestamp.proto\032\032google/type/interval.proto\"\246\002\n" + "\'ListFrameworkComplianceSummariesRequest\022Y\n" - + "\006parent\030\001 \001(\tBI\340A\002\372AC\022Ac" - + "loudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\022\026\n" + + "\006parent\030\001 \001(\tBI\340A\002\372AC\022Acloudsecu" + + "ritycompliance.googleapis.com/FrameworkComplianceSummary\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" - + "\006filter\030\004 \001(\tB\003\340A\001\"\265\001\n" + + "\006filter\030\004 \001(\tB\003\340A\001\022Z\n" + + "\004view\030\005 \001(\0162G.google.cloud.clou" + + "dsecuritycompliance.v1.FrameworkComplianceSummaryViewB\003\340A\001\"\265\001\n" + "(ListFrameworkComplianceSummariesResponse\022k\n" - + "\036framework_compliance_summaries\030\001 \003(\0132C.google.cloud.cloud" - + "securitycompliance.v1.FrameworkComplianceSummary\022\034\n" + + "\036framework_compliance_summaries\030\001 \003(\0132C.google.cloud.c" + + "loudsecuritycompliance.v1.FrameworkComplianceSummary\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\003\"\366\010\n" + "\031FrameworkComplianceReport\022\021\n" + "\tframework\030\001 \001(\t\022\035\n" + "\025framework_description\030\002 \001(\t\0224\n" + "\013update_time\030\003 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022e\n" - + "\032control_assessment_details\030\004" - + " \001(\0132A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\022X\n" - + "\016framework_type\030\005 \001(\0162@.google.cloud.cloud" - + "securitycompliance.v1.Framework.FrameworkType\022Y\n" - + "\031supported_cloud_providers\030\006 \003(\016" - + "26.google.cloud.cloudsecuritycompliance.v1.CloudProvider\022X\n" + + "\032control_assessment_details\030\004 \001(\0132A.google.cloud.cloudsecurit" + + "ycompliance.v1.ControlAssessmentDetails\022X\n" + + "\016framework_type\030\005 \001(\0162@.google.cloud.c" + + "loudsecuritycompliance.v1.Framework.FrameworkType\022Y\n" + + "\031supported_cloud_providers\030\006" + + " \003(\01626.google.cloud.cloudsecuritycompliance.v1.CloudProvider\022X\n" + "\024framework_categories\030\007" + " \003(\0162:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\022#\n" + "\026framework_display_name\030\010 \001(\tB\003\340A\001\022\021\n" @@ -164,42 +171,42 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021major_revision_id\030\n" + " \001(\003\022\031\n" + "\021minor_revision_id\030\013 \001(\003\022_\n" - + "\027target_resource_details\030\014 \003(\0132>.google.cloud.cloudsecurityco" - + "mpliance.v1.TargetResourceDetails:\253\003\352A\247\003\n" - + "@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\022`projects/{pr" - + "oject}/locations/{location}/frameworkComplianceReports/{framework_compliance_rep" - + "ort}\022^folders/{folder}/locations/{location}/frameworkComplianceReports/{framewor" - + "k_compliance_report}\022jorganizations/{organization}/locations/{location}/framewor" - + "kComplianceReports/{framework_compliance" - + "_report}*\032frameworkComplianceReports2\031frameworkComplianceReport\"\262\001\n" + + "\027target_resource_details\030\014 \003(\0132>.google.cloud.cloudsecuri" + + "tycompliance.v1.TargetResourceDetails:\253\003\352A\247\003\n" + + "@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\022`projects" + + "/{project}/locations/{location}/frameworkComplianceReports/{framework_compliance" + + "_report}\022^folders/{folder}/locations/{location}/frameworkComplianceReports/{fram" + + "ework_compliance_report}\022jorganizations/{organization}/locations/{location}/fram" + + "eworkComplianceReports/{framework_compli" + + "ance_report}*\032frameworkComplianceReports2\031frameworkComplianceReport\"\307\001\n" + "%FetchFrameworkComplianceReportRequest\022V\n" + "\004name\030\001 \001(\tBH\340A\002\372AB\n" + "@cloudsecuritycompliance.googleapis.com/FrameworkComplianceReport\0221\n" - + "\010end_time\030\002" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\001\"\347\001\n" + + "\010end_time\030\002 \001(\0132\032.google.protobuf.TimestampB\003\340A\001\022\023\n" + + "\006filter\030\003 \001(\tB\003\340A\001\"\347\001\n" + "\033ListFindingSummariesRequest\022M\n" - + "\006parent\030\001 \001(" - + "\tB=\340A\002\372A7\0225cloudsecuritycompliance.googleapis.com/FindingSummary\022\026\n" + + "\006parent\030\001 \001(\tB=\340" + + "A\002\372A7\0225cloudsecuritycompliance.googleapis.com/FindingSummary\022\026\n" + "\tpage_size\030\002 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\003 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\004 \001(\tB\003\340A\001\0223\n" - + "\010end_time\030\005 " - + "\001(\0132\032.google.protobuf.TimestampB\005\030\001\340A\001\"\220\001\n" + + "\010end_time\030\005" + + " \001(\0132\032.google.protobuf.TimestampB\005\030\001\340A\001\"\220\001\n" + "\034ListFindingSummariesResponse\022R\n" - + "\021finding_summaries\030\001" - + " \003(\01327.google.cloud.cloudsecuritycompliance.v1.FindingSummary\022\034\n" + + "\021finding_summaries\030\001 " + + "\003(\01327.google.cloud.cloudsecuritycompliance.v1.FindingSummary\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\003\"\373\001\n" + "%ListControlComplianceSummariesRequest\022W\n" - + "\006parent\030\001 \001(" - + "\tBG\340A\002\372AA\022?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\0223\n" + + "\006parent\030\001 \001(\tBG\340A\002\372AA\022?cl" + + "oudsecuritycompliance.googleapis.com/ControlComplianceSummary\0223\n" + "\010end_time\030\002" + " \001(\0132\032.google.protobuf.TimestampB\005\030\001\340A\001\022\026\n" + "\tpage_size\030\003 \001(\005B\003\340A\001\022\027\n\n" + "page_token\030\004 \001(\tB\003\340A\001\022\023\n" + "\006filter\030\005 \001(\tB\003\340A\001\"\257\001\n" + "&ListControlComplianceSummariesResponse\022g\n" - + "\034control_compliance_summaries\030\001 \003(\013" - + "2A.google.cloud.cloudsecuritycompliance.v1.ControlComplianceSummary\022\034\n" + + "\034control_compliance_summaries\030\001 \003(\0132A.google.cloud" + + ".cloudsecuritycompliance.v1.ControlComplianceSummary\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\003\"\306\001\n" + ")AggregateFrameworkComplianceReportRequest\022V\n" + "\004name\030\001 \001(\tBH\340A\002\372AB\n" @@ -207,99 +214,101 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\010interval\030\002 \001(\0132\025.google.type.IntervalB\003\340A\001\022\023\n" + "\006filter\030\003 \001(\tB\003\340A\001\"\230\001\n" + "*AggregateFrameworkComplianceReportResponse\022j\n" - + "\035aggregated_compliance_reports\030\001 \003(\0132C.google.cloud." - + "cloudsecuritycompliance.v1.AggregatedComplianceReport\"\220\001\n" + + "\035aggregated_compliance_reports\030\001 \003(\0132C.google.cloud.cloudsecurityco" + + "mpliance.v1.AggregatedComplianceReport\"\220\001\n" + "\030ControlAssessmentDetails\022\030\n" + "\020passing_controls\030\001 \001(\005\022\030\n" + "\020failing_controls\030\002 \001(\005\022!\n" + "\031assessed_passing_controls\030\003 \001(\005\022\035\n" - + "\025not_assessed_controls\030\004 \001(\005\"\257\010\n" + + "\025not_assessed_controls\030\004 \001(\005\"\240\t\n" + "\032FrameworkComplianceSummary\022\021\n" + "\tframework\030\001 \001(\t\022e\n" - + "\032control_assessment_details\030\002" - + " \001(\0132A.google.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\022X\n" - + "\016framework_type\030\003 \001(\0162@.google.cloud.cloudse" - + "curitycompliance.v1.Framework.FrameworkType\022Y\n" - + "\031supported_cloud_providers\030\004 \003(\01626" - + ".google.cloud.cloudsecuritycompliance.v1.CloudProvider\022X\n" - + "\024framework_categories\030\005" - + " \003(\0162:.google.cloud.cloudsecuritycompliance.v1.FrameworkCategory\022#\n" + + "\032control_assessment_details\030\002 \001(\0132A.google" + + ".cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\022X\n" + + "\016framework_type\030\003 \001" + + "(\0162@.google.cloud.cloudsecuritycompliance.v1.Framework.FrameworkType\022Y\n" + + "\031supported_cloud_providers\030\004 \003(\01626.google.cloud.c" + + "loudsecuritycompliance.v1.CloudProvider\022X\n" + + "\024framework_categories\030\005 \003(\0162:.google.c" + + "loud.cloudsecuritycompliance.v1.FrameworkCategory\022#\n" + "\026framework_display_name\030\006 \001(\tB\003\340A\001\022\021\n" + "\004name\030\007 \001(\tB\003\340A\010\022\031\n" + "\021major_revision_id\030\010 \001(\003\022\031\n" + "\021minor_revision_id\030\t \001(\003\022_\n" + "\027target_resource_details\030\n" - + " \003(\0132>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails:\270\003\352A\264\003\n" - + "Acloudsecuritycompliance.googleapis.com/FrameworkComplianceSummary\022cprojects/{pro" - + "ject}/locations/{location}/frameworkComplianceSummaries/{framework_compliance_su" - + "mmary}\022afolders/{folder}/locations/{location}/frameworkComplianceSummaries/{fram" - + "ework_compliance_summary}\022morganizations/{organization}/locations/{location}/fra" - + "meworkComplianceSummaries/{framework_com" - + "pliance_summary}*\034frameworkComplianceSummaries2\032frameworkComplianceSummary\"\212\005\n" + + " \003(\0132>.google.cloud.cloudsecuritycompliance.v1.TargetResourceDetails\022\032\n\r" + + "finding_count\030\013 \001(\003B\003\340A\003\022S\n" + + "\026controls_passing_trend\030\014 \001(\0132..g" + + "oogle.cloud.cloudsecuritycompliance.v1.TrendB\003\340A\003:\270\003\352A\264\003\n" + + "Acloudsecuritycompliance.googleapis.com/FrameworkComplianceSumm" + + "ary\022cprojects/{project}/locations/{location}/frameworkComplianceSummaries/{frame" + + "work_compliance_summary}\022afolders/{folder}/locations/{location}/frameworkComplia" + + "nceSummaries/{framework_compliance_summary}\022morganizations/{organization}/locati" + + "ons/{location}/frameworkComplianceSummaries/{framework_compliance_summary}*\034fram" + + "eworkComplianceSummaries2\032frameworkComplianceSummary\"\212\005\n" + "\016FindingSummary\022\030\n" + "\020finding_category\030\001 \001(\t\022L\n\r" - + "finding_class\030\002" - + " \001(\01625.google.cloud.cloudsecuritycompliance.v1.FindingClass\022C\n" - + "\010severity\030\003" - + " \001(\01621.google.cloud.cloudsecuritycompliance.v1.Severity\022\025\n\r" + + "finding_class\030\002 \001(\016" + + "25.google.cloud.cloudsecuritycompliance.v1.FindingClass\022C\n" + + "\010severity\030\003 \001(\01621.goog" + + "le.cloud.cloudsecuritycompliance.v1.Severity\022\025\n\r" + "finding_count\030\004 \001(\003\0224\n" + "\013update_time\030\005" + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022\037\n" + "\022related_frameworks\030\006 \003(\tB\003\340A\001\022\021\n" + "\004name\030\007 \001(\tB\003\340A\010:\311\002\352A\305\002\n" - + "5cloudsecuritycompliance.googleapis.com/FindingSummary\022Jprojects/{project}/lo" - + "cations/{location}/findingSummaries/{finding_summary}\022Hfolders/{folder}/location" - + "s/{location}/findingSummaries/{finding_summary}\022Torganizations/{organization}/lo" - + "cations/{location}/findingSummaries/{fin" - + "ding_summary}*\020findingSummaries2\016findingSummary\"\232\t\n" + + "5cloudsecuritycompliance.googleapis.com/FindingSummary\022Jpro" + + "jects/{project}/locations/{location}/findingSummaries/{finding_summary}\022Hfolders" + + "/{folder}/locations/{location}/findingSummaries/{finding_summary}\022Torganizations" + + "/{organization}/locations/{location}/fin" + + "dingSummaries/{finding_summary}*\020findingSummaries2\016findingSummary\"\232\t\n" + "\030ControlComplianceSummary\022\017\n" + "\007control\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t\022\023\n" + "\013description\030\003 \001(\t\022_\n" - + "\030overall_evaluation_state\030\004" - + " \001(\01628.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\003\340A\003\022\034\n" + + "\030overall_evaluation_state\030\004 \001(\01628.google.cl" + + "oud.cloudsecuritycompliance.v1.EvaluationStateB\003\340A\003\022\034\n" + "\024total_findings_count\030\005 \001(\005\022\035\n" + "\025compliance_frameworks\030\006 \003(\t\022R\n" - + "\020similar_controls\030\007 \003(\013" - + "28.google.cloud.cloudsecuritycompliance.v1.SimilarControls\022Z\n" - + "\025cloud_control_reports\030\010" - + " \003(\0132;.google.cloud.cloudsecuritycompliance.v1.CloudControlReport\022q\n" - + "\033control_responsibility_type\030\t \001(\0162L.google.clo" - + "ud.cloudsecuritycompliance.v1.RegulatoryControlResponsibilityType\022\027\n" + + "\020similar_controls\030\007" + + " \003(\01328.google.cloud.cloudsecuritycompliance.v1.SimilarControls\022Z\n" + + "\025cloud_control_reports\030\010 \003(\0132;.google.clo" + + "ud.cloudsecuritycompliance.v1.CloudControlReport\022q\n" + + "\033control_responsibility_type\030\t \001(\0162L.google.cloud.cloudsecuritycompli" + + "ance.v1.RegulatoryControlResponsibilityType\022\027\n" + "\017is_fake_control\030\n" + " \001(\010\022\021\n" + "\004name\030\013 \001(\tB\003\340A\010:\324\004\352A\320\004\n" - + "?cloudsecuritycompliance.googleapis.com/Con" - + "trolComplianceSummary\022\230\001projects/{projec" - + "t}/locations/{location}/frameworkComplianceReports/{framework_compliance_report}" - + "/controlComplianceSummaries/{control_com" - + "pliance_summary}\022\226\001folders/{folder}/loca" - + "tions/{location}/frameworkComplianceReports/{framework_compliance_report}/contro" - + "lComplianceSummaries/{control_compliance" - + "_summary}\022\242\001organizations/{organization}" - + "/locations/{location}/frameworkComplianceReports/{framework_compliance_report}/c" - + "ontrolComplianceSummaries/{control_compl" - + "iance_summary}*\032controlComplianceSummaries2\030controlComplianceSummary\"\230\007\n" + + "?cloudsecuritycompliance.googleapis.com/ControlComplianceSummary\022" + + "\230\001projects/{project}/locations/{location}/frameworkComplianceReports/{framework_" + + "compliance_report}/controlComplianceSumm" + + "aries/{control_compliance_summary}\022\226\001fol" + + "ders/{folder}/locations/{location}/frameworkComplianceReports/{framework_complia" + + "nce_report}/controlComplianceSummaries/{" + + "control_compliance_summary}\022\242\001organizati" + + "ons/{organization}/locations/{location}/frameworkComplianceReports/{framework_co" + + "mpliance_report}/controlComplianceSummaries/{control_compliance_summary}*\032contro" + + "lComplianceSummaries2\030controlComplianceSummary\"\230\007\n" + "\022CloudControlReport\022\177\n" + "\'manual_cloud_control_assessment_details\030\r" - + " \001(\0132L.google.cloud.clou" - + "dsecuritycompliance.v1.ManualCloudControlAssessmentDetailsH\000\022r\n" - + " cloud_control_assessment_details\030\016 \001(\0132F.google.cloud.cl" - + "oudsecuritycompliance.v1.CloudControlAssessmentDetailsH\000\022\025\n\r" + + " \001(\0132L.google.cloud.cloudsecuritycompliance.v1" + + ".ManualCloudControlAssessmentDetailsH\000\022r\n" + + " cloud_control_assessment_details\030\016 \001(\013" + + "2F.google.cloud.cloudsecuritycompliance.v1.CloudControlAssessmentDetailsH\000\022\025\n\r" + "cloud_control\030\001 \001(\t\022\024\n" + "\014display_name\030\002 \001(\t\022\023\n" + "\013description\030\003 \001(\t\022\022\n\n" + "categories\030\006 \003(\t\022R\n" - + "\020similar_controls\030\t" - + " \003(\01328.google.cloud.cloudsecuritycompliance.v1.SimilarControls\022V\n" + + "\020similar_controls\030\t \003(\01328.google.clou" + + "d.cloudsecuritycompliance.v1.SimilarControls\022V\n" + "\022cloud_control_type\030\n" + " \001(\0162:.google.cloud.cloudsecuritycompliance.v1.CloudControl.Type\022\030\n" + "\020finding_category\030\013 \001(\t\022<\n" + "\005rules\030\014 \003(\0132-.google.cloud.cloudsecuritycompliance.v1.Rule\022K\n" - + "\020finding_severity\030\017 \001(\01621.google.cl" - + "oud.cloudsecuritycompliance.v1.Severity\022R\n" - + "\020enforcement_mode\030\020 \001(\01628.google.cloud" - + ".cloudsecuritycompliance.v1.EnforcementMode\022 \n" + + "\020finding_severity\030\017" + + " \001(\01621.google.cloud.cloudsecuritycompliance.v1.Severity\022R\n" + + "\020enforcement_mode\030\020 " + + "\001(\01628.google.cloud.cloudsecuritycompliance.v1.EnforcementMode\022 \n" + "\030cloud_control_deployment\030\021 \001(\t\022\031\n" + "\021major_revision_id\030\022 \001(\003\022\031\n" + "\021minor_revision_id\030\023 \001(\003\022$\n" @@ -309,14 +318,14 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\032manual_cloud_control_guide\030\001 \003(\t\"\220\001\n" + "\035CloudControlAssessmentDetails\022\026\n" + "\016findings_count\030\001 \001(\005\022W\n" - + "\020evaluation_state\030\002 \001(\01628.google." - + "cloud.cloudsecuritycompliance.v1.EvaluationStateB\003\340A\003\"8\n" + + "\020evaluation_state\030\002" + + " \001(\01628.google.cloud.cloudsecuritycompliance.v1.EvaluationStateB\003\340A\003\"8\n" + "\017SimilarControls\022\021\n" + "\tframework\030\001 \001(\t\022\022\n\n" + "control_id\030\002 \001(\t\"\264\001\n" + "\032AggregatedComplianceReport\022e\n" - + "\032control_assessment_details\030\001 \001(\0132A.google.cloud.clouds" - + "ecuritycompliance.v1.ControlAssessmentDetails\022/\n" + + "\032control_assessment_details\030\001 \001(\0132A.g" + + "oogle.cloud.cloudsecuritycompliance.v1.ControlAssessmentDetails\022/\n" + "\013report_time\030\002 \001(\0132\032.google.protobuf.Timestamp\"\214\002\n" + "\025TargetResourceDetails\022\034\n" + "\024framework_deployment\030\001 \001(\t\022$\n" @@ -325,7 +334,10 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\013create_time\030\004 \001(\0132\032.google.protobuf.Timestamp\022/\n" + "\013update_time\030\005 \001(\0132\032.google.protobuf.Timestamp\022\031\n" + "\021major_revision_id\030\006 \001(\003\022\031\n" - + "\021minor_revision_id\030\007 \001(\003*\220\001\n" + + "\021minor_revision_id\030\007 \001(\003\"U\n" + + "\005Trend\0220\n" + + "\010duration\030\001 \001(\0132\031.google.protobuf.DurationB\003\340A\003\022\032\n\r" + + "value_percent\030\002 \001(\001B\003\340A\003*\220\001\n" + "\017EvaluationState\022 \n" + "\034EVALUATION_STATE_UNSPECIFIED\020\000\022\033\n" + "\027EVALUATION_STATE_PASSED\020\001\022\033\n" @@ -333,7 +345,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\035EVALUATION_STATE_NOT_ASSESSED\020\003*\331\001\n" + "\014FindingClass\022\035\n" + "\031FINDING_CLASS_UNSPECIFIED\020\000\022\n\n" - + "\006THREAT\020\001\022\021\n\r" + + "\006THREAT\020\001\022\021\n" + + "\r" + "VULNERABILITY\020\002\022\024\n" + "\020MISCONFIGURATION\020\003\022\017\n" + "\013OBSERVATION\020\004\022\r\n" @@ -341,7 +354,11 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\021POSTURE_VIOLATION\020\006\022\025\n" + "\021TOXIC_COMBINATION\020\007\022\027\n" + "\023SENSITIVE_DATA_RISK\020\010\022\016\n\n" - + "CHOKEPOINT\020\t2\325\021\n\n" + + "CHOKEPOINT\020\t*\254\001\n" + + "\036FrameworkComplianceSummaryView\0221\n" + + "-FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED\020\000\022+\n" + + "\'FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC\020\001\022*\n" + + "&FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL\020\0022\325\021\n\n" + "Monitoring\022\250\003\n" + " ListFrameworkComplianceSummaries\022P.google.cloud." + "cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest\032Q.google.clou" @@ -398,6 +415,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { com.google.api.FieldBehaviorProto.getDescriptor(), com.google.api.ResourceProto.getDescriptor(), com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor(), + com.google.protobuf.DurationProto.getDescriptor(), com.google.protobuf.TimestampProto.getDescriptor(), com.google.type.IntervalProto.getDescriptor(), }); @@ -407,7 +425,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesRequest_descriptor, new java.lang.String[] { - "Parent", "PageSize", "PageToken", "Filter", + "Parent", "PageSize", "PageToken", "Filter", "View", }); internal_static_google_cloud_cloudsecuritycompliance_v1_ListFrameworkComplianceSummariesResponse_descriptor = getDescriptor().getMessageType(1); @@ -442,7 +460,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_cloud_cloudsecuritycompliance_v1_FetchFrameworkComplianceReportRequest_descriptor, new java.lang.String[] { - "Name", "EndTime", + "Name", "EndTime", "Filter", }); internal_static_google_cloud_cloudsecuritycompliance_v1_ListFindingSummariesRequest_descriptor = getDescriptor().getMessageType(4); @@ -519,6 +537,8 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MajorRevisionId", "MinorRevisionId", "TargetResourceDetails", + "FindingCount", + "ControlsPassingTrend", }); internal_static_google_cloud_cloudsecuritycompliance_v1_FindingSummary_descriptor = getDescriptor().getMessageType(12); @@ -622,12 +642,21 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "MajorRevisionId", "MinorRevisionId", }); + internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_descriptor = + getDescriptor().getMessageType(20); + internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_descriptor, + new java.lang.String[] { + "Duration", "ValuePercent", + }); descriptor.resolveAllFeaturesImmutable(); com.google.api.AnnotationsProto.getDescriptor(); com.google.api.ClientProto.getDescriptor(); com.google.api.FieldBehaviorProto.getDescriptor(); com.google.api.ResourceProto.getDescriptor(); com.google.cloud.cloudsecuritycompliance.v1.CommonProto.getDescriptor(); + com.google.protobuf.DurationProto.getDescriptor(); com.google.protobuf.TimestampProto.getDescriptor(); com.google.type.IntervalProto.getDescriptor(); com.google.protobuf.ExtensionRegistry registry = diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValue.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValue.java index e2d4ef83e8b9..f723bddc8ff9 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValue.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValue.java @@ -133,10 +133,10 @@ public KindCase getKindCase() { * * *
              -   * A string value.
              +   * Optional. A string value.
                  * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the stringValue field is set. */ @@ -148,10 +148,10 @@ public boolean hasStringValue() { * * *
              -   * A string value.
              +   * Optional. A string value.
                  * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The stringValue. */ @@ -176,10 +176,10 @@ public java.lang.String getStringValue() { * * *
              -   * A string value.
              +   * Optional. A string value.
                  * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for stringValue. */ @@ -206,10 +206,10 @@ public com.google.protobuf.ByteString getStringValueBytes() { * * *
              -   * A boolean value.
              +   * Optional. A boolean value.
                  * 
              * - * bool bool_value = 4; + * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the boolValue field is set. */ @@ -222,10 +222,10 @@ public boolean hasBoolValue() { * * *
              -   * A boolean value.
              +   * Optional. A boolean value.
                  * 
              * - * bool bool_value = 4; + * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The boolValue. */ @@ -243,10 +243,12 @@ public boolean getBoolValue() { * * *
              -   * A repeated string.
              +   * Optional. A repeated string.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the stringListValue field is set. */ @@ -259,10 +261,12 @@ public boolean hasStringListValue() { * * *
              -   * A repeated string.
              +   * Optional. A repeated string.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The stringListValue. */ @@ -278,10 +282,12 @@ public com.google.cloud.cloudsecuritycompliance.v1.StringList getStringListValue * * *
              -   * A repeated string.
              +   * Optional. A repeated string.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.cloudsecuritycompliance.v1.StringListOrBuilder @@ -298,10 +304,10 @@ public com.google.cloud.cloudsecuritycompliance.v1.StringList getStringListValue * * *
              -   * A double value.
              +   * Optional. A double value.
                  * 
              * - * double number_value = 6; + * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the numberValue field is set. */ @@ -314,10 +320,10 @@ public boolean hasNumberValue() { * * *
              -   * A double value.
              +   * Optional. A double value.
                  * 
              * - * double number_value = 6; + * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The numberValue. */ @@ -335,10 +341,12 @@ public double getNumberValue() { * * *
              -   * Sub-parameter values.
              +   * Optional. Sub-parameter values.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oneofValue field is set. */ @@ -351,10 +359,12 @@ public boolean hasOneofValue() { * * *
              -   * Sub-parameter values.
              +   * Optional. Sub-parameter values.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oneofValue. */ @@ -370,10 +380,12 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter getOneofValue() { * * *
              -   * Sub-parameter values.
              +   * Optional. Sub-parameter values.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.cloudsecuritycompliance.v1.ParameterOrBuilder getOneofValueOrBuilder() { @@ -860,10 +872,10 @@ public Builder clearKind() { * * *
              -     * A string value.
              +     * Optional. A string value.
                    * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the stringValue field is set. */ @@ -876,10 +888,10 @@ public boolean hasStringValue() { * * *
              -     * A string value.
              +     * Optional. A string value.
                    * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The stringValue. */ @@ -905,10 +917,10 @@ public java.lang.String getStringValue() { * * *
              -     * A string value.
              +     * Optional. A string value.
                    * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for stringValue. */ @@ -934,10 +946,10 @@ public com.google.protobuf.ByteString getStringValueBytes() { * * *
              -     * A string value.
              +     * Optional. A string value.
                    * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The stringValue to set. * @return This builder for chaining. @@ -956,10 +968,10 @@ public Builder setStringValue(java.lang.String value) { * * *
              -     * A string value.
              +     * Optional. A string value.
                    * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -976,10 +988,10 @@ public Builder clearStringValue() { * * *
              -     * A string value.
              +     * Optional. A string value.
                    * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The bytes for stringValue to set. * @return This builder for chaining. @@ -999,10 +1011,10 @@ public Builder setStringValueBytes(com.google.protobuf.ByteString value) { * * *
              -     * A boolean value.
              +     * Optional. A boolean value.
                    * 
              * - * bool bool_value = 4; + * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the boolValue field is set. */ @@ -1014,10 +1026,10 @@ public boolean hasBoolValue() { * * *
              -     * A boolean value.
              +     * Optional. A boolean value.
                    * 
              * - * bool bool_value = 4; + * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The boolValue. */ @@ -1032,10 +1044,10 @@ public boolean getBoolValue() { * * *
              -     * A boolean value.
              +     * Optional. A boolean value.
                    * 
              * - * bool bool_value = 4; + * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The boolValue to set. * @return This builder for chaining. @@ -1052,10 +1064,10 @@ public Builder setBoolValue(boolean value) { * * *
              -     * A boolean value.
              +     * Optional. A boolean value.
                    * 
              * - * bool bool_value = 4; + * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1078,10 +1090,12 @@ public Builder clearBoolValue() { * * *
              -     * A repeated string.
              +     * Optional. A repeated string.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the stringListValue field is set. */ @@ -1094,10 +1108,12 @@ public boolean hasStringListValue() { * * *
              -     * A repeated string.
              +     * Optional. A repeated string.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The stringListValue. */ @@ -1120,10 +1136,12 @@ public com.google.cloud.cloudsecuritycompliance.v1.StringList getStringListValue * * *
              -     * A repeated string.
              +     * Optional. A repeated string.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setStringListValue( com.google.cloud.cloudsecuritycompliance.v1.StringList value) { @@ -1144,10 +1162,12 @@ public Builder setStringListValue( * * *
              -     * A repeated string.
              +     * Optional. A repeated string.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setStringListValue( com.google.cloud.cloudsecuritycompliance.v1.StringList.Builder builderForValue) { @@ -1165,10 +1185,12 @@ public Builder setStringListValue( * * *
              -     * A repeated string.
              +     * Optional. A repeated string.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeStringListValue( com.google.cloud.cloudsecuritycompliance.v1.StringList value) { @@ -1200,10 +1222,12 @@ public Builder mergeStringListValue( * * *
              -     * A repeated string.
              +     * Optional. A repeated string.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearStringListValue() { if (stringListValueBuilder_ == null) { @@ -1226,10 +1250,12 @@ public Builder clearStringListValue() { * * *
              -     * A repeated string.
              +     * Optional. A repeated string.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.cloudsecuritycompliance.v1.StringList.Builder getStringListValueBuilder() { @@ -1240,10 +1266,12 @@ public Builder clearStringListValue() { * * *
              -     * A repeated string.
              +     * Optional. A repeated string.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.cloudsecuritycompliance.v1.StringListOrBuilder @@ -1262,10 +1290,12 @@ public Builder clearStringListValue() { * * *
              -     * A repeated string.
              +     * Optional. A repeated string.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.cloudsecuritycompliance.v1.StringList, @@ -1295,10 +1325,10 @@ public Builder clearStringListValue() { * * *
              -     * A double value.
              +     * Optional. A double value.
                    * 
              * - * double number_value = 6; + * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the numberValue field is set. */ @@ -1310,10 +1340,10 @@ public boolean hasNumberValue() { * * *
              -     * A double value.
              +     * Optional. A double value.
                    * 
              * - * double number_value = 6; + * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The numberValue. */ @@ -1328,10 +1358,10 @@ public double getNumberValue() { * * *
              -     * A double value.
              +     * Optional. A double value.
                    * 
              * - * double number_value = 6; + * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @param value The numberValue to set. * @return This builder for chaining. @@ -1348,10 +1378,10 @@ public Builder setNumberValue(double value) { * * *
              -     * A double value.
              +     * Optional. A double value.
                    * 
              * - * double number_value = 6; + * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return This builder for chaining. */ @@ -1374,10 +1404,12 @@ public Builder clearNumberValue() { * * *
              -     * Sub-parameter values.
              +     * Optional. Sub-parameter values.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oneofValue field is set. */ @@ -1390,10 +1422,12 @@ public boolean hasOneofValue() { * * *
              -     * Sub-parameter values.
              +     * Optional. Sub-parameter values.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oneofValue. */ @@ -1416,10 +1450,12 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter getOneofValue() { * * *
              -     * Sub-parameter values.
              +     * Optional. Sub-parameter values.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOneofValue(com.google.cloud.cloudsecuritycompliance.v1.Parameter value) { if (oneofValueBuilder_ == null) { @@ -1439,10 +1475,12 @@ public Builder setOneofValue(com.google.cloud.cloudsecuritycompliance.v1.Paramet * * *
              -     * Sub-parameter values.
              +     * Optional. Sub-parameter values.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder setOneofValue( com.google.cloud.cloudsecuritycompliance.v1.Parameter.Builder builderForValue) { @@ -1460,10 +1498,12 @@ public Builder setOneofValue( * * *
              -     * Sub-parameter values.
              +     * Optional. Sub-parameter values.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder mergeOneofValue(com.google.cloud.cloudsecuritycompliance.v1.Parameter value) { if (oneofValueBuilder_ == null) { @@ -1494,10 +1534,12 @@ public Builder mergeOneofValue(com.google.cloud.cloudsecuritycompliance.v1.Param * * *
              -     * Sub-parameter values.
              +     * Optional. Sub-parameter values.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public Builder clearOneofValue() { if (oneofValueBuilder_ == null) { @@ -1520,10 +1562,12 @@ public Builder clearOneofValue() { * * *
              -     * Sub-parameter values.
              +     * Optional. Sub-parameter values.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ public com.google.cloud.cloudsecuritycompliance.v1.Parameter.Builder getOneofValueBuilder() { return internalGetOneofValueFieldBuilder().getBuilder(); @@ -1533,10 +1577,12 @@ public com.google.cloud.cloudsecuritycompliance.v1.Parameter.Builder getOneofVal * * *
              -     * Sub-parameter values.
              +     * Optional. Sub-parameter values.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ @java.lang.Override public com.google.cloud.cloudsecuritycompliance.v1.ParameterOrBuilder getOneofValueOrBuilder() { @@ -1554,10 +1600,12 @@ public com.google.cloud.cloudsecuritycompliance.v1.ParameterOrBuilder getOneofVa * * *
              -     * Sub-parameter values.
              +     * Optional. Sub-parameter values.
                    * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ private com.google.protobuf.SingleFieldBuilder< com.google.cloud.cloudsecuritycompliance.v1.Parameter, diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValueOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValueOrBuilder.java index 11efd6935d1d..4bc6c45bbed8 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValueOrBuilder.java +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/ParamValueOrBuilder.java @@ -30,10 +30,10 @@ public interface ParamValueOrBuilder * * *
              -   * A string value.
              +   * Optional. A string value.
                  * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the stringValue field is set. */ @@ -43,10 +43,10 @@ public interface ParamValueOrBuilder * * *
              -   * A string value.
              +   * Optional. A string value.
                  * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The stringValue. */ @@ -56,10 +56,10 @@ public interface ParamValueOrBuilder * * *
              -   * A string value.
              +   * Optional. A string value.
                  * 
              * - * string string_value = 3; + * string string_value = 3 [(.google.api.field_behavior) = OPTIONAL]; * * @return The bytes for stringValue. */ @@ -69,10 +69,10 @@ public interface ParamValueOrBuilder * * *
              -   * A boolean value.
              +   * Optional. A boolean value.
                  * 
              * - * bool bool_value = 4; + * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the boolValue field is set. */ @@ -82,10 +82,10 @@ public interface ParamValueOrBuilder * * *
              -   * A boolean value.
              +   * Optional. A boolean value.
                  * 
              * - * bool bool_value = 4; + * bool bool_value = 4 [(.google.api.field_behavior) = OPTIONAL]; * * @return The boolValue. */ @@ -95,10 +95,12 @@ public interface ParamValueOrBuilder * * *
              -   * A repeated string.
              +   * Optional. A repeated string.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the stringListValue field is set. */ @@ -108,10 +110,12 @@ public interface ParamValueOrBuilder * * *
              -   * A repeated string.
              +   * Optional. A repeated string.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The stringListValue. */ @@ -121,10 +125,12 @@ public interface ParamValueOrBuilder * * *
              -   * A repeated string.
              +   * Optional. A repeated string.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5; + * + * .google.cloud.cloudsecuritycompliance.v1.StringList string_list_value = 5 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.cloudsecuritycompliance.v1.StringListOrBuilder getStringListValueOrBuilder(); @@ -132,10 +138,10 @@ public interface ParamValueOrBuilder * * *
              -   * A double value.
              +   * Optional. A double value.
                  * 
              * - * double number_value = 6; + * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return Whether the numberValue field is set. */ @@ -145,10 +151,10 @@ public interface ParamValueOrBuilder * * *
              -   * A double value.
              +   * Optional. A double value.
                  * 
              * - * double number_value = 6; + * double number_value = 6 [(.google.api.field_behavior) = OPTIONAL]; * * @return The numberValue. */ @@ -158,10 +164,12 @@ public interface ParamValueOrBuilder * * *
              -   * Sub-parameter values.
              +   * Optional. Sub-parameter values.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return Whether the oneofValue field is set. */ @@ -171,10 +179,12 @@ public interface ParamValueOrBuilder * * *
              -   * Sub-parameter values.
              +   * Optional. Sub-parameter values.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The oneofValue. */ @@ -184,10 +194,12 @@ public interface ParamValueOrBuilder * * *
              -   * Sub-parameter values.
              +   * Optional. Sub-parameter values.
                  * 
              * - * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7; + * + * .google.cloud.cloudsecuritycompliance.v1.Parameter oneof_value = 7 [(.google.api.field_behavior) = OPTIONAL]; + * */ com.google.cloud.cloudsecuritycompliance.v1.ParameterOrBuilder getOneofValueOrBuilder(); diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Trend.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Trend.java new file mode 100644 index 000000000000..c265ecfbc237 --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/Trend.java @@ -0,0 +1,807 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.cloudsecuritycompliance.v1; + +/** + * + * + *
              + * The trend of a compliance metric.
              + * 
              + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Trend} + */ +@com.google.protobuf.Generated +public final class Trend extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.cloud.cloudsecuritycompliance.v1.Trend) + TrendOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Trend"); + } + + // Use Trend.newBuilder() to construct. + private Trend(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Trend() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.Trend.class, + com.google.cloud.cloudsecuritycompliance.v1.Trend.Builder.class); + } + + private int bitField0_; + public static final int DURATION_FIELD_NUMBER = 1; + private com.google.protobuf.Duration duration_; + + /** + * + * + *
              +   * Output only. The duration for the trend.
              +   * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duration field is set. + */ + @java.lang.Override + public boolean hasDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Output only. The duration for the trend.
              +   * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duration. + */ + @java.lang.Override + public com.google.protobuf.Duration getDuration() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + /** + * + * + *
              +   * Output only. The duration for the trend.
              +   * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + + public static final int VALUE_PERCENT_FIELD_NUMBER = 2; + private double valuePercent_ = 0D; + + /** + * + * + *
              +   * Output only. The trend value as a percentage. The value can be positive or
              +   * negative.
              +   * 
              + * + * double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The valuePercent. + */ + @java.lang.Override + public double getValuePercent() { + return valuePercent_; + } + + 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, getDuration()); + } + if (java.lang.Double.doubleToRawLongBits(valuePercent_) != 0) { + output.writeDouble(2, valuePercent_); + } + 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, getDuration()); + } + if (java.lang.Double.doubleToRawLongBits(valuePercent_) != 0) { + size += com.google.protobuf.CodedOutputStream.computeDoubleSize(2, valuePercent_); + } + 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.cloudsecuritycompliance.v1.Trend)) { + return super.equals(obj); + } + com.google.cloud.cloudsecuritycompliance.v1.Trend other = + (com.google.cloud.cloudsecuritycompliance.v1.Trend) obj; + + if (hasDuration() != other.hasDuration()) return false; + if (hasDuration()) { + if (!getDuration().equals(other.getDuration())) return false; + } + if (java.lang.Double.doubleToLongBits(getValuePercent()) + != java.lang.Double.doubleToLongBits(other.getValuePercent())) 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 (hasDuration()) { + hash = (37 * hash) + DURATION_FIELD_NUMBER; + hash = (53 * hash) + getDuration().hashCode(); + } + hash = (37 * hash) + VALUE_PERCENT_FIELD_NUMBER; + hash = + (53 * hash) + + com.google.protobuf.Internal.hashLong( + java.lang.Double.doubleToLongBits(getValuePercent())); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend 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.cloudsecuritycompliance.v1.Trend parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend 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.cloudsecuritycompliance.v1.Trend parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.cloud.cloudsecuritycompliance.v1.Trend prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * The trend of a compliance metric.
              +   * 
              + * + * Protobuf type {@code google.cloud.cloudsecuritycompliance.v1.Trend} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.cloud.cloudsecuritycompliance.v1.Trend) + com.google.cloud.cloudsecuritycompliance.v1.TrendOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.cloud.cloudsecuritycompliance.v1.Trend.class, + com.google.cloud.cloudsecuritycompliance.v1.Trend.Builder.class); + } + + // Construct using com.google.cloud.cloudsecuritycompliance.v1.Trend.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetDurationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + valuePercent_ = 0D; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.cloud.cloudsecuritycompliance.v1.MonitoringProto + .internal_static_google_cloud_cloudsecuritycompliance_v1_Trend_descriptor; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Trend getDefaultInstanceForType() { + return com.google.cloud.cloudsecuritycompliance.v1.Trend.getDefaultInstance(); + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Trend build() { + com.google.cloud.cloudsecuritycompliance.v1.Trend result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.cloud.cloudsecuritycompliance.v1.Trend buildPartial() { + com.google.cloud.cloudsecuritycompliance.v1.Trend result = + new com.google.cloud.cloudsecuritycompliance.v1.Trend(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.cloud.cloudsecuritycompliance.v1.Trend result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.duration_ = durationBuilder_ == null ? duration_ : durationBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.valuePercent_ = valuePercent_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.cloud.cloudsecuritycompliance.v1.Trend) { + return mergeFrom((com.google.cloud.cloudsecuritycompliance.v1.Trend) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.cloud.cloudsecuritycompliance.v1.Trend other) { + if (other == com.google.cloud.cloudsecuritycompliance.v1.Trend.getDefaultInstance()) + return this; + if (other.hasDuration()) { + mergeDuration(other.getDuration()); + } + if (java.lang.Double.doubleToRawLongBits(other.getValuePercent()) != 0) { + setValuePercent(other.getValuePercent()); + } + 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( + internalGetDurationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 17: + { + valuePercent_ = input.readDouble(); + bitField0_ |= 0x00000002; + break; + } // case 17 + 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 duration_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + durationBuilder_; + + /** + * + * + *
              +     * Output only. The duration for the trend.
              +     * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duration field is set. + */ + public boolean hasDuration() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Output only. The duration for the trend.
              +     * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duration. + */ + public com.google.protobuf.Duration getDuration() { + if (durationBuilder_ == null) { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } else { + return durationBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. The duration for the trend.
              +     * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + duration_ = value; + } else { + durationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The duration for the trend.
              +     * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setDuration(com.google.protobuf.Duration.Builder builderForValue) { + if (durationBuilder_ == null) { + duration_ = builderForValue.build(); + } else { + durationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The duration for the trend.
              +     * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeDuration(com.google.protobuf.Duration value) { + if (durationBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && duration_ != null + && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { + getDurationBuilder().mergeFrom(value); + } else { + duration_ = value; + } + } else { + durationBuilder_.mergeFrom(value); + } + if (duration_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. The duration for the trend.
              +     * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearDuration() { + bitField0_ = (bitField0_ & ~0x00000001); + duration_ = null; + if (durationBuilder_ != null) { + durationBuilder_.dispose(); + durationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The duration for the trend.
              +     * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Duration.Builder getDurationBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetDurationFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. The duration for the trend.
              +     * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { + if (durationBuilder_ != null) { + return durationBuilder_.getMessageOrBuilder(); + } else { + return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; + } + } + + /** + * + * + *
              +     * Output only. The duration for the trend.
              +     * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder> + internalGetDurationFieldBuilder() { + if (durationBuilder_ == null) { + durationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Duration, + com.google.protobuf.Duration.Builder, + com.google.protobuf.DurationOrBuilder>( + getDuration(), getParentForChildren(), isClean()); + duration_ = null; + } + return durationBuilder_; + } + + private double valuePercent_; + + /** + * + * + *
              +     * Output only. The trend value as a percentage. The value can be positive or
              +     * negative.
              +     * 
              + * + * double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The valuePercent. + */ + @java.lang.Override + public double getValuePercent() { + return valuePercent_; + } + + /** + * + * + *
              +     * Output only. The trend value as a percentage. The value can be positive or
              +     * negative.
              +     * 
              + * + * double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The valuePercent to set. + * @return This builder for chaining. + */ + public Builder setValuePercent(double value) { + + valuePercent_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The trend value as a percentage. The value can be positive or
              +     * negative.
              +     * 
              + * + * double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearValuePercent() { + bitField0_ = (bitField0_ & ~0x00000002); + valuePercent_ = 0D; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.cloud.cloudsecuritycompliance.v1.Trend) + } + + // @@protoc_insertion_point(class_scope:google.cloud.cloudsecuritycompliance.v1.Trend) + private static final com.google.cloud.cloudsecuritycompliance.v1.Trend DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.cloud.cloudsecuritycompliance.v1.Trend(); + } + + public static com.google.cloud.cloudsecuritycompliance.v1.Trend getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Trend 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.cloudsecuritycompliance.v1.Trend getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TrendOrBuilder.java b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TrendOrBuilder.java new file mode 100644 index 000000000000..853bda6bcedd --- /dev/null +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/java/com/google/cloud/cloudsecuritycompliance/v1/TrendOrBuilder.java @@ -0,0 +1,82 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/cloud/cloudsecuritycompliance/v1/monitoring.proto +// Protobuf Java Version: 4.33.2 + +package com.google.cloud.cloudsecuritycompliance.v1; + +@com.google.protobuf.Generated +public interface TrendOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.cloud.cloudsecuritycompliance.v1.Trend) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Output only. The duration for the trend.
              +   * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the duration field is set. + */ + boolean hasDuration(); + + /** + * + * + *
              +   * Output only. The duration for the trend.
              +   * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The duration. + */ + com.google.protobuf.Duration getDuration(); + + /** + * + * + *
              +   * Output only. The duration for the trend.
              +   * 
              + * + * .google.protobuf.Duration duration = 1 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.DurationOrBuilder getDurationOrBuilder(); + + /** + * + * + *
              +   * Output only. The trend value as a percentage. The value can be positive or
              +   * negative.
              +   * 
              + * + * double value_percent = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The valuePercent. + */ + double getValuePercent(); +} diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/common.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/common.proto index 5622291469d9..4f950a71499b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/common.proto +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/common.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -132,6 +132,18 @@ enum CloudControlCategory { // The business continuity and disaster recovery (BCDR) category. CC_CATEGORY_BCDR = 15; + + // The admin access category. + CC_CATEGORY_ADMIN_ACCESS = 16; + + // DRZ (Data Residency). + CC_CATEGORY_DATA_RESIDENCY = 17; + + // RUR (Resource Usage Restriction). + CC_CATEGORY_RESOURCE_USAGE_RESTRICTION = 18; + + // SERVICE SPECIFIC + CC_CATEGORY_SERVICE_SPECIFIC = 19; } // The cloud provider that's associated with the cloud control. @@ -240,6 +252,7 @@ message Framework { option (google.api.resource) = { type: "cloudsecuritycompliance.googleapis.com/Framework" pattern: "organizations/{organization}/locations/{location}/frameworks/{framework}" + pattern: "projects/{project}/locations/{location}/frameworks/{framework}" plural: "frameworks" singular: "framework" }; @@ -256,8 +269,12 @@ message Framework { CUSTOM = 2; } - // Required. Identifier. The name of the framework, in the format - // `organizations/{organization}/locations/{location}/frameworks/{framework_id}`. + // Required. Identifier. The name of the framework, in one of the following + // formats: + // `organizations/{organization}/locations/{location}/frameworks/{framework}` + // or + // `projects/{project}/locations/{location}/frameworks/{framework}`. + // // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -303,8 +320,11 @@ message Framework { // The details of a cloud control. message CloudControlDetails { - // Required. The name of the cloud control, in the format - // `organizations/{organization}/locations/{location}/cloudControls/{cloud-control}`. + // Required. The name of the cloud control, in one of the following formats: + // `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + // or + // `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + // // The only supported location is `global`. string name = 1 [(google.api.field_behavior) = REQUIRED]; @@ -318,13 +338,20 @@ message CloudControlDetails { repeated Parameter parameters = 4 [(google.api.field_behavior) = OPTIONAL]; } -// The reference of a framework, in the format -// `organizations/{organization}/locations/{location}/frameworks/{framework}`. +// The reference of a framework, in one of the following formats: +// - `organizations/{organization}/locations/{location}/frameworks/{framework}` +// - `projects/{project}/locations/{location}/frameworks/{framework}`. +// // The only supported location is `global`. message FrameworkReference { // Required. The major version of the framework. If not specified, the version // corresponds to the latest version of the framework. - string framework = 1 [(google.api.field_behavior) = REQUIRED]; + string framework = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "cloudsecuritycompliance.googleapis.com/Framework" + } + ]; // Optional. The major version of the framework. If not specified, the version // corresponds to the latest version of the framework. @@ -348,6 +375,7 @@ message CloudControl { option (google.api.resource) = { type: "cloudsecuritycompliance.googleapis.com/CloudControl" pattern: "organizations/{organization}/locations/{location}/cloudControls/{cloud_control}" + pattern: "projects/{project}/locations/{location}/cloudControls/{cloud_control}" plural: "cloudControls" singular: "cloudControl" }; @@ -364,8 +392,12 @@ message CloudControl { BUILT_IN = 2; } - // Required. Identifier. The name of the cloud control, in the format - // `organizations/{organization}/locations/{location}/cloudControls/{cloud_control_id}`. + // Required. Identifier. The name of the cloud control, in either of the + // formats: + // `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + // or + // `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + // // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -535,20 +567,20 @@ message StringList { message ParamValue { // The list of possible parameter value types. oneof kind { - // A string value. - string string_value = 3; + // Optional. A string value. + string string_value = 3 [(google.api.field_behavior) = OPTIONAL]; - // A boolean value. - bool bool_value = 4; + // Optional. A boolean value. + bool bool_value = 4 [(google.api.field_behavior) = OPTIONAL]; - // A repeated string. - StringList string_list_value = 5; + // Optional. A repeated string. + StringList string_list_value = 5 [(google.api.field_behavior) = OPTIONAL]; - // A double value. - double number_value = 6; + // Optional. A double value. + double number_value = 6 [(google.api.field_behavior) = OPTIONAL]; - // Sub-parameter values. - Parameter oneof_value = 7; + // Optional. Sub-parameter values. + Parameter oneof_value = 7 [(google.api.field_behavior) = OPTIONAL]; } } @@ -639,6 +671,135 @@ message OperationMetadata { string api_version = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; } +// The regulatory control. +message Control { + option (google.api.resource) = { + type: "cloudsecuritycompliance.googleapis.com/Control" + pattern: "organizations/{organization}/locations/{location}/controls/{control}" + pattern: "projects/{project}/locations/{location}/controls/{control}" + plural: "controls" + singular: "control" + }; + + // The regulatory control family. + enum Family { + // Default value. This value is unused. + FAMILY_UNSPECIFIED = 0; + + // Access control + AC = 1; + + // Awareness and araining + AT = 2; + + // Audit and accountability + AU = 3; + + // Certification, accreditation, and security assessments + CA = 4; + + // Configuration management + CM = 5; + + // Contingency planning + CP = 6; + + // Identification and authentication + IA = 7; + + // Incident response + IR = 8; + + // Maintenance + MA = 9; + + // Media protection + MP = 10; + + // Physical and environmental protection + PE = 11; + + // Security planning + PL = 12; + + // Personnel aecurity + PS = 13; + + // Risk assessment + RA = 14; + + // System services and acquisition + SA = 15; + + // System and communications protection + SC = 16; + + // System and information integrity + SI = 17; + + // Supply chain risk management + SR = 18; + } + + // Output only. The name of a regulatory control, in one of the following + // formats: + // - `organizations/{organization}/locations/{location}/controls/{control}` + // - `projects/{project}/locations/{location}/controls/{control}`. + // + // The only supported location is `global`. + string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The friendly name for the regulatory control. + string display_name = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The description of the regulatory control. + string description = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The regulatory group that the control belongs to. + Family family = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The regulatory family that the control belongs to. + ControlFamily control_family = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The entity that's responsible for the control, whether Google, + // you as the customer, or both. + RegulatoryControlResponsibilityType responsibility_type = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A description of Google's responsibility for the regulatory + // control. + string google_responsibility_description = 8 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A description of Google's responsibility for implementing the + // regulatory control. + string google_responsibility_implementation = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A description of your responsibility for the regulatory + // control. + string customer_responsibility_description = 10 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A description of the your responsibility for implementing the + // regulatory control. + string customer_responsibility_implementation = 11 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A description of the responsibility that's shared between + // Google and you in implementing this control. + string shared_responsibility_description = 12 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. A link to the documentation that's related to this control. + string additional_content_uri = 13 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The frameworks that include this control. + repeated string related_frameworks = 14 + [(google.api.field_behavior) = OUTPUT_ONLY]; +} + // The regulatory family of the control. message ControlFamily { // The identifier for the regulatory control family. diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/config.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/config.proto index 9ef74423c8e0..85c153b90b96 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/config.proto +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/config.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -46,6 +46,9 @@ service Config { rpc ListFrameworks(ListFrameworksRequest) returns (ListFrameworksResponse) { option (google.api.http) = { get: "/v1/{parent=organizations/*/locations/*}/frameworks" + additional_bindings { + get: "/v1/{parent=projects/*/locations/*}/frameworks" + } }; option (google.api.method_signature) = "parent"; } @@ -58,6 +61,9 @@ service Config { rpc GetFramework(GetFrameworkRequest) returns (Framework) { option (google.api.http) = { get: "/v1/{name=organizations/*/locations/*/frameworks/*}" + additional_bindings { + get: "/v1/{name=projects/*/locations/*/frameworks/*}" + } }; option (google.api.method_signature) = "name"; } @@ -69,6 +75,10 @@ service Config { option (google.api.http) = { post: "/v1/{parent=organizations/*/locations/*}/frameworks" body: "framework" + additional_bindings { + post: "/v1/{parent=projects/*/locations/*}/frameworks" + body: "framework" + } }; option (google.api.method_signature) = "parent,framework,framework_id"; } @@ -89,6 +99,10 @@ service Config { option (google.api.http) = { patch: "/v1/{framework.name=organizations/*/locations/*/frameworks/*}" body: "framework" + additional_bindings { + patch: "/v1/{framework.name=projects/*/locations/*/frameworks/*}" + body: "framework" + } }; option (google.api.method_signature) = "framework,update_mask"; } @@ -103,6 +117,9 @@ service Config { rpc DeleteFramework(DeleteFrameworkRequest) returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=organizations/*/locations/*/frameworks/*}" + additional_bindings { + delete: "/v1/{name=projects/*/locations/*/frameworks/*}" + } }; option (google.api.method_signature) = "name"; } @@ -115,6 +132,9 @@ service Config { returns (ListCloudControlsResponse) { option (google.api.http) = { get: "/v1/{parent=organizations/*/locations/*}/cloudControls" + additional_bindings { + get: "/v1/{parent=projects/*/locations/*}/cloudControls" + } }; option (google.api.method_signature) = "parent"; } @@ -129,6 +149,9 @@ service Config { rpc GetCloudControl(GetCloudControlRequest) returns (CloudControl) { option (google.api.http) = { get: "/v1/{name=organizations/*/locations/*/cloudControls/*}" + additional_bindings { + get: "/v1/{name=projects/*/locations/*/cloudControls/*}" + } }; option (google.api.method_signature) = "name"; } @@ -141,6 +164,10 @@ service Config { option (google.api.http) = { post: "/v1/{parent=organizations/*/locations/*}/cloudControls" body: "cloud_control" + additional_bindings { + post: "/v1/{parent=projects/*/locations/*}/cloudControls" + body: "cloud_control" + } }; option (google.api.method_signature) = "parent,cloud_control,cloud_control_id"; @@ -162,6 +189,10 @@ service Config { option (google.api.http) = { patch: "/v1/{cloud_control.name=organizations/*/locations/*/cloudControls/*}" body: "cloud_control" + additional_bindings { + patch: "/v1/{cloud_control.name=projects/*/locations/*/cloudControls/*}" + body: "cloud_control" + } }; option (google.api.method_signature) = "cloud_control,update_mask"; } @@ -178,6 +209,9 @@ service Config { returns (google.protobuf.Empty) { option (google.api.http) = { delete: "/v1/{name=organizations/*/locations/*/cloudControls/*}" + additional_bindings { + delete: "/v1/{name=projects/*/locations/*/cloudControls/*}" + } }; option (google.api.method_signature) = "name"; } @@ -185,8 +219,10 @@ service Config { // Request message for [ListFrameworks][]. message ListFrameworksRequest { - // Required. The parent resource name, in the format - // `organizations/{organization}/locations/{location}`. + // Required. The parent resource name, in one of the following formats: + // - `organizations/{organization}/locations/{location}` + // - `projects/{project}/locations/{location}`. + // // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -220,8 +256,12 @@ message ListFrameworksResponse { // The request message for [GetFramework][]. message GetFrameworkRequest { - // Required. The name of the framework to retrieve, in the format - // `organizations/{organization}/locations/{location}/frameworks/{framework_id}` + // Required. The name of the framework to retrieve, in one of the following + // formats: + // `organizations/{organization}/locations/{location}/frameworks/{framework}` + // or + // `projects/{project}/locations/{location}/frameworks/{framework}`. + // // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -237,8 +277,10 @@ message GetFrameworkRequest { // The request message for [CreateFramework][]. message CreateFrameworkRequest { - // Required. The parent resource name, in the format - // `organizations/{organization}/locations/{location}`. + // Required. The parent resource name, in one of the following formats: + // - `organizations/{organization}/locations/{location}` + // - `projects/{project}/locations/{location}`. + // // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -274,8 +316,11 @@ message UpdateFrameworkRequest { // Request message for [DeleteFramework][]. message DeleteFrameworkRequest { - // Required. The name of the resource, in the format - // `organizations/{organization}/locations/{location}/frameworks/{framework}`. + // Required. The name of the resource, in one of the following formats: + // `organizations/{organization}/locations/{location}/frameworks/{framework}` + // or + // `projects/{project}/locations/{location}/frameworks/{framework}`. + // // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -287,8 +332,10 @@ message DeleteFrameworkRequest { // Request message for [ListCloudControls][]. message ListCloudControlsRequest { - // Required. The parent resource name, in the format - // `organizations/{organization}/locations/{location}`. + // Required. The parent resource name, in one of the following formats: + // - `organizations/{organization}/locations/{location}` + // - `projects/{project}/locations/{location}`. + // // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -326,8 +373,12 @@ message ListCloudControlsResponse { // The request message for [GetCloudControl][]. message GetCloudControlRequest { - // Required. The name of the cloud control to retrieve, in the format - // `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}`. + // Required. The name of the cloud control to retrieve, in one of the + // following formats: + // `organizations/{organization}/locations/{location}/cloudControls/{cloud_control}` + // or + // `projects/{project}/locations/{location}/cloudControls/{cloud_control}`. + // // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -343,8 +394,10 @@ message GetCloudControlRequest { // The request message for [CreateCloudControl][]. message CreateCloudControlRequest { - // Required. The parent resource name, in the format - // `organizations/{organization}/locations/{location}`. + // Required. The parent resource name, in one of the following formats: + // - `organizations/{organization}/locations/{location}`. + // - `projects/{project}/locations/{location}`. + // // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -387,8 +440,12 @@ message UpdateCloudControlRequest { // The request message for [DeleteCloudControl][]. message DeleteCloudControlRequest { - // Required. The name of the cloud control to delete, in the format - // `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}`. + // Required. The name of the cloud control to delete, in one of the following + // formats: + // `organizations/{organization}/locations/{location}/CloudControls/{CloudControl}` + // or + // `projects/{project}/locations/{location}/CloudControls/{CloudControl}`. + // // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/deployment.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/deployment.proto index 343819f0f4bb..be772f7cfb90 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/deployment.proto +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/deployment.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -49,6 +49,10 @@ service Deployment { option (google.api.http) = { post: "/v1/{parent=organizations/*/locations/*}/frameworkDeployments" body: "framework_deployment" + additional_bindings { + post: "/v1/{parent=projects/*/locations/*}/frameworkDeployments" + body: "framework_deployment" + } }; option (google.api.method_signature) = "parent,framework_deployment,framework_deployment_id"; @@ -63,6 +67,9 @@ service Deployment { returns (google.longrunning.Operation) { option (google.api.http) = { delete: "/v1/{name=organizations/*/locations/*/frameworkDeployments/*}" + additional_bindings { + delete: "/v1/{name=projects/*/locations/*/frameworkDeployments/*}" + } }; option (google.api.method_signature) = "name"; option (google.longrunning.operation_info) = { @@ -76,6 +83,9 @@ service Deployment { returns (FrameworkDeployment) { option (google.api.http) = { get: "/v1/{name=organizations/*/locations/*/frameworkDeployments/*}" + additional_bindings { + get: "/v1/{name=projects/*/locations/*/frameworkDeployments/*}" + } }; option (google.api.method_signature) = "name"; } @@ -85,6 +95,9 @@ service Deployment { returns (ListFrameworkDeploymentsResponse) { option (google.api.http) = { get: "/v1/{parent=organizations/*/locations/*}/frameworkDeployments" + additional_bindings { + get: "/v1/{parent=projects/*/locations/*}/frameworkDeployments" + } }; option (google.api.method_signature) = "parent"; } @@ -94,6 +107,9 @@ service Deployment { returns (CloudControlDeployment) { option (google.api.http) = { get: "/v1/{name=organizations/*/locations/*/cloudControlDeployments/*}" + additional_bindings { + get: "/v1/{name=projects/*/locations/*/cloudControlDeployments/*}" + } }; option (google.api.method_signature) = "name"; } @@ -103,6 +119,9 @@ service Deployment { returns (ListCloudControlDeploymentsResponse) { option (google.api.http) = { get: "/v1/{parent=organizations/*/locations/*}/cloudControlDeployments" + additional_bindings { + get: "/v1/{parent=projects/*/locations/*}/cloudControlDeployments" + } }; option (google.api.method_signature) = "parent"; } @@ -122,6 +141,9 @@ enum DeploymentState { // Deployment is being deleted. DEPLOYMENT_STATE_DELETING = 3; + // Deployment is being updated. + DEPLOYMENT_STATE_UPDATING = 8; + // Deployment has failed. All the changes made by the deployment were // successfully rolled back. You can retry or delete a deployment that's // in this state. @@ -148,12 +170,15 @@ message FrameworkDeployment { option (google.api.resource) = { type: "cloudsecuritycompliance.googleapis.com/FrameworkDeployment" pattern: "organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}" + pattern: "projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}" plural: "frameworkDeployments" singular: "frameworkDeployment" }; // Identifier. The name of the framework deployment, in the format - // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + // or + // `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. // The only supported location is `global`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; @@ -236,12 +261,15 @@ message CloudControlDeployment { option (google.api.resource) = { type: "cloudsecuritycompliance.googleapis.com/CloudControlDeployment" pattern: "organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}" + pattern: "projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}" plural: "cloudControlDeployments" singular: "cloudControlDeployment" }; // Identifier. The name for the cloud control deployment, in the format - // `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + // `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + // or + // `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. // The only supported location is `global`. string name = 1 [(google.api.field_behavior) = IDENTIFIER]; @@ -372,7 +400,9 @@ message CloudControlMetadata { // The request message for [CreateFrameworkDeployment][]. message CreateFrameworkDeploymentRequest { // Required. The parent resource of the framework deployment in the format - // `organizations/{organization}/locations/{location}`. + // `organizations/{organization}/locations/{location}` + // or + // `projects/{project}/locations/{location}`. // Only the global location is supported. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -395,7 +425,9 @@ message CreateFrameworkDeploymentRequest { message DeleteFrameworkDeploymentRequest { // Required. The name of the framework deployment that you want to delete, // in the format - // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + // or + // `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -418,7 +450,9 @@ message DeleteFrameworkDeploymentRequest { // The request message for [GetFrameworkDeployment][]. message GetFrameworkDeploymentRequest { // Required. The name of the framework deployment, in the format - // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + // or + // `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -431,7 +465,9 @@ message GetFrameworkDeploymentRequest { // The request message for [ListFrameworkDeployments][]. message ListFrameworkDeploymentsRequest { // Required. The parent resource of the framework deployment, in the format - // `organizations/{organization}/locations/{location}`. + // `organizations/{organization}/locations/{location}` + // or + // `projects/{project}/locations/{location}`. // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, @@ -476,7 +512,9 @@ message ListFrameworkDeploymentsResponse { // The request message for [GetCloudControlDeployment][]. message GetCloudControlDeploymentRequest { // Required. The name for the cloud control deployment, in the format - // `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + // `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + // or + // `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. // The only supported location is `global`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -489,8 +527,9 @@ message GetCloudControlDeploymentRequest { // The request message for [ListCloudControlDeployments][]. message ListCloudControlDeploymentsRequest { // Required. The parent resource for the cloud control deployment, in the - // format `organizations/{organization}/locations/{location}`. The only - // supported location is `global`. + // format `organizations/{organization}/locations/{location}` or + // `projects/{project}/locations/{location}`. + // The only supported location is `global`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -534,7 +573,9 @@ message ListCloudControlDeploymentsResponse { // The reference to a cloud control deployment. message CloudControlDeploymentReference { // Output only. The name of the CloudControlDeployment. The format is - // `organizations/{org}/locations/{location}/cloudControlDeployments/{cloud_control_deployment_id}`. + // `organizations/{organization}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}` + // or + // `projects/{project}/locations/{location}/cloudControlDeployments/{cloud_control_deployment}`. // The only supported location is `global`. string cloud_control_deployment = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, @@ -547,7 +588,9 @@ message CloudControlDeploymentReference { // The reference to a framework deployment. message FrameworkDeploymentReference { // Output only. The name of the framework deployment, in the format - // `organizations/{org}/locations/{location}/frameworkDeployments/{framework_deployment_id}`. + // `organizations/{organization}/locations/{location}/frameworkDeployments/{framework_deployment}` + // or + // `projects/{project}/locations/{location}/frameworkDeployments/{framework_deployment}`. // The only supported location is `global`. string framework_deployment = 1 [ (google.api.field_behavior) = OUTPUT_ONLY, @@ -562,7 +605,7 @@ message FrameworkDeploymentReference { // ``` // { // framework: - // "organizations/{org}/locations/{location}/frameworks/{framework}", + // "organizations/{organization}/locations/{location}/frameworks/{framework}", // major_revision_id: 1 // } // ``` diff --git a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/monitoring.proto b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/monitoring.proto index a8c4fc0ff03e..b2a5c3eae33b 100644 --- a/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/monitoring.proto +++ b/java-cloudsecuritycompliance/proto-google-cloud-cloudsecuritycompliance-v1/src/main/proto/google/cloud/cloudsecuritycompliance/v1/monitoring.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -21,6 +21,7 @@ import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; import "google/cloud/cloudsecuritycompliance/v1/common.proto"; +import "google/protobuf/duration.proto"; import "google/protobuf/timestamp.proto"; import "google/type/interval.proto"; @@ -174,6 +175,23 @@ enum FindingClass { CHOKEPOINT = 9; } +// Specifies the view of the framework compliance summary to be returned. +// New values may be added in the future. +enum FrameworkComplianceSummaryView { + // The default / unset value. The API will default to the BASIC view. + FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_UNSPECIFIED = 0; + + // Includes basic compliance metadata, but omits trend data. + FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_BASIC = 1; + + // Includes all information, including + // [finding_count][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.finding_count] + // and + // [controls_passing_trend][google.cloud.cloudsecuritycompliance.v1main.FrameworkComplianceSummary.controls_passing_trend]. + // Trend data is provided for the last 30 days. + FRAMEWORK_COMPLIANCE_SUMMARY_VIEW_FULL = 2; +} + // The request message for // [ListFrameworkComplianceSummariesRequest][google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest]. message ListFrameworkComplianceSummariesRequest { @@ -195,6 +213,10 @@ message ListFrameworkComplianceSummariesRequest { // Optional. The filtering results. string filter = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the level of detail to return in the response. + FrameworkComplianceSummaryView view = 5 + [(google.api.field_behavior) = OPTIONAL]; } // The response message for @@ -269,6 +291,9 @@ message FetchFrameworkComplianceReportRequest { // Optional. The end time of the report. google.protobuf.Timestamp end_time = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The filtering results. + string filter = 3 [(google.api.field_behavior) = OPTIONAL]; } // The request message for [ListFindingSummaries][]. @@ -425,6 +450,12 @@ message FrameworkComplianceSummary { // The target resource details for the framework. repeated TargetResourceDetails target_resource_details = 10; + + // Output only. The count of the findings generated against the framework. + int64 finding_count = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The trend of controls that are passing for the given duration. + Trend controls_passing_trend = 12 [(google.api.field_behavior) = OUTPUT_ONLY]; } // The details for a finding. @@ -626,3 +657,14 @@ message TargetResourceDetails { // The minor revision ID of the framework for the target resource. int64 minor_revision_id = 7; } + +// The trend of a compliance metric. +message Trend { + // Output only. The duration for the trend. + google.protobuf.Duration duration = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The trend value as a percentage. The value can be positive or + // negative. + double value_percent = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; +} diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/createcloudcontrol/SyncCreateCloudControlLocationnameCloudcontrolString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/createcloudcontrol/SyncCreateCloudControlLocationnameCloudcontrolString.java new file mode 100644 index 000000000000..5b049d4b9c6b --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/createcloudcontrol/SyncCreateCloudControlLocationnameCloudcontrolString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Config_CreateCloudControl_LocationnameCloudcontrolString_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CloudControl; +import com.google.cloud.cloudsecuritycompliance.v1.ConfigClient; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncCreateCloudControlLocationnameCloudcontrolString { + + public static void main(String[] args) throws Exception { + syncCreateCloudControlLocationnameCloudcontrolString(); + } + + public static void syncCreateCloudControlLocationnameCloudcontrolString() 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 (ConfigClient configClient = ConfigClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + CloudControl cloudControl = CloudControl.newBuilder().build(); + String cloudControlId = "cloudControlId657324195"; + CloudControl response = configClient.createCloudControl(parent, cloudControl, cloudControlId); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Config_CreateCloudControl_LocationnameCloudcontrolString_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/createframework/SyncCreateFrameworkLocationnameFrameworkString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/createframework/SyncCreateFrameworkLocationnameFrameworkString.java new file mode 100644 index 000000000000..da22848751a0 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/createframework/SyncCreateFrameworkLocationnameFrameworkString.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Config_CreateFramework_LocationnameFrameworkString_sync] +import com.google.cloud.cloudsecuritycompliance.v1.ConfigClient; +import com.google.cloud.cloudsecuritycompliance.v1.Framework; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncCreateFrameworkLocationnameFrameworkString { + + public static void main(String[] args) throws Exception { + syncCreateFrameworkLocationnameFrameworkString(); + } + + public static void syncCreateFrameworkLocationnameFrameworkString() 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 (ConfigClient configClient = ConfigClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + Framework framework = Framework.newBuilder().build(); + String frameworkId = "frameworkId886666169"; + Framework response = configClient.createFramework(parent, framework, frameworkId); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Config_CreateFramework_LocationnameFrameworkString_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/AsyncDeleteCloudControl.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/AsyncDeleteCloudControl.java index 35f226f22b40..50e7f4c2496a 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/AsyncDeleteCloudControl.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/AsyncDeleteCloudControl.java @@ -39,7 +39,9 @@ public static void asyncDeleteCloudControl() throws Exception { DeleteCloudControlRequest request = DeleteCloudControlRequest.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .build(); ApiFuture future = configClient.deleteCloudControlCallable().futureCall(request); // Do something. diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControl.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControl.java index b9c65f321b6f..0158b800419d 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControl.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControl.java @@ -38,7 +38,9 @@ public static void syncDeleteCloudControl() throws Exception { DeleteCloudControlRequest request = DeleteCloudControlRequest.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .build(); configClient.deleteCloudControl(request); } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControlCloudcontrolname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControlCloudcontrolname.java index 7d3fdb85f833..1290aec91cd0 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControlCloudcontrolname.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControlCloudcontrolname.java @@ -35,7 +35,8 @@ public static void syncDeleteCloudControlCloudcontrolname() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ConfigClient configClient = ConfigClient.create()) { CloudControlName name = - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); configClient.deleteCloudControl(name); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControlString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControlString.java index f5749adcc426..9fd20b3f05b9 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControlString.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deletecloudcontrol/SyncDeleteCloudControlString.java @@ -35,7 +35,9 @@ public static void syncDeleteCloudControlString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ConfigClient configClient = ConfigClient.create()) { String name = - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString(); + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString(); configClient.deleteCloudControl(name); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/AsyncDeleteFramework.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/AsyncDeleteFramework.java index 28823e36244c..eb98bdfa86c8 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/AsyncDeleteFramework.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/AsyncDeleteFramework.java @@ -38,7 +38,10 @@ public static void asyncDeleteFramework() throws Exception { try (ConfigClient configClient = ConfigClient.create()) { DeleteFrameworkRequest request = DeleteFrameworkRequest.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .build(); ApiFuture future = configClient.deleteFrameworkCallable().futureCall(request); // Do something. diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFramework.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFramework.java index 671e01aee941..d5ad36394ef8 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFramework.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFramework.java @@ -37,7 +37,10 @@ public static void syncDeleteFramework() throws Exception { try (ConfigClient configClient = ConfigClient.create()) { DeleteFrameworkRequest request = DeleteFrameworkRequest.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .build(); configClient.deleteFramework(request); } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFrameworkFrameworkname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFrameworkFrameworkname.java index 4c23e6e2ab43..3f9b93309ddc 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFrameworkFrameworkname.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFrameworkFrameworkname.java @@ -34,7 +34,9 @@ public static void syncDeleteFrameworkFrameworkname() throws Exception { // - 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 (ConfigClient configClient = ConfigClient.create()) { - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); configClient.deleteFramework(name); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFrameworkString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFrameworkString.java index 67efa31bb940..dac830175903 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFrameworkString.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/deleteframework/SyncDeleteFrameworkString.java @@ -34,7 +34,10 @@ public static void syncDeleteFrameworkString() throws Exception { // - 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 (ConfigClient configClient = ConfigClient.create()) { - String name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString(); + String name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString(); configClient.deleteFramework(name); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/AsyncGetCloudControl.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/AsyncGetCloudControl.java index 2fa385c79a91..4f8bf1ff3da0 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/AsyncGetCloudControl.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/AsyncGetCloudControl.java @@ -39,7 +39,9 @@ public static void asyncGetCloudControl() throws Exception { GetCloudControlRequest request = GetCloudControlRequest.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .build(); ApiFuture future = configClient.getCloudControlCallable().futureCall(request); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControl.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControl.java index 01db38b62f1e..cef78fee1533 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControl.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControl.java @@ -38,7 +38,9 @@ public static void syncGetCloudControl() throws Exception { GetCloudControlRequest request = GetCloudControlRequest.newBuilder() .setName( - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString()) + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString()) .setMajorRevisionId(612576889) .build(); CloudControl response = configClient.getCloudControl(request); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControlCloudcontrolname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControlCloudcontrolname.java index 8a773d52bde7..0afbb877564f 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControlCloudcontrolname.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControlCloudcontrolname.java @@ -35,7 +35,8 @@ public static void syncGetCloudControlCloudcontrolname() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ConfigClient configClient = ConfigClient.create()) { CloudControlName name = - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]"); CloudControl response = configClient.getCloudControl(name); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControlString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControlString.java index 3332e448aa80..8072da832781 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControlString.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getcloudcontrol/SyncGetCloudControlString.java @@ -35,7 +35,9 @@ public static void syncGetCloudControlString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (ConfigClient configClient = ConfigClient.create()) { String name = - CloudControlName.of("[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]").toString(); + CloudControlName.ofOrganizationLocationCloudControlName( + "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL]") + .toString(); CloudControl response = configClient.getCloudControl(name); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/AsyncGetFramework.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/AsyncGetFramework.java index 70e47e2030f4..004466255458 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/AsyncGetFramework.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/AsyncGetFramework.java @@ -38,7 +38,10 @@ public static void asyncGetFramework() throws Exception { try (ConfigClient configClient = ConfigClient.create()) { GetFrameworkRequest request = GetFrameworkRequest.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .build(); ApiFuture future = configClient.getFrameworkCallable().futureCall(request); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFramework.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFramework.java index aec490a8b389..2a146c1f676d 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFramework.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFramework.java @@ -37,7 +37,10 @@ public static void syncGetFramework() throws Exception { try (ConfigClient configClient = ConfigClient.create()) { GetFrameworkRequest request = GetFrameworkRequest.newBuilder() - .setName(FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString()) + .setName( + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString()) .setMajorRevisionId(612576889) .build(); Framework response = configClient.getFramework(request); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFrameworkFrameworkname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFrameworkFrameworkname.java index 940258612a3d..e68826da1026 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFrameworkFrameworkname.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFrameworkFrameworkname.java @@ -34,7 +34,9 @@ public static void syncGetFrameworkFrameworkname() throws Exception { // - 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 (ConfigClient configClient = ConfigClient.create()) { - FrameworkName name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); + FrameworkName name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]"); Framework response = configClient.getFramework(name); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFrameworkString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFrameworkString.java index 6ecc6109dee1..6db33c8a3aaa 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFrameworkString.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/getframework/SyncGetFrameworkString.java @@ -34,7 +34,10 @@ public static void syncGetFrameworkString() throws Exception { // - 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 (ConfigClient configClient = ConfigClient.create()) { - String name = FrameworkName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]").toString(); + String name = + FrameworkName.ofOrganizationLocationFrameworkName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK]") + .toString(); Framework response = configClient.getFramework(name); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/listcloudcontrols/SyncListCloudControlsLocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/listcloudcontrols/SyncListCloudControlsLocationname.java new file mode 100644 index 000000000000..c8545c43cdcf --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/listcloudcontrols/SyncListCloudControlsLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Config_ListCloudControls_Locationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CloudControl; +import com.google.cloud.cloudsecuritycompliance.v1.ConfigClient; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncListCloudControlsLocationname { + + public static void main(String[] args) throws Exception { + syncListCloudControlsLocationname(); + } + + public static void syncListCloudControlsLocationname() 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 (ConfigClient configClient = ConfigClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CloudControl element : configClient.listCloudControls(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Config_ListCloudControls_Locationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/listframeworks/SyncListFrameworksLocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/listframeworks/SyncListFrameworksLocationname.java new file mode 100644 index 000000000000..2a135e5734d9 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/config/listframeworks/SyncListFrameworksLocationname.java @@ -0,0 +1,44 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Config_ListFrameworks_Locationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.ConfigClient; +import com.google.cloud.cloudsecuritycompliance.v1.Framework; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncListFrameworksLocationname { + + public static void main(String[] args) throws Exception { + syncListFrameworksLocationname(); + } + + public static void syncListFrameworksLocationname() 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 (ConfigClient configClient = ConfigClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (Framework element : configClient.listFrameworks(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Config_ListFrameworks_Locationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/createframeworkdeployment/SyncCreateFrameworkDeploymentLocationnameFrameworkdeploymentString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/createframeworkdeployment/SyncCreateFrameworkDeploymentLocationnameFrameworkdeploymentString.java new file mode 100644 index 000000000000..0c1253db2838 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/createframeworkdeployment/SyncCreateFrameworkDeploymentLocationnameFrameworkdeploymentString.java @@ -0,0 +1,48 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Deployment_CreateFrameworkDeployment_LocationnameFrameworkdeploymentString_sync] +import com.google.cloud.cloudsecuritycompliance.v1.DeploymentClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncCreateFrameworkDeploymentLocationnameFrameworkdeploymentString { + + public static void main(String[] args) throws Exception { + syncCreateFrameworkDeploymentLocationnameFrameworkdeploymentString(); + } + + public static void syncCreateFrameworkDeploymentLocationnameFrameworkdeploymentString() + 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 (DeploymentClient deploymentClient = DeploymentClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + FrameworkDeployment frameworkDeployment = FrameworkDeployment.newBuilder().build(); + String frameworkDeploymentId = "frameworkDeploymentId-1244700706"; + FrameworkDeployment response = + deploymentClient + .createFrameworkDeploymentAsync(parent, frameworkDeployment, frameworkDeploymentId) + .get(); + } + } +} +// [END cloudsecuritycompliance_v1_generated_Deployment_CreateFrameworkDeployment_LocationnameFrameworkdeploymentString_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/AsyncDeleteFrameworkDeployment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/AsyncDeleteFrameworkDeployment.java index d36c1a04bf2d..ffeda4aa53fe 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/AsyncDeleteFrameworkDeployment.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/AsyncDeleteFrameworkDeployment.java @@ -39,7 +39,7 @@ public static void asyncDeleteFrameworkDeployment() throws Exception { DeleteFrameworkDeploymentRequest request = DeleteFrameworkDeploymentRequest.newBuilder() .setName( - FrameworkDeploymentName.of( + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setEtag("etag3123477") diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/AsyncDeleteFrameworkDeploymentLRO.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/AsyncDeleteFrameworkDeploymentLRO.java index 6ae82bfddc35..63174657a84d 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/AsyncDeleteFrameworkDeploymentLRO.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/AsyncDeleteFrameworkDeploymentLRO.java @@ -40,7 +40,7 @@ public static void asyncDeleteFrameworkDeploymentLRO() throws Exception { DeleteFrameworkDeploymentRequest request = DeleteFrameworkDeploymentRequest.newBuilder() .setName( - FrameworkDeploymentName.of( + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setEtag("etag3123477") diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeployment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeployment.java index d29c1086f745..1bee55697c8a 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeployment.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeployment.java @@ -38,7 +38,7 @@ public static void syncDeleteFrameworkDeployment() throws Exception { DeleteFrameworkDeploymentRequest request = DeleteFrameworkDeploymentRequest.newBuilder() .setName( - FrameworkDeploymentName.of( + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .setEtag("etag3123477") diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeploymentFrameworkdeploymentname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeploymentFrameworkdeploymentname.java index fd5489a4eabd..77d6d29a774d 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeploymentFrameworkdeploymentname.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeploymentFrameworkdeploymentname.java @@ -35,7 +35,8 @@ public static void syncDeleteFrameworkDeploymentFrameworkdeploymentname() throws // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeploymentClient deploymentClient = DeploymentClient.create()) { FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); deploymentClient.deleteFrameworkDeploymentAsync(name).get(); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeploymentString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeploymentString.java index 5c02d324dcfb..d3b76ac9b36f 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeploymentString.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/deleteframeworkdeployment/SyncDeleteFrameworkDeploymentString.java @@ -35,7 +35,8 @@ public static void syncDeleteFrameworkDeploymentString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeploymentClient deploymentClient = DeploymentClient.create()) { String name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString(); deploymentClient.deleteFrameworkDeploymentAsync(name).get(); } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/AsyncGetCloudControlDeployment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/AsyncGetCloudControlDeployment.java index 1d5b21efc1e7..7329a20bdb2f 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/AsyncGetCloudControlDeployment.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/AsyncGetCloudControlDeployment.java @@ -39,7 +39,7 @@ public static void asyncGetCloudControlDeployment() throws Exception { GetCloudControlDeploymentRequest request = GetCloudControlDeploymentRequest.newBuilder() .setName( - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") .toString()) .build(); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeployment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeployment.java index 20cd7c810800..145e1db7bef3 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeployment.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeployment.java @@ -38,7 +38,7 @@ public static void syncGetCloudControlDeployment() throws Exception { GetCloudControlDeploymentRequest request = GetCloudControlDeploymentRequest.newBuilder() .setName( - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") .toString()) .build(); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeploymentCloudcontroldeploymentname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeploymentCloudcontroldeploymentname.java index c85a649ff55e..ae7b36a34803 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeploymentCloudcontroldeploymentname.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeploymentCloudcontroldeploymentname.java @@ -35,7 +35,7 @@ public static void syncGetCloudControlDeploymentCloudcontroldeploymentname() thr // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeploymentClient deploymentClient = DeploymentClient.create()) { CloudControlDeploymentName name = - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]"); CloudControlDeployment response = deploymentClient.getCloudControlDeployment(name); } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeploymentString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeploymentString.java index 9a15dc6b618b..e435f73ba033 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeploymentString.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getcloudcontroldeployment/SyncGetCloudControlDeploymentString.java @@ -35,7 +35,7 @@ public static void syncGetCloudControlDeploymentString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeploymentClient deploymentClient = DeploymentClient.create()) { String name = - CloudControlDeploymentName.of( + CloudControlDeploymentName.ofOrganizationLocationCloudControlDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[CLOUD_CONTROL_DEPLOYMENT]") .toString(); CloudControlDeployment response = deploymentClient.getCloudControlDeployment(name); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/AsyncGetFrameworkDeployment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/AsyncGetFrameworkDeployment.java index 5b5fe8f3d918..a83cb203041e 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/AsyncGetFrameworkDeployment.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/AsyncGetFrameworkDeployment.java @@ -39,7 +39,7 @@ public static void asyncGetFrameworkDeployment() throws Exception { GetFrameworkDeploymentRequest request = GetFrameworkDeploymentRequest.newBuilder() .setName( - FrameworkDeploymentName.of( + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .build(); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeployment.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeployment.java index 8350fd3ace76..0808213ca796 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeployment.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeployment.java @@ -38,7 +38,7 @@ public static void syncGetFrameworkDeployment() throws Exception { GetFrameworkDeploymentRequest request = GetFrameworkDeploymentRequest.newBuilder() .setName( - FrameworkDeploymentName.of( + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString()) .build(); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeploymentFrameworkdeploymentname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeploymentFrameworkdeploymentname.java index 80f2a59c4444..29c1221243f4 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeploymentFrameworkdeploymentname.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeploymentFrameworkdeploymentname.java @@ -35,7 +35,8 @@ public static void syncGetFrameworkDeploymentFrameworkdeploymentname() throws Ex // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeploymentClient deploymentClient = DeploymentClient.create()) { FrameworkDeploymentName name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]"); FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name); } } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeploymentString.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeploymentString.java index 9224e4d4deb1..d0356969565e 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeploymentString.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/getframeworkdeployment/SyncGetFrameworkDeploymentString.java @@ -35,7 +35,8 @@ public static void syncGetFrameworkDeploymentString() throws Exception { // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library try (DeploymentClient deploymentClient = DeploymentClient.create()) { String name = - FrameworkDeploymentName.of("[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") + FrameworkDeploymentName.ofOrganizationLocationFrameworkDeploymentName( + "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_DEPLOYMENT]") .toString(); FrameworkDeployment response = deploymentClient.getFrameworkDeployment(name); } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/listcloudcontroldeployments/SyncListCloudControlDeploymentsLocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/listcloudcontroldeployments/SyncListCloudControlDeploymentsLocationname.java new file mode 100644 index 000000000000..4247001ea674 --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/listcloudcontroldeployments/SyncListCloudControlDeploymentsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Deployment_ListCloudControlDeployments_Locationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.CloudControlDeployment; +import com.google.cloud.cloudsecuritycompliance.v1.DeploymentClient; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncListCloudControlDeploymentsLocationname { + + public static void main(String[] args) throws Exception { + syncListCloudControlDeploymentsLocationname(); + } + + public static void syncListCloudControlDeploymentsLocationname() 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 (DeploymentClient deploymentClient = DeploymentClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (CloudControlDeployment element : + deploymentClient.listCloudControlDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Deployment_ListCloudControlDeployments_Locationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/listframeworkdeployments/SyncListFrameworkDeploymentsLocationname.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/listframeworkdeployments/SyncListFrameworkDeploymentsLocationname.java new file mode 100644 index 000000000000..44bedead005e --- /dev/null +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/deployment/listframeworkdeployments/SyncListFrameworkDeploymentsLocationname.java @@ -0,0 +1,45 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.cloud.cloudsecuritycompliance.v1.samples; + +// [START cloudsecuritycompliance_v1_generated_Deployment_ListFrameworkDeployments_Locationname_sync] +import com.google.cloud.cloudsecuritycompliance.v1.DeploymentClient; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkDeployment; +import com.google.cloud.cloudsecuritycompliance.v1.LocationName; + +public class SyncListFrameworkDeploymentsLocationname { + + public static void main(String[] args) throws Exception { + syncListFrameworkDeploymentsLocationname(); + } + + public static void syncListFrameworkDeploymentsLocationname() 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 (DeploymentClient deploymentClient = DeploymentClient.create()) { + LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]"); + for (FrameworkDeployment element : + deploymentClient.listFrameworkDeployments(parent).iterateAll()) { + // doThingsWith(element); + } + } + } +} +// [END cloudsecuritycompliance_v1_generated_Deployment_ListFrameworkDeployments_Locationname_sync] diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/AsyncFetchFrameworkComplianceReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/AsyncFetchFrameworkComplianceReport.java index 8e914f53bba0..3ede4443ec27 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/AsyncFetchFrameworkComplianceReport.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/AsyncFetchFrameworkComplianceReport.java @@ -44,6 +44,7 @@ public static void asyncFetchFrameworkComplianceReport() throws Exception { "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") .toString()) .setEndTime(Timestamp.newBuilder().build()) + .setFilter("filter-1274492040") .build(); ApiFuture future = monitoringClient.fetchFrameworkComplianceReportCallable().futureCall(request); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java index cd741757524b..9f38c305d1c8 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/fetchframeworkcompliancereport/SyncFetchFrameworkComplianceReport.java @@ -43,6 +43,7 @@ public static void syncFetchFrameworkComplianceReport() throws Exception { "[ORGANIZATION]", "[LOCATION]", "[FRAMEWORK_COMPLIANCE_REPORT]") .toString()) .setEndTime(Timestamp.newBuilder().build()) + .setFilter("filter-1274492040") .build(); FrameworkComplianceReport response = monitoringClient.fetchFrameworkComplianceReport(request); } diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummaries.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummaries.java index 1de2debd357c..61627dc5488d 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummaries.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummaries.java @@ -19,6 +19,7 @@ // [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_async] import com.google.api.core.ApiFuture; import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView; import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; import com.google.cloud.cloudsecuritycompliance.v1.LocationName; import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; @@ -42,6 +43,7 @@ public static void asyncListFrameworkComplianceSummaries() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setView(FrameworkComplianceSummaryView.forNumber(0)) .build(); ApiFuture future = monitoringClient.listFrameworkComplianceSummariesPagedCallable().futureCall(request); diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummariesPaged.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummariesPaged.java index 24e3bb2462c3..d1aad1d5d6fe 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummariesPaged.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/AsyncListFrameworkComplianceSummariesPaged.java @@ -18,6 +18,7 @@ // [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_Paged_async] import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView; import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesResponse; import com.google.cloud.cloudsecuritycompliance.v1.LocationName; @@ -43,6 +44,7 @@ public static void asyncListFrameworkComplianceSummariesPaged() throws Exception .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setView(FrameworkComplianceSummaryView.forNumber(0)) .build(); while (true) { ListFrameworkComplianceSummariesResponse response = diff --git a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummaries.java b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummaries.java index 985b21cbb3a6..f2fa523f36bb 100644 --- a/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummaries.java +++ b/java-cloudsecuritycompliance/samples/snippets/generated/com/google/cloud/cloudsecuritycompliance/v1/monitoring/listframeworkcompliancesummaries/SyncListFrameworkComplianceSummaries.java @@ -18,6 +18,7 @@ // [START cloudsecuritycompliance_v1_generated_Monitoring_ListFrameworkComplianceSummaries_sync] import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummary; +import com.google.cloud.cloudsecuritycompliance.v1.FrameworkComplianceSummaryView; import com.google.cloud.cloudsecuritycompliance.v1.ListFrameworkComplianceSummariesRequest; import com.google.cloud.cloudsecuritycompliance.v1.LocationName; import com.google.cloud.cloudsecuritycompliance.v1.MonitoringClient; @@ -41,6 +42,7 @@ public static void syncListFrameworkComplianceSummaries() throws Exception { .setPageSize(883849137) .setPageToken("pageToken873572522") .setFilter("filter-1274492040") + .setView(FrameworkComplianceSummaryView.forNumber(0)) .build(); for (FrameworkComplianceSummary element : monitoringClient.listFrameworkComplianceSummaries(request).iterateAll()) { From 24ba165b96f6ba4ff9bf9651a152c0a284c9340d Mon Sep 17 00:00:00 2001 From: Diego Date: Thu, 23 Apr 2026 09:23:24 -0400 Subject: [PATCH 17/19] fix(iam-policy): update owlbot yaml pointing to old folder --- java-iam-policy/.OwlBot-hermetic.yaml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/java-iam-policy/.OwlBot-hermetic.yaml b/java-iam-policy/.OwlBot-hermetic.yaml index 758aec6b3844..2ef1c1ef9084 100644 --- a/java-iam-policy/.OwlBot-hermetic.yaml +++ b/java-iam-policy/.OwlBot-hermetic.yaml @@ -14,8 +14,8 @@ deep-remove-regex: - - "/java-iam/grpc-google-.*/src" - - "/java-iam/proto-google-.*/src" + - "/java-iam-policy/grpc-google-.*/src" + - "/java-iam-policy/proto-google-.*/src" deep-preserve-regex: - "/.*google-.*/src/main/java/.*/stub/Version.java" @@ -24,12 +24,12 @@ deep-preserve-regex: deep-copy-regex: - source: "/google/iam/v2beta/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iam/v2beta/google-iam-policy/src" + dest: "/owl-bot-staging/java-iam-policy/v2beta/google-iam-policy/src" - source: "/google/iam/v2/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iam/v2/google-iam-policy/src" + dest: "/owl-bot-staging/java-iam-policy/v2/google-iam-policy/src" - source: "/google/iam/v3/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iam/v3/google-iam-policy/src" + dest: "/owl-bot-staging/java-iam-policy/v3/google-iam-policy/src" - source: "/google/iam/v3beta/.*-java/gapic-google-.*/src" - dest: "/owl-bot-staging/java-iam/v3beta/google-iam-policy/src" + dest: "/owl-bot-staging/java-iam-policy/v3beta/google-iam-policy/src" -api-name: iam +api-name: iam-policy From 0a5fe8e0a744784a026eb882576fcf967990a552 Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 23 Apr 2026 20:33:09 +0000 Subject: [PATCH 18/19] chore: generate libraries at Thu Apr 23 18:56:44 UTC 2026 --- .../google/iam/v3beta/AccessPoliciesGrpc.java | 1067 ++++ .../google/iam/v3beta/PolicyBindingsGrpc.java | 40 +- .../iam/v3beta/AccessPoliciesProto.java | 280 + .../com/google/iam/v3beta/AccessPolicy.java | 2545 ++++++++++ .../iam/v3beta/AccessPolicyDetails.java | 965 ++++ .../v3beta/AccessPolicyDetailsOrBuilder.java | 93 + .../google/iam/v3beta/AccessPolicyName.java | 449 ++ .../iam/v3beta/AccessPolicyOrBuilder.java | 358 ++ .../v3beta/AccessPolicyResourcesProto.java | 215 + .../google/iam/v3beta/AccessPolicyRule.java | 4521 +++++++++++++++++ .../iam/v3beta/AccessPolicyRuleOrBuilder.java | 638 +++ .../iam/v3beta/CreateAccessPolicyRequest.java | 1315 +++++ .../CreateAccessPolicyRequestOrBuilder.java | 169 + .../iam/v3beta/DeleteAccessPolicyRequest.java | 1050 ++++ .../DeleteAccessPolicyRequestOrBuilder.java | 126 + .../iam/v3beta/GetAccessPolicyRequest.java | 651 +++ .../GetAccessPolicyRequestOrBuilder.java | 70 + .../iam/v3beta/ListAccessPoliciesRequest.java | 1003 ++++ .../ListAccessPoliciesRequestOrBuilder.java | 127 + .../v3beta/ListAccessPoliciesResponse.java | 1122 ++++ .../ListAccessPoliciesResponseOrBuilder.java | 112 + .../iam/v3beta/ListPolicyBindingsRequest.java | 33 +- .../ListPolicyBindingsRequestOrBuilder.java | 9 +- .../com/google/iam/v3beta/PolicyBinding.java | 814 ++- .../iam/v3beta/PolicyBindingOrBuilder.java | 51 +- .../v3beta/PolicyBindingResourcesProto.java | 28 +- .../v3beta/PolicyBindingsServiceProto.java | 106 +- .../SearchAccessPolicyBindingsRequest.java | 991 ++++ ...hAccessPolicyBindingsRequestOrBuilder.java | 123 + .../SearchAccessPolicyBindingsResponse.java | 1124 ++++ ...AccessPolicyBindingsResponseOrBuilder.java | 112 + .../SearchTargetPolicyBindingsRequest.java | 264 +- ...hTargetPolicyBindingsRequestOrBuilder.java | 47 +- .../iam/v3beta/UpdateAccessPolicyRequest.java | 860 ++++ .../UpdateAccessPolicyRequestOrBuilder.java | 94 + .../iam/v3beta/access_policies_service.proto | 329 ++ .../iam/v3beta/access_policy_resources.proto | 216 + .../iam/v3beta/operation_metadata.proto | 2 +- .../iam/v3beta/policy_binding_resources.proto | 78 +- .../iam/v3beta/policy_bindings_service.proto | 31 +- ...pal_access_boundary_policies_service.proto | 2 +- ...pal_access_boundary_policy_resources.proto | 2 +- 42 files changed, 21861 insertions(+), 371 deletions(-) create mode 100644 java-iam/grpc-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPoliciesGrpc.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPoliciesProto.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicy.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyDetails.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyDetailsOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyName.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyResourcesProto.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyRule.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyRuleOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/CreateAccessPolicyRequest.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/CreateAccessPolicyRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/DeleteAccessPolicyRequest.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/DeleteAccessPolicyRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/GetAccessPolicyRequest.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/GetAccessPolicyRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesRequest.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesResponse.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesResponseOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsRequest.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsResponse.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsResponseOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/UpdateAccessPolicyRequest.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/UpdateAccessPolicyRequestOrBuilder.java create mode 100644 java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/access_policies_service.proto create mode 100644 java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/access_policy_resources.proto diff --git a/java-iam/grpc-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPoliciesGrpc.java b/java-iam/grpc-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPoliciesGrpc.java new file mode 100644 index 000000000000..3b5fdfbff12b --- /dev/null +++ b/java-iam/grpc-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPoliciesGrpc.java @@ -0,0 +1,1067 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.iam.v3beta; + +import static io.grpc.MethodDescriptor.generateFullMethodName; + +/** + * + * + *
              + * Manages Identity and Access Management (IAM) access policies.
              + * 
              + */ +@io.grpc.stub.annotations.GrpcGenerated +public final class AccessPoliciesGrpc { + + private AccessPoliciesGrpc() {} + + public static final java.lang.String SERVICE_NAME = "google.iam.v3beta.AccessPolicies"; + + // Static method descriptors that strictly reflect the proto. + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3beta.CreateAccessPolicyRequest, com.google.longrunning.Operation> + getCreateAccessPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CreateAccessPolicy", + requestType = com.google.iam.v3beta.CreateAccessPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3beta.CreateAccessPolicyRequest, com.google.longrunning.Operation> + getCreateAccessPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3beta.CreateAccessPolicyRequest, com.google.longrunning.Operation> + getCreateAccessPolicyMethod; + if ((getCreateAccessPolicyMethod = AccessPoliciesGrpc.getCreateAccessPolicyMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getCreateAccessPolicyMethod = AccessPoliciesGrpc.getCreateAccessPolicyMethod) + == null) { + AccessPoliciesGrpc.getCreateAccessPolicyMethod = + getCreateAccessPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateAccessPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3beta.CreateAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("CreateAccessPolicy")) + .build(); + } + } + } + return getCreateAccessPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3beta.GetAccessPolicyRequest, com.google.iam.v3beta.AccessPolicy> + getGetAccessPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "GetAccessPolicy", + requestType = com.google.iam.v3beta.GetAccessPolicyRequest.class, + responseType = com.google.iam.v3beta.AccessPolicy.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3beta.GetAccessPolicyRequest, com.google.iam.v3beta.AccessPolicy> + getGetAccessPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3beta.GetAccessPolicyRequest, com.google.iam.v3beta.AccessPolicy> + getGetAccessPolicyMethod; + if ((getGetAccessPolicyMethod = AccessPoliciesGrpc.getGetAccessPolicyMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getGetAccessPolicyMethod = AccessPoliciesGrpc.getGetAccessPolicyMethod) == null) { + AccessPoliciesGrpc.getGetAccessPolicyMethod = + getGetAccessPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetAccessPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3beta.GetAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3beta.AccessPolicy.getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("GetAccessPolicy")) + .build(); + } + } + } + return getGetAccessPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3beta.UpdateAccessPolicyRequest, com.google.longrunning.Operation> + getUpdateAccessPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UpdateAccessPolicy", + requestType = com.google.iam.v3beta.UpdateAccessPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3beta.UpdateAccessPolicyRequest, com.google.longrunning.Operation> + getUpdateAccessPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3beta.UpdateAccessPolicyRequest, com.google.longrunning.Operation> + getUpdateAccessPolicyMethod; + if ((getUpdateAccessPolicyMethod = AccessPoliciesGrpc.getUpdateAccessPolicyMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getUpdateAccessPolicyMethod = AccessPoliciesGrpc.getUpdateAccessPolicyMethod) + == null) { + AccessPoliciesGrpc.getUpdateAccessPolicyMethod = + getUpdateAccessPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateAccessPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3beta.UpdateAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("UpdateAccessPolicy")) + .build(); + } + } + } + return getUpdateAccessPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3beta.DeleteAccessPolicyRequest, com.google.longrunning.Operation> + getDeleteAccessPolicyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DeleteAccessPolicy", + requestType = com.google.iam.v3beta.DeleteAccessPolicyRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3beta.DeleteAccessPolicyRequest, com.google.longrunning.Operation> + getDeleteAccessPolicyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3beta.DeleteAccessPolicyRequest, com.google.longrunning.Operation> + getDeleteAccessPolicyMethod; + if ((getDeleteAccessPolicyMethod = AccessPoliciesGrpc.getDeleteAccessPolicyMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getDeleteAccessPolicyMethod = AccessPoliciesGrpc.getDeleteAccessPolicyMethod) + == null) { + AccessPoliciesGrpc.getDeleteAccessPolicyMethod = + getDeleteAccessPolicyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteAccessPolicy")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3beta.DeleteAccessPolicyRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("DeleteAccessPolicy")) + .build(); + } + } + } + return getDeleteAccessPolicyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3beta.ListAccessPoliciesRequest, + com.google.iam.v3beta.ListAccessPoliciesResponse> + getListAccessPoliciesMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "ListAccessPolicies", + requestType = com.google.iam.v3beta.ListAccessPoliciesRequest.class, + responseType = com.google.iam.v3beta.ListAccessPoliciesResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3beta.ListAccessPoliciesRequest, + com.google.iam.v3beta.ListAccessPoliciesResponse> + getListAccessPoliciesMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3beta.ListAccessPoliciesRequest, + com.google.iam.v3beta.ListAccessPoliciesResponse> + getListAccessPoliciesMethod; + if ((getListAccessPoliciesMethod = AccessPoliciesGrpc.getListAccessPoliciesMethod) == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getListAccessPoliciesMethod = AccessPoliciesGrpc.getListAccessPoliciesMethod) + == null) { + AccessPoliciesGrpc.getListAccessPoliciesMethod = + getListAccessPoliciesMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListAccessPolicies")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3beta.ListAccessPoliciesRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3beta.ListAccessPoliciesResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("ListAccessPolicies")) + .build(); + } + } + } + return getListAccessPoliciesMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest, + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse> + getSearchAccessPolicyBindingsMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "SearchAccessPolicyBindings", + requestType = com.google.iam.v3beta.SearchAccessPolicyBindingsRequest.class, + responseType = com.google.iam.v3beta.SearchAccessPolicyBindingsResponse.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest, + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse> + getSearchAccessPolicyBindingsMethod() { + io.grpc.MethodDescriptor< + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest, + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse> + getSearchAccessPolicyBindingsMethod; + if ((getSearchAccessPolicyBindingsMethod = + AccessPoliciesGrpc.getSearchAccessPolicyBindingsMethod) + == null) { + synchronized (AccessPoliciesGrpc.class) { + if ((getSearchAccessPolicyBindingsMethod = + AccessPoliciesGrpc.getSearchAccessPolicyBindingsMethod) + == null) { + AccessPoliciesGrpc.getSearchAccessPolicyBindingsMethod = + getSearchAccessPolicyBindingsMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "SearchAccessPolicyBindings")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse + .getDefaultInstance())) + .setSchemaDescriptor( + new AccessPoliciesMethodDescriptorSupplier("SearchAccessPolicyBindings")) + .build(); + } + } + } + return getSearchAccessPolicyBindingsMethod; + } + + /** Creates a new async stub that supports all call types for the service */ + public static AccessPoliciesStub newStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessPoliciesStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesStub(channel, callOptions); + } + }; + return AccessPoliciesStub.newStub(factory, channel); + } + + /** Creates a new blocking-style stub that supports all types of calls on the service */ + public static AccessPoliciesBlockingV2Stub newBlockingV2Stub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessPoliciesBlockingV2Stub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesBlockingV2Stub(channel, callOptions); + } + }; + return AccessPoliciesBlockingV2Stub.newStub(factory, channel); + } + + /** + * Creates a new blocking-style stub that supports unary and streaming output calls on the service + */ + public static AccessPoliciesBlockingStub newBlockingStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessPoliciesBlockingStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesBlockingStub(channel, callOptions); + } + }; + return AccessPoliciesBlockingStub.newStub(factory, channel); + } + + /** Creates a new ListenableFuture-style stub that supports unary calls on the service */ + public static AccessPoliciesFutureStub newFutureStub(io.grpc.Channel channel) { + io.grpc.stub.AbstractStub.StubFactory factory = + new io.grpc.stub.AbstractStub.StubFactory() { + @java.lang.Override + public AccessPoliciesFutureStub newStub( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesFutureStub(channel, callOptions); + } + }; + return AccessPoliciesFutureStub.newStub(factory, channel); + } + + /** + * + * + *
              +   * Manages Identity and Access Management (IAM) access policies.
              +   * 
              + */ + public interface AsyncService { + + /** + * + * + *
              +     * Creates an access policy, and returns a long running operation.
              +     * 
              + */ + default void createAccessPolicy( + com.google.iam.v3beta.CreateAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getCreateAccessPolicyMethod(), responseObserver); + } + + /** + * + * + *
              +     * Gets an access policy.
              +     * 
              + */ + default void getAccessPolicy( + com.google.iam.v3beta.GetAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getGetAccessPolicyMethod(), responseObserver); + } + + /** + * + * + *
              +     * Updates an access policy.
              +     * 
              + */ + default void updateAccessPolicy( + com.google.iam.v3beta.UpdateAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUpdateAccessPolicyMethod(), responseObserver); + } + + /** + * + * + *
              +     * Deletes an access policy.
              +     * 
              + */ + default void deleteAccessPolicy( + com.google.iam.v3beta.DeleteAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDeleteAccessPolicyMethod(), responseObserver); + } + + /** + * + * + *
              +     * Lists access policies.
              +     * 
              + */ + default void listAccessPolicies( + com.google.iam.v3beta.ListAccessPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getListAccessPoliciesMethod(), responseObserver); + } + + /** + * + * + *
              +     * Returns all policy bindings that bind a specific policy if a user has
              +     * searchPolicyBindings permission on that policy.
              +     * 
              + */ + default void searchAccessPolicyBindings( + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getSearchAccessPolicyBindingsMethod(), responseObserver); + } + } + + /** + * Base class for the server implementation of the service AccessPolicies. + * + *
              +   * Manages Identity and Access Management (IAM) access policies.
              +   * 
              + */ + public abstract static class AccessPoliciesImplBase + implements io.grpc.BindableService, AsyncService { + + @java.lang.Override + public final io.grpc.ServerServiceDefinition bindService() { + return AccessPoliciesGrpc.bindService(this); + } + } + + /** + * A stub to allow clients to do asynchronous rpc calls to service AccessPolicies. + * + *
              +   * Manages Identity and Access Management (IAM) access policies.
              +   * 
              + */ + public static final class AccessPoliciesStub + extends io.grpc.stub.AbstractAsyncStub { + private AccessPoliciesStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessPoliciesStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesStub(channel, callOptions); + } + + /** + * + * + *
              +     * Creates an access policy, and returns a long running operation.
              +     * 
              + */ + public void createAccessPolicy( + com.google.iam.v3beta.CreateAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCreateAccessPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Gets an access policy.
              +     * 
              + */ + public void getAccessPolicy( + com.google.iam.v3beta.GetAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getGetAccessPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Updates an access policy.
              +     * 
              + */ + public void updateAccessPolicy( + com.google.iam.v3beta.UpdateAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUpdateAccessPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Deletes an access policy.
              +     * 
              + */ + public void deleteAccessPolicy( + com.google.iam.v3beta.DeleteAccessPolicyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDeleteAccessPolicyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Lists access policies.
              +     * 
              + */ + public void listAccessPolicies( + com.google.iam.v3beta.ListAccessPoliciesRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getListAccessPoliciesMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
              +     * Returns all policy bindings that bind a specific policy if a user has
              +     * searchPolicyBindings permission on that policy.
              +     * 
              + */ + public void searchAccessPolicyBindings( + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest request, + io.grpc.stub.StreamObserver + responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getSearchAccessPolicyBindingsMethod(), getCallOptions()), + request, + responseObserver); + } + } + + /** + * A stub to allow clients to do synchronous rpc calls to service AccessPolicies. + * + *
              +   * Manages Identity and Access Management (IAM) access policies.
              +   * 
              + */ + public static final class AccessPoliciesBlockingV2Stub + extends io.grpc.stub.AbstractBlockingStub { + private AccessPoliciesBlockingV2Stub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessPoliciesBlockingV2Stub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesBlockingV2Stub(channel, callOptions); + } + + /** + * + * + *
              +     * Creates an access policy, and returns a long running operation.
              +     * 
              + */ + public com.google.longrunning.Operation createAccessPolicy( + com.google.iam.v3beta.CreateAccessPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getCreateAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Gets an access policy.
              +     * 
              + */ + public com.google.iam.v3beta.AccessPolicy getAccessPolicy( + com.google.iam.v3beta.GetAccessPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getGetAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates an access policy.
              +     * 
              + */ + public com.google.longrunning.Operation updateAccessPolicy( + com.google.iam.v3beta.UpdateAccessPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getUpdateAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Deletes an access policy.
              +     * 
              + */ + public com.google.longrunning.Operation deleteAccessPolicy( + com.google.iam.v3beta.DeleteAccessPolicyRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getDeleteAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists access policies.
              +     * 
              + */ + public com.google.iam.v3beta.ListAccessPoliciesResponse listAccessPolicies( + com.google.iam.v3beta.ListAccessPoliciesRequest request) throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getListAccessPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns all policy bindings that bind a specific policy if a user has
              +     * searchPolicyBindings permission on that policy.
              +     * 
              + */ + public com.google.iam.v3beta.SearchAccessPolicyBindingsResponse searchAccessPolicyBindings( + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest request) + throws io.grpc.StatusException { + return io.grpc.stub.ClientCalls.blockingV2UnaryCall( + getChannel(), getSearchAccessPolicyBindingsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do limited synchronous rpc calls to service AccessPolicies. + * + *
              +   * Manages Identity and Access Management (IAM) access policies.
              +   * 
              + */ + public static final class AccessPoliciesBlockingStub + extends io.grpc.stub.AbstractBlockingStub { + private AccessPoliciesBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessPoliciesBlockingStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesBlockingStub(channel, callOptions); + } + + /** + * + * + *
              +     * Creates an access policy, and returns a long running operation.
              +     * 
              + */ + public com.google.longrunning.Operation createAccessPolicy( + com.google.iam.v3beta.CreateAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCreateAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Gets an access policy.
              +     * 
              + */ + public com.google.iam.v3beta.AccessPolicy getAccessPolicy( + com.google.iam.v3beta.GetAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getGetAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Updates an access policy.
              +     * 
              + */ + public com.google.longrunning.Operation updateAccessPolicy( + com.google.iam.v3beta.UpdateAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUpdateAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Deletes an access policy.
              +     * 
              + */ + public com.google.longrunning.Operation deleteAccessPolicy( + com.google.iam.v3beta.DeleteAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDeleteAccessPolicyMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Lists access policies.
              +     * 
              + */ + public com.google.iam.v3beta.ListAccessPoliciesResponse listAccessPolicies( + com.google.iam.v3beta.ListAccessPoliciesRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getListAccessPoliciesMethod(), getCallOptions(), request); + } + + /** + * + * + *
              +     * Returns all policy bindings that bind a specific policy if a user has
              +     * searchPolicyBindings permission on that policy.
              +     * 
              + */ + public com.google.iam.v3beta.SearchAccessPolicyBindingsResponse searchAccessPolicyBindings( + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getSearchAccessPolicyBindingsMethod(), getCallOptions(), request); + } + } + + /** + * A stub to allow clients to do ListenableFuture-style rpc calls to service AccessPolicies. + * + *
              +   * Manages Identity and Access Management (IAM) access policies.
              +   * 
              + */ + public static final class AccessPoliciesFutureStub + extends io.grpc.stub.AbstractFutureStub { + private AccessPoliciesFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + super(channel, callOptions); + } + + @java.lang.Override + protected AccessPoliciesFutureStub build( + io.grpc.Channel channel, io.grpc.CallOptions callOptions) { + return new AccessPoliciesFutureStub(channel, callOptions); + } + + /** + * + * + *
              +     * Creates an access policy, and returns a long running operation.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + createAccessPolicy(com.google.iam.v3beta.CreateAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCreateAccessPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Gets an access policy.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + getAccessPolicy(com.google.iam.v3beta.GetAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getGetAccessPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Updates an access policy.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + updateAccessPolicy(com.google.iam.v3beta.UpdateAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUpdateAccessPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Deletes an access policy.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture + deleteAccessPolicy(com.google.iam.v3beta.DeleteAccessPolicyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDeleteAccessPolicyMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Lists access policies.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v3beta.ListAccessPoliciesResponse> + listAccessPolicies(com.google.iam.v3beta.ListAccessPoliciesRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getListAccessPoliciesMethod(), getCallOptions()), request); + } + + /** + * + * + *
              +     * Returns all policy bindings that bind a specific policy if a user has
              +     * searchPolicyBindings permission on that policy.
              +     * 
              + */ + public com.google.common.util.concurrent.ListenableFuture< + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse> + searchAccessPolicyBindings( + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getSearchAccessPolicyBindingsMethod(), getCallOptions()), request); + } + } + + private static final int METHODID_CREATE_ACCESS_POLICY = 0; + private static final int METHODID_GET_ACCESS_POLICY = 1; + private static final int METHODID_UPDATE_ACCESS_POLICY = 2; + private static final int METHODID_DELETE_ACCESS_POLICY = 3; + private static final int METHODID_LIST_ACCESS_POLICIES = 4; + private static final int METHODID_SEARCH_ACCESS_POLICY_BINDINGS = 5; + + private static final class MethodHandlers + implements io.grpc.stub.ServerCalls.UnaryMethod, + io.grpc.stub.ServerCalls.ServerStreamingMethod, + io.grpc.stub.ServerCalls.ClientStreamingMethod, + io.grpc.stub.ServerCalls.BidiStreamingMethod { + private final AsyncService serviceImpl; + private final int methodId; + + MethodHandlers(AsyncService serviceImpl, int methodId) { + this.serviceImpl = serviceImpl; + this.methodId = methodId; + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + case METHODID_CREATE_ACCESS_POLICY: + serviceImpl.createAccessPolicy( + (com.google.iam.v3beta.CreateAccessPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_GET_ACCESS_POLICY: + serviceImpl.getAccessPolicy( + (com.google.iam.v3beta.GetAccessPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_UPDATE_ACCESS_POLICY: + serviceImpl.updateAccessPolicy( + (com.google.iam.v3beta.UpdateAccessPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_DELETE_ACCESS_POLICY: + serviceImpl.deleteAccessPolicy( + (com.google.iam.v3beta.DeleteAccessPolicyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_LIST_ACCESS_POLICIES: + serviceImpl.listAccessPolicies( + (com.google.iam.v3beta.ListAccessPoliciesRequest) request, + (io.grpc.stub.StreamObserver) + responseObserver); + break; + case METHODID_SEARCH_ACCESS_POLICY_BINDINGS: + serviceImpl.searchAccessPolicyBindings( + (com.google.iam.v3beta.SearchAccessPolicyBindingsRequest) request, + (io.grpc.stub.StreamObserver< + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse>) + responseObserver); + break; + default: + throw new AssertionError(); + } + } + + @java.lang.Override + @java.lang.SuppressWarnings("unchecked") + public io.grpc.stub.StreamObserver invoke( + io.grpc.stub.StreamObserver responseObserver) { + switch (methodId) { + default: + throw new AssertionError(); + } + } + } + + public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { + return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) + .addMethod( + getCreateAccessPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3beta.CreateAccessPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_CREATE_ACCESS_POLICY))) + .addMethod( + getGetAccessPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3beta.GetAccessPolicyRequest, + com.google.iam.v3beta.AccessPolicy>(service, METHODID_GET_ACCESS_POLICY))) + .addMethod( + getUpdateAccessPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3beta.UpdateAccessPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_UPDATE_ACCESS_POLICY))) + .addMethod( + getDeleteAccessPolicyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3beta.DeleteAccessPolicyRequest, + com.google.longrunning.Operation>(service, METHODID_DELETE_ACCESS_POLICY))) + .addMethod( + getListAccessPoliciesMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3beta.ListAccessPoliciesRequest, + com.google.iam.v3beta.ListAccessPoliciesResponse>( + service, METHODID_LIST_ACCESS_POLICIES))) + .addMethod( + getSearchAccessPolicyBindingsMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest, + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse>( + service, METHODID_SEARCH_ACCESS_POLICY_BINDINGS))) + .build(); + } + + private abstract static class AccessPoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoFileDescriptorSupplier, + io.grpc.protobuf.ProtoServiceDescriptorSupplier { + AccessPoliciesBaseDescriptorSupplier() {} + + @java.lang.Override + public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto.getDescriptor(); + } + + @java.lang.Override + public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { + return getFileDescriptor().findServiceByName("AccessPolicies"); + } + } + + private static final class AccessPoliciesFileDescriptorSupplier + extends AccessPoliciesBaseDescriptorSupplier { + AccessPoliciesFileDescriptorSupplier() {} + } + + private static final class AccessPoliciesMethodDescriptorSupplier + extends AccessPoliciesBaseDescriptorSupplier + implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { + private final java.lang.String methodName; + + AccessPoliciesMethodDescriptorSupplier(java.lang.String methodName) { + this.methodName = methodName; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { + return getServiceDescriptor().findMethodByName(methodName); + } + } + + private static volatile io.grpc.ServiceDescriptor serviceDescriptor; + + public static io.grpc.ServiceDescriptor getServiceDescriptor() { + io.grpc.ServiceDescriptor result = serviceDescriptor; + if (result == null) { + synchronized (AccessPoliciesGrpc.class) { + result = serviceDescriptor; + if (result == null) { + serviceDescriptor = + result = + io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) + .setSchemaDescriptor(new AccessPoliciesFileDescriptorSupplier()) + .addMethod(getCreateAccessPolicyMethod()) + .addMethod(getGetAccessPolicyMethod()) + .addMethod(getUpdateAccessPolicyMethod()) + .addMethod(getDeleteAccessPolicyMethod()) + .addMethod(getListAccessPoliciesMethod()) + .addMethod(getSearchAccessPolicyBindingsMethod()) + .build(); + } + } + } + return result; + } +} diff --git a/java-iam/grpc-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingsGrpc.java b/java-iam/grpc-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingsGrpc.java index 9fde0cbfe76d..6e8e31890734 100644 --- a/java-iam/grpc-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingsGrpc.java +++ b/java-iam/grpc-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingsGrpc.java @@ -379,7 +379,7 @@ public interface AsyncService { *
                    * Creates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is created, the policy is applied to the target.
              +     * After the binding is created, the policy is applied to the target.
                    * 
              */ default void createPolicyBinding( @@ -409,9 +409,7 @@ default void getPolicyBinding( *
                    * Updates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on the policy and target in the
              -     * binding to update, and the IAM permission to remove the existing policy
              -     * from the binding. Target is immutable and cannot be updated. Once the
              -     * binding is updated, the new policy is applied to the target.
              +     * binding to update. Target and policy are immutable and cannot be updated.
                    * 
              */ default void updatePolicyBinding( @@ -427,7 +425,7 @@ default void updatePolicyBinding( *
                    * Deletes a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is deleted, the policy no longer applies to the target.
              +     * After the binding is deleted, the policy no longer applies to the target.
                    * 
              */ default void deletePolicyBinding( @@ -511,7 +509,7 @@ protected PolicyBindingsStub build(io.grpc.Channel channel, io.grpc.CallOptions *
                    * Creates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is created, the policy is applied to the target.
              +     * After the binding is created, the policy is applied to the target.
                    * 
              */ public void createPolicyBinding( @@ -545,9 +543,7 @@ public void getPolicyBinding( *
                    * Updates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on the policy and target in the
              -     * binding to update, and the IAM permission to remove the existing policy
              -     * from the binding. Target is immutable and cannot be updated. Once the
              -     * binding is updated, the new policy is applied to the target.
              +     * binding to update. Target and policy are immutable and cannot be updated.
                    * 
              */ public void updatePolicyBinding( @@ -565,7 +561,7 @@ public void updatePolicyBinding( *
                    * Deletes a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is deleted, the policy no longer applies to the target.
              +     * After the binding is deleted, the policy no longer applies to the target.
                    * 
              */ public void deletePolicyBinding( @@ -639,7 +635,7 @@ protected PolicyBindingsBlockingV2Stub build( *
                    * Creates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is created, the policy is applied to the target.
              +     * After the binding is created, the policy is applied to the target.
                    * 
              */ public com.google.longrunning.Operation createPolicyBinding( @@ -667,9 +663,7 @@ public com.google.iam.v3beta.PolicyBinding getPolicyBinding( *
                    * Updates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on the policy and target in the
              -     * binding to update, and the IAM permission to remove the existing policy
              -     * from the binding. Target is immutable and cannot be updated. Once the
              -     * binding is updated, the new policy is applied to the target.
              +     * binding to update. Target and policy are immutable and cannot be updated.
                    * 
              */ public com.google.longrunning.Operation updatePolicyBinding( @@ -684,7 +678,7 @@ public com.google.longrunning.Operation updatePolicyBinding( *
                    * Deletes a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is deleted, the policy no longer applies to the target.
              +     * After the binding is deleted, the policy no longer applies to the target.
                    * 
              */ public com.google.longrunning.Operation deletePolicyBinding( @@ -748,7 +742,7 @@ protected PolicyBindingsBlockingStub build( *
                    * Creates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is created, the policy is applied to the target.
              +     * After the binding is created, the policy is applied to the target.
                    * 
              */ public com.google.longrunning.Operation createPolicyBinding( @@ -776,9 +770,7 @@ public com.google.iam.v3beta.PolicyBinding getPolicyBinding( *
                    * Updates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on the policy and target in the
              -     * binding to update, and the IAM permission to remove the existing policy
              -     * from the binding. Target is immutable and cannot be updated. Once the
              -     * binding is updated, the new policy is applied to the target.
              +     * binding to update. Target and policy are immutable and cannot be updated.
                    * 
              */ public com.google.longrunning.Operation updatePolicyBinding( @@ -793,7 +785,7 @@ public com.google.longrunning.Operation updatePolicyBinding( *
                    * Deletes a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is deleted, the policy no longer applies to the target.
              +     * After the binding is deleted, the policy no longer applies to the target.
                    * 
              */ public com.google.longrunning.Operation deletePolicyBinding( @@ -856,7 +848,7 @@ protected PolicyBindingsFutureStub build( *
                    * Creates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is created, the policy is applied to the target.
              +     * After the binding is created, the policy is applied to the target.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture @@ -884,9 +876,7 @@ protected PolicyBindingsFutureStub build( *
                    * Updates a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on the policy and target in the
              -     * binding to update, and the IAM permission to remove the existing policy
              -     * from the binding. Target is immutable and cannot be updated. Once the
              -     * binding is updated, the new policy is applied to the target.
              +     * binding to update. Target and policy are immutable and cannot be updated.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture @@ -901,7 +891,7 @@ protected PolicyBindingsFutureStub build( *
                    * Deletes a policy binding and returns a long-running operation.
                    * Callers will need the IAM permissions on both the policy and target.
              -     * Once the binding is deleted, the policy no longer applies to the target.
              +     * After the binding is deleted, the policy no longer applies to the target.
                    * 
              */ public com.google.common.util.concurrent.ListenableFuture diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPoliciesProto.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPoliciesProto.java new file mode 100644 index 000000000000..5aa0b4b3b50c --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPoliciesProto.java @@ -0,0 +1,280 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public final class AccessPoliciesProto extends com.google.protobuf.GeneratedFile { + private AccessPoliciesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AccessPoliciesProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_CreateAccessPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_CreateAccessPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_GetAccessPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_GetAccessPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_ListAccessPoliciesRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_ListAccessPoliciesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_ListAccessPoliciesResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_ListAccessPoliciesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "/google/iam/v3beta/access_policies_serv" + + "ice.proto\022\021google.iam.v3beta\032\034google/api" + + "/annotations.proto\032\027google/api/client.pr" + + "oto\032\037google/api/field_behavior.proto\032\031go" + + "ogle/api/resource.proto\032/google/iam/v3beta/access_policy_resources.proto\032*google" + + "/iam/v3beta/operation_metadata.proto\0320google/iam/v3beta/policy_binding_resources" + + ".proto\032#google/longrunning/operations.proto\032\033google/protobuf/empty.proto\"\314\001\n" + + "\031CreateAccessPolicyRequest\0227\n" + + "\006parent\030\001 \001(\tB\'" + + "\340A\002\372A!\022\037iam.googleapis.com/AccessPolicy\022\035\n" + + "\020access_policy_id\030\002 \001(\tB\003\340A\002\022;\n\r" + + "access_policy\030\003" + + " \001(\0132\037.google.iam.v3beta.AccessPolicyB\003\340A\002\022\032\n\r" + + "validate_only\030\004 \001(\010B\003\340A\001\"O\n" + + "\026GetAccessPolicyRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037iam.googleapis.com/AccessPolicy\"t\n" + + "\031UpdateAccessPolicyRequest\022;\n\r" + + "access_policy\030\001" + + " \001(\0132\037.google.iam.v3beta.AccessPolicyB\003\340A\002\022\032\n\r" + + "validate_only\030\002 \001(\010B\003\340A\001\"\225\001\n" + + "\031DeleteAccessPolicyRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037iam.googleapis.com/AccessPolicy\022\021\n" + + "\004etag\030\002 \001(\tB\003\340A\001\022\032\n\r" + + "validate_only\030\003 \001(\010B\003\340A\001\022\022\n" + + "\005force\030\004 \001(\010B\003\340A\001\"\205\001\n" + + "\031ListAccessPoliciesRequest\0227\n" + + "\006parent\030\001 \001(" + + "\tB\'\340A\002\372A!\022\037iam.googleapis.com/AccessPolicy\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\"t\n" + + "\032ListAccessPoliciesResponse\0228\n" + + "\017access_policies\030\001 \003(\0132\037.google.iam.v3beta.AccessPolicy\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\213\001\n" + + "!SearchAccessPolicyBindingsRequest\0225\n" + + "\004name\030\001 \001(\tB\'\340A\002\372A!\n" + + "\037iam.googleapis.com/AccessPolicy\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\"}\n" + + "\"SearchAccessPolicyBindingsResponse\0229\n" + + "\017policy_bindings\030\001 \003(\0132 .google.iam.v3beta.PolicyBinding\022\034\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\0012\276\021\n" + + "\016AccessPolicies\022\224\003\n" + + "\022CreateAccessPolicy\022,.go" + + "ogle.iam.v3beta.CreateAccessPolicyRequest\032\035.google.longrunning.Operation\"\260\002\312A!\n" + + "\014AccessPolicy\022\021OperationMetadata\332A%parent" + + ",access_policy,access_policy_id\202\323\344\223\002\335\001\"6" + + "/v3beta/{parent=projects/*/locations/*}/accessPolicies:\r" + + "access_policyZF\"5/v3beta/{parent=folders/*/locations/*}/accessPolicies:\r" + + "access_policyZL\";/v3beta/{parent=organizations/*/locations/*}/accessPolicies:\r" + + "access_policy\022\236\002\n" + + "\017GetAccessPolicy\022).google.iam.v3beta.GetAccessPolicyReque" + + "st\032\037.google.iam.v3beta.AccessPolicy\"\276\001\332A" + + "\004name\202\323\344\223\002\260\001\0226/v3beta/{name=projects/*/l" + + "ocations/*/accessPolicies/*}Z7\0225/v3beta/{name=folders/*/locations/*/accessPolici" + + "es/*}Z=\022;/v3beta/{name=organizations/*/locations/*/accessPolicies/*}\022\226\003\n" + + "\022UpdateAccessPolicy\022,.google.iam.v3beta.UpdateAc" + + "cessPolicyRequest\032\035.google.longrunning.Operation\"\262\002\312A!\n" + + "\014AccessPolicy\022\021OperationM" + + "etadata\202\323\344\223\002\207\0022D/v3beta/{access_policy.n" + + "ame=projects/*/locations/*/accessPolicies/*}:\r" + + "access_policyZT2C/v3beta/{access_p" + + "olicy.name=folders/*/locations/*/accessPolicies/*}:\r" + + "access_policyZZ2I/v3beta/{ac" + + "cess_policy.name=organizations/*/locations/*/accessPolicies/*}:\r" + + "access_policy\022\317\002\n" + + "\022DeleteAccessPolicy\022,.google.iam.v3beta" + + ".DeleteAccessPolicyRequest\032\035.google.longrunning.Operation\"\353\001\312A*\n" + + "\025google.protobuf" + + ".Empty\022\021OperationMetadata\332A\004name\202\323\344\223\002\260\001*" + + "6/v3beta/{name=projects/*/locations/*/accessPolicies/*}Z7*5/v3beta/{name=folders" + + "/*/locations/*/accessPolicies/*}Z=*;/v3b" + + "eta/{name=organizations/*/locations/*/accessPolicies/*}\022\264\002\n" + + "\022ListAccessPolicies\022,.google.iam.v3beta.ListAccessPoliciesReq" + + "uest\032-.google.iam.v3beta.ListAccessPolic" + + "iesResponse\"\300\001\332A\006parent\202\323\344\223\002\260\001\0226/v3beta/" + + "{parent=projects/*/locations/*}/accessPoliciesZ7\0225/v3beta/{parent=folders/*/loca" + + "tions/*}/accessPoliciesZ=\022;/v3beta/{pare" + + "nt=organizations/*/locations/*}/accessPolicies\022\211\003\n" + + "\032SearchAccessPolicyBindings\0224.google.iam.v3beta.SearchAccessPolicyBind" + + "ingsRequest\0325.google.iam.v3beta.SearchAc" + + "cessPolicyBindingsResponse\"\375\001\332A\004name\202\323\344\223" + + "\002\357\001\022P/v3beta/{name=organizations/*/locat" + + "ions/*/accessPolicies/*}:searchPolicyBindingsZL\022J/v3beta/{name=folders/*/locatio" + + "ns/*/accessPolicies/*}:searchPolicyBindingsZM\022K/v3beta/{name=projects/*/location" + + "s/*/accessPolicies/*}:searchPolicyBindin" + + "gs\032F\312A\022iam.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\221\001\n" + + "\025com.google.iam.v3betaB\023AccessPoliciesProt" + + "oP\001Z-cloud.google.com/go/iam/apiv3beta/i" + + "ampb;iampb\252\002\027Google.Cloud.Iam.V3Beta\312\002\027G" + + "oogle\\Cloud\\Iam\\V3betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v3beta.AccessPolicyResourcesProto.getDescriptor(), + com.google.iam.v3beta.OperationMetadataProto.getDescriptor(), + com.google.iam.v3beta.PolicyBindingResourcesProto.getDescriptor(), + com.google.longrunning.OperationsProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + }); + internal_static_google_iam_v3beta_CreateAccessPolicyRequest_descriptor = + getDescriptor().getMessageType(0); + internal_static_google_iam_v3beta_CreateAccessPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_CreateAccessPolicyRequest_descriptor, + new java.lang.String[] { + "Parent", "AccessPolicyId", "AccessPolicy", "ValidateOnly", + }); + internal_static_google_iam_v3beta_GetAccessPolicyRequest_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_iam_v3beta_GetAccessPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_GetAccessPolicyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_descriptor, + new java.lang.String[] { + "AccessPolicy", "ValidateOnly", + }); + internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_descriptor = + getDescriptor().getMessageType(3); + internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", "ValidateOnly", "Force", + }); + internal_static_google_iam_v3beta_ListAccessPoliciesRequest_descriptor = + getDescriptor().getMessageType(4); + internal_static_google_iam_v3beta_ListAccessPoliciesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_ListAccessPoliciesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", + }); + internal_static_google_iam_v3beta_ListAccessPoliciesResponse_descriptor = + getDescriptor().getMessageType(5); + internal_static_google_iam_v3beta_ListAccessPoliciesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_ListAccessPoliciesResponse_descriptor, + new java.lang.String[] { + "AccessPolicies", "NextPageToken", + }); + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_descriptor = + getDescriptor().getMessageType(6); + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_descriptor = + getDescriptor().getMessageType(7); + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_descriptor, + new java.lang.String[] { + "PolicyBindings", "NextPageToken", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v3beta.AccessPolicyResourcesProto.getDescriptor(); + com.google.iam.v3beta.OperationMetadataProto.getDescriptor(); + com.google.iam.v3beta.PolicyBindingResourcesProto.getDescriptor(); + com.google.longrunning.OperationsProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resourceReference); + registry.add(com.google.longrunning.OperationsProto.operationInfo); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicy.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicy.java new file mode 100644 index 000000000000..0fb34238c970 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicy.java @@ -0,0 +1,2545 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policy_resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * An IAM access policy resource.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.AccessPolicy} + */ +@com.google.protobuf.Generated +public final class AccessPolicy extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.AccessPolicy) + AccessPolicyOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AccessPolicy"); + } + + // Use AccessPolicy.newBuilder() to construct. + private AccessPolicy(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessPolicy() { + name_ = ""; + uid_ = ""; + etag_ = ""; + displayName_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.AccessPolicy.class, + com.google.iam.v3beta.AccessPolicy.Builder.class); + } + + private int bitField0_; + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Identifier. The resource name of the access policy.
              +   *
              +   * The following formats are supported:
              +   *
              +   * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
              +   * Identifier. The resource name of the access policy.
              +   *
              +   * The following formats are supported:
              +   *
              +   * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int UID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object uid_ = ""; + + /** + * + * + *
              +   * Output only. The globally unique ID of the access policy.
              +   * 
              + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + @java.lang.Override + public java.lang.String getUid() { + java.lang.Object ref = uid_; + 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(); + uid_ = s; + return s; + } + } + + /** + * + * + *
              +   * Output only. The globally unique ID of the access policy.
              +   * 
              + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + @java.lang.Override + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
              +   * Optional. The etag for the access policy.
              +   * If this is provided on update, it must match the server's etag.
              +   * 
              + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
              +   * Optional. The etag for the access policy.
              +   * If this is provided on update, it must match the server's etag.
              +   * 
              + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int DISPLAY_NAME_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private volatile java.lang.Object displayName_ = ""; + + /** + * + * + *
              +   * Optional. The description of the access policy. Must be less than
              +   * or equal to 63 characters.
              +   * 
              + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + @java.lang.Override + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + 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(); + displayName_ = s; + return s; + } + } + + /** + * + * + *
              +   * Optional. The description of the access policy. Must be less than
              +   * or equal to 63 characters.
              +   * 
              + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ANNOTATIONS_FIELD_NUMBER = 5; + + private static final class AnnotationsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicy_AnnotationsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.STRING, + ""); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
              +   * Optional. User defined annotations. See
              +   * https://google.aip.dev/148#annotations for more details such as format and
              +   * size limitations
              +   * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
              +   * Optional. User defined annotations. See
              +   * https://google.aip.dev/148#annotations for more details such as format and
              +   * size limitations
              +   * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
              +   * Optional. User defined annotations. See
              +   * https://google.aip.dev/148#annotations for more details such as format and
              +   * size limitations
              +   * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
              +   * Optional. User defined annotations. See
              +   * https://google.aip.dev/148#annotations for more details such as format and
              +   * size limitations
              +   * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public static final int CREATE_TIME_FIELD_NUMBER = 6; + private com.google.protobuf.Timestamp createTime_; + + /** + * + * + *
              +   * Output only. The time when the access policy was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + @java.lang.Override + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Output only. The time when the access policy was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getCreateTime() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + /** + * + * + *
              +   * Output only. The time when the access policy was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + return createTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : createTime_; + } + + public static final int UPDATE_TIME_FIELD_NUMBER = 7; + private com.google.protobuf.Timestamp updateTime_; + + /** + * + * + *
              +   * Output only. The time when the access policy was most recently
              +   * updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + @java.lang.Override + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Output only. The time when the access policy was most recently
              +   * updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getUpdateTime() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + /** + * + * + *
              +   * Output only. The time when the access policy was most recently
              +   * updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + return updateTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : updateTime_; + } + + public static final int DETAILS_FIELD_NUMBER = 8; + private com.google.iam.v3beta.AccessPolicyDetails details_; + + /** + * + * + *
              +   * Optional. The details for the access policy.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the details field is set. + */ + @java.lang.Override + public boolean hasDetails() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +   * Optional. The details for the access policy.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The details. + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyDetails getDetails() { + return details_ == null + ? com.google.iam.v3beta.AccessPolicyDetails.getDefaultInstance() + : details_; + } + + /** + * + * + *
              +   * Optional. The details for the access policy.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyDetailsOrBuilder getDetailsOrBuilder() { + return details_ == null + ? com.google.iam.v3beta.AccessPolicyDetails.getDefaultInstance() + : details_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, uid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, displayName_); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetAnnotations(), AnnotationsDefaultEntryHolder.defaultEntry, 5); + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeMessage(7, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(8, getDetails()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(uid_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, uid_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, etag_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(displayName_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(4, displayName_); + } + for (java.util.Map.Entry entry : + internalGetAnnotations().getMap().entrySet()) { + com.google.protobuf.MapEntry annotations__ = + AnnotationsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, annotations__); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getCreateTime()); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getUpdateTime()); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getDetails()); + } + 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.iam.v3beta.AccessPolicy)) { + return super.equals(obj); + } + com.google.iam.v3beta.AccessPolicy other = (com.google.iam.v3beta.AccessPolicy) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUid().equals(other.getUid())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (!getDisplayName().equals(other.getDisplayName())) return false; + if (!internalGetAnnotations().equals(other.internalGetAnnotations())) return false; + if (hasCreateTime() != other.hasCreateTime()) return false; + if (hasCreateTime()) { + if (!getCreateTime().equals(other.getCreateTime())) return false; + } + if (hasUpdateTime() != other.hasUpdateTime()) return false; + if (hasUpdateTime()) { + if (!getUpdateTime().equals(other.getUpdateTime())) return false; + } + if (hasDetails() != other.hasDetails()) return false; + if (hasDetails()) { + if (!getDetails().equals(other.getDetails())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + UID_FIELD_NUMBER; + hash = (53 * hash) + getUid().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; + hash = (53 * hash) + getDisplayName().hashCode(); + if (!internalGetAnnotations().getMap().isEmpty()) { + hash = (37 * hash) + ANNOTATIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetAnnotations().hashCode(); + } + if (hasCreateTime()) { + hash = (37 * hash) + CREATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getCreateTime().hashCode(); + } + if (hasUpdateTime()) { + hash = (37 * hash) + UPDATE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getUpdateTime().hashCode(); + } + if (hasDetails()) { + hash = (37 * hash) + DETAILS_FIELD_NUMBER; + hash = (53 * hash) + getDetails().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.AccessPolicy parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicy parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicy parseFrom(com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicy 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.iam.v3beta.AccessPolicy parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicy parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicy parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicy parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicy parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicy parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicy parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicy parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.AccessPolicy prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * An IAM access policy resource.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.AccessPolicy} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.AccessPolicy) + com.google.iam.v3beta.AccessPolicyOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicy_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 5: + return internalGetMutableAnnotations(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicy_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.AccessPolicy.class, + com.google.iam.v3beta.AccessPolicy.Builder.class); + } + + // Construct using com.google.iam.v3beta.AccessPolicy.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetCreateTimeFieldBuilder(); + internalGetUpdateTimeFieldBuilder(); + internalGetDetailsFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + uid_ = ""; + etag_ = ""; + displayName_ = ""; + internalGetMutableAnnotations().clear(); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + details_ = null; + if (detailsBuilder_ != null) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicy_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicy getDefaultInstanceForType() { + return com.google.iam.v3beta.AccessPolicy.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicy build() { + com.google.iam.v3beta.AccessPolicy result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicy buildPartial() { + com.google.iam.v3beta.AccessPolicy result = new com.google.iam.v3beta.AccessPolicy(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3beta.AccessPolicy result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.uid_ = uid_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.displayName_ = displayName_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.annotations_ = internalGetAnnotations(); + result.annotations_.makeImmutable(); + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000020) != 0)) { + result.createTime_ = createTimeBuilder_ == null ? createTime_ : createTimeBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000040) != 0)) { + result.updateTime_ = updateTimeBuilder_ == null ? updateTime_ : updateTimeBuilder_.build(); + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000080) != 0)) { + result.details_ = detailsBuilder_ == null ? details_ : detailsBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.AccessPolicy) { + return mergeFrom((com.google.iam.v3beta.AccessPolicy) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.AccessPolicy other) { + if (other == com.google.iam.v3beta.AccessPolicy.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getUid().isEmpty()) { + uid_ = other.uid_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (!other.getDisplayName().isEmpty()) { + displayName_ = other.displayName_; + bitField0_ |= 0x00000008; + onChanged(); + } + internalGetMutableAnnotations().mergeFrom(other.internalGetAnnotations()); + bitField0_ |= 0x00000010; + if (other.hasCreateTime()) { + mergeCreateTime(other.getCreateTime()); + } + if (other.hasUpdateTime()) { + mergeUpdateTime(other.getUpdateTime()); + } + if (other.hasDetails()) { + mergeDetails(other.getDetails()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + uid_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + displayName_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000008; + break; + } // case 34 + case 42: + { + com.google.protobuf.MapEntry annotations__ = + input.readMessage( + AnnotationsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableAnnotations() + .getMutableMap() + .put(annotations__.getKey(), annotations__.getValue()); + bitField0_ |= 0x00000010; + break; + } // case 42 + case 50: + { + input.readMessage( + internalGetCreateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000020; + break; + } // case 50 + case 58: + { + input.readMessage( + internalGetUpdateTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000040; + break; + } // case 58 + case 66: + { + input.readMessage(internalGetDetailsFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000080; + break; + } // case 66 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
              +     * Identifier. The resource name of the access policy.
              +     *
              +     * The following formats are supported:
              +     *
              +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * 
              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Identifier. The resource name of the access policy.
              +     *
              +     * The following formats are supported:
              +     *
              +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * 
              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Identifier. The resource name of the access policy.
              +     *
              +     * The following formats are supported:
              +     *
              +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * 
              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Identifier. The resource name of the access policy.
              +     *
              +     * The following formats are supported:
              +     *
              +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * 
              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Identifier. The resource name of the access policy.
              +     *
              +     * The following formats are supported:
              +     *
              +     * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
              +     * 
              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object uid_ = ""; + + /** + * + * + *
              +     * Output only. The globally unique ID of the access policy.
              +     * 
              + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + public java.lang.String getUid() { + java.lang.Object ref = uid_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + uid_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Output only. The globally unique ID of the access policy.
              +     * 
              + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + public com.google.protobuf.ByteString getUidBytes() { + java.lang.Object ref = uid_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + uid_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Output only. The globally unique ID of the access policy.
              +     * 
              + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The uid to set. + * @return This builder for chaining. + */ + public Builder setUid(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The globally unique ID of the access policy.
              +     * 
              + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearUid() { + uid_ = getDefaultInstance().getUid(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The globally unique ID of the access policy.
              +     * 
              + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @param value The bytes for uid to set. + * @return This builder for chaining. + */ + public Builder setUidBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + uid_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
              +     * Optional. The etag for the access policy.
              +     * If this is provided on update, it must match the server's etag.
              +     * 
              + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Optional. The etag for the access policy.
              +     * If this is provided on update, it must match the server's etag.
              +     * 
              + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Optional. The etag for the access policy.
              +     * If this is provided on update, it must match the server's etag.
              +     * 
              + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The etag for the access policy.
              +     * If this is provided on update, it must match the server's etag.
              +     * 
              + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The etag for the access policy.
              +     * If this is provided on update, it must match the server's etag.
              +     * 
              + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private java.lang.Object displayName_ = ""; + + /** + * + * + *
              +     * Optional. The description of the access policy. Must be less than
              +     * or equal to 63 characters.
              +     * 
              + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + public java.lang.String getDisplayName() { + java.lang.Object ref = displayName_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + displayName_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Optional. The description of the access policy. Must be less than
              +     * or equal to 63 characters.
              +     * 
              + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + public com.google.protobuf.ByteString getDisplayNameBytes() { + java.lang.Object ref = displayName_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + displayName_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Optional. The description of the access policy. Must be less than
              +     * or equal to 63 characters.
              +     * 
              + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The description of the access policy. Must be less than
              +     * or equal to 63 characters.
              +     * 
              + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDisplayName() { + displayName_ = getDefaultInstance().getDisplayName(); + bitField0_ = (bitField0_ & ~0x00000008); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The description of the access policy. Must be less than
              +     * or equal to 63 characters.
              +     * 
              + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for displayName to set. + * @return This builder for chaining. + */ + public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + displayName_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.protobuf.MapField annotations_; + + private com.google.protobuf.MapField + internalGetAnnotations() { + if (annotations_ == null) { + return com.google.protobuf.MapField.emptyMapField( + AnnotationsDefaultEntryHolder.defaultEntry); + } + return annotations_; + } + + private com.google.protobuf.MapField + internalGetMutableAnnotations() { + if (annotations_ == null) { + annotations_ = + com.google.protobuf.MapField.newMapField(AnnotationsDefaultEntryHolder.defaultEntry); + } + if (!annotations_.isMutable()) { + annotations_ = annotations_.copy(); + } + bitField0_ |= 0x00000010; + onChanged(); + return annotations_; + } + + public int getAnnotationsCount() { + return internalGetAnnotations().getMap().size(); + } + + /** + * + * + *
              +     * Optional. User defined annotations. See
              +     * https://google.aip.dev/148#annotations for more details such as format and
              +     * size limitations
              +     * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetAnnotations().getMap().containsKey(key); + } + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getAnnotations() { + return getAnnotationsMap(); + } + + /** + * + * + *
              +     * Optional. User defined annotations. See
              +     * https://google.aip.dev/148#annotations for more details such as format and
              +     * size limitations
              +     * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getAnnotationsMap() { + return internalGetAnnotations().getMap(); + } + + /** + * + * + *
              +     * Optional. User defined annotations. See
              +     * https://google.aip.dev/148#annotations for more details such as format and
              +     * size limitations
              +     * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
              +     * Optional. User defined annotations. See
              +     * https://google.aip.dev/148#annotations for more details such as format and
              +     * size limitations
              +     * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.lang.String getAnnotationsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetAnnotations().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + public Builder clearAnnotations() { + bitField0_ = (bitField0_ & ~0x00000010); + internalGetMutableAnnotations().getMutableMap().clear(); + return this; + } + + /** + * + * + *
              +     * Optional. User defined annotations. See
              +     * https://google.aip.dev/148#annotations for more details such as format and
              +     * size limitations
              +     * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeAnnotations(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableAnnotations().getMutableMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableAnnotations() { + bitField0_ |= 0x00000010; + return internalGetMutableAnnotations().getMutableMap(); + } + + /** + * + * + *
              +     * Optional. User defined annotations. See
              +     * https://google.aip.dev/148#annotations for more details such as format and
              +     * size limitations
              +     * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAnnotations(java.lang.String key, java.lang.String value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableAnnotations().getMutableMap().put(key, value); + bitField0_ |= 0x00000010; + return this; + } + + /** + * + * + *
              +     * Optional. User defined annotations. See
              +     * https://google.aip.dev/148#annotations for more details such as format and
              +     * size limitations
              +     * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllAnnotations(java.util.Map values) { + internalGetMutableAnnotations().getMutableMap().putAll(values); + bitField0_ |= 0x00000010; + return this; + } + + private com.google.protobuf.Timestamp createTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + createTimeBuilder_; + + /** + * + * + *
              +     * Output only. The time when the access policy was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + public boolean hasCreateTime() { + return ((bitField0_ & 0x00000020) != 0); + } + + /** + * + * + *
              +     * Output only. The time when the access policy was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + public com.google.protobuf.Timestamp getCreateTime() { + if (createTimeBuilder_ == null) { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } else { + return createTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. The time when the access policy was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + createTime_ = value; + } else { + createTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time when the access policy was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (createTimeBuilder_ == null) { + createTime_ = builderForValue.build(); + } else { + createTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000020; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time when the access policy was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { + if (createTimeBuilder_ == null) { + if (((bitField0_ & 0x00000020) != 0) + && createTime_ != null + && createTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getCreateTimeBuilder().mergeFrom(value); + } else { + createTime_ = value; + } + } else { + createTimeBuilder_.mergeFrom(value); + } + if (createTime_ != null) { + bitField0_ |= 0x00000020; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. The time when the access policy was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearCreateTime() { + bitField0_ = (bitField0_ & ~0x00000020); + createTime_ = null; + if (createTimeBuilder_ != null) { + createTimeBuilder_.dispose(); + createTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time when the access policy was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { + bitField0_ |= 0x00000020; + onChanged(); + return internalGetCreateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. The time when the access policy was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { + if (createTimeBuilder_ != null) { + return createTimeBuilder_.getMessageOrBuilder(); + } else { + return createTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : createTime_; + } + } + + /** + * + * + *
              +     * Output only. The time when the access policy was created.
              +     * 
              + * + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetCreateTimeFieldBuilder() { + if (createTimeBuilder_ == null) { + createTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getCreateTime(), getParentForChildren(), isClean()); + createTime_ = null; + } + return createTimeBuilder_; + } + + private com.google.protobuf.Timestamp updateTime_; + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + updateTimeBuilder_; + + /** + * + * + *
              +     * Output only. The time when the access policy was most recently
              +     * updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + public boolean hasUpdateTime() { + return ((bitField0_ & 0x00000040) != 0); + } + + /** + * + * + *
              +     * Output only. The time when the access policy was most recently
              +     * updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + public com.google.protobuf.Timestamp getUpdateTime() { + if (updateTimeBuilder_ == null) { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } else { + return updateTimeBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Output only. The time when the access policy was most recently
              +     * updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + updateTime_ = value; + } else { + updateTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time when the access policy was most recently
              +     * updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (updateTimeBuilder_ == null) { + updateTime_ = builderForValue.build(); + } else { + updateTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000040; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time when the access policy was most recently
              +     * updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder mergeUpdateTime(com.google.protobuf.Timestamp value) { + if (updateTimeBuilder_ == null) { + if (((bitField0_ & 0x00000040) != 0) + && updateTime_ != null + && updateTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getUpdateTimeBuilder().mergeFrom(value); + } else { + updateTime_ = value; + } + } else { + updateTimeBuilder_.mergeFrom(value); + } + if (updateTime_ != null) { + bitField0_ |= 0x00000040; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Output only. The time when the access policy was most recently
              +     * updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public Builder clearUpdateTime() { + bitField0_ = (bitField0_ & ~0x00000040); + updateTime_ = null; + if (updateTimeBuilder_ != null) { + updateTimeBuilder_.dispose(); + updateTimeBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Output only. The time when the access policy was most recently
              +     * updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder() { + bitField0_ |= 0x00000040; + onChanged(); + return internalGetUpdateTimeFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Output only. The time when the access policy was most recently
              +     * updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder() { + if (updateTimeBuilder_ != null) { + return updateTimeBuilder_.getMessageOrBuilder(); + } else { + return updateTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : updateTime_; + } + } + + /** + * + * + *
              +     * Output only. The time when the access policy was most recently
              +     * updated.
              +     * 
              + * + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + internalGetUpdateTimeFieldBuilder() { + if (updateTimeBuilder_ == null) { + updateTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getUpdateTime(), getParentForChildren(), isClean()); + updateTime_ = null; + } + return updateTimeBuilder_; + } + + private com.google.iam.v3beta.AccessPolicyDetails details_; + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicyDetails, + com.google.iam.v3beta.AccessPolicyDetails.Builder, + com.google.iam.v3beta.AccessPolicyDetailsOrBuilder> + detailsBuilder_; + + /** + * + * + *
              +     * Optional. The details for the access policy.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the details field is set. + */ + public boolean hasDetails() { + return ((bitField0_ & 0x00000080) != 0); + } + + /** + * + * + *
              +     * Optional. The details for the access policy.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The details. + */ + public com.google.iam.v3beta.AccessPolicyDetails getDetails() { + if (detailsBuilder_ == null) { + return details_ == null + ? com.google.iam.v3beta.AccessPolicyDetails.getDefaultInstance() + : details_; + } else { + return detailsBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Optional. The details for the access policy.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDetails(com.google.iam.v3beta.AccessPolicyDetails value) { + if (detailsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + details_ = value; + } else { + detailsBuilder_.setMessage(value); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The details for the access policy.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder setDetails(com.google.iam.v3beta.AccessPolicyDetails.Builder builderForValue) { + if (detailsBuilder_ == null) { + details_ = builderForValue.build(); + } else { + detailsBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000080; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The details for the access policy.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder mergeDetails(com.google.iam.v3beta.AccessPolicyDetails value) { + if (detailsBuilder_ == null) { + if (((bitField0_ & 0x00000080) != 0) + && details_ != null + && details_ != com.google.iam.v3beta.AccessPolicyDetails.getDefaultInstance()) { + getDetailsBuilder().mergeFrom(value); + } else { + details_ = value; + } + } else { + detailsBuilder_.mergeFrom(value); + } + if (details_ != null) { + bitField0_ |= 0x00000080; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Optional. The details for the access policy.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder clearDetails() { + bitField0_ = (bitField0_ & ~0x00000080); + details_ = null; + if (detailsBuilder_ != null) { + detailsBuilder_.dispose(); + detailsBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The details for the access policy.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.iam.v3beta.AccessPolicyDetails.Builder getDetailsBuilder() { + bitField0_ |= 0x00000080; + onChanged(); + return internalGetDetailsFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Optional. The details for the access policy.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.iam.v3beta.AccessPolicyDetailsOrBuilder getDetailsOrBuilder() { + if (detailsBuilder_ != null) { + return detailsBuilder_.getMessageOrBuilder(); + } else { + return details_ == null + ? com.google.iam.v3beta.AccessPolicyDetails.getDefaultInstance() + : details_; + } + } + + /** + * + * + *
              +     * Optional. The details for the access policy.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicyDetails, + com.google.iam.v3beta.AccessPolicyDetails.Builder, + com.google.iam.v3beta.AccessPolicyDetailsOrBuilder> + internalGetDetailsFieldBuilder() { + if (detailsBuilder_ == null) { + detailsBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicyDetails, + com.google.iam.v3beta.AccessPolicyDetails.Builder, + com.google.iam.v3beta.AccessPolicyDetailsOrBuilder>( + getDetails(), getParentForChildren(), isClean()); + details_ = null; + } + return detailsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.AccessPolicy) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.AccessPolicy) + private static final com.google.iam.v3beta.AccessPolicy DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.AccessPolicy(); + } + + public static com.google.iam.v3beta.AccessPolicy getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessPolicy 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.iam.v3beta.AccessPolicy getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyDetails.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyDetails.java new file mode 100644 index 000000000000..a5186f77f063 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyDetails.java @@ -0,0 +1,965 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policy_resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Access policy details.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.AccessPolicyDetails} + */ +@com.google.protobuf.Generated +public final class AccessPolicyDetails extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.AccessPolicyDetails) + AccessPolicyDetailsOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AccessPolicyDetails"); + } + + // Use AccessPolicyDetails.newBuilder() to construct. + private AccessPolicyDetails(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessPolicyDetails() { + rules_ = java.util.Collections.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.AccessPolicyDetails.class, + com.google.iam.v3beta.AccessPolicyDetails.Builder.class); + } + + public static final int RULES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List rules_; + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List getRulesList() { + return rules_; + } + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public java.util.List + getRulesOrBuilderList() { + return rules_; + } + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public int getRulesCount() { + return rules_.size(); + } + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule getRules(int index) { + return rules_.get(index); + } + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRuleOrBuilder getRulesOrBuilder(int index) { + return rules_.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 < rules_.size(); i++) { + output.writeMessage(1, rules_.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 < rules_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, rules_.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.iam.v3beta.AccessPolicyDetails)) { + return super.equals(obj); + } + com.google.iam.v3beta.AccessPolicyDetails other = + (com.google.iam.v3beta.AccessPolicyDetails) obj; + + if (!getRulesList().equals(other.getRulesList())) 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 (getRulesCount() > 0) { + hash = (37 * hash) + RULES_FIELD_NUMBER; + hash = (53 * hash) + getRulesList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicyDetails 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.iam.v3beta.AccessPolicyDetails parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicyDetails parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.AccessPolicyDetails prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Access policy details.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.AccessPolicyDetails} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.AccessPolicyDetails) + com.google.iam.v3beta.AccessPolicyDetailsOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyDetails_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyDetails_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.AccessPolicyDetails.class, + com.google.iam.v3beta.AccessPolicyDetails.Builder.class); + } + + // Construct using com.google.iam.v3beta.AccessPolicyDetails.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + } else { + rules_ = null; + rulesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyDetails_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyDetails getDefaultInstanceForType() { + return com.google.iam.v3beta.AccessPolicyDetails.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyDetails build() { + com.google.iam.v3beta.AccessPolicyDetails result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyDetails buildPartial() { + com.google.iam.v3beta.AccessPolicyDetails result = + new com.google.iam.v3beta.AccessPolicyDetails(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields(com.google.iam.v3beta.AccessPolicyDetails result) { + if (rulesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + rules_ = java.util.Collections.unmodifiableList(rules_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.rules_ = rules_; + } else { + result.rules_ = rulesBuilder_.build(); + } + } + + private void buildPartial0(com.google.iam.v3beta.AccessPolicyDetails result) { + int from_bitField0_ = bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.AccessPolicyDetails) { + return mergeFrom((com.google.iam.v3beta.AccessPolicyDetails) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.AccessPolicyDetails other) { + if (other == com.google.iam.v3beta.AccessPolicyDetails.getDefaultInstance()) return this; + if (rulesBuilder_ == null) { + if (!other.rules_.isEmpty()) { + if (rules_.isEmpty()) { + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureRulesIsMutable(); + rules_.addAll(other.rules_); + } + onChanged(); + } + } else { + if (!other.rules_.isEmpty()) { + if (rulesBuilder_.isEmpty()) { + rulesBuilder_.dispose(); + rulesBuilder_ = null; + rules_ = other.rules_; + bitField0_ = (bitField0_ & ~0x00000001); + rulesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetRulesFieldBuilder() + : null; + } else { + rulesBuilder_.addAllMessages(other.rules_); + } + } + } + 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.iam.v3beta.AccessPolicyRule m = + input.readMessage( + com.google.iam.v3beta.AccessPolicyRule.parser(), extensionRegistry); + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(m); + } else { + rulesBuilder_.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 rules_ = + java.util.Collections.emptyList(); + + private void ensureRulesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + rules_ = new java.util.ArrayList(rules_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3beta.AccessPolicyRule, + com.google.iam.v3beta.AccessPolicyRule.Builder, + com.google.iam.v3beta.AccessPolicyRuleOrBuilder> + rulesBuilder_; + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesList() { + if (rulesBuilder_ == null) { + return java.util.Collections.unmodifiableList(rules_); + } else { + return rulesBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public int getRulesCount() { + if (rulesBuilder_ == null) { + return rules_.size(); + } else { + return rulesBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicyRule getRules(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules(int index, com.google.iam.v3beta.AccessPolicyRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.set(index, value); + onChanged(); + } else { + rulesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setRules( + int index, com.google.iam.v3beta.AccessPolicyRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.set(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.iam.v3beta.AccessPolicyRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(value); + onChanged(); + } else { + rulesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(int index, com.google.iam.v3beta.AccessPolicyRule value) { + if (rulesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureRulesIsMutable(); + rules_.add(index, value); + onChanged(); + } else { + rulesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules(com.google.iam.v3beta.AccessPolicyRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addRules( + int index, com.google.iam.v3beta.AccessPolicyRule.Builder builderForValue) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.add(index, builderForValue.build()); + onChanged(); + } else { + rulesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder addAllRules( + java.lang.Iterable values) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, rules_); + onChanged(); + } else { + rulesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearRules() { + if (rulesBuilder_ == null) { + rules_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + rulesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder removeRules(int index) { + if (rulesBuilder_ == null) { + ensureRulesIsMutable(); + rules_.remove(index); + onChanged(); + } else { + rulesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicyRule.Builder getRulesBuilder(int index) { + return internalGetRulesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicyRuleOrBuilder getRulesOrBuilder(int index) { + if (rulesBuilder_ == null) { + return rules_.get(index); + } else { + return rulesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List + getRulesOrBuilderList() { + if (rulesBuilder_ != null) { + return rulesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(rules_); + } + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicyRule.Builder addRulesBuilder() { + return internalGetRulesFieldBuilder() + .addBuilder(com.google.iam.v3beta.AccessPolicyRule.getDefaultInstance()); + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicyRule.Builder addRulesBuilder(int index) { + return internalGetRulesFieldBuilder() + .addBuilder(index, com.google.iam.v3beta.AccessPolicyRule.getDefaultInstance()); + } + + /** + * + * + *
              +     * Required. A list of access policy rules.
              +     * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public java.util.List getRulesBuilderList() { + return internalGetRulesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3beta.AccessPolicyRule, + com.google.iam.v3beta.AccessPolicyRule.Builder, + com.google.iam.v3beta.AccessPolicyRuleOrBuilder> + internalGetRulesFieldBuilder() { + if (rulesBuilder_ == null) { + rulesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3beta.AccessPolicyRule, + com.google.iam.v3beta.AccessPolicyRule.Builder, + com.google.iam.v3beta.AccessPolicyRuleOrBuilder>( + rules_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); + rules_ = null; + } + return rulesBuilder_; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.AccessPolicyDetails) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.AccessPolicyDetails) + private static final com.google.iam.v3beta.AccessPolicyDetails DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.AccessPolicyDetails(); + } + + public static com.google.iam.v3beta.AccessPolicyDetails getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessPolicyDetails 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.iam.v3beta.AccessPolicyDetails getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyDetailsOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyDetailsOrBuilder.java new file mode 100644 index 000000000000..8b584bb7ff95 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyDetailsOrBuilder.java @@ -0,0 +1,93 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policy_resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface AccessPolicyDetailsOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.AccessPolicyDetails) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRulesList(); + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3beta.AccessPolicyRule getRules(int index); + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + int getRulesCount(); + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + java.util.List getRulesOrBuilderList(); + + /** + * + * + *
              +   * Required. A list of access policy rules.
              +   * 
              + * + * + * repeated .google.iam.v3beta.AccessPolicyRule rules = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3beta.AccessPolicyRuleOrBuilder getRulesOrBuilder(int index); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyName.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyName.java new file mode 100644 index 000000000000..0a531712f829 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyName.java @@ -0,0 +1,449 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package com.google.iam.v3beta; + +import com.google.api.pathtemplate.PathTemplate; +import com.google.api.pathtemplate.ValidationException; +import com.google.api.resourcenames.ResourceName; +import com.google.common.base.Preconditions; +import com.google.common.collect.ImmutableMap; +import java.util.ArrayList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND CLASS. +@Generated("by gapic-generator-java") +public class AccessPolicyName implements ResourceName { + private static final PathTemplate ORGANIZATION_LOCATION_ACCESS_POLICY = + PathTemplate.createWithoutUrlEncoding( + "organizations/{organization}/locations/{location}/accessPolicies/{access_policy}"); + private static final PathTemplate FOLDER_LOCATION_ACCESS_POLICY = + PathTemplate.createWithoutUrlEncoding( + "folders/{folder}/locations/{location}/accessPolicies/{access_policy}"); + private static final PathTemplate PROJECT_LOCATION_ACCESS_POLICY = + PathTemplate.createWithoutUrlEncoding( + "projects/{project}/locations/{location}/accessPolicies/{access_policy}"); + private volatile Map fieldValuesMap; + private PathTemplate pathTemplate; + private String fixedValue; + private final String organization; + private final String location; + private final String accessPolicy; + private final String folder; + private final String project; + + @Deprecated + protected AccessPolicyName() { + organization = null; + location = null; + accessPolicy = null; + folder = null; + project = null; + } + + private AccessPolicyName(Builder builder) { + organization = Preconditions.checkNotNull(builder.getOrganization()); + location = Preconditions.checkNotNull(builder.getLocation()); + accessPolicy = Preconditions.checkNotNull(builder.getAccessPolicy()); + folder = null; + project = null; + pathTemplate = ORGANIZATION_LOCATION_ACCESS_POLICY; + } + + private AccessPolicyName(FolderLocationAccessPolicyBuilder builder) { + folder = Preconditions.checkNotNull(builder.getFolder()); + location = Preconditions.checkNotNull(builder.getLocation()); + accessPolicy = Preconditions.checkNotNull(builder.getAccessPolicy()); + organization = null; + project = null; + pathTemplate = FOLDER_LOCATION_ACCESS_POLICY; + } + + private AccessPolicyName(ProjectLocationAccessPolicyBuilder builder) { + project = Preconditions.checkNotNull(builder.getProject()); + location = Preconditions.checkNotNull(builder.getLocation()); + accessPolicy = Preconditions.checkNotNull(builder.getAccessPolicy()); + organization = null; + folder = null; + pathTemplate = PROJECT_LOCATION_ACCESS_POLICY; + } + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getAccessPolicy() { + return accessPolicy; + } + + public String getFolder() { + return folder; + } + + public String getProject() { + return project; + } + + public static Builder newBuilder() { + return new Builder(); + } + + public static Builder newOrganizationLocationAccessPolicyBuilder() { + return new Builder(); + } + + public static FolderLocationAccessPolicyBuilder newFolderLocationAccessPolicyBuilder() { + return new FolderLocationAccessPolicyBuilder(); + } + + public static ProjectLocationAccessPolicyBuilder newProjectLocationAccessPolicyBuilder() { + return new ProjectLocationAccessPolicyBuilder(); + } + + public Builder toBuilder() { + return new Builder(this); + } + + public static AccessPolicyName of(String organization, String location, String accessPolicy) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build(); + } + + public static AccessPolicyName ofOrganizationLocationAccessPolicyName( + String organization, String location, String accessPolicy) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build(); + } + + public static AccessPolicyName ofFolderLocationAccessPolicyName( + String folder, String location, String accessPolicy) { + return newFolderLocationAccessPolicyBuilder() + .setFolder(folder) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build(); + } + + public static AccessPolicyName ofProjectLocationAccessPolicyName( + String project, String location, String accessPolicy) { + return newProjectLocationAccessPolicyBuilder() + .setProject(project) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build(); + } + + public static String format(String organization, String location, String accessPolicy) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build() + .toString(); + } + + public static String formatOrganizationLocationAccessPolicyName( + String organization, String location, String accessPolicy) { + return newBuilder() + .setOrganization(organization) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build() + .toString(); + } + + public static String formatFolderLocationAccessPolicyName( + String folder, String location, String accessPolicy) { + return newFolderLocationAccessPolicyBuilder() + .setFolder(folder) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build() + .toString(); + } + + public static String formatProjectLocationAccessPolicyName( + String project, String location, String accessPolicy) { + return newProjectLocationAccessPolicyBuilder() + .setProject(project) + .setLocation(location) + .setAccessPolicy(accessPolicy) + .build() + .toString(); + } + + public static AccessPolicyName parse(String formattedString) { + if (formattedString.isEmpty()) { + return null; + } + if (ORGANIZATION_LOCATION_ACCESS_POLICY.matches(formattedString)) { + Map matchMap = ORGANIZATION_LOCATION_ACCESS_POLICY.match(formattedString); + return ofOrganizationLocationAccessPolicyName( + matchMap.get("organization"), matchMap.get("location"), matchMap.get("access_policy")); + } else if (FOLDER_LOCATION_ACCESS_POLICY.matches(formattedString)) { + Map matchMap = FOLDER_LOCATION_ACCESS_POLICY.match(formattedString); + return ofFolderLocationAccessPolicyName( + matchMap.get("folder"), matchMap.get("location"), matchMap.get("access_policy")); + } else if (PROJECT_LOCATION_ACCESS_POLICY.matches(formattedString)) { + Map matchMap = PROJECT_LOCATION_ACCESS_POLICY.match(formattedString); + return ofProjectLocationAccessPolicyName( + matchMap.get("project"), matchMap.get("location"), matchMap.get("access_policy")); + } + throw new ValidationException("AccessPolicyName.parse: formattedString not in valid format"); + } + + public static List parseList(List formattedStrings) { + List list = new ArrayList<>(formattedStrings.size()); + for (String formattedString : formattedStrings) { + list.add(parse(formattedString)); + } + return list; + } + + public static List toStringList(List values) { + List list = new ArrayList<>(values.size()); + for (AccessPolicyName value : values) { + if (value == null) { + list.add(""); + } else { + list.add(value.toString()); + } + } + return list; + } + + public static boolean isParsableFrom(String formattedString) { + return ORGANIZATION_LOCATION_ACCESS_POLICY.matches(formattedString) + || FOLDER_LOCATION_ACCESS_POLICY.matches(formattedString) + || PROJECT_LOCATION_ACCESS_POLICY.matches(formattedString); + } + + @Override + public Map getFieldValuesMap() { + if (fieldValuesMap == null) { + synchronized (this) { + if (fieldValuesMap == null) { + ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); + if (organization != null) { + fieldMapBuilder.put("organization", organization); + } + if (location != null) { + fieldMapBuilder.put("location", location); + } + if (accessPolicy != null) { + fieldMapBuilder.put("access_policy", accessPolicy); + } + if (folder != null) { + fieldMapBuilder.put("folder", folder); + } + if (project != null) { + fieldMapBuilder.put("project", project); + } + fieldValuesMap = fieldMapBuilder.build(); + } + } + } + return fieldValuesMap; + } + + public String getFieldValue(String fieldName) { + return getFieldValuesMap().get(fieldName); + } + + @Override + public String toString() { + return fixedValue != null ? fixedValue : pathTemplate.instantiate(getFieldValuesMap()); + } + + @Override + public boolean equals(Object o) { + if (o == this) { + return true; + } + if (o != null && getClass() == o.getClass()) { + AccessPolicyName that = ((AccessPolicyName) o); + return Objects.equals(this.organization, that.organization) + && Objects.equals(this.location, that.location) + && Objects.equals(this.accessPolicy, that.accessPolicy) + && Objects.equals(this.folder, that.folder) + && Objects.equals(this.project, that.project); + } + return false; + } + + @Override + public int hashCode() { + int h = 1; + h *= 1000003; + h ^= Objects.hashCode(fixedValue); + h *= 1000003; + h ^= Objects.hashCode(organization); + h *= 1000003; + h ^= Objects.hashCode(location); + h *= 1000003; + h ^= Objects.hashCode(accessPolicy); + h *= 1000003; + h ^= Objects.hashCode(folder); + h *= 1000003; + h ^= Objects.hashCode(project); + return h; + } + + /** + * Builder for organizations/{organization}/locations/{location}/accessPolicies/{access_policy}. + */ + public static class Builder { + private String organization; + private String location; + private String accessPolicy; + + protected Builder() {} + + public String getOrganization() { + return organization; + } + + public String getLocation() { + return location; + } + + public String getAccessPolicy() { + return accessPolicy; + } + + public Builder setOrganization(String organization) { + this.organization = organization; + return this; + } + + public Builder setLocation(String location) { + this.location = location; + return this; + } + + public Builder setAccessPolicy(String accessPolicy) { + this.accessPolicy = accessPolicy; + return this; + } + + private Builder(AccessPolicyName accessPolicyName) { + Preconditions.checkArgument( + Objects.equals(accessPolicyName.pathTemplate, ORGANIZATION_LOCATION_ACCESS_POLICY), + "toBuilder is only supported when AccessPolicyName has the pattern of" + + " organizations/{organization}/locations/{location}/accessPolicies/{access_policy}"); + this.organization = accessPolicyName.organization; + this.location = accessPolicyName.location; + this.accessPolicy = accessPolicyName.accessPolicy; + } + + public AccessPolicyName build() { + return new AccessPolicyName(this); + } + } + + /** Builder for folders/{folder}/locations/{location}/accessPolicies/{access_policy}. */ + public static class FolderLocationAccessPolicyBuilder { + private String folder; + private String location; + private String accessPolicy; + + protected FolderLocationAccessPolicyBuilder() {} + + public String getFolder() { + return folder; + } + + public String getLocation() { + return location; + } + + public String getAccessPolicy() { + return accessPolicy; + } + + public FolderLocationAccessPolicyBuilder setFolder(String folder) { + this.folder = folder; + return this; + } + + public FolderLocationAccessPolicyBuilder setLocation(String location) { + this.location = location; + return this; + } + + public FolderLocationAccessPolicyBuilder setAccessPolicy(String accessPolicy) { + this.accessPolicy = accessPolicy; + return this; + } + + public AccessPolicyName build() { + return new AccessPolicyName(this); + } + } + + /** Builder for projects/{project}/locations/{location}/accessPolicies/{access_policy}. */ + public static class ProjectLocationAccessPolicyBuilder { + private String project; + private String location; + private String accessPolicy; + + protected ProjectLocationAccessPolicyBuilder() {} + + public String getProject() { + return project; + } + + public String getLocation() { + return location; + } + + public String getAccessPolicy() { + return accessPolicy; + } + + public ProjectLocationAccessPolicyBuilder setProject(String project) { + this.project = project; + return this; + } + + public ProjectLocationAccessPolicyBuilder setLocation(String location) { + this.location = location; + return this; + } + + public ProjectLocationAccessPolicyBuilder setAccessPolicy(String accessPolicy) { + this.accessPolicy = accessPolicy; + return this; + } + + public AccessPolicyName build() { + return new AccessPolicyName(this); + } + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyOrBuilder.java new file mode 100644 index 000000000000..2010fbcb676e --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyOrBuilder.java @@ -0,0 +1,358 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policy_resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface AccessPolicyOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.AccessPolicy) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Identifier. The resource name of the access policy.
              +   *
              +   * The following formats are supported:
              +   *
              +   * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Identifier. The resource name of the access policy.
              +   *
              +   * The following formats are supported:
              +   *
              +   * * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}`
              +   * 
              + * + * string name = 1 [(.google.api.field_behavior) = IDENTIFIER]; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Output only. The globally unique ID of the access policy.
              +   * 
              + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The uid. + */ + java.lang.String getUid(); + + /** + * + * + *
              +   * Output only. The globally unique ID of the access policy.
              +   * 
              + * + * + * string uid = 2 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... } + * + * + * @return The bytes for uid. + */ + com.google.protobuf.ByteString getUidBytes(); + + /** + * + * + *
              +   * Optional. The etag for the access policy.
              +   * If this is provided on update, it must match the server's etag.
              +   * 
              + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
              +   * Optional. The etag for the access policy.
              +   * If this is provided on update, it must match the server's etag.
              +   * 
              + * + * string etag = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
              +   * Optional. The description of the access policy. Must be less than
              +   * or equal to 63 characters.
              +   * 
              + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The displayName. + */ + java.lang.String getDisplayName(); + + /** + * + * + *
              +   * Optional. The description of the access policy. Must be less than
              +   * or equal to 63 characters.
              +   * 
              + * + * string display_name = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for displayName. + */ + com.google.protobuf.ByteString getDisplayNameBytes(); + + /** + * + * + *
              +   * Optional. User defined annotations. See
              +   * https://google.aip.dev/148#annotations for more details such as format and
              +   * size limitations
              +   * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getAnnotationsCount(); + + /** + * + * + *
              +   * Optional. User defined annotations. See
              +   * https://google.aip.dev/148#annotations for more details such as format and
              +   * size limitations
              +   * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsAnnotations(java.lang.String key); + + /** Use {@link #getAnnotationsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getAnnotations(); + + /** + * + * + *
              +   * Optional. User defined annotations. See
              +   * https://google.aip.dev/148#annotations for more details such as format and
              +   * size limitations
              +   * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getAnnotationsMap(); + + /** + * + * + *
              +   * Optional. User defined annotations. See
              +   * https://google.aip.dev/148#annotations for more details such as format and
              +   * size limitations
              +   * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + java.lang.String getAnnotationsOrDefault( + java.lang.String key, + /* nullable */ + java.lang.String defaultValue); + + /** + * + * + *
              +   * Optional. User defined annotations. See
              +   * https://google.aip.dev/148#annotations for more details such as format and
              +   * size limitations
              +   * 
              + * + * map<string, string> annotations = 5 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.lang.String getAnnotationsOrThrow(java.lang.String key); + + /** + * + * + *
              +   * Output only. The time when the access policy was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the createTime field is set. + */ + boolean hasCreateTime(); + + /** + * + * + *
              +   * Output only. The time when the access policy was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The createTime. + */ + com.google.protobuf.Timestamp getCreateTime(); + + /** + * + * + *
              +   * Output only. The time when the access policy was created.
              +   * 
              + * + * .google.protobuf.Timestamp create_time = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); + + /** + * + * + *
              +   * Output only. The time when the access policy was most recently
              +   * updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return Whether the updateTime field is set. + */ + boolean hasUpdateTime(); + + /** + * + * + *
              +   * Output only. The time when the access policy was most recently
              +   * updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * + * @return The updateTime. + */ + com.google.protobuf.Timestamp getUpdateTime(); + + /** + * + * + *
              +   * Output only. The time when the access policy was most recently
              +   * updated.
              +   * 
              + * + * .google.protobuf.Timestamp update_time = 7 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + */ + com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder(); + + /** + * + * + *
              +   * Optional. The details for the access policy.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return Whether the details field is set. + */ + boolean hasDetails(); + + /** + * + * + *
              +   * Optional. The details for the access policy.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The details. + */ + com.google.iam.v3beta.AccessPolicyDetails getDetails(); + + /** + * + * + *
              +   * Optional. The details for the access policy.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyDetails details = 8 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.iam.v3beta.AccessPolicyDetailsOrBuilder getDetailsOrBuilder(); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyResourcesProto.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyResourcesProto.java new file mode 100644 index 000000000000..7b7f6a85dd24 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyResourcesProto.java @@ -0,0 +1,215 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policy_resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public final class AccessPolicyResourcesProto extends com.google.protobuf.GeneratedFile { + private AccessPolicyResourcesProto() {} + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AccessPolicyResourcesProto"); + } + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_AccessPolicy_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_AccessPolicy_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_AccessPolicy_AnnotationsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_AccessPolicy_AnnotationsEntry_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_AccessPolicyDetails_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_AccessPolicyDetails_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_AccessPolicyRule_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_AccessPolicyRule_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_AccessPolicyRule_Operation_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_AccessPolicyRule_Operation_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_v3beta_AccessPolicyRule_ConditionsEntry_descriptor; + static final com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_google_iam_v3beta_AccessPolicyRule_ConditionsEntry_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n" + + "/google/iam/v3beta/access_policy_resour" + + "ces.proto\022\021google.iam.v3beta\032\037google/api" + + "/field_behavior.proto\032\033google/api/field_" + + "info.proto\032\031google/api/resource.proto\032\037g" + + "oogle/protobuf/timestamp.proto\032\026google/type/expr.proto\"\271\005\n" + + "\014AccessPolicy\022\021\n" + + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + + "\003uid\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\021\n" + + "\004etag\030\003 \001(\tB\003\340A\001\022\031\n" + + "\014display_name\030\004 \001(\tB\003\340A\001\022J\n" + + "\013annotations\030\005 \003(\01320.google.iam.v3b" + + "eta.AccessPolicy.AnnotationsEntryB\003\340A\001\0224\n" + + "\013create_time\030\006 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + + "\013update_time\030\007 \001(\0132\032.google.protobuf.TimestampB\003\340A\003\022<\n" + + "\007details\030\010 " + + "\001(\0132&.google.iam.v3beta.AccessPolicyDetailsB\003\340A\001\0322\n" + + "\020AnnotationsEntry\022\013\n" + + "\003key\030\001 \001(\t\022\r\n" + + "\005value\030\002 \001(\t:\0028\001:\243\002\352A\237\002\n" + + "\037iam.googleapis.com/AccessPolicy\022Porganizations/{org" + + "anization}/locations/{location}/accessPolicies/{access_policy}\022Dfolders/{folder}" + + "/locations/{location}/accessPolicies/{access_policy}\022Fprojects/{project}/locatio" + + "ns/{location}/accessPolicies/{access_policy}*\016accessPolicies2\014accessPolicy\"N\n" + + "\023AccessPolicyDetails\0227\n" + + "\005rules\030\001" + + " \003(\0132#.google.iam.v3beta.AccessPolicyRuleB\003\340A\002\"\251\004\n" + + "\020AccessPolicyRule\022\035\n" + + "\013description\030\001 \001(\tB\003\340A\001H\000\210\001\001\022D\n" + + "\006effect\030\002" + + " \001(\0162*.google.iam.v3beta.AccessPolicyRule.EffectB\003\340A\002H\001\210\001\001\022\027\n\n" + + "principals\030\003 \003(\tB\003\340A\002\022 \n" + + "\023excluded_principals\030\004 \003(\tB\003\340A\001\022E\n" + + "\toperation\030\n" + + " \001(\0132-.google.iam.v3beta.AccessPolicyRule.OperationB\003\340A\002\022L\n\n" + + "conditions\030\t \003(\01323.google.iam." + + "v3beta.AccessPolicyRule.ConditionsEntryB\003\340A\001\032H\n" + + "\tOperation\022\030\n" + + "\013permissions\030\001 \003(\tB\003\340A\001\022!\n" + + "\024excluded_permissions\030\002 \003(\tB\003\340A\001\032D\n" + + "\017ConditionsEntry\022\013\n" + + "\003key\030\001 \001(\t\022 \n" + + "\005value\030\002 \001(\0132\021.google.type.Expr:\0028\001\"5\n" + + "\006Effect\022\026\n" + + "\022EFFECT_UNSPECIFIED\020\000\022\010\n" + + "\004DENY\020\001\022\t\n" + + "\005ALLOW\020\002B\016\n" + + "\014_descriptionB\t\n" + + "\007_effectB\230\001\n" + + "\025com.google.iam.v3betaB\032AccessPolicyResourcesP" + + "rotoP\001Z-cloud.google.com/go/iam/apiv3bet" + + "a/iampb;iampb\252\002\027Google.Cloud.Iam.V3Beta\312" + + "\002\027Google\\Cloud\\Iam\\V3betab\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.FieldInfoProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_iam_v3beta_AccessPolicy_descriptor = getDescriptor().getMessageType(0); + internal_static_google_iam_v3beta_AccessPolicy_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_AccessPolicy_descriptor, + new java.lang.String[] { + "Name", + "Uid", + "Etag", + "DisplayName", + "Annotations", + "CreateTime", + "UpdateTime", + "Details", + }); + internal_static_google_iam_v3beta_AccessPolicy_AnnotationsEntry_descriptor = + internal_static_google_iam_v3beta_AccessPolicy_descriptor.getNestedType(0); + internal_static_google_iam_v3beta_AccessPolicy_AnnotationsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_AccessPolicy_AnnotationsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + internal_static_google_iam_v3beta_AccessPolicyDetails_descriptor = + getDescriptor().getMessageType(1); + internal_static_google_iam_v3beta_AccessPolicyDetails_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_AccessPolicyDetails_descriptor, + new java.lang.String[] { + "Rules", + }); + internal_static_google_iam_v3beta_AccessPolicyRule_descriptor = + getDescriptor().getMessageType(2); + internal_static_google_iam_v3beta_AccessPolicyRule_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_AccessPolicyRule_descriptor, + new java.lang.String[] { + "Description", + "Effect", + "Principals", + "ExcludedPrincipals", + "Operation", + "Conditions", + }); + internal_static_google_iam_v3beta_AccessPolicyRule_Operation_descriptor = + internal_static_google_iam_v3beta_AccessPolicyRule_descriptor.getNestedType(0); + internal_static_google_iam_v3beta_AccessPolicyRule_Operation_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_AccessPolicyRule_Operation_descriptor, + new java.lang.String[] { + "Permissions", "ExcludedPermissions", + }); + internal_static_google_iam_v3beta_AccessPolicyRule_ConditionsEntry_descriptor = + internal_static_google_iam_v3beta_AccessPolicyRule_descriptor.getNestedType(1); + internal_static_google_iam_v3beta_AccessPolicyRule_ConditionsEntry_fieldAccessorTable = + new com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_google_iam_v3beta_AccessPolicyRule_ConditionsEntry_descriptor, + new java.lang.String[] { + "Key", "Value", + }); + descriptor.resolveAllFeaturesImmutable(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.FieldInfoProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.ExprProto.getDescriptor(); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.FieldInfoProto.fieldInfo); + registry.add(com.google.api.ResourceProto.resource); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyRule.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyRule.java new file mode 100644 index 000000000000..2649a43982d7 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyRule.java @@ -0,0 +1,4521 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policy_resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Access Policy Rule that determines the behavior of the policy.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.AccessPolicyRule} + */ +@com.google.protobuf.Generated +public final class AccessPolicyRule extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.AccessPolicyRule) + AccessPolicyRuleOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "AccessPolicyRule"); + } + + // Use AccessPolicyRule.newBuilder() to construct. + private AccessPolicyRule(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private AccessPolicyRule() { + description_ = ""; + effect_ = 0; + principals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + @java.lang.Override + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetConditions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.AccessPolicyRule.class, + com.google.iam.v3beta.AccessPolicyRule.Builder.class); + } + + /** + * + * + *
              +   * An effect to describe the access relationship.
              +   * 
              + * + * Protobuf enum {@code google.iam.v3beta.AccessPolicyRule.Effect} + */ + public enum Effect implements com.google.protobuf.ProtocolMessageEnum { + /** + * + * + *
              +     * The effect is unspecified.
              +     * 
              + * + * EFFECT_UNSPECIFIED = 0; + */ + EFFECT_UNSPECIFIED(0), + /** + * + * + *
              +     * The policy will deny access if it evaluates to true.
              +     * 
              + * + * DENY = 1; + */ + DENY(1), + /** + * + * + *
              +     * The policy will grant access if it evaluates to true.
              +     * 
              + * + * ALLOW = 2; + */ + ALLOW(2), + UNRECOGNIZED(-1), + ; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Effect"); + } + + /** + * + * + *
              +     * The effect is unspecified.
              +     * 
              + * + * EFFECT_UNSPECIFIED = 0; + */ + public static final int EFFECT_UNSPECIFIED_VALUE = 0; + + /** + * + * + *
              +     * The policy will deny access if it evaluates to true.
              +     * 
              + * + * DENY = 1; + */ + public static final int DENY_VALUE = 1; + + /** + * + * + *
              +     * The policy will grant access if it evaluates to true.
              +     * 
              + * + * ALLOW = 2; + */ + public static final int ALLOW_VALUE = 2; + + public final int getNumber() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalArgumentException( + "Can't get the number of an unknown enum value."); + } + return value; + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + * @deprecated Use {@link #forNumber(int)} instead. + */ + @java.lang.Deprecated + public static Effect valueOf(int value) { + return forNumber(value); + } + + /** + * @param value The numeric wire value of the corresponding enum entry. + * @return The enum associated with the given numeric wire value. + */ + public static Effect forNumber(int value) { + switch (value) { + case 0: + return EFFECT_UNSPECIFIED; + case 1: + return DENY; + case 2: + return ALLOW; + default: + return null; + } + } + + public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { + return internalValueMap; + } + + private static final com.google.protobuf.Internal.EnumLiteMap internalValueMap = + new com.google.protobuf.Internal.EnumLiteMap() { + public Effect findValueByNumber(int number) { + return Effect.forNumber(number); + } + }; + + public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { + if (this == UNRECOGNIZED) { + throw new java.lang.IllegalStateException( + "Can't get the descriptor of an unrecognized enum value."); + } + return getDescriptor().getValues().get(ordinal()); + } + + public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { + return getDescriptor(); + } + + public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { + return com.google.iam.v3beta.AccessPolicyRule.getDescriptor().getEnumTypes().get(0); + } + + private static final Effect[] VALUES = values(); + + public static Effect valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) { + if (desc.getType() != getDescriptor()) { + throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type."); + } + if (desc.getIndex() == -1) { + return UNRECOGNIZED; + } + return VALUES[desc.getIndex()]; + } + + private final int value; + + private Effect(int value) { + this.value = value; + } + + // @@protoc_insertion_point(enum_scope:google.iam.v3beta.AccessPolicyRule.Effect) + } + + public interface OperationOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.AccessPolicyRule.Operation) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +     * Optional. The permissions that are explicitly affected by this rule. Each
              +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +     * `{service_fqdn}` is the fully qualified domain name for the service.
              +     * Currently supported permissions are as follows:
              +     *
              +     * * `eventarc.googleapis.com/messageBuses.publish`.
              +     * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the permissions. + */ + java.util.List getPermissionsList(); + + /** + * + * + *
              +     * Optional. The permissions that are explicitly affected by this rule. Each
              +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +     * `{service_fqdn}` is the fully qualified domain name for the service.
              +     * Currently supported permissions are as follows:
              +     *
              +     * * `eventarc.googleapis.com/messageBuses.publish`.
              +     * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of permissions. + */ + int getPermissionsCount(); + + /** + * + * + *
              +     * Optional. The permissions that are explicitly affected by this rule. Each
              +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +     * `{service_fqdn}` is the fully qualified domain name for the service.
              +     * Currently supported permissions are as follows:
              +     *
              +     * * `eventarc.googleapis.com/messageBuses.publish`.
              +     * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + java.lang.String getPermissions(int index); + + /** + * + * + *
              +     * Optional. The permissions that are explicitly affected by this rule. Each
              +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +     * `{service_fqdn}` is the fully qualified domain name for the service.
              +     * Currently supported permissions are as follows:
              +     *
              +     * * `eventarc.googleapis.com/messageBuses.publish`.
              +     * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + com.google.protobuf.ByteString getPermissionsBytes(int index); + + /** + * + * + *
              +     * Optional. Specifies the permissions that this rule excludes from the set
              +     * of affected permissions given by `permissions`. If a permission appears
              +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +     * subject to the policy effect.
              +     *
              +     * The excluded permissions can be specified using the same syntax as
              +     * `permissions`.
              +     * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedPermissions. + */ + java.util.List getExcludedPermissionsList(); + + /** + * + * + *
              +     * Optional. Specifies the permissions that this rule excludes from the set
              +     * of affected permissions given by `permissions`. If a permission appears
              +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +     * subject to the policy effect.
              +     *
              +     * The excluded permissions can be specified using the same syntax as
              +     * `permissions`.
              +     * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedPermissions. + */ + int getExcludedPermissionsCount(); + + /** + * + * + *
              +     * Optional. Specifies the permissions that this rule excludes from the set
              +     * of affected permissions given by `permissions`. If a permission appears
              +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +     * subject to the policy effect.
              +     *
              +     * The excluded permissions can be specified using the same syntax as
              +     * `permissions`.
              +     * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedPermissions at the given index. + */ + java.lang.String getExcludedPermissions(int index); + + /** + * + * + *
              +     * Optional. Specifies the permissions that this rule excludes from the set
              +     * of affected permissions given by `permissions`. If a permission appears
              +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +     * subject to the policy effect.
              +     *
              +     * The excluded permissions can be specified using the same syntax as
              +     * `permissions`.
              +     * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedPermissions at the given index. + */ + com.google.protobuf.ByteString getExcludedPermissionsBytes(int index); + } + + /** + * + * + *
              +   * Attributes that are used to determine whether this rule applies to a
              +   * request.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.AccessPolicyRule.Operation} + */ + public static final class Operation extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.AccessPolicyRule.Operation) + OperationOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "Operation"); + } + + // Use Operation.newBuilder() to construct. + private Operation(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private Operation() { + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.AccessPolicyRule.Operation.class, + com.google.iam.v3beta.AccessPolicyRule.Operation.Builder.class); + } + + public static final int PERMISSIONS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
              +     * Optional. The permissions that are explicitly affected by this rule. Each
              +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +     * `{service_fqdn}` is the fully qualified domain name for the service.
              +     * Currently supported permissions are as follows:
              +     *
              +     * * `eventarc.googleapis.com/messageBuses.publish`.
              +     * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the permissions. + */ + public com.google.protobuf.ProtocolStringList getPermissionsList() { + return permissions_; + } + + /** + * + * + *
              +     * Optional. The permissions that are explicitly affected by this rule. Each
              +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +     * `{service_fqdn}` is the fully qualified domain name for the service.
              +     * Currently supported permissions are as follows:
              +     *
              +     * * `eventarc.googleapis.com/messageBuses.publish`.
              +     * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of permissions. + */ + public int getPermissionsCount() { + return permissions_.size(); + } + + /** + * + * + *
              +     * Optional. The permissions that are explicitly affected by this rule. Each
              +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +     * `{service_fqdn}` is the fully qualified domain name for the service.
              +     * Currently supported permissions are as follows:
              +     *
              +     * * `eventarc.googleapis.com/messageBuses.publish`.
              +     * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + public java.lang.String getPermissions(int index) { + return permissions_.get(index); + } + + /** + * + * + *
              +     * Optional. The permissions that are explicitly affected by this rule. Each
              +     * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +     * `{service_fqdn}` is the fully qualified domain name for the service.
              +     * Currently supported permissions are as follows:
              +     *
              +     * * `eventarc.googleapis.com/messageBuses.publish`.
              +     * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + public com.google.protobuf.ByteString getPermissionsBytes(int index) { + return permissions_.getByteString(index); + } + + public static final int EXCLUDED_PERMISSIONS_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
              +     * Optional. Specifies the permissions that this rule excludes from the set
              +     * of affected permissions given by `permissions`. If a permission appears
              +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +     * subject to the policy effect.
              +     *
              +     * The excluded permissions can be specified using the same syntax as
              +     * `permissions`.
              +     * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedPermissions. + */ + public com.google.protobuf.ProtocolStringList getExcludedPermissionsList() { + return excludedPermissions_; + } + + /** + * + * + *
              +     * Optional. Specifies the permissions that this rule excludes from the set
              +     * of affected permissions given by `permissions`. If a permission appears
              +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +     * subject to the policy effect.
              +     *
              +     * The excluded permissions can be specified using the same syntax as
              +     * `permissions`.
              +     * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedPermissions. + */ + public int getExcludedPermissionsCount() { + return excludedPermissions_.size(); + } + + /** + * + * + *
              +     * Optional. Specifies the permissions that this rule excludes from the set
              +     * of affected permissions given by `permissions`. If a permission appears
              +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +     * subject to the policy effect.
              +     *
              +     * The excluded permissions can be specified using the same syntax as
              +     * `permissions`.
              +     * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedPermissions at the given index. + */ + public java.lang.String getExcludedPermissions(int index) { + return excludedPermissions_.get(index); + } + + /** + * + * + *
              +     * Optional. Specifies the permissions that this rule excludes from the set
              +     * of affected permissions given by `permissions`. If a permission appears
              +     * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +     * subject to the policy effect.
              +     *
              +     * The excluded permissions can be specified using the same syntax as
              +     * `permissions`.
              +     * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedPermissions at the given index. + */ + public com.google.protobuf.ByteString getExcludedPermissionsBytes(int index) { + return excludedPermissions_.getByteString(index); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + for (int i = 0; i < permissions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, permissions_.getRaw(i)); + } + for (int i = 0; i < excludedPermissions_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, excludedPermissions_.getRaw(i)); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + { + int dataSize = 0; + for (int i = 0; i < permissions_.size(); i++) { + dataSize += computeStringSizeNoTag(permissions_.getRaw(i)); + } + size += dataSize; + size += 1 * getPermissionsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedPermissions_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedPermissions_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedPermissionsList().size(); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.iam.v3beta.AccessPolicyRule.Operation)) { + return super.equals(obj); + } + com.google.iam.v3beta.AccessPolicyRule.Operation other = + (com.google.iam.v3beta.AccessPolicyRule.Operation) obj; + + if (!getPermissionsList().equals(other.getPermissionsList())) return false; + if (!getExcludedPermissionsList().equals(other.getExcludedPermissionsList())) 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 (getPermissionsCount() > 0) { + hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getPermissionsList().hashCode(); + } + if (getExcludedPermissionsCount() > 0) { + hash = (37 * hash) + EXCLUDED_PERMISSIONS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedPermissionsList().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation 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.iam.v3beta.AccessPolicyRule.Operation parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.AccessPolicyRule.Operation prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +     * Attributes that are used to determine whether this rule applies to a
              +     * request.
              +     * 
              + * + * Protobuf type {@code google.iam.v3beta.AccessPolicyRule.Operation} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.AccessPolicyRule.Operation) + com.google.iam.v3beta.AccessPolicyRule.OperationOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_Operation_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_Operation_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.AccessPolicyRule.Operation.class, + com.google.iam.v3beta.AccessPolicyRule.Operation.Builder.class); + } + + // Construct using com.google.iam.v3beta.AccessPolicyRule.Operation.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_Operation_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule.Operation getDefaultInstanceForType() { + return com.google.iam.v3beta.AccessPolicyRule.Operation.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule.Operation build() { + com.google.iam.v3beta.AccessPolicyRule.Operation result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule.Operation buildPartial() { + com.google.iam.v3beta.AccessPolicyRule.Operation result = + new com.google.iam.v3beta.AccessPolicyRule.Operation(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3beta.AccessPolicyRule.Operation result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + permissions_.makeImmutable(); + result.permissions_ = permissions_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + excludedPermissions_.makeImmutable(); + result.excludedPermissions_ = excludedPermissions_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.AccessPolicyRule.Operation) { + return mergeFrom((com.google.iam.v3beta.AccessPolicyRule.Operation) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.AccessPolicyRule.Operation other) { + if (other == com.google.iam.v3beta.AccessPolicyRule.Operation.getDefaultInstance()) + return this; + if (!other.permissions_.isEmpty()) { + if (permissions_.isEmpty()) { + permissions_ = other.permissions_; + bitField0_ |= 0x00000001; + } else { + ensurePermissionsIsMutable(); + permissions_.addAll(other.permissions_); + } + onChanged(); + } + if (!other.excludedPermissions_.isEmpty()) { + if (excludedPermissions_.isEmpty()) { + excludedPermissions_ = other.excludedPermissions_; + bitField0_ |= 0x00000002; + } else { + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.addAll(other.excludedPermissions_); + } + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePermissionsIsMutable(); + permissions_.add(s); + break; + } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.add(s); + 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.protobuf.LazyStringArrayList permissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePermissionsIsMutable() { + if (!permissions_.isModifiable()) { + permissions_ = new com.google.protobuf.LazyStringArrayList(permissions_); + } + bitField0_ |= 0x00000001; + } + + /** + * + * + *
              +       * Optional. The permissions that are explicitly affected by this rule. Each
              +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +       * `{service_fqdn}` is the fully qualified domain name for the service.
              +       * Currently supported permissions are as follows:
              +       *
              +       * * `eventarc.googleapis.com/messageBuses.publish`.
              +       * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the permissions. + */ + public com.google.protobuf.ProtocolStringList getPermissionsList() { + permissions_.makeImmutable(); + return permissions_; + } + + /** + * + * + *
              +       * Optional. The permissions that are explicitly affected by this rule. Each
              +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +       * `{service_fqdn}` is the fully qualified domain name for the service.
              +       * Currently supported permissions are as follows:
              +       *
              +       * * `eventarc.googleapis.com/messageBuses.publish`.
              +       * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of permissions. + */ + public int getPermissionsCount() { + return permissions_.size(); + } + + /** + * + * + *
              +       * Optional. The permissions that are explicitly affected by this rule. Each
              +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +       * `{service_fqdn}` is the fully qualified domain name for the service.
              +       * Currently supported permissions are as follows:
              +       *
              +       * * `eventarc.googleapis.com/messageBuses.publish`.
              +       * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The permissions at the given index. + */ + public java.lang.String getPermissions(int index) { + return permissions_.get(index); + } + + /** + * + * + *
              +       * Optional. The permissions that are explicitly affected by this rule. Each
              +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +       * `{service_fqdn}` is the fully qualified domain name for the service.
              +       * Currently supported permissions are as follows:
              +       *
              +       * * `eventarc.googleapis.com/messageBuses.publish`.
              +       * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the permissions at the given index. + */ + public com.google.protobuf.ByteString getPermissionsBytes(int index) { + return permissions_.getByteString(index); + } + + /** + * + * + *
              +       * Optional. The permissions that are explicitly affected by this rule. Each
              +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +       * `{service_fqdn}` is the fully qualified domain name for the service.
              +       * Currently supported permissions are as follows:
              +       *
              +       * * `eventarc.googleapis.com/messageBuses.publish`.
              +       * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index to set the value at. + * @param value The permissions to set. + * @return This builder for chaining. + */ + public Builder setPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); + permissions_.set(index, value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. The permissions that are explicitly affected by this rule. Each
              +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +       * `{service_fqdn}` is the fully qualified domain name for the service.
              +       * Currently supported permissions are as follows:
              +       *
              +       * * `eventarc.googleapis.com/messageBuses.publish`.
              +       * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The permissions to add. + * @return This builder for chaining. + */ + public Builder addPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePermissionsIsMutable(); + permissions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. The permissions that are explicitly affected by this rule. Each
              +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +       * `{service_fqdn}` is the fully qualified domain name for the service.
              +       * Currently supported permissions are as follows:
              +       *
              +       * * `eventarc.googleapis.com/messageBuses.publish`.
              +       * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param values The permissions to add. + * @return This builder for chaining. + */ + public Builder addAllPermissions(java.lang.Iterable values) { + ensurePermissionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, permissions_); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. The permissions that are explicitly affected by this rule. Each
              +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +       * `{service_fqdn}` is the fully qualified domain name for the service.
              +       * Currently supported permissions are as follows:
              +       *
              +       * * `eventarc.googleapis.com/messageBuses.publish`.
              +       * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPermissions() { + permissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. The permissions that are explicitly affected by this rule. Each
              +       * permission uses the format `{service_fqdn}/{resource}.{verb}`, where
              +       * `{service_fqdn}` is the fully qualified domain name for the service.
              +       * Currently supported permissions are as follows:
              +       *
              +       * * `eventarc.googleapis.com/messageBuses.publish`.
              +       * 
              + * + * repeated string permissions = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes of the permissions to add. + * @return This builder for chaining. + */ + public Builder addPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePermissionsIsMutable(); + permissions_.add(value); + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedPermissions_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedPermissionsIsMutable() { + if (!excludedPermissions_.isModifiable()) { + excludedPermissions_ = new com.google.protobuf.LazyStringArrayList(excludedPermissions_); + } + bitField0_ |= 0x00000002; + } + + /** + * + * + *
              +       * Optional. Specifies the permissions that this rule excludes from the set
              +       * of affected permissions given by `permissions`. If a permission appears
              +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +       * subject to the policy effect.
              +       *
              +       * The excluded permissions can be specified using the same syntax as
              +       * `permissions`.
              +       * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedPermissions. + */ + public com.google.protobuf.ProtocolStringList getExcludedPermissionsList() { + excludedPermissions_.makeImmutable(); + return excludedPermissions_; + } + + /** + * + * + *
              +       * Optional. Specifies the permissions that this rule excludes from the set
              +       * of affected permissions given by `permissions`. If a permission appears
              +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +       * subject to the policy effect.
              +       *
              +       * The excluded permissions can be specified using the same syntax as
              +       * `permissions`.
              +       * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedPermissions. + */ + public int getExcludedPermissionsCount() { + return excludedPermissions_.size(); + } + + /** + * + * + *
              +       * Optional. Specifies the permissions that this rule excludes from the set
              +       * of affected permissions given by `permissions`. If a permission appears
              +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +       * subject to the policy effect.
              +       *
              +       * The excluded permissions can be specified using the same syntax as
              +       * `permissions`.
              +       * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedPermissions at the given index. + */ + public java.lang.String getExcludedPermissions(int index) { + return excludedPermissions_.get(index); + } + + /** + * + * + *
              +       * Optional. Specifies the permissions that this rule excludes from the set
              +       * of affected permissions given by `permissions`. If a permission appears
              +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +       * subject to the policy effect.
              +       *
              +       * The excluded permissions can be specified using the same syntax as
              +       * `permissions`.
              +       * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedPermissions at the given index. + */ + public com.google.protobuf.ByteString getExcludedPermissionsBytes(int index) { + return excludedPermissions_.getByteString(index); + } + + /** + * + * + *
              +       * Optional. Specifies the permissions that this rule excludes from the set
              +       * of affected permissions given by `permissions`. If a permission appears
              +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +       * subject to the policy effect.
              +       *
              +       * The excluded permissions can be specified using the same syntax as
              +       * `permissions`.
              +       * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludedPermissions to set. + * @return This builder for chaining. + */ + public Builder setExcludedPermissions(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.set(index, value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Specifies the permissions that this rule excludes from the set
              +       * of affected permissions given by `permissions`. If a permission appears
              +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +       * subject to the policy effect.
              +       *
              +       * The excluded permissions can be specified using the same syntax as
              +       * `permissions`.
              +       * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludedPermissions to add. + * @return This builder for chaining. + */ + public Builder addExcludedPermissions(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Specifies the permissions that this rule excludes from the set
              +       * of affected permissions given by `permissions`. If a permission appears
              +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +       * subject to the policy effect.
              +       *
              +       * The excluded permissions can be specified using the same syntax as
              +       * `permissions`.
              +       * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludedPermissions to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedPermissions(java.lang.Iterable values) { + ensureExcludedPermissionsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedPermissions_); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Specifies the permissions that this rule excludes from the set
              +       * of affected permissions given by `permissions`. If a permission appears
              +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +       * subject to the policy effect.
              +       *
              +       * The excluded permissions can be specified using the same syntax as
              +       * `permissions`.
              +       * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedPermissions() { + excludedPermissions_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Optional. Specifies the permissions that this rule excludes from the set
              +       * of affected permissions given by `permissions`. If a permission appears
              +       * in `permissions` _and_ in `excluded_permissions` then it will _not_ be
              +       * subject to the policy effect.
              +       *
              +       * The excluded permissions can be specified using the same syntax as
              +       * `permissions`.
              +       * 
              + * + * repeated string excluded_permissions = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludedPermissions to add. + * @return This builder for chaining. + */ + public Builder addExcludedPermissionsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedPermissionsIsMutable(); + excludedPermissions_.add(value); + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.AccessPolicyRule.Operation) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.AccessPolicyRule.Operation) + private static final com.google.iam.v3beta.AccessPolicyRule.Operation DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.AccessPolicyRule.Operation(); + } + + public static com.google.iam.v3beta.AccessPolicyRule.Operation getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Operation 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.iam.v3beta.AccessPolicyRule.Operation getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } + + private int bitField0_; + public static final int DESCRIPTION_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object description_ = ""; + + /** + * + * + *
              +   * Optional. Customer specified description of the rule. Must be less than or
              +   * equal to 256 characters.
              +   * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + @java.lang.Override + public boolean hasDescription() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Optional. Customer specified description of the rule. Must be less than or
              +   * equal to 256 characters.
              +   * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + @java.lang.Override + public java.lang.String getDescription() { + java.lang.Object ref = description_; + 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(); + description_ = s; + return s; + } + } + + /** + * + * + *
              +   * Optional. Customer specified description of the rule. Must be less than or
              +   * equal to 256 characters.
              +   * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + @java.lang.Override + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EFFECT_FIELD_NUMBER = 2; + private int effect_ = 0; + + /** + * + * + *
              +   * Required. The effect of the rule.
              +   * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the effect field is set. + */ + @java.lang.Override + public boolean hasEffect() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +   * Required. The effect of the rule.
              +   * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for effect. + */ + @java.lang.Override + public int getEffectValue() { + return effect_; + } + + /** + * + * + *
              +   * Required. The effect of the rule.
              +   * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The effect. + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule.Effect getEffect() { + com.google.iam.v3beta.AccessPolicyRule.Effect result = + com.google.iam.v3beta.AccessPolicyRule.Effect.forNumber(effect_); + return result == null ? com.google.iam.v3beta.AccessPolicyRule.Effect.UNRECOGNIZED : result; + } + + public static final int PRINCIPALS_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList principals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
              +   * Required. The identities for which this rule's effect governs using one or
              +   * more permissions on Google Cloud resources. This field can contain the
              +   * following values:
              +   *
              +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +   * example, `principal://goog/subject/alice@example.com`.
              +   *
              +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +   * A Google Cloud service account. For example,
              +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +   *
              +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +   * `principalSet://goog/group/admins@example.com`.
              +   *
              +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +   * principals associated with the specified Google Workspace or Cloud
              +   * Identity customer ID. For example,
              +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +   *
              +   *
              +   * If an identifier that was previously set on a policy is soft deleted, then
              +   * calls to read that policy will return the identifier with a deleted
              +   * prefix. Users cannot set identifiers with this syntax.
              +   *
              +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +   * Google Account that was deleted recently. For example,
              +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +   * the Google Account is recovered, this identifier reverts to the standard
              +   * identifier for a Google Account.
              +   *
              +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +   * that was deleted recently. For example,
              +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +   * If the Google group is restored, this identifier reverts to the standard
              +   * identifier for a Google group.
              +   *
              +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +   * A Google Cloud service account that was deleted recently. For example,
              +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +   * If the service account is undeleted, this identifier reverts to the
              +   * standard identifier for a service account.
              +   * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the principals. + */ + public com.google.protobuf.ProtocolStringList getPrincipalsList() { + return principals_; + } + + /** + * + * + *
              +   * Required. The identities for which this rule's effect governs using one or
              +   * more permissions on Google Cloud resources. This field can contain the
              +   * following values:
              +   *
              +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +   * example, `principal://goog/subject/alice@example.com`.
              +   *
              +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +   * A Google Cloud service account. For example,
              +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +   *
              +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +   * `principalSet://goog/group/admins@example.com`.
              +   *
              +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +   * principals associated with the specified Google Workspace or Cloud
              +   * Identity customer ID. For example,
              +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +   *
              +   *
              +   * If an identifier that was previously set on a policy is soft deleted, then
              +   * calls to read that policy will return the identifier with a deleted
              +   * prefix. Users cannot set identifiers with this syntax.
              +   *
              +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +   * Google Account that was deleted recently. For example,
              +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +   * the Google Account is recovered, this identifier reverts to the standard
              +   * identifier for a Google Account.
              +   *
              +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +   * that was deleted recently. For example,
              +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +   * If the Google group is restored, this identifier reverts to the standard
              +   * identifier for a Google group.
              +   *
              +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +   * A Google Cloud service account that was deleted recently. For example,
              +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +   * If the service account is undeleted, this identifier reverts to the
              +   * standard identifier for a service account.
              +   * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of principals. + */ + public int getPrincipalsCount() { + return principals_.size(); + } + + /** + * + * + *
              +   * Required. The identities for which this rule's effect governs using one or
              +   * more permissions on Google Cloud resources. This field can contain the
              +   * following values:
              +   *
              +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +   * example, `principal://goog/subject/alice@example.com`.
              +   *
              +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +   * A Google Cloud service account. For example,
              +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +   *
              +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +   * `principalSet://goog/group/admins@example.com`.
              +   *
              +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +   * principals associated with the specified Google Workspace or Cloud
              +   * Identity customer ID. For example,
              +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +   *
              +   *
              +   * If an identifier that was previously set on a policy is soft deleted, then
              +   * calls to read that policy will return the identifier with a deleted
              +   * prefix. Users cannot set identifiers with this syntax.
              +   *
              +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +   * Google Account that was deleted recently. For example,
              +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +   * the Google Account is recovered, this identifier reverts to the standard
              +   * identifier for a Google Account.
              +   *
              +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +   * that was deleted recently. For example,
              +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +   * If the Google group is restored, this identifier reverts to the standard
              +   * identifier for a Google group.
              +   *
              +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +   * A Google Cloud service account that was deleted recently. For example,
              +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +   * If the service account is undeleted, this identifier reverts to the
              +   * standard identifier for a service account.
              +   * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The principals at the given index. + */ + public java.lang.String getPrincipals(int index) { + return principals_.get(index); + } + + /** + * + * + *
              +   * Required. The identities for which this rule's effect governs using one or
              +   * more permissions on Google Cloud resources. This field can contain the
              +   * following values:
              +   *
              +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +   * example, `principal://goog/subject/alice@example.com`.
              +   *
              +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +   * A Google Cloud service account. For example,
              +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +   *
              +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +   * `principalSet://goog/group/admins@example.com`.
              +   *
              +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +   * principals associated with the specified Google Workspace or Cloud
              +   * Identity customer ID. For example,
              +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +   *
              +   *
              +   * If an identifier that was previously set on a policy is soft deleted, then
              +   * calls to read that policy will return the identifier with a deleted
              +   * prefix. Users cannot set identifiers with this syntax.
              +   *
              +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +   * Google Account that was deleted recently. For example,
              +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +   * the Google Account is recovered, this identifier reverts to the standard
              +   * identifier for a Google Account.
              +   *
              +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +   * that was deleted recently. For example,
              +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +   * If the Google group is restored, this identifier reverts to the standard
              +   * identifier for a Google group.
              +   *
              +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +   * A Google Cloud service account that was deleted recently. For example,
              +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +   * If the service account is undeleted, this identifier reverts to the
              +   * standard identifier for a service account.
              +   * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the principals at the given index. + */ + public com.google.protobuf.ByteString getPrincipalsBytes(int index) { + return principals_.getByteString(index); + } + + public static final int EXCLUDED_PRINCIPALS_FIELD_NUMBER = 4; + + @SuppressWarnings("serial") + private com.google.protobuf.LazyStringArrayList excludedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + /** + * + * + *
              +   * Optional. The identities that are excluded from the access policy rule,
              +   * even if they are listed in the `principals`. For example, you could add a
              +   * Google group to the `principals`, then exclude specific users who belong to
              +   * that group.
              +   * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludedPrincipals. + */ + public com.google.protobuf.ProtocolStringList getExcludedPrincipalsList() { + return excludedPrincipals_; + } + + /** + * + * + *
              +   * Optional. The identities that are excluded from the access policy rule,
              +   * even if they are listed in the `principals`. For example, you could add a
              +   * Google group to the `principals`, then exclude specific users who belong to
              +   * that group.
              +   * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludedPrincipals. + */ + public int getExcludedPrincipalsCount() { + return excludedPrincipals_.size(); + } + + /** + * + * + *
              +   * Optional. The identities that are excluded from the access policy rule,
              +   * even if they are listed in the `principals`. For example, you could add a
              +   * Google group to the `principals`, then exclude specific users who belong to
              +   * that group.
              +   * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludedPrincipals at the given index. + */ + public java.lang.String getExcludedPrincipals(int index) { + return excludedPrincipals_.get(index); + } + + /** + * + * + *
              +   * Optional. The identities that are excluded from the access policy rule,
              +   * even if they are listed in the `principals`. For example, you could add a
              +   * Google group to the `principals`, then exclude specific users who belong to
              +   * that group.
              +   * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludedPrincipals at the given index. + */ + public com.google.protobuf.ByteString getExcludedPrincipalsBytes(int index) { + return excludedPrincipals_.getByteString(index); + } + + public static final int OPERATION_FIELD_NUMBER = 10; + private com.google.iam.v3beta.AccessPolicyRule.Operation operation_; + + /** + * + * + *
              +   * Required. Attributes that are used to determine whether this rule applies
              +   * to a request.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the operation field is set. + */ + @java.lang.Override + public boolean hasOperation() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +   * Required. Attributes that are used to determine whether this rule applies
              +   * to a request.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule.Operation getOperation() { + return operation_ == null + ? com.google.iam.v3beta.AccessPolicyRule.Operation.getDefaultInstance() + : operation_; + } + + /** + * + * + *
              +   * Required. Attributes that are used to determine whether this rule applies
              +   * to a request.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule.OperationOrBuilder getOperationOrBuilder() { + return operation_ == null + ? com.google.iam.v3beta.AccessPolicyRule.Operation.getDefaultInstance() + : operation_; + } + + public static final int CONDITIONS_FIELD_NUMBER = 9; + + private static final class ConditionsDefaultEntryHolder { + static final com.google.protobuf.MapEntry defaultEntry = + com.google.protobuf.MapEntry.newDefaultInstance( + com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_ConditionsEntry_descriptor, + com.google.protobuf.WireFormat.FieldType.STRING, + "", + com.google.protobuf.WireFormat.FieldType.MESSAGE, + com.google.type.Expr.getDefaultInstance()); + } + + @SuppressWarnings("serial") + private com.google.protobuf.MapField conditions_; + + private com.google.protobuf.MapField + internalGetConditions() { + if (conditions_ == null) { + return com.google.protobuf.MapField.emptyMapField(ConditionsDefaultEntryHolder.defaultEntry); + } + return conditions_; + } + + public int getConditionsCount() { + return internalGetConditions().getMap().size(); + } + + /** + * + * + *
              +   * Optional. The conditions that determine whether this rule applies to a
              +   * request. Conditions are identified by their key, which is the FQDN of the
              +   * service that they are relevant to. For example:
              +   *
              +   * ```
              +   * "conditions": {
              +   * "iam.googleapis.com": {
              +   * "expression": <cel expression>
              +   * }
              +   * }
              +   * ```
              +   *
              +   * Each rule is evaluated independently. If this rule does not apply
              +   * to a request, other rules might still apply.
              +   * Currently supported keys are as follows:
              +   *
              +   *
              +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +   * resource fields.
              +   *
              +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +   * [resource
              +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +   * combine them using boolean and logical operators. Other functions and
              +   * operators are not supported.
              +   * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsConditions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConditions().getMap().containsKey(key); + } + + /** Use {@link #getConditionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConditions() { + return getConditionsMap(); + } + + /** + * + * + *
              +   * Optional. The conditions that determine whether this rule applies to a
              +   * request. Conditions are identified by their key, which is the FQDN of the
              +   * service that they are relevant to. For example:
              +   *
              +   * ```
              +   * "conditions": {
              +   * "iam.googleapis.com": {
              +   * "expression": <cel expression>
              +   * }
              +   * }
              +   * ```
              +   *
              +   * Each rule is evaluated independently. If this rule does not apply
              +   * to a request, other rules might still apply.
              +   * Currently supported keys are as follows:
              +   *
              +   *
              +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +   * resource fields.
              +   *
              +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +   * [resource
              +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +   * combine them using boolean and logical operators. Other functions and
              +   * operators are not supported.
              +   * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getConditionsMap() { + return internalGetConditions().getMap(); + } + + /** + * + * + *
              +   * Optional. The conditions that determine whether this rule applies to a
              +   * request. Conditions are identified by their key, which is the FQDN of the
              +   * service that they are relevant to. For example:
              +   *
              +   * ```
              +   * "conditions": {
              +   * "iam.googleapis.com": {
              +   * "expression": <cel expression>
              +   * }
              +   * }
              +   * ```
              +   *
              +   * Each rule is evaluated independently. If this rule does not apply
              +   * to a request, other rules might still apply.
              +   * Currently supported keys are as follows:
              +   *
              +   *
              +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +   * resource fields.
              +   *
              +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +   * [resource
              +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +   * combine them using boolean and logical operators. Other functions and
              +   * operators are not supported.
              +   * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.type.Expr getConditionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.type.Expr defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetConditions().getMap(); + return map.containsKey(key) ? map.get(key) : defaultValue; + } + + /** + * + * + *
              +   * Optional. The conditions that determine whether this rule applies to a
              +   * request. Conditions are identified by their key, which is the FQDN of the
              +   * service that they are relevant to. For example:
              +   *
              +   * ```
              +   * "conditions": {
              +   * "iam.googleapis.com": {
              +   * "expression": <cel expression>
              +   * }
              +   * }
              +   * ```
              +   *
              +   * Each rule is evaluated independently. If this rule does not apply
              +   * to a request, other rules might still apply.
              +   * Currently supported keys are as follows:
              +   *
              +   *
              +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +   * resource fields.
              +   *
              +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +   * [resource
              +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +   * combine them using boolean and logical operators. Other functions and
              +   * operators are not supported.
              +   * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.Expr getConditionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = internalGetConditions().getMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return map.get(key); + } + + 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.GeneratedMessage.writeString(output, 1, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + output.writeEnum(2, effect_); + } + for (int i = 0; i < principals_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, principals_.getRaw(i)); + } + for (int i = 0; i < excludedPrincipals_.size(); i++) { + com.google.protobuf.GeneratedMessage.writeString(output, 4, excludedPrincipals_.getRaw(i)); + } + com.google.protobuf.GeneratedMessage.serializeStringMapTo( + output, internalGetConditions(), ConditionsDefaultEntryHolder.defaultEntry, 9); + if (((bitField0_ & 0x00000004) != 0)) { + output.writeMessage(10, getOperation()); + } + 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.GeneratedMessage.computeStringSize(1, description_); + } + if (((bitField0_ & 0x00000002) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeEnumSize(2, effect_); + } + { + int dataSize = 0; + for (int i = 0; i < principals_.size(); i++) { + dataSize += computeStringSizeNoTag(principals_.getRaw(i)); + } + size += dataSize; + size += 1 * getPrincipalsList().size(); + } + { + int dataSize = 0; + for (int i = 0; i < excludedPrincipals_.size(); i++) { + dataSize += computeStringSizeNoTag(excludedPrincipals_.getRaw(i)); + } + size += dataSize; + size += 1 * getExcludedPrincipalsList().size(); + } + for (java.util.Map.Entry entry : + internalGetConditions().getMap().entrySet()) { + com.google.protobuf.MapEntry conditions__ = + ConditionsDefaultEntryHolder.defaultEntry + .newBuilderForType() + .setKey(entry.getKey()) + .setValue(entry.getValue()) + .build(); + size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, conditions__); + } + if (((bitField0_ & 0x00000004) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(10, getOperation()); + } + 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.iam.v3beta.AccessPolicyRule)) { + return super.equals(obj); + } + com.google.iam.v3beta.AccessPolicyRule other = (com.google.iam.v3beta.AccessPolicyRule) obj; + + if (hasDescription() != other.hasDescription()) return false; + if (hasDescription()) { + if (!getDescription().equals(other.getDescription())) return false; + } + if (hasEffect() != other.hasEffect()) return false; + if (hasEffect()) { + if (effect_ != other.effect_) return false; + } + if (!getPrincipalsList().equals(other.getPrincipalsList())) return false; + if (!getExcludedPrincipalsList().equals(other.getExcludedPrincipalsList())) return false; + if (hasOperation() != other.hasOperation()) return false; + if (hasOperation()) { + if (!getOperation().equals(other.getOperation())) return false; + } + if (!internalGetConditions().equals(other.internalGetConditions())) 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 (hasDescription()) { + hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; + hash = (53 * hash) + getDescription().hashCode(); + } + if (hasEffect()) { + hash = (37 * hash) + EFFECT_FIELD_NUMBER; + hash = (53 * hash) + effect_; + } + if (getPrincipalsCount() > 0) { + hash = (37 * hash) + PRINCIPALS_FIELD_NUMBER; + hash = (53 * hash) + getPrincipalsList().hashCode(); + } + if (getExcludedPrincipalsCount() > 0) { + hash = (37 * hash) + EXCLUDED_PRINCIPALS_FIELD_NUMBER; + hash = (53 * hash) + getExcludedPrincipalsList().hashCode(); + } + if (hasOperation()) { + hash = (37 * hash) + OPERATION_FIELD_NUMBER; + hash = (53 * hash) + getOperation().hashCode(); + } + if (!internalGetConditions().getMap().isEmpty()) { + hash = (37 * hash) + CONDITIONS_FIELD_NUMBER; + hash = (53 * hash) + internalGetConditions().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.AccessPolicyRule parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicyRule parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyRule parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicyRule 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.iam.v3beta.AccessPolicyRule parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.AccessPolicyRule parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyRule parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicyRule parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyRule parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicyRule parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.AccessPolicyRule parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.AccessPolicyRule parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.AccessPolicyRule prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Access Policy Rule that determines the behavior of the policy.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.AccessPolicyRule} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.AccessPolicyRule) + com.google.iam.v3beta.AccessPolicyRuleOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_descriptor; + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetConditions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @SuppressWarnings({"rawtypes"}) + protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection( + int number) { + switch (number) { + case 9: + return internalGetMutableConditions(); + default: + throw new RuntimeException("Invalid map field number: " + number); + } + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.AccessPolicyRule.class, + com.google.iam.v3beta.AccessPolicyRule.Builder.class); + } + + // Construct using com.google.iam.v3beta.AccessPolicyRule.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetOperationFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + description_ = ""; + effect_ = 0; + principals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + excludedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + operation_ = null; + if (operationBuilder_ != null) { + operationBuilder_.dispose(); + operationBuilder_ = null; + } + internalGetMutableConditions().clear(); + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPolicyResourcesProto + .internal_static_google_iam_v3beta_AccessPolicyRule_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule getDefaultInstanceForType() { + return com.google.iam.v3beta.AccessPolicyRule.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule build() { + com.google.iam.v3beta.AccessPolicyRule result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule buildPartial() { + com.google.iam.v3beta.AccessPolicyRule result = + new com.google.iam.v3beta.AccessPolicyRule(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3beta.AccessPolicyRule result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.description_ = description_; + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.effect_ = effect_; + to_bitField0_ |= 0x00000002; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + principals_.makeImmutable(); + result.principals_ = principals_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + excludedPrincipals_.makeImmutable(); + result.excludedPrincipals_ = excludedPrincipals_; + } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.operation_ = operationBuilder_ == null ? operation_ : operationBuilder_.build(); + to_bitField0_ |= 0x00000004; + } + if (((from_bitField0_ & 0x00000020) != 0)) { + result.conditions_ = + internalGetConditions().build(ConditionsDefaultEntryHolder.defaultEntry); + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.AccessPolicyRule) { + return mergeFrom((com.google.iam.v3beta.AccessPolicyRule) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.AccessPolicyRule other) { + if (other == com.google.iam.v3beta.AccessPolicyRule.getDefaultInstance()) return this; + if (other.hasDescription()) { + description_ = other.description_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasEffect()) { + setEffectValue(other.getEffectValue()); + } + if (!other.principals_.isEmpty()) { + if (principals_.isEmpty()) { + principals_ = other.principals_; + bitField0_ |= 0x00000004; + } else { + ensurePrincipalsIsMutable(); + principals_.addAll(other.principals_); + } + onChanged(); + } + if (!other.excludedPrincipals_.isEmpty()) { + if (excludedPrincipals_.isEmpty()) { + excludedPrincipals_ = other.excludedPrincipals_; + bitField0_ |= 0x00000008; + } else { + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.addAll(other.excludedPrincipals_); + } + onChanged(); + } + if (other.hasOperation()) { + mergeOperation(other.getOperation()); + } + internalGetMutableConditions().mergeFrom(other.internalGetConditions()); + bitField0_ |= 0x00000020; + 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: + { + description_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + effect_ = input.readEnum(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + java.lang.String s = input.readStringRequireUtf8(); + ensurePrincipalsIsMutable(); + principals_.add(s); + break; + } // case 26 + case 34: + { + java.lang.String s = input.readStringRequireUtf8(); + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.add(s); + break; + } // case 34 + case 74: + { + com.google.protobuf.MapEntry conditions__ = + input.readMessage( + ConditionsDefaultEntryHolder.defaultEntry.getParserForType(), + extensionRegistry); + internalGetMutableConditions() + .ensureBuilderMap() + .put(conditions__.getKey(), conditions__.getValue()); + bitField0_ |= 0x00000020; + break; + } // case 74 + case 82: + { + input.readMessage( + internalGetOperationFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000010; + break; + } // case 82 + 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 description_ = ""; + + /** + * + * + *
              +     * Optional. Customer specified description of the rule. Must be less than or
              +     * equal to 256 characters.
              +     * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + public boolean hasDescription() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Optional. Customer specified description of the rule. Must be less than or
              +     * equal to 256 characters.
              +     * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + public java.lang.String getDescription() { + java.lang.Object ref = description_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + description_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Optional. Customer specified description of the rule. Must be less than or
              +     * equal to 256 characters.
              +     * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + public com.google.protobuf.ByteString getDescriptionBytes() { + java.lang.Object ref = description_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + description_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Optional. Customer specified description of the rule. Must be less than or
              +     * equal to 256 characters.
              +     * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The description to set. + * @return This builder for chaining. + */ + public Builder setDescription(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Customer specified description of the rule. Must be less than or
              +     * equal to 256 characters.
              +     * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearDescription() { + description_ = getDefaultInstance().getDescription(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Customer specified description of the rule. Must be less than or
              +     * equal to 256 characters.
              +     * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for description to set. + * @return This builder for chaining. + */ + public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + description_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int effect_ = 0; + + /** + * + * + *
              +     * Required. The effect of the rule.
              +     * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the effect field is set. + */ + @java.lang.Override + public boolean hasEffect() { + return ((bitField0_ & 0x00000002) != 0); + } + + /** + * + * + *
              +     * Required. The effect of the rule.
              +     * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for effect. + */ + @java.lang.Override + public int getEffectValue() { + return effect_; + } + + /** + * + * + *
              +     * Required. The effect of the rule.
              +     * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The enum numeric value on the wire for effect to set. + * @return This builder for chaining. + */ + public Builder setEffectValue(int value) { + effect_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The effect of the rule.
              +     * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The effect. + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyRule.Effect getEffect() { + com.google.iam.v3beta.AccessPolicyRule.Effect result = + com.google.iam.v3beta.AccessPolicyRule.Effect.forNumber(effect_); + return result == null ? com.google.iam.v3beta.AccessPolicyRule.Effect.UNRECOGNIZED : result; + } + + /** + * + * + *
              +     * Required. The effect of the rule.
              +     * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @param value The effect to set. + * @return This builder for chaining. + */ + public Builder setEffect(com.google.iam.v3beta.AccessPolicyRule.Effect value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + effect_ = value.getNumber(); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The effect of the rule.
              +     * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return This builder for chaining. + */ + public Builder clearEffect() { + bitField0_ = (bitField0_ & ~0x00000002); + effect_ = 0; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList principals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensurePrincipalsIsMutable() { + if (!principals_.isModifiable()) { + principals_ = new com.google.protobuf.LazyStringArrayList(principals_); + } + bitField0_ |= 0x00000004; + } + + /** + * + * + *
              +     * Required. The identities for which this rule's effect governs using one or
              +     * more permissions on Google Cloud resources. This field can contain the
              +     * following values:
              +     *
              +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +     * example, `principal://goog/subject/alice@example.com`.
              +     *
              +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +     * A Google Cloud service account. For example,
              +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +     *
              +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +     * `principalSet://goog/group/admins@example.com`.
              +     *
              +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +     * principals associated with the specified Google Workspace or Cloud
              +     * Identity customer ID. For example,
              +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +     *
              +     *
              +     * If an identifier that was previously set on a policy is soft deleted, then
              +     * calls to read that policy will return the identifier with a deleted
              +     * prefix. Users cannot set identifiers with this syntax.
              +     *
              +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +     * Google Account that was deleted recently. For example,
              +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +     * the Google Account is recovered, this identifier reverts to the standard
              +     * identifier for a Google Account.
              +     *
              +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +     * that was deleted recently. For example,
              +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +     * If the Google group is restored, this identifier reverts to the standard
              +     * identifier for a Google group.
              +     *
              +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +     * A Google Cloud service account that was deleted recently. For example,
              +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +     * If the service account is undeleted, this identifier reverts to the
              +     * standard identifier for a service account.
              +     * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the principals. + */ + public com.google.protobuf.ProtocolStringList getPrincipalsList() { + principals_.makeImmutable(); + return principals_; + } + + /** + * + * + *
              +     * Required. The identities for which this rule's effect governs using one or
              +     * more permissions on Google Cloud resources. This field can contain the
              +     * following values:
              +     *
              +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +     * example, `principal://goog/subject/alice@example.com`.
              +     *
              +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +     * A Google Cloud service account. For example,
              +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +     *
              +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +     * `principalSet://goog/group/admins@example.com`.
              +     *
              +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +     * principals associated with the specified Google Workspace or Cloud
              +     * Identity customer ID. For example,
              +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +     *
              +     *
              +     * If an identifier that was previously set on a policy is soft deleted, then
              +     * calls to read that policy will return the identifier with a deleted
              +     * prefix. Users cannot set identifiers with this syntax.
              +     *
              +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +     * Google Account that was deleted recently. For example,
              +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +     * the Google Account is recovered, this identifier reverts to the standard
              +     * identifier for a Google Account.
              +     *
              +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +     * that was deleted recently. For example,
              +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +     * If the Google group is restored, this identifier reverts to the standard
              +     * identifier for a Google group.
              +     *
              +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +     * A Google Cloud service account that was deleted recently. For example,
              +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +     * If the service account is undeleted, this identifier reverts to the
              +     * standard identifier for a service account.
              +     * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of principals. + */ + public int getPrincipalsCount() { + return principals_.size(); + } + + /** + * + * + *
              +     * Required. The identities for which this rule's effect governs using one or
              +     * more permissions on Google Cloud resources. This field can contain the
              +     * following values:
              +     *
              +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +     * example, `principal://goog/subject/alice@example.com`.
              +     *
              +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +     * A Google Cloud service account. For example,
              +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +     *
              +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +     * `principalSet://goog/group/admins@example.com`.
              +     *
              +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +     * principals associated with the specified Google Workspace or Cloud
              +     * Identity customer ID. For example,
              +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +     *
              +     *
              +     * If an identifier that was previously set on a policy is soft deleted, then
              +     * calls to read that policy will return the identifier with a deleted
              +     * prefix. Users cannot set identifiers with this syntax.
              +     *
              +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +     * Google Account that was deleted recently. For example,
              +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +     * the Google Account is recovered, this identifier reverts to the standard
              +     * identifier for a Google Account.
              +     *
              +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +     * that was deleted recently. For example,
              +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +     * If the Google group is restored, this identifier reverts to the standard
              +     * identifier for a Google group.
              +     *
              +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +     * A Google Cloud service account that was deleted recently. For example,
              +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +     * If the service account is undeleted, this identifier reverts to the
              +     * standard identifier for a service account.
              +     * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The principals at the given index. + */ + public java.lang.String getPrincipals(int index) { + return principals_.get(index); + } + + /** + * + * + *
              +     * Required. The identities for which this rule's effect governs using one or
              +     * more permissions on Google Cloud resources. This field can contain the
              +     * following values:
              +     *
              +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +     * example, `principal://goog/subject/alice@example.com`.
              +     *
              +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +     * A Google Cloud service account. For example,
              +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +     *
              +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +     * `principalSet://goog/group/admins@example.com`.
              +     *
              +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +     * principals associated with the specified Google Workspace or Cloud
              +     * Identity customer ID. For example,
              +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +     *
              +     *
              +     * If an identifier that was previously set on a policy is soft deleted, then
              +     * calls to read that policy will return the identifier with a deleted
              +     * prefix. Users cannot set identifiers with this syntax.
              +     *
              +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +     * Google Account that was deleted recently. For example,
              +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +     * the Google Account is recovered, this identifier reverts to the standard
              +     * identifier for a Google Account.
              +     *
              +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +     * that was deleted recently. For example,
              +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +     * If the Google group is restored, this identifier reverts to the standard
              +     * identifier for a Google group.
              +     *
              +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +     * A Google Cloud service account that was deleted recently. For example,
              +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +     * If the service account is undeleted, this identifier reverts to the
              +     * standard identifier for a service account.
              +     * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the principals at the given index. + */ + public com.google.protobuf.ByteString getPrincipalsBytes(int index) { + return principals_.getByteString(index); + } + + /** + * + * + *
              +     * Required. The identities for which this rule's effect governs using one or
              +     * more permissions on Google Cloud resources. This field can contain the
              +     * following values:
              +     *
              +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +     * example, `principal://goog/subject/alice@example.com`.
              +     *
              +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +     * A Google Cloud service account. For example,
              +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +     *
              +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +     * `principalSet://goog/group/admins@example.com`.
              +     *
              +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +     * principals associated with the specified Google Workspace or Cloud
              +     * Identity customer ID. For example,
              +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +     *
              +     *
              +     * If an identifier that was previously set on a policy is soft deleted, then
              +     * calls to read that policy will return the identifier with a deleted
              +     * prefix. Users cannot set identifiers with this syntax.
              +     *
              +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +     * Google Account that was deleted recently. For example,
              +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +     * the Google Account is recovered, this identifier reverts to the standard
              +     * identifier for a Google Account.
              +     *
              +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +     * that was deleted recently. For example,
              +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +     * If the Google group is restored, this identifier reverts to the standard
              +     * identifier for a Google group.
              +     *
              +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +     * A Google Cloud service account that was deleted recently. For example,
              +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +     * If the service account is undeleted, this identifier reverts to the
              +     * standard identifier for a service account.
              +     * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index to set the value at. + * @param value The principals to set. + * @return This builder for chaining. + */ + public Builder setPrincipals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.set(index, value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The identities for which this rule's effect governs using one or
              +     * more permissions on Google Cloud resources. This field can contain the
              +     * following values:
              +     *
              +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +     * example, `principal://goog/subject/alice@example.com`.
              +     *
              +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +     * A Google Cloud service account. For example,
              +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +     *
              +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +     * `principalSet://goog/group/admins@example.com`.
              +     *
              +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +     * principals associated with the specified Google Workspace or Cloud
              +     * Identity customer ID. For example,
              +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +     *
              +     *
              +     * If an identifier that was previously set on a policy is soft deleted, then
              +     * calls to read that policy will return the identifier with a deleted
              +     * prefix. Users cannot set identifiers with this syntax.
              +     *
              +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +     * Google Account that was deleted recently. For example,
              +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +     * the Google Account is recovered, this identifier reverts to the standard
              +     * identifier for a Google Account.
              +     *
              +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +     * that was deleted recently. For example,
              +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +     * If the Google group is restored, this identifier reverts to the standard
              +     * identifier for a Google group.
              +     *
              +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +     * A Google Cloud service account that was deleted recently. For example,
              +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +     * If the service account is undeleted, this identifier reverts to the
              +     * standard identifier for a service account.
              +     * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The principals to add. + * @return This builder for chaining. + */ + public Builder addPrincipals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensurePrincipalsIsMutable(); + principals_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The identities for which this rule's effect governs using one or
              +     * more permissions on Google Cloud resources. This field can contain the
              +     * following values:
              +     *
              +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +     * example, `principal://goog/subject/alice@example.com`.
              +     *
              +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +     * A Google Cloud service account. For example,
              +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +     *
              +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +     * `principalSet://goog/group/admins@example.com`.
              +     *
              +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +     * principals associated with the specified Google Workspace or Cloud
              +     * Identity customer ID. For example,
              +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +     *
              +     *
              +     * If an identifier that was previously set on a policy is soft deleted, then
              +     * calls to read that policy will return the identifier with a deleted
              +     * prefix. Users cannot set identifiers with this syntax.
              +     *
              +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +     * Google Account that was deleted recently. For example,
              +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +     * the Google Account is recovered, this identifier reverts to the standard
              +     * identifier for a Google Account.
              +     *
              +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +     * that was deleted recently. For example,
              +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +     * If the Google group is restored, this identifier reverts to the standard
              +     * identifier for a Google group.
              +     *
              +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +     * A Google Cloud service account that was deleted recently. For example,
              +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +     * If the service account is undeleted, this identifier reverts to the
              +     * standard identifier for a service account.
              +     * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param values The principals to add. + * @return This builder for chaining. + */ + public Builder addAllPrincipals(java.lang.Iterable values) { + ensurePrincipalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, principals_); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The identities for which this rule's effect governs using one or
              +     * more permissions on Google Cloud resources. This field can contain the
              +     * following values:
              +     *
              +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +     * example, `principal://goog/subject/alice@example.com`.
              +     *
              +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +     * A Google Cloud service account. For example,
              +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +     *
              +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +     * `principalSet://goog/group/admins@example.com`.
              +     *
              +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +     * principals associated with the specified Google Workspace or Cloud
              +     * Identity customer ID. For example,
              +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +     *
              +     *
              +     * If an identifier that was previously set on a policy is soft deleted, then
              +     * calls to read that policy will return the identifier with a deleted
              +     * prefix. Users cannot set identifiers with this syntax.
              +     *
              +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +     * Google Account that was deleted recently. For example,
              +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +     * the Google Account is recovered, this identifier reverts to the standard
              +     * identifier for a Google Account.
              +     *
              +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +     * that was deleted recently. For example,
              +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +     * If the Google group is restored, this identifier reverts to the standard
              +     * identifier for a Google group.
              +     *
              +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +     * A Google Cloud service account that was deleted recently. For example,
              +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +     * If the service account is undeleted, this identifier reverts to the
              +     * standard identifier for a service account.
              +     * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearPrincipals() { + principals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000004); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The identities for which this rule's effect governs using one or
              +     * more permissions on Google Cloud resources. This field can contain the
              +     * following values:
              +     *
              +     * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +     * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +     * example, `principal://goog/subject/alice@example.com`.
              +     *
              +     * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +     * A Google Cloud service account. For example,
              +     * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +     *
              +     * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +     * `principalSet://goog/group/admins@example.com`.
              +     *
              +     * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +     * principals associated with the specified Google Workspace or Cloud
              +     * Identity customer ID. For example,
              +     * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +     *
              +     *
              +     * If an identifier that was previously set on a policy is soft deleted, then
              +     * calls to read that policy will return the identifier with a deleted
              +     * prefix. Users cannot set identifiers with this syntax.
              +     *
              +     * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +     * Google Account that was deleted recently. For example,
              +     * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +     * the Google Account is recovered, this identifier reverts to the standard
              +     * identifier for a Google Account.
              +     *
              +     * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +     * that was deleted recently. For example,
              +     * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +     * If the Google group is restored, this identifier reverts to the standard
              +     * identifier for a Google group.
              +     *
              +     * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +     * A Google Cloud service account that was deleted recently. For example,
              +     * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +     * If the service account is undeleted, this identifier reverts to the
              +     * standard identifier for a service account.
              +     * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes of the principals to add. + * @return This builder for chaining. + */ + public Builder addPrincipalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensurePrincipalsIsMutable(); + principals_.add(value); + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.LazyStringArrayList excludedPrincipals_ = + com.google.protobuf.LazyStringArrayList.emptyList(); + + private void ensureExcludedPrincipalsIsMutable() { + if (!excludedPrincipals_.isModifiable()) { + excludedPrincipals_ = new com.google.protobuf.LazyStringArrayList(excludedPrincipals_); + } + bitField0_ |= 0x00000008; + } + + /** + * + * + *
              +     * Optional. The identities that are excluded from the access policy rule,
              +     * even if they are listed in the `principals`. For example, you could add a
              +     * Google group to the `principals`, then exclude specific users who belong to
              +     * that group.
              +     * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return A list containing the excludedPrincipals. + */ + public com.google.protobuf.ProtocolStringList getExcludedPrincipalsList() { + excludedPrincipals_.makeImmutable(); + return excludedPrincipals_; + } + + /** + * + * + *
              +     * Optional. The identities that are excluded from the access policy rule,
              +     * even if they are listed in the `principals`. For example, you could add a
              +     * Google group to the `principals`, then exclude specific users who belong to
              +     * that group.
              +     * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return The count of excludedPrincipals. + */ + public int getExcludedPrincipalsCount() { + return excludedPrincipals_.size(); + } + + /** + * + * + *
              +     * Optional. The identities that are excluded from the access policy rule,
              +     * even if they are listed in the `principals`. For example, you could add a
              +     * Google group to the `principals`, then exclude specific users who belong to
              +     * that group.
              +     * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the element to return. + * @return The excludedPrincipals at the given index. + */ + public java.lang.String getExcludedPrincipals(int index) { + return excludedPrincipals_.get(index); + } + + /** + * + * + *
              +     * Optional. The identities that are excluded from the access policy rule,
              +     * even if they are listed in the `principals`. For example, you could add a
              +     * Google group to the `principals`, then exclude specific users who belong to
              +     * that group.
              +     * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index of the value to return. + * @return The bytes of the excludedPrincipals at the given index. + */ + public com.google.protobuf.ByteString getExcludedPrincipalsBytes(int index) { + return excludedPrincipals_.getByteString(index); + } + + /** + * + * + *
              +     * Optional. The identities that are excluded from the access policy rule,
              +     * even if they are listed in the `principals`. For example, you could add a
              +     * Google group to the `principals`, then exclude specific users who belong to
              +     * that group.
              +     * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param index The index to set the value at. + * @param value The excludedPrincipals to set. + * @return This builder for chaining. + */ + public Builder setExcludedPrincipals(int index, java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.set(index, value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The identities that are excluded from the access policy rule,
              +     * even if they are listed in the `principals`. For example, you could add a
              +     * Google group to the `principals`, then exclude specific users who belong to
              +     * that group.
              +     * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The excludedPrincipals to add. + * @return This builder for chaining. + */ + public Builder addExcludedPrincipals(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The identities that are excluded from the access policy rule,
              +     * even if they are listed in the `principals`. For example, you could add a
              +     * Google group to the `principals`, then exclude specific users who belong to
              +     * that group.
              +     * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param values The excludedPrincipals to add. + * @return This builder for chaining. + */ + public Builder addAllExcludedPrincipals(java.lang.Iterable values) { + ensureExcludedPrincipalsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, excludedPrincipals_); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The identities that are excluded from the access policy rule,
              +     * even if they are listed in the `principals`. For example, you could add a
              +     * Google group to the `principals`, then exclude specific users who belong to
              +     * that group.
              +     * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @return This builder for chaining. + */ + public Builder clearExcludedPrincipals() { + excludedPrincipals_ = com.google.protobuf.LazyStringArrayList.emptyList(); + bitField0_ = (bitField0_ & ~0x00000008); + ; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The identities that are excluded from the access policy rule,
              +     * even if they are listed in the `principals`. For example, you could add a
              +     * Google group to the `principals`, then exclude specific users who belong to
              +     * that group.
              +     * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * + * @param value The bytes of the excludedPrincipals to add. + * @return This builder for chaining. + */ + public Builder addExcludedPrincipalsBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + ensureExcludedPrincipalsIsMutable(); + excludedPrincipals_.add(value); + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + private com.google.iam.v3beta.AccessPolicyRule.Operation operation_; + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicyRule.Operation, + com.google.iam.v3beta.AccessPolicyRule.Operation.Builder, + com.google.iam.v3beta.AccessPolicyRule.OperationOrBuilder> + operationBuilder_; + + /** + * + * + *
              +     * Required. Attributes that are used to determine whether this rule applies
              +     * to a request.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the operation field is set. + */ + public boolean hasOperation() { + return ((bitField0_ & 0x00000010) != 0); + } + + /** + * + * + *
              +     * Required. Attributes that are used to determine whether this rule applies
              +     * to a request.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + public com.google.iam.v3beta.AccessPolicyRule.Operation getOperation() { + if (operationBuilder_ == null) { + return operation_ == null + ? com.google.iam.v3beta.AccessPolicyRule.Operation.getDefaultInstance() + : operation_; + } else { + return operationBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. Attributes that are used to determine whether this rule applies
              +     * to a request.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOperation(com.google.iam.v3beta.AccessPolicyRule.Operation value) { + if (operationBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + operation_ = value; + } else { + operationBuilder_.setMessage(value); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Attributes that are used to determine whether this rule applies
              +     * to a request.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setOperation( + com.google.iam.v3beta.AccessPolicyRule.Operation.Builder builderForValue) { + if (operationBuilder_ == null) { + operation_ = builderForValue.build(); + } else { + operationBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Attributes that are used to determine whether this rule applies
              +     * to a request.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeOperation(com.google.iam.v3beta.AccessPolicyRule.Operation value) { + if (operationBuilder_ == null) { + if (((bitField0_ & 0x00000010) != 0) + && operation_ != null + && operation_ + != com.google.iam.v3beta.AccessPolicyRule.Operation.getDefaultInstance()) { + getOperationBuilder().mergeFrom(value); + } else { + operation_ = value; + } + } else { + operationBuilder_.mergeFrom(value); + } + if (operation_ != null) { + bitField0_ |= 0x00000010; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. Attributes that are used to determine whether this rule applies
              +     * to a request.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearOperation() { + bitField0_ = (bitField0_ & ~0x00000010); + operation_ = null; + if (operationBuilder_ != null) { + operationBuilder_.dispose(); + operationBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. Attributes that are used to determine whether this rule applies
              +     * to a request.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicyRule.Operation.Builder getOperationBuilder() { + bitField0_ |= 0x00000010; + onChanged(); + return internalGetOperationFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. Attributes that are used to determine whether this rule applies
              +     * to a request.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicyRule.OperationOrBuilder getOperationOrBuilder() { + if (operationBuilder_ != null) { + return operationBuilder_.getMessageOrBuilder(); + } else { + return operation_ == null + ? com.google.iam.v3beta.AccessPolicyRule.Operation.getDefaultInstance() + : operation_; + } + } + + /** + * + * + *
              +     * Required. Attributes that are used to determine whether this rule applies
              +     * to a request.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicyRule.Operation, + com.google.iam.v3beta.AccessPolicyRule.Operation.Builder, + com.google.iam.v3beta.AccessPolicyRule.OperationOrBuilder> + internalGetOperationFieldBuilder() { + if (operationBuilder_ == null) { + operationBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicyRule.Operation, + com.google.iam.v3beta.AccessPolicyRule.Operation.Builder, + com.google.iam.v3beta.AccessPolicyRule.OperationOrBuilder>( + getOperation(), getParentForChildren(), isClean()); + operation_ = null; + } + return operationBuilder_; + } + + private static final class ConditionsConverter + implements com.google.protobuf.MapFieldBuilder.Converter< + java.lang.String, com.google.type.ExprOrBuilder, com.google.type.Expr> { + @java.lang.Override + public com.google.type.Expr build(com.google.type.ExprOrBuilder val) { + if (val instanceof com.google.type.Expr) { + return (com.google.type.Expr) val; + } + return ((com.google.type.Expr.Builder) val).build(); + } + + @java.lang.Override + public com.google.protobuf.MapEntry defaultEntry() { + return ConditionsDefaultEntryHolder.defaultEntry; + } + } + ; + + private static final ConditionsConverter conditionsConverter = new ConditionsConverter(); + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.type.ExprOrBuilder, + com.google.type.Expr, + com.google.type.Expr.Builder> + conditions_; + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.type.ExprOrBuilder, + com.google.type.Expr, + com.google.type.Expr.Builder> + internalGetConditions() { + if (conditions_ == null) { + return new com.google.protobuf.MapFieldBuilder<>(conditionsConverter); + } + return conditions_; + } + + private com.google.protobuf.MapFieldBuilder< + java.lang.String, + com.google.type.ExprOrBuilder, + com.google.type.Expr, + com.google.type.Expr.Builder> + internalGetMutableConditions() { + if (conditions_ == null) { + conditions_ = new com.google.protobuf.MapFieldBuilder<>(conditionsConverter); + } + bitField0_ |= 0x00000020; + onChanged(); + return conditions_; + } + + public int getConditionsCount() { + return internalGetConditions().ensureBuilderMap().size(); + } + + /** + * + * + *
              +     * Optional. The conditions that determine whether this rule applies to a
              +     * request. Conditions are identified by their key, which is the FQDN of the
              +     * service that they are relevant to. For example:
              +     *
              +     * ```
              +     * "conditions": {
              +     * "iam.googleapis.com": {
              +     * "expression": <cel expression>
              +     * }
              +     * }
              +     * ```
              +     *
              +     * Each rule is evaluated independently. If this rule does not apply
              +     * to a request, other rules might still apply.
              +     * Currently supported keys are as follows:
              +     *
              +     *
              +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +     * resource fields.
              +     *
              +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +     * [resource
              +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +     * combine them using boolean and logical operators. Other functions and
              +     * operators are not supported.
              +     * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public boolean containsConditions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + return internalGetConditions().ensureBuilderMap().containsKey(key); + } + + /** Use {@link #getConditionsMap()} instead. */ + @java.lang.Override + @java.lang.Deprecated + public java.util.Map getConditions() { + return getConditionsMap(); + } + + /** + * + * + *
              +     * Optional. The conditions that determine whether this rule applies to a
              +     * request. Conditions are identified by their key, which is the FQDN of the
              +     * service that they are relevant to. For example:
              +     *
              +     * ```
              +     * "conditions": {
              +     * "iam.googleapis.com": {
              +     * "expression": <cel expression>
              +     * }
              +     * }
              +     * ```
              +     *
              +     * Each rule is evaluated independently. If this rule does not apply
              +     * to a request, other rules might still apply.
              +     * Currently supported keys are as follows:
              +     *
              +     *
              +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +     * resource fields.
              +     *
              +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +     * [resource
              +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +     * combine them using boolean and logical operators. Other functions and
              +     * operators are not supported.
              +     * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public java.util.Map getConditionsMap() { + return internalGetConditions().getImmutableMap(); + } + + /** + * + * + *
              +     * Optional. The conditions that determine whether this rule applies to a
              +     * request. Conditions are identified by their key, which is the FQDN of the
              +     * service that they are relevant to. For example:
              +     *
              +     * ```
              +     * "conditions": {
              +     * "iam.googleapis.com": {
              +     * "expression": <cel expression>
              +     * }
              +     * }
              +     * ```
              +     *
              +     * Each rule is evaluated independently. If this rule does not apply
              +     * to a request, other rules might still apply.
              +     * Currently supported keys are as follows:
              +     *
              +     *
              +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +     * resource fields.
              +     *
              +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +     * [resource
              +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +     * combine them using boolean and logical operators. Other functions and
              +     * operators are not supported.
              +     * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public /* nullable */ com.google.type.Expr getConditionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.type.Expr defaultValue) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableConditions().ensureBuilderMap(); + return map.containsKey(key) ? conditionsConverter.build(map.get(key)) : defaultValue; + } + + /** + * + * + *
              +     * Optional. The conditions that determine whether this rule applies to a
              +     * request. Conditions are identified by their key, which is the FQDN of the
              +     * service that they are relevant to. For example:
              +     *
              +     * ```
              +     * "conditions": {
              +     * "iam.googleapis.com": {
              +     * "expression": <cel expression>
              +     * }
              +     * }
              +     * ```
              +     *
              +     * Each rule is evaluated independently. If this rule does not apply
              +     * to a request, other rules might still apply.
              +     * Currently supported keys are as follows:
              +     *
              +     *
              +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +     * resource fields.
              +     *
              +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +     * [resource
              +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +     * combine them using boolean and logical operators. Other functions and
              +     * operators are not supported.
              +     * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + @java.lang.Override + public com.google.type.Expr getConditionsOrThrow(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + java.util.Map map = + internalGetMutableConditions().ensureBuilderMap(); + if (!map.containsKey(key)) { + throw new java.lang.IllegalArgumentException(); + } + return conditionsConverter.build(map.get(key)); + } + + public Builder clearConditions() { + bitField0_ = (bitField0_ & ~0x00000020); + internalGetMutableConditions().clear(); + return this; + } + + /** + * + * + *
              +     * Optional. The conditions that determine whether this rule applies to a
              +     * request. Conditions are identified by their key, which is the FQDN of the
              +     * service that they are relevant to. For example:
              +     *
              +     * ```
              +     * "conditions": {
              +     * "iam.googleapis.com": {
              +     * "expression": <cel expression>
              +     * }
              +     * }
              +     * ```
              +     *
              +     * Each rule is evaluated independently. If this rule does not apply
              +     * to a request, other rules might still apply.
              +     * Currently supported keys are as follows:
              +     *
              +     *
              +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +     * resource fields.
              +     *
              +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +     * [resource
              +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +     * combine them using boolean and logical operators. Other functions and
              +     * operators are not supported.
              +     * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder removeConditions(java.lang.String key) { + if (key == null) { + throw new NullPointerException("map key"); + } + internalGetMutableConditions().ensureBuilderMap().remove(key); + return this; + } + + /** Use alternate mutation accessors instead. */ + @java.lang.Deprecated + public java.util.Map getMutableConditions() { + bitField0_ |= 0x00000020; + return internalGetMutableConditions().ensureMessageMap(); + } + + /** + * + * + *
              +     * Optional. The conditions that determine whether this rule applies to a
              +     * request. Conditions are identified by their key, which is the FQDN of the
              +     * service that they are relevant to. For example:
              +     *
              +     * ```
              +     * "conditions": {
              +     * "iam.googleapis.com": {
              +     * "expression": <cel expression>
              +     * }
              +     * }
              +     * ```
              +     *
              +     * Each rule is evaluated independently. If this rule does not apply
              +     * to a request, other rules might still apply.
              +     * Currently supported keys are as follows:
              +     *
              +     *
              +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +     * resource fields.
              +     *
              +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +     * [resource
              +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +     * combine them using boolean and logical operators. Other functions and
              +     * operators are not supported.
              +     * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putConditions(java.lang.String key, com.google.type.Expr value) { + if (key == null) { + throw new NullPointerException("map key"); + } + if (value == null) { + throw new NullPointerException("map value"); + } + internalGetMutableConditions().ensureBuilderMap().put(key, value); + bitField0_ |= 0x00000020; + return this; + } + + /** + * + * + *
              +     * Optional. The conditions that determine whether this rule applies to a
              +     * request. Conditions are identified by their key, which is the FQDN of the
              +     * service that they are relevant to. For example:
              +     *
              +     * ```
              +     * "conditions": {
              +     * "iam.googleapis.com": {
              +     * "expression": <cel expression>
              +     * }
              +     * }
              +     * ```
              +     *
              +     * Each rule is evaluated independently. If this rule does not apply
              +     * to a request, other rules might still apply.
              +     * Currently supported keys are as follows:
              +     *
              +     *
              +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +     * resource fields.
              +     *
              +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +     * [resource
              +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +     * combine them using boolean and logical operators. Other functions and
              +     * operators are not supported.
              +     * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public Builder putAllConditions(java.util.Map values) { + for (java.util.Map.Entry e : values.entrySet()) { + if (e.getKey() == null || e.getValue() == null) { + throw new NullPointerException(); + } + } + internalGetMutableConditions().ensureBuilderMap().putAll(values); + bitField0_ |= 0x00000020; + return this; + } + + /** + * + * + *
              +     * Optional. The conditions that determine whether this rule applies to a
              +     * request. Conditions are identified by their key, which is the FQDN of the
              +     * service that they are relevant to. For example:
              +     *
              +     * ```
              +     * "conditions": {
              +     * "iam.googleapis.com": {
              +     * "expression": <cel expression>
              +     * }
              +     * }
              +     * ```
              +     *
              +     * Each rule is evaluated independently. If this rule does not apply
              +     * to a request, other rules might still apply.
              +     * Currently supported keys are as follows:
              +     *
              +     *
              +     * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +     * resource fields.
              +     *
              +     * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +     * [resource
              +     * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +     * combine them using boolean and logical operators. Other functions and
              +     * operators are not supported.
              +     * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + public com.google.type.Expr.Builder putConditionsBuilderIfAbsent(java.lang.String key) { + java.util.Map builderMap = + internalGetMutableConditions().ensureBuilderMap(); + com.google.type.ExprOrBuilder entry = builderMap.get(key); + if (entry == null) { + entry = com.google.type.Expr.newBuilder(); + builderMap.put(key, entry); + } + if (entry instanceof com.google.type.Expr) { + entry = ((com.google.type.Expr) entry).toBuilder(); + builderMap.put(key, entry); + } + return (com.google.type.Expr.Builder) entry; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.AccessPolicyRule) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.AccessPolicyRule) + private static final com.google.iam.v3beta.AccessPolicyRule DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.AccessPolicyRule(); + } + + public static com.google.iam.v3beta.AccessPolicyRule getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public AccessPolicyRule 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.iam.v3beta.AccessPolicyRule getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyRuleOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyRuleOrBuilder.java new file mode 100644 index 000000000000..745fb2b212ed --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/AccessPolicyRuleOrBuilder.java @@ -0,0 +1,638 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policy_resources.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface AccessPolicyRuleOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.AccessPolicyRule) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Optional. Customer specified description of the rule. Must be less than or
              +   * equal to 256 characters.
              +   * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return Whether the description field is set. + */ + boolean hasDescription(); + + /** + * + * + *
              +   * Optional. Customer specified description of the rule. Must be less than or
              +   * equal to 256 characters.
              +   * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The description. + */ + java.lang.String getDescription(); + + /** + * + * + *
              +   * Optional. Customer specified description of the rule. Must be less than or
              +   * equal to 256 characters.
              +   * 
              + * + * optional string description = 1 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for description. + */ + com.google.protobuf.ByteString getDescriptionBytes(); + + /** + * + * + *
              +   * Required. The effect of the rule.
              +   * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the effect field is set. + */ + boolean hasEffect(); + + /** + * + * + *
              +   * Required. The effect of the rule.
              +   * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The enum numeric value on the wire for effect. + */ + int getEffectValue(); + + /** + * + * + *
              +   * Required. The effect of the rule.
              +   * 
              + * + * + * optional .google.iam.v3beta.AccessPolicyRule.Effect effect = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The effect. + */ + com.google.iam.v3beta.AccessPolicyRule.Effect getEffect(); + + /** + * + * + *
              +   * Required. The identities for which this rule's effect governs using one or
              +   * more permissions on Google Cloud resources. This field can contain the
              +   * following values:
              +   *
              +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +   * example, `principal://goog/subject/alice@example.com`.
              +   *
              +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +   * A Google Cloud service account. For example,
              +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +   *
              +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +   * `principalSet://goog/group/admins@example.com`.
              +   *
              +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +   * principals associated with the specified Google Workspace or Cloud
              +   * Identity customer ID. For example,
              +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +   *
              +   *
              +   * If an identifier that was previously set on a policy is soft deleted, then
              +   * calls to read that policy will return the identifier with a deleted
              +   * prefix. Users cannot set identifiers with this syntax.
              +   *
              +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +   * Google Account that was deleted recently. For example,
              +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +   * the Google Account is recovered, this identifier reverts to the standard
              +   * identifier for a Google Account.
              +   *
              +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +   * that was deleted recently. For example,
              +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +   * If the Google group is restored, this identifier reverts to the standard
              +   * identifier for a Google group.
              +   *
              +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +   * A Google Cloud service account that was deleted recently. For example,
              +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +   * If the service account is undeleted, this identifier reverts to the
              +   * standard identifier for a service account.
              +   * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return A list containing the principals. + */ + java.util.List getPrincipalsList(); + + /** + * + * + *
              +   * Required. The identities for which this rule's effect governs using one or
              +   * more permissions on Google Cloud resources. This field can contain the
              +   * following values:
              +   *
              +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +   * example, `principal://goog/subject/alice@example.com`.
              +   *
              +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +   * A Google Cloud service account. For example,
              +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +   *
              +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +   * `principalSet://goog/group/admins@example.com`.
              +   *
              +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +   * principals associated with the specified Google Workspace or Cloud
              +   * Identity customer ID. For example,
              +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +   *
              +   *
              +   * If an identifier that was previously set on a policy is soft deleted, then
              +   * calls to read that policy will return the identifier with a deleted
              +   * prefix. Users cannot set identifiers with this syntax.
              +   *
              +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +   * Google Account that was deleted recently. For example,
              +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +   * the Google Account is recovered, this identifier reverts to the standard
              +   * identifier for a Google Account.
              +   *
              +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +   * that was deleted recently. For example,
              +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +   * If the Google group is restored, this identifier reverts to the standard
              +   * identifier for a Google group.
              +   *
              +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +   * A Google Cloud service account that was deleted recently. For example,
              +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +   * If the service account is undeleted, this identifier reverts to the
              +   * standard identifier for a service account.
              +   * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The count of principals. + */ + int getPrincipalsCount(); + + /** + * + * + *
              +   * Required. The identities for which this rule's effect governs using one or
              +   * more permissions on Google Cloud resources. This field can contain the
              +   * following values:
              +   *
              +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +   * example, `principal://goog/subject/alice@example.com`.
              +   *
              +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +   * A Google Cloud service account. For example,
              +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +   *
              +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +   * `principalSet://goog/group/admins@example.com`.
              +   *
              +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +   * principals associated with the specified Google Workspace or Cloud
              +   * Identity customer ID. For example,
              +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +   *
              +   *
              +   * If an identifier that was previously set on a policy is soft deleted, then
              +   * calls to read that policy will return the identifier with a deleted
              +   * prefix. Users cannot set identifiers with this syntax.
              +   *
              +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +   * Google Account that was deleted recently. For example,
              +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +   * the Google Account is recovered, this identifier reverts to the standard
              +   * identifier for a Google Account.
              +   *
              +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +   * that was deleted recently. For example,
              +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +   * If the Google group is restored, this identifier reverts to the standard
              +   * identifier for a Google group.
              +   *
              +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +   * A Google Cloud service account that was deleted recently. For example,
              +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +   * If the service account is undeleted, this identifier reverts to the
              +   * standard identifier for a service account.
              +   * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the element to return. + * @return The principals at the given index. + */ + java.lang.String getPrincipals(int index); + + /** + * + * + *
              +   * Required. The identities for which this rule's effect governs using one or
              +   * more permissions on Google Cloud resources. This field can contain the
              +   * following values:
              +   *
              +   * * `principal://goog/subject/{email_id}`: A specific Google Account.
              +   * Includes Gmail, Cloud Identity, and Google Workspace user accounts. For
              +   * example, `principal://goog/subject/alice@example.com`.
              +   *
              +   * * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`:
              +   * A Google Cloud service account. For example,
              +   * `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`.
              +   *
              +   * * `principalSet://goog/group/{group_id}`: A Google group. For example,
              +   * `principalSet://goog/group/admins@example.com`.
              +   *
              +   * * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the
              +   * principals associated with the specified Google Workspace or Cloud
              +   * Identity customer ID. For example,
              +   * `principalSet://goog/cloudIdentityCustomerId/C01Abc35`.
              +   *
              +   *
              +   * If an identifier that was previously set on a policy is soft deleted, then
              +   * calls to read that policy will return the identifier with a deleted
              +   * prefix. Users cannot set identifiers with this syntax.
              +   *
              +   * * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific
              +   * Google Account that was deleted recently. For example,
              +   * `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If
              +   * the Google Account is recovered, this identifier reverts to the standard
              +   * identifier for a Google Account.
              +   *
              +   * * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group
              +   * that was deleted recently. For example,
              +   * `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`.
              +   * If the Google group is restored, this identifier reverts to the standard
              +   * identifier for a Google group.
              +   *
              +   * * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`:
              +   * A Google Cloud service account that was deleted recently. For example,
              +   * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`.
              +   * If the service account is undeleted, this identifier reverts to the
              +   * standard identifier for a service account.
              +   * 
              + * + * repeated string principals = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * @param index The index of the value to return. + * @return The bytes of the principals at the given index. + */ + com.google.protobuf.ByteString getPrincipalsBytes(int index); + + /** + * + * + *
              +   * Optional. The identities that are excluded from the access policy rule,
              +   * even if they are listed in the `principals`. For example, you could add a
              +   * Google group to the `principals`, then exclude specific users who belong to
              +   * that group.
              +   * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return A list containing the excludedPrincipals. + */ + java.util.List getExcludedPrincipalsList(); + + /** + * + * + *
              +   * Optional. The identities that are excluded from the access policy rule,
              +   * even if they are listed in the `principals`. For example, you could add a
              +   * Google group to the `principals`, then exclude specific users who belong to
              +   * that group.
              +   * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The count of excludedPrincipals. + */ + int getExcludedPrincipalsCount(); + + /** + * + * + *
              +   * Optional. The identities that are excluded from the access policy rule,
              +   * even if they are listed in the `principals`. For example, you could add a
              +   * Google group to the `principals`, then exclude specific users who belong to
              +   * that group.
              +   * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the element to return. + * @return The excludedPrincipals at the given index. + */ + java.lang.String getExcludedPrincipals(int index); + + /** + * + * + *
              +   * Optional. The identities that are excluded from the access policy rule,
              +   * even if they are listed in the `principals`. For example, you could add a
              +   * Google group to the `principals`, then exclude specific users who belong to
              +   * that group.
              +   * 
              + * + * repeated string excluded_principals = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param index The index of the value to return. + * @return The bytes of the excludedPrincipals at the given index. + */ + com.google.protobuf.ByteString getExcludedPrincipalsBytes(int index); + + /** + * + * + *
              +   * Required. Attributes that are used to determine whether this rule applies
              +   * to a request.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the operation field is set. + */ + boolean hasOperation(); + + /** + * + * + *
              +   * Required. Attributes that are used to determine whether this rule applies
              +   * to a request.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The operation. + */ + com.google.iam.v3beta.AccessPolicyRule.Operation getOperation(); + + /** + * + * + *
              +   * Required. Attributes that are used to determine whether this rule applies
              +   * to a request.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicyRule.Operation operation = 10 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3beta.AccessPolicyRule.OperationOrBuilder getOperationOrBuilder(); + + /** + * + * + *
              +   * Optional. The conditions that determine whether this rule applies to a
              +   * request. Conditions are identified by their key, which is the FQDN of the
              +   * service that they are relevant to. For example:
              +   *
              +   * ```
              +   * "conditions": {
              +   * "iam.googleapis.com": {
              +   * "expression": <cel expression>
              +   * }
              +   * }
              +   * ```
              +   *
              +   * Each rule is evaluated independently. If this rule does not apply
              +   * to a request, other rules might still apply.
              +   * Currently supported keys are as follows:
              +   *
              +   *
              +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +   * resource fields.
              +   *
              +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +   * [resource
              +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +   * combine them using boolean and logical operators. Other functions and
              +   * operators are not supported.
              +   * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + int getConditionsCount(); + + /** + * + * + *
              +   * Optional. The conditions that determine whether this rule applies to a
              +   * request. Conditions are identified by their key, which is the FQDN of the
              +   * service that they are relevant to. For example:
              +   *
              +   * ```
              +   * "conditions": {
              +   * "iam.googleapis.com": {
              +   * "expression": <cel expression>
              +   * }
              +   * }
              +   * ```
              +   *
              +   * Each rule is evaluated independently. If this rule does not apply
              +   * to a request, other rules might still apply.
              +   * Currently supported keys are as follows:
              +   *
              +   *
              +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +   * resource fields.
              +   *
              +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +   * [resource
              +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +   * combine them using boolean and logical operators. Other functions and
              +   * operators are not supported.
              +   * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + boolean containsConditions(java.lang.String key); + + /** Use {@link #getConditionsMap()} instead. */ + @java.lang.Deprecated + java.util.Map getConditions(); + + /** + * + * + *
              +   * Optional. The conditions that determine whether this rule applies to a
              +   * request. Conditions are identified by their key, which is the FQDN of the
              +   * service that they are relevant to. For example:
              +   *
              +   * ```
              +   * "conditions": {
              +   * "iam.googleapis.com": {
              +   * "expression": <cel expression>
              +   * }
              +   * }
              +   * ```
              +   *
              +   * Each rule is evaluated independently. If this rule does not apply
              +   * to a request, other rules might still apply.
              +   * Currently supported keys are as follows:
              +   *
              +   *
              +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +   * resource fields.
              +   *
              +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +   * [resource
              +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +   * combine them using boolean and logical operators. Other functions and
              +   * operators are not supported.
              +   * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + java.util.Map getConditionsMap(); + + /** + * + * + *
              +   * Optional. The conditions that determine whether this rule applies to a
              +   * request. Conditions are identified by their key, which is the FQDN of the
              +   * service that they are relevant to. For example:
              +   *
              +   * ```
              +   * "conditions": {
              +   * "iam.googleapis.com": {
              +   * "expression": <cel expression>
              +   * }
              +   * }
              +   * ```
              +   *
              +   * Each rule is evaluated independently. If this rule does not apply
              +   * to a request, other rules might still apply.
              +   * Currently supported keys are as follows:
              +   *
              +   *
              +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +   * resource fields.
              +   *
              +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +   * [resource
              +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +   * combine them using boolean and logical operators. Other functions and
              +   * operators are not supported.
              +   * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + /* nullable */ + com.google.type.Expr getConditionsOrDefault( + java.lang.String key, + /* nullable */ + com.google.type.Expr defaultValue); + + /** + * + * + *
              +   * Optional. The conditions that determine whether this rule applies to a
              +   * request. Conditions are identified by their key, which is the FQDN of the
              +   * service that they are relevant to. For example:
              +   *
              +   * ```
              +   * "conditions": {
              +   * "iam.googleapis.com": {
              +   * "expression": <cel expression>
              +   * }
              +   * }
              +   * ```
              +   *
              +   * Each rule is evaluated independently. If this rule does not apply
              +   * to a request, other rules might still apply.
              +   * Currently supported keys are as follows:
              +   *
              +   *
              +   * * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate
              +   * resource fields.
              +   *
              +   * * `iam.googleapis.com`: Can use `CEL` functions that evaluate
              +   * [resource
              +   * tags](https://cloud.google.com/iam/help/conditions/resource-tags) and
              +   * combine them using boolean and logical operators. Other functions and
              +   * operators are not supported.
              +   * 
              + * + * + * map<string, .google.type.Expr> conditions = 9 [(.google.api.field_behavior) = OPTIONAL]; + * + */ + com.google.type.Expr getConditionsOrThrow(java.lang.String key); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/CreateAccessPolicyRequest.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/CreateAccessPolicyRequest.java new file mode 100644 index 000000000000..2324164556a4 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/CreateAccessPolicyRequest.java @@ -0,0 +1,1315 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Request message for CreateAccessPolicy method.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.CreateAccessPolicyRequest} + */ +@com.google.protobuf.Generated +public final class CreateAccessPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.CreateAccessPolicyRequest) + CreateAccessPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "CreateAccessPolicyRequest"); + } + + // Use CreateAccessPolicyRequest.newBuilder() to construct. + private CreateAccessPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private CreateAccessPolicyRequest() { + parent_ = ""; + accessPolicyId_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_CreateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_CreateAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.CreateAccessPolicyRequest.class, + com.google.iam.v3beta.CreateAccessPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent resource where this access policy will be created.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}`
              +   * `projects/{project_number}/locations/{location}`
              +   * `folders/{folder_id}/locations/{location}`
              +   * `organizations/{organization_id}/locations/{location}`
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. The parent resource where this access policy will be created.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}`
              +   * `projects/{project_number}/locations/{location}`
              +   * `folders/{folder_id}/locations/{location}`
              +   * `organizations/{organization_id}/locations/{location}`
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCESS_POLICY_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object accessPolicyId_ = ""; + + /** + * + * + *
              +   * Required. The ID to use for the access policy, which
              +   * will become the final component of the access policy's
              +   * resource name.
              +   *
              +   * This value must start with a lowercase letter followed by up to 62
              +   * lowercase letters, numbers, hyphens, or dots. Pattern,
              +   * /[a-z][a-z0-9-\.]{2,62}/.
              +   *
              +   * This value must be unique among all access policies with the same parent.
              +   * 
              + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The accessPolicyId. + */ + @java.lang.Override + public java.lang.String getAccessPolicyId() { + java.lang.Object ref = accessPolicyId_; + 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(); + accessPolicyId_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. The ID to use for the access policy, which
              +   * will become the final component of the access policy's
              +   * resource name.
              +   *
              +   * This value must start with a lowercase letter followed by up to 62
              +   * lowercase letters, numbers, hyphens, or dots. Pattern,
              +   * /[a-z][a-z0-9-\.]{2,62}/.
              +   *
              +   * This value must be unique among all access policies with the same parent.
              +   * 
              + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for accessPolicyId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getAccessPolicyIdBytes() { + java.lang.Object ref = accessPolicyId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accessPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ACCESS_POLICY_FIELD_NUMBER = 3; + private com.google.iam.v3beta.AccessPolicy accessPolicy_; + + /** + * + * + *
              +   * Required. The access policy to create.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + @java.lang.Override + public boolean hasAccessPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The access policy to create.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicy getAccessPolicy() { + return accessPolicy_ == null + ? com.google.iam.v3beta.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + + /** + * + * + *
              +   * Required. The access policy to create.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyOrBuilder getAccessPolicyOrBuilder() { + return accessPolicy_ == null + ? com.google.iam.v3beta.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 4; + private boolean validateOnly_ = false; + + /** + * + * + *
              +   * Optional. If set, validate the request and preview the creation, but do not
              +   * actually post it.
              +   * 
              + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accessPolicyId_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, accessPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + output.writeMessage(3, getAccessPolicy()); + } + if (validateOnly_ != false) { + output.writeBool(4, validateOnly_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(accessPolicyId_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, accessPolicyId_); + } + if (((bitField0_ & 0x00000001) != 0)) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getAccessPolicy()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, validateOnly_); + } + 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.iam.v3beta.CreateAccessPolicyRequest)) { + return super.equals(obj); + } + com.google.iam.v3beta.CreateAccessPolicyRequest other = + (com.google.iam.v3beta.CreateAccessPolicyRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getAccessPolicyId().equals(other.getAccessPolicyId())) return false; + if (hasAccessPolicy() != other.hasAccessPolicy()) return false; + if (hasAccessPolicy()) { + if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + ACCESS_POLICY_ID_FIELD_NUMBER; + hash = (53 * hash) + getAccessPolicyId().hashCode(); + if (hasAccessPolicy()) { + hash = (37 * hash) + ACCESS_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAccessPolicy().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest 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.iam.v3beta.CreateAccessPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.CreateAccessPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for CreateAccessPolicy method.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.CreateAccessPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.CreateAccessPolicyRequest) + com.google.iam.v3beta.CreateAccessPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_CreateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_CreateAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.CreateAccessPolicyRequest.class, + com.google.iam.v3beta.CreateAccessPolicyRequest.Builder.class); + } + + // Construct using com.google.iam.v3beta.CreateAccessPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAccessPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + accessPolicyId_ = ""; + accessPolicy_ = null; + if (accessPolicyBuilder_ != null) { + accessPolicyBuilder_.dispose(); + accessPolicyBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_CreateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.CreateAccessPolicyRequest getDefaultInstanceForType() { + return com.google.iam.v3beta.CreateAccessPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.CreateAccessPolicyRequest build() { + com.google.iam.v3beta.CreateAccessPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.CreateAccessPolicyRequest buildPartial() { + com.google.iam.v3beta.CreateAccessPolicyRequest result = + new com.google.iam.v3beta.CreateAccessPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3beta.CreateAccessPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.accessPolicyId_ = accessPolicyId_; + } + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000004) != 0)) { + result.accessPolicy_ = + accessPolicyBuilder_ == null ? accessPolicy_ : accessPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.validateOnly_ = validateOnly_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.CreateAccessPolicyRequest) { + return mergeFrom((com.google.iam.v3beta.CreateAccessPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.CreateAccessPolicyRequest other) { + if (other == com.google.iam.v3beta.CreateAccessPolicyRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getAccessPolicyId().isEmpty()) { + accessPolicyId_ = other.accessPolicyId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.hasAccessPolicy()) { + mergeAccessPolicy(other.getAccessPolicy()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + 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: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + accessPolicyId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage( + internalGetAccessPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 32: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + 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 parent_ = ""; + + /** + * + * + *
              +     * Required. The parent resource where this access policy will be created.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. The parent resource where this access policy will be created.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. The parent resource where this access policy will be created.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The parent resource where this access policy will be created.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The parent resource where this access policy will be created.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object accessPolicyId_ = ""; + + /** + * + * + *
              +     * Required. The ID to use for the access policy, which
              +     * will become the final component of the access policy's
              +     * resource name.
              +     *
              +     * This value must start with a lowercase letter followed by up to 62
              +     * lowercase letters, numbers, hyphens, or dots. Pattern,
              +     * /[a-z][a-z0-9-\.]{2,62}/.
              +     *
              +     * This value must be unique among all access policies with the same parent.
              +     * 
              + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The accessPolicyId. + */ + public java.lang.String getAccessPolicyId() { + java.lang.Object ref = accessPolicyId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + accessPolicyId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. The ID to use for the access policy, which
              +     * will become the final component of the access policy's
              +     * resource name.
              +     *
              +     * This value must start with a lowercase letter followed by up to 62
              +     * lowercase letters, numbers, hyphens, or dots. Pattern,
              +     * /[a-z][a-z0-9-\.]{2,62}/.
              +     *
              +     * This value must be unique among all access policies with the same parent.
              +     * 
              + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for accessPolicyId. + */ + public com.google.protobuf.ByteString getAccessPolicyIdBytes() { + java.lang.Object ref = accessPolicyId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + accessPolicyId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. The ID to use for the access policy, which
              +     * will become the final component of the access policy's
              +     * resource name.
              +     *
              +     * This value must start with a lowercase letter followed by up to 62
              +     * lowercase letters, numbers, hyphens, or dots. Pattern,
              +     * /[a-z][a-z0-9-\.]{2,62}/.
              +     *
              +     * This value must be unique among all access policies with the same parent.
              +     * 
              + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The accessPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAccessPolicyId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + accessPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The ID to use for the access policy, which
              +     * will become the final component of the access policy's
              +     * resource name.
              +     *
              +     * This value must start with a lowercase letter followed by up to 62
              +     * lowercase letters, numbers, hyphens, or dots. Pattern,
              +     * /[a-z][a-z0-9-\.]{2,62}/.
              +     *
              +     * This value must be unique among all access policies with the same parent.
              +     * 
              + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearAccessPolicyId() { + accessPolicyId_ = getDefaultInstance().getAccessPolicyId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The ID to use for the access policy, which
              +     * will become the final component of the access policy's
              +     * resource name.
              +     *
              +     * This value must start with a lowercase letter followed by up to 62
              +     * lowercase letters, numbers, hyphens, or dots. Pattern,
              +     * /[a-z][a-z0-9-\.]{2,62}/.
              +     *
              +     * This value must be unique among all access policies with the same parent.
              +     * 
              + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for accessPolicyId to set. + * @return This builder for chaining. + */ + public Builder setAccessPolicyIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + accessPolicyId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private com.google.iam.v3beta.AccessPolicy accessPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicy, + com.google.iam.v3beta.AccessPolicy.Builder, + com.google.iam.v3beta.AccessPolicyOrBuilder> + accessPolicyBuilder_; + + /** + * + * + *
              +     * Required. The access policy to create.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + public boolean hasAccessPolicy() { + return ((bitField0_ & 0x00000004) != 0); + } + + /** + * + * + *
              +     * Required. The access policy to create.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + public com.google.iam.v3beta.AccessPolicy getAccessPolicy() { + if (accessPolicyBuilder_ == null) { + return accessPolicy_ == null + ? com.google.iam.v3beta.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } else { + return accessPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The access policy to create.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessPolicy(com.google.iam.v3beta.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessPolicy_ = value; + } else { + accessPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The access policy to create.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessPolicy(com.google.iam.v3beta.AccessPolicy.Builder builderForValue) { + if (accessPolicyBuilder_ == null) { + accessPolicy_ = builderForValue.build(); + } else { + accessPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The access policy to create.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccessPolicy(com.google.iam.v3beta.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && accessPolicy_ != null + && accessPolicy_ != com.google.iam.v3beta.AccessPolicy.getDefaultInstance()) { + getAccessPolicyBuilder().mergeFrom(value); + } else { + accessPolicy_ = value; + } + } else { + accessPolicyBuilder_.mergeFrom(value); + } + if (accessPolicy_ != null) { + bitField0_ |= 0x00000004; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The access policy to create.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccessPolicy() { + bitField0_ = (bitField0_ & ~0x00000004); + accessPolicy_ = null; + if (accessPolicyBuilder_ != null) { + accessPolicyBuilder_.dispose(); + accessPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The access policy to create.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicy.Builder getAccessPolicyBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return internalGetAccessPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The access policy to create.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicyOrBuilder getAccessPolicyOrBuilder() { + if (accessPolicyBuilder_ != null) { + return accessPolicyBuilder_.getMessageOrBuilder(); + } else { + return accessPolicy_ == null + ? com.google.iam.v3beta.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + } + + /** + * + * + *
              +     * Required. The access policy to create.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicy, + com.google.iam.v3beta.AccessPolicy.Builder, + com.google.iam.v3beta.AccessPolicyOrBuilder> + internalGetAccessPolicyFieldBuilder() { + if (accessPolicyBuilder_ == null) { + accessPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicy, + com.google.iam.v3beta.AccessPolicy.Builder, + com.google.iam.v3beta.AccessPolicyOrBuilder>( + getAccessPolicy(), getParentForChildren(), isClean()); + accessPolicy_ = null; + } + return accessPolicyBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
              +     * Optional. If set, validate the request and preview the creation, but do not
              +     * actually post it.
              +     * 
              + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
              +     * Optional. If set, validate the request and preview the creation, but do not
              +     * actually post it.
              +     * 
              + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. If set, validate the request and preview the creation, but do not
              +     * actually post it.
              +     * 
              + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000008); + validateOnly_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.CreateAccessPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.CreateAccessPolicyRequest) + private static final com.google.iam.v3beta.CreateAccessPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.CreateAccessPolicyRequest(); + } + + public static com.google.iam.v3beta.CreateAccessPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CreateAccessPolicyRequest 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.iam.v3beta.CreateAccessPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/CreateAccessPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/CreateAccessPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..c4f23c45bcd6 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/CreateAccessPolicyRequestOrBuilder.java @@ -0,0 +1,169 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface CreateAccessPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.CreateAccessPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent resource where this access policy will be created.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}`
              +   * `projects/{project_number}/locations/{location}`
              +   * `folders/{folder_id}/locations/{location}`
              +   * `organizations/{organization_id}/locations/{location}`
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent resource where this access policy will be created.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}`
              +   * `projects/{project_number}/locations/{location}`
              +   * `folders/{folder_id}/locations/{location}`
              +   * `organizations/{organization_id}/locations/{location}`
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Required. The ID to use for the access policy, which
              +   * will become the final component of the access policy's
              +   * resource name.
              +   *
              +   * This value must start with a lowercase letter followed by up to 62
              +   * lowercase letters, numbers, hyphens, or dots. Pattern,
              +   * /[a-z][a-z0-9-\.]{2,62}/.
              +   *
              +   * This value must be unique among all access policies with the same parent.
              +   * 
              + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The accessPolicyId. + */ + java.lang.String getAccessPolicyId(); + + /** + * + * + *
              +   * Required. The ID to use for the access policy, which
              +   * will become the final component of the access policy's
              +   * resource name.
              +   *
              +   * This value must start with a lowercase letter followed by up to 62
              +   * lowercase letters, numbers, hyphens, or dots. Pattern,
              +   * /[a-z][a-z0-9-\.]{2,62}/.
              +   *
              +   * This value must be unique among all access policies with the same parent.
              +   * 
              + * + * string access_policy_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for accessPolicyId. + */ + com.google.protobuf.ByteString getAccessPolicyIdBytes(); + + /** + * + * + *
              +   * Required. The access policy to create.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + boolean hasAccessPolicy(); + + /** + * + * + *
              +   * Required. The access policy to create.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + com.google.iam.v3beta.AccessPolicy getAccessPolicy(); + + /** + * + * + *
              +   * Required. The access policy to create.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 3 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3beta.AccessPolicyOrBuilder getAccessPolicyOrBuilder(); + + /** + * + * + *
              +   * Optional. If set, validate the request and preview the creation, but do not
              +   * actually post it.
              +   * 
              + * + * bool validate_only = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/DeleteAccessPolicyRequest.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/DeleteAccessPolicyRequest.java new file mode 100644 index 000000000000..4abd58f035aa --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/DeleteAccessPolicyRequest.java @@ -0,0 +1,1050 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Request message for DeleteAccessPolicy method.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.DeleteAccessPolicyRequest} + */ +@com.google.protobuf.Generated +public final class DeleteAccessPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.DeleteAccessPolicyRequest) + DeleteAccessPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "DeleteAccessPolicyRequest"); + } + + // Use DeleteAccessPolicyRequest.newBuilder() to construct. + private DeleteAccessPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private DeleteAccessPolicyRequest() { + name_ = ""; + etag_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.DeleteAccessPolicyRequest.class, + com.google.iam.v3beta.DeleteAccessPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The name of the access policy to delete.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. The name of the access policy to delete.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int ETAG_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object etag_ = ""; + + /** + * + * + *
              +   * Optional. The etag of the access policy. If this is provided, it must match
              +   * the server's etag.
              +   * 
              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + @java.lang.Override + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + 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(); + etag_ = s; + return s; + } + } + + /** + * + * + *
              +   * Optional. The etag of the access policy. If this is provided, it must match
              +   * the server's etag.
              +   * 
              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 3; + private boolean validateOnly_ = false; + + /** + * + * + *
              +   * Optional. If set, validate the request and preview the deletion, but do not
              +   * actually post it.
              +   * 
              + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + public static final int FORCE_FIELD_NUMBER = 4; + private boolean force_ = false; + + /** + * + * + *
              +   * Optional. If set to true, the request will force the deletion of the Policy
              +   * even if the Policy references PolicyBindings.
              +   * 
              + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, etag_); + } + if (validateOnly_ != false) { + output.writeBool(3, validateOnly_); + } + if (force_ != false) { + output.writeBool(4, force_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(etag_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, etag_); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(3, validateOnly_); + } + if (force_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(4, force_); + } + 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.iam.v3beta.DeleteAccessPolicyRequest)) { + return super.equals(obj); + } + com.google.iam.v3beta.DeleteAccessPolicyRequest other = + (com.google.iam.v3beta.DeleteAccessPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getEtag().equals(other.getEtag())) return false; + if (getValidateOnly() != other.getValidateOnly()) return false; + if (getForce() != other.getForce()) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ETAG_FIELD_NUMBER; + hash = (53 * hash) + getEtag().hashCode(); + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (37 * hash) + FORCE_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getForce()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest 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.iam.v3beta.DeleteAccessPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.DeleteAccessPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for DeleteAccessPolicy method.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.DeleteAccessPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.DeleteAccessPolicyRequest) + com.google.iam.v3beta.DeleteAccessPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.DeleteAccessPolicyRequest.class, + com.google.iam.v3beta.DeleteAccessPolicyRequest.Builder.class); + } + + // Construct using com.google.iam.v3beta.DeleteAccessPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + etag_ = ""; + validateOnly_ = false; + force_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_DeleteAccessPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.DeleteAccessPolicyRequest getDefaultInstanceForType() { + return com.google.iam.v3beta.DeleteAccessPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.DeleteAccessPolicyRequest build() { + com.google.iam.v3beta.DeleteAccessPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.DeleteAccessPolicyRequest buildPartial() { + com.google.iam.v3beta.DeleteAccessPolicyRequest result = + new com.google.iam.v3beta.DeleteAccessPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3beta.DeleteAccessPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.etag_ = etag_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.validateOnly_ = validateOnly_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.force_ = force_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.DeleteAccessPolicyRequest) { + return mergeFrom((com.google.iam.v3beta.DeleteAccessPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.DeleteAccessPolicyRequest other) { + if (other == com.google.iam.v3beta.DeleteAccessPolicyRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getEtag().isEmpty()) { + etag_ = other.etag_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + if (other.getForce() != false) { + setForce(other.getForce()); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + etag_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 24: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000004; + break; + } // case 24 + case 32: + { + force_ = input.readBool(); + bitField0_ |= 0x00000008; + break; + } // case 32 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
              +     * Required. The name of the access policy to delete.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. The name of the access policy to delete.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. The name of the access policy to delete.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The name of the access policy to delete.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The name of the access policy to delete.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object etag_ = ""; + + /** + * + * + *
              +     * Optional. The etag of the access policy. If this is provided, it must match
              +     * the server's etag.
              +     * 
              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + public java.lang.String getEtag() { + java.lang.Object ref = etag_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + etag_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Optional. The etag of the access policy. If this is provided, it must match
              +     * the server's etag.
              +     * 
              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + public com.google.protobuf.ByteString getEtagBytes() { + java.lang.Object ref = etag_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + etag_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Optional. The etag of the access policy. If this is provided, it must match
              +     * the server's etag.
              +     * 
              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The etag to set. + * @return This builder for chaining. + */ + public Builder setEtag(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The etag of the access policy. If this is provided, it must match
              +     * the server's etag.
              +     * 
              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearEtag() { + etag_ = getDefaultInstance().getEtag(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The etag of the access policy. If this is provided, it must match
              +     * the server's etag.
              +     * 
              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for etag to set. + * @return This builder for chaining. + */ + public Builder setEtagBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + etag_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private boolean validateOnly_; + + /** + * + * + *
              +     * Optional. If set, validate the request and preview the deletion, but do not
              +     * actually post it.
              +     * 
              + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
              +     * Optional. If set, validate the request and preview the deletion, but do not
              +     * actually post it.
              +     * 
              + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. If set, validate the request and preview the deletion, but do not
              +     * actually post it.
              +     * 
              + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000004); + validateOnly_ = false; + onChanged(); + return this; + } + + private boolean force_; + + /** + * + * + *
              +     * Optional. If set to true, the request will force the deletion of the Policy
              +     * even if the Policy references PolicyBindings.
              +     * 
              + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + @java.lang.Override + public boolean getForce() { + return force_; + } + + /** + * + * + *
              +     * Optional. If set to true, the request will force the deletion of the Policy
              +     * even if the Policy references PolicyBindings.
              +     * 
              + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The force to set. + * @return This builder for chaining. + */ + public Builder setForce(boolean value) { + + force_ = value; + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. If set to true, the request will force the deletion of the Policy
              +     * even if the Policy references PolicyBindings.
              +     * 
              + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearForce() { + bitField0_ = (bitField0_ & ~0x00000008); + force_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.DeleteAccessPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.DeleteAccessPolicyRequest) + private static final com.google.iam.v3beta.DeleteAccessPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.DeleteAccessPolicyRequest(); + } + + public static com.google.iam.v3beta.DeleteAccessPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DeleteAccessPolicyRequest 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.iam.v3beta.DeleteAccessPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/DeleteAccessPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/DeleteAccessPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..fcc14c0fdb21 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/DeleteAccessPolicyRequestOrBuilder.java @@ -0,0 +1,126 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface DeleteAccessPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.DeleteAccessPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The name of the access policy to delete.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The name of the access policy to delete.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Optional. The etag of the access policy. If this is provided, it must match
              +   * the server's etag.
              +   * 
              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The etag. + */ + java.lang.String getEtag(); + + /** + * + * + *
              +   * Optional. The etag of the access policy. If this is provided, it must match
              +   * the server's etag.
              +   * 
              + * + * string etag = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for etag. + */ + com.google.protobuf.ByteString getEtagBytes(); + + /** + * + * + *
              +   * Optional. If set, validate the request and preview the deletion, but do not
              +   * actually post it.
              +   * 
              + * + * bool validate_only = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); + + /** + * + * + *
              +   * Optional. If set to true, the request will force the deletion of the Policy
              +   * even if the Policy references PolicyBindings.
              +   * 
              + * + * bool force = 4 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The force. + */ + boolean getForce(); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/GetAccessPolicyRequest.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/GetAccessPolicyRequest.java new file mode 100644 index 000000000000..90c54fb12a35 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/GetAccessPolicyRequest.java @@ -0,0 +1,651 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Request message for GetAccessPolicy method.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.GetAccessPolicyRequest} + */ +@com.google.protobuf.Generated +public final class GetAccessPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.GetAccessPolicyRequest) + GetAccessPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "GetAccessPolicyRequest"); + } + + // Use GetAccessPolicyRequest.newBuilder() to construct. + private GetAccessPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private GetAccessPolicyRequest() { + name_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_GetAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_GetAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.GetAccessPolicyRequest.class, + com.google.iam.v3beta.GetAccessPolicyRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The name of the access policy to retrieve.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. The name of the access policy to retrieve.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + 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.iam.v3beta.GetAccessPolicyRequest)) { + return super.equals(obj); + } + com.google.iam.v3beta.GetAccessPolicyRequest other = + (com.google.iam.v3beta.GetAccessPolicyRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest 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.iam.v3beta.GetAccessPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.GetAccessPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for GetAccessPolicy method.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.GetAccessPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.GetAccessPolicyRequest) + com.google.iam.v3beta.GetAccessPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_GetAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_GetAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.GetAccessPolicyRequest.class, + com.google.iam.v3beta.GetAccessPolicyRequest.Builder.class); + } + + // Construct using com.google.iam.v3beta.GetAccessPolicyRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_GetAccessPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.GetAccessPolicyRequest getDefaultInstanceForType() { + return com.google.iam.v3beta.GetAccessPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.GetAccessPolicyRequest build() { + com.google.iam.v3beta.GetAccessPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.GetAccessPolicyRequest buildPartial() { + com.google.iam.v3beta.GetAccessPolicyRequest result = + new com.google.iam.v3beta.GetAccessPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3beta.GetAccessPolicyRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.GetAccessPolicyRequest) { + return mergeFrom((com.google.iam.v3beta.GetAccessPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.GetAccessPolicyRequest other) { + if (other == com.google.iam.v3beta.GetAccessPolicyRequest.getDefaultInstance()) return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + 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: + { + name_ = 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 name_ = ""; + + /** + * + * + *
              +     * Required. The name of the access policy to retrieve.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. The name of the access policy to retrieve.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. The name of the access policy to retrieve.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The name of the access policy to retrieve.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The name of the access policy to retrieve.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.GetAccessPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.GetAccessPolicyRequest) + private static final com.google.iam.v3beta.GetAccessPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.GetAccessPolicyRequest(); + } + + public static com.google.iam.v3beta.GetAccessPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public GetAccessPolicyRequest 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.iam.v3beta.GetAccessPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/GetAccessPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/GetAccessPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..db8a03d4ddca --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/GetAccessPolicyRequestOrBuilder.java @@ -0,0 +1,70 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface GetAccessPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.GetAccessPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The name of the access policy to retrieve.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The name of the access policy to retrieve.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesRequest.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesRequest.java new file mode 100644 index 000000000000..7f4755169d8e --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesRequest.java @@ -0,0 +1,1003 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Request message for ListAccessPolicies method.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.ListAccessPoliciesRequest} + */ +@com.google.protobuf.Generated +public final class ListAccessPoliciesRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.ListAccessPoliciesRequest) + ListAccessPoliciesRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAccessPoliciesRequest"); + } + + // Use ListAccessPoliciesRequest.newBuilder() to construct. + private ListAccessPoliciesRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAccessPoliciesRequest() { + parent_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.ListAccessPoliciesRequest.class, + com.google.iam.v3beta.ListAccessPoliciesRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + + /** + * + * + *
              +   * Required. The parent resource, which owns the collection of access policy
              +   * resources.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}`
              +   * `projects/{project_number}/locations/{location}`
              +   * `folders/{folder_id}/locations/{location}`
              +   * `organizations/{organization_id}/locations/{location}`
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. The parent resource, which owns the collection of access policy
              +   * resources.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}`
              +   * `projects/{project_number}/locations/{location}`
              +   * `folders/{folder_id}/locations/{location}`
              +   * `organizations/{organization_id}/locations/{location}`
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
              +   * Optional. The maximum number of access policies to return. The
              +   * service may return fewer than this value.
              +   *
              +   * If unspecified, at most 50 access policies will be returned. Valid value
              +   * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
              +   * Optional. A page token, received from a previous
              +   * `ListAccessPolicies` call. Provide this to retrieve the
              +   * subsequent page.
              +   *
              +   * When paginating, all other parameters provided to
              +   * `ListAccessPolicies` must match the call that provided the
              +   * page token.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
              +   * Optional. A page token, received from a previous
              +   * `ListAccessPolicies` call. Provide this to retrieve the
              +   * subsequent page.
              +   *
              +   * When paginating, all other parameters provided to
              +   * `ListAccessPolicies` must match the call that provided the
              +   * page token.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, parent_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, parent_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.iam.v3beta.ListAccessPoliciesRequest)) { + return super.equals(obj); + } + com.google.iam.v3beta.ListAccessPoliciesRequest other = + (com.google.iam.v3beta.ListAccessPoliciesRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest 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.iam.v3beta.ListAccessPoliciesRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.ListAccessPoliciesRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for ListAccessPolicies method.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.ListAccessPoliciesRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.ListAccessPoliciesRequest) + com.google.iam.v3beta.ListAccessPoliciesRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.ListAccessPoliciesRequest.class, + com.google.iam.v3beta.ListAccessPoliciesRequest.Builder.class); + } + + // Construct using com.google.iam.v3beta.ListAccessPoliciesRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.ListAccessPoliciesRequest getDefaultInstanceForType() { + return com.google.iam.v3beta.ListAccessPoliciesRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.ListAccessPoliciesRequest build() { + com.google.iam.v3beta.ListAccessPoliciesRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.ListAccessPoliciesRequest buildPartial() { + com.google.iam.v3beta.ListAccessPoliciesRequest result = + new com.google.iam.v3beta.ListAccessPoliciesRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3beta.ListAccessPoliciesRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.ListAccessPoliciesRequest) { + return mergeFrom((com.google.iam.v3beta.ListAccessPoliciesRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.ListAccessPoliciesRequest other) { + if (other == com.google.iam.v3beta.ListAccessPoliciesRequest.getDefaultInstance()) + return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + + /** + * + * + *
              +     * Required. The parent resource, which owns the collection of access policy
              +     * resources.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. The parent resource, which owns the collection of access policy
              +     * resources.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. The parent resource, which owns the collection of access policy
              +     * resources.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The parent resource, which owns the collection of access policy
              +     * resources.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The parent resource, which owns the collection of access policy
              +     * resources.
              +     *
              +     * Format:
              +     * `projects/{project_id}/locations/{location}`
              +     * `projects/{project_number}/locations/{location}`
              +     * `folders/{folder_id}/locations/{location}`
              +     * `organizations/{organization_id}/locations/{location}`
              +     * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
              +     * Optional. The maximum number of access policies to return. The
              +     * service may return fewer than this value.
              +     *
              +     * If unspecified, at most 50 access policies will be returned. Valid value
              +     * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. The maximum number of access policies to return. The
              +     * service may return fewer than this value.
              +     *
              +     * If unspecified, at most 50 access policies will be returned. Valid value
              +     * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The maximum number of access policies to return. The
              +     * service may return fewer than this value.
              +     *
              +     * If unspecified, at most 50 access policies will be returned. Valid value
              +     * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `ListAccessPolicies` call. Provide this to retrieve the
              +     * subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `ListAccessPolicies` must match the call that provided the
              +     * page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `ListAccessPolicies` call. Provide this to retrieve the
              +     * subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `ListAccessPolicies` must match the call that provided the
              +     * page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `ListAccessPolicies` call. Provide this to retrieve the
              +     * subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `ListAccessPolicies` must match the call that provided the
              +     * page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `ListAccessPolicies` call. Provide this to retrieve the
              +     * subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `ListAccessPolicies` must match the call that provided the
              +     * page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `ListAccessPolicies` call. Provide this to retrieve the
              +     * subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `ListAccessPolicies` must match the call that provided the
              +     * page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.ListAccessPoliciesRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.ListAccessPoliciesRequest) + private static final com.google.iam.v3beta.ListAccessPoliciesRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.ListAccessPoliciesRequest(); + } + + public static com.google.iam.v3beta.ListAccessPoliciesRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessPoliciesRequest 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.iam.v3beta.ListAccessPoliciesRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesRequestOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesRequestOrBuilder.java new file mode 100644 index 000000000000..04b70979371c --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesRequestOrBuilder.java @@ -0,0 +1,127 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface ListAccessPoliciesRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.ListAccessPoliciesRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The parent resource, which owns the collection of access policy
              +   * resources.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}`
              +   * `projects/{project_number}/locations/{location}`
              +   * `folders/{folder_id}/locations/{location}`
              +   * `organizations/{organization_id}/locations/{location}`
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + + /** + * + * + *
              +   * Required. The parent resource, which owns the collection of access policy
              +   * resources.
              +   *
              +   * Format:
              +   * `projects/{project_id}/locations/{location}`
              +   * `projects/{project_number}/locations/{location}`
              +   * `folders/{folder_id}/locations/{location}`
              +   * `organizations/{organization_id}/locations/{location}`
              +   * 
              + * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Optional. The maximum number of access policies to return. The
              +   * service may return fewer than this value.
              +   *
              +   * If unspecified, at most 50 access policies will be returned. Valid value
              +   * ranges from 1 to 1000; values above 1000 will be coerced to 1000.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
              +   * Optional. A page token, received from a previous
              +   * `ListAccessPolicies` call. Provide this to retrieve the
              +   * subsequent page.
              +   *
              +   * When paginating, all other parameters provided to
              +   * `ListAccessPolicies` must match the call that provided the
              +   * page token.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. A page token, received from a previous
              +   * `ListAccessPolicies` call. Provide this to retrieve the
              +   * subsequent page.
              +   *
              +   * When paginating, all other parameters provided to
              +   * `ListAccessPolicies` must match the call that provided the
              +   * page token.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesResponse.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesResponse.java new file mode 100644 index 000000000000..bf8fdfba65c3 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesResponse.java @@ -0,0 +1,1122 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Response message for ListAccessPolicies method.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.ListAccessPoliciesResponse} + */ +@com.google.protobuf.Generated +public final class ListAccessPoliciesResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.ListAccessPoliciesResponse) + ListAccessPoliciesResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "ListAccessPoliciesResponse"); + } + + // Use ListAccessPoliciesResponse.newBuilder() to construct. + private ListAccessPoliciesResponse(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private ListAccessPoliciesResponse() { + accessPolicies_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.ListAccessPoliciesResponse.class, + com.google.iam.v3beta.ListAccessPoliciesResponse.Builder.class); + } + + public static final int ACCESS_POLICIES_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List accessPolicies_; + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public java.util.List getAccessPoliciesList() { + return accessPolicies_; + } + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public java.util.List + getAccessPoliciesOrBuilderList() { + return accessPolicies_; + } + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public int getAccessPoliciesCount() { + return accessPolicies_.size(); + } + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicy getAccessPolicies(int index) { + return accessPolicies_.get(index); + } + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyOrBuilder getAccessPoliciesOrBuilder(int index) { + return accessPolicies_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * Optional. A token, which can be sent as `page_token` to retrieve the next
              +   * page. If this field is omitted, there are no subsequent pages.
              +   * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
              +   * Optional. A token, which can be sent as `page_token` to retrieve the next
              +   * page. If this field is omitted, there are no subsequent pages.
              +   * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < accessPolicies_.size(); i++) { + output.writeMessage(1, accessPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < accessPolicies_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, accessPolicies_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.iam.v3beta.ListAccessPoliciesResponse)) { + return super.equals(obj); + } + com.google.iam.v3beta.ListAccessPoliciesResponse other = + (com.google.iam.v3beta.ListAccessPoliciesResponse) obj; + + if (!getAccessPoliciesList().equals(other.getAccessPoliciesList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getAccessPoliciesCount() > 0) { + hash = (37 * hash) + ACCESS_POLICIES_FIELD_NUMBER; + hash = (53 * hash) + getAccessPoliciesList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse 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.iam.v3beta.ListAccessPoliciesResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.ListAccessPoliciesResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Response message for ListAccessPolicies method.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.ListAccessPoliciesResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.ListAccessPoliciesResponse) + com.google.iam.v3beta.ListAccessPoliciesResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.ListAccessPoliciesResponse.class, + com.google.iam.v3beta.ListAccessPoliciesResponse.Builder.class); + } + + // Construct using com.google.iam.v3beta.ListAccessPoliciesResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (accessPoliciesBuilder_ == null) { + accessPolicies_ = java.util.Collections.emptyList(); + } else { + accessPolicies_ = null; + accessPoliciesBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_ListAccessPoliciesResponse_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.ListAccessPoliciesResponse getDefaultInstanceForType() { + return com.google.iam.v3beta.ListAccessPoliciesResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.ListAccessPoliciesResponse build() { + com.google.iam.v3beta.ListAccessPoliciesResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.ListAccessPoliciesResponse buildPartial() { + com.google.iam.v3beta.ListAccessPoliciesResponse result = + new com.google.iam.v3beta.ListAccessPoliciesResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.iam.v3beta.ListAccessPoliciesResponse result) { + if (accessPoliciesBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + accessPolicies_ = java.util.Collections.unmodifiableList(accessPolicies_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.accessPolicies_ = accessPolicies_; + } else { + result.accessPolicies_ = accessPoliciesBuilder_.build(); + } + } + + private void buildPartial0(com.google.iam.v3beta.ListAccessPoliciesResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.ListAccessPoliciesResponse) { + return mergeFrom((com.google.iam.v3beta.ListAccessPoliciesResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.ListAccessPoliciesResponse other) { + if (other == com.google.iam.v3beta.ListAccessPoliciesResponse.getDefaultInstance()) + return this; + if (accessPoliciesBuilder_ == null) { + if (!other.accessPolicies_.isEmpty()) { + if (accessPolicies_.isEmpty()) { + accessPolicies_ = other.accessPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureAccessPoliciesIsMutable(); + accessPolicies_.addAll(other.accessPolicies_); + } + onChanged(); + } + } else { + if (!other.accessPolicies_.isEmpty()) { + if (accessPoliciesBuilder_.isEmpty()) { + accessPoliciesBuilder_.dispose(); + accessPoliciesBuilder_ = null; + accessPolicies_ = other.accessPolicies_; + bitField0_ = (bitField0_ & ~0x00000001); + accessPoliciesBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetAccessPoliciesFieldBuilder() + : null; + } else { + accessPoliciesBuilder_.addAllMessages(other.accessPolicies_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.iam.v3beta.AccessPolicy m = + input.readMessage( + com.google.iam.v3beta.AccessPolicy.parser(), extensionRegistry); + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(m); + } else { + accessPoliciesBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List accessPolicies_ = + java.util.Collections.emptyList(); + + private void ensureAccessPoliciesIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + accessPolicies_ = + new java.util.ArrayList(accessPolicies_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3beta.AccessPolicy, + com.google.iam.v3beta.AccessPolicy.Builder, + com.google.iam.v3beta.AccessPolicyOrBuilder> + accessPoliciesBuilder_; + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public java.util.List getAccessPoliciesList() { + if (accessPoliciesBuilder_ == null) { + return java.util.Collections.unmodifiableList(accessPolicies_); + } else { + return accessPoliciesBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public int getAccessPoliciesCount() { + if (accessPoliciesBuilder_ == null) { + return accessPolicies_.size(); + } else { + return accessPoliciesBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3beta.AccessPolicy getAccessPolicies(int index) { + if (accessPoliciesBuilder_ == null) { + return accessPolicies_.get(index); + } else { + return accessPoliciesBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public Builder setAccessPolicies(int index, com.google.iam.v3beta.AccessPolicy value) { + if (accessPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessPoliciesIsMutable(); + accessPolicies_.set(index, value); + onChanged(); + } else { + accessPoliciesBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public Builder setAccessPolicies( + int index, com.google.iam.v3beta.AccessPolicy.Builder builderForValue) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.set(index, builderForValue.build()); + onChanged(); + } else { + accessPoliciesBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public Builder addAccessPolicies(com.google.iam.v3beta.AccessPolicy value) { + if (accessPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(value); + onChanged(); + } else { + accessPoliciesBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public Builder addAccessPolicies(int index, com.google.iam.v3beta.AccessPolicy value) { + if (accessPoliciesBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(index, value); + onChanged(); + } else { + accessPoliciesBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public Builder addAccessPolicies(com.google.iam.v3beta.AccessPolicy.Builder builderForValue) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(builderForValue.build()); + onChanged(); + } else { + accessPoliciesBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public Builder addAccessPolicies( + int index, com.google.iam.v3beta.AccessPolicy.Builder builderForValue) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.add(index, builderForValue.build()); + onChanged(); + } else { + accessPoliciesBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public Builder addAllAccessPolicies( + java.lang.Iterable values) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, accessPolicies_); + onChanged(); + } else { + accessPoliciesBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public Builder clearAccessPolicies() { + if (accessPoliciesBuilder_ == null) { + accessPolicies_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + accessPoliciesBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public Builder removeAccessPolicies(int index) { + if (accessPoliciesBuilder_ == null) { + ensureAccessPoliciesIsMutable(); + accessPolicies_.remove(index); + onChanged(); + } else { + accessPoliciesBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3beta.AccessPolicy.Builder getAccessPoliciesBuilder(int index) { + return internalGetAccessPoliciesFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3beta.AccessPolicyOrBuilder getAccessPoliciesOrBuilder(int index) { + if (accessPoliciesBuilder_ == null) { + return accessPolicies_.get(index); + } else { + return accessPoliciesBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public java.util.List + getAccessPoliciesOrBuilderList() { + if (accessPoliciesBuilder_ != null) { + return accessPoliciesBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(accessPolicies_); + } + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3beta.AccessPolicy.Builder addAccessPoliciesBuilder() { + return internalGetAccessPoliciesFieldBuilder() + .addBuilder(com.google.iam.v3beta.AccessPolicy.getDefaultInstance()); + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public com.google.iam.v3beta.AccessPolicy.Builder addAccessPoliciesBuilder(int index) { + return internalGetAccessPoliciesFieldBuilder() + .addBuilder(index, com.google.iam.v3beta.AccessPolicy.getDefaultInstance()); + } + + /** + * + * + *
              +     * The access policies from the specified parent.
              +     * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + public java.util.List + getAccessPoliciesBuilderList() { + return internalGetAccessPoliciesFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3beta.AccessPolicy, + com.google.iam.v3beta.AccessPolicy.Builder, + com.google.iam.v3beta.AccessPolicyOrBuilder> + internalGetAccessPoliciesFieldBuilder() { + if (accessPoliciesBuilder_ == null) { + accessPoliciesBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3beta.AccessPolicy, + com.google.iam.v3beta.AccessPolicy.Builder, + com.google.iam.v3beta.AccessPolicyOrBuilder>( + accessPolicies_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + accessPolicies_ = null; + } + return accessPoliciesBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.ListAccessPoliciesResponse) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.ListAccessPoliciesResponse) + private static final com.google.iam.v3beta.ListAccessPoliciesResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.ListAccessPoliciesResponse(); + } + + public static com.google.iam.v3beta.ListAccessPoliciesResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public ListAccessPoliciesResponse 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.iam.v3beta.ListAccessPoliciesResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesResponseOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesResponseOrBuilder.java new file mode 100644 index 000000000000..478881783b72 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListAccessPoliciesResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface ListAccessPoliciesResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.ListAccessPoliciesResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + java.util.List getAccessPoliciesList(); + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + com.google.iam.v3beta.AccessPolicy getAccessPolicies(int index); + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + int getAccessPoliciesCount(); + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + java.util.List + getAccessPoliciesOrBuilderList(); + + /** + * + * + *
              +   * The access policies from the specified parent.
              +   * 
              + * + * repeated .google.iam.v3beta.AccessPolicy access_policies = 1; + */ + com.google.iam.v3beta.AccessPolicyOrBuilder getAccessPoliciesOrBuilder(int index); + + /** + * + * + *
              +   * Optional. A token, which can be sent as `page_token` to retrieve the next
              +   * page. If this field is omitted, there are no subsequent pages.
              +   * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * Optional. A token, which can be sent as `page_token` to retrieve the next
              +   * page. If this field is omitted, there are no subsequent pages.
              +   * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListPolicyBindingsRequest.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListPolicyBindingsRequest.java index 515549b22560..2133e662f8e2 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListPolicyBindingsRequest.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListPolicyBindingsRequest.java @@ -155,8 +155,7 @@ public com.google.protobuf.ByteString getParentBytes() { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -239,7 +238,8 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
                  * Optional. An expression for filtering the results of the request. Filter
              -   * rules are case insensitive. Some eligible fields for filtering are:
              +   * rules are case insensitive. Some eligible fields for filtering are the
              +   * following:
                  *
                  * + `target`
                  * + `policy`
              @@ -273,7 +273,8 @@ public java.lang.String getFilter() {
                  *
                  * 
                  * Optional. An expression for filtering the results of the request. Filter
              -   * rules are case insensitive. Some eligible fields for filtering are:
              +   * rules are case insensitive. Some eligible fields for filtering are the
              +   * following:
                  *
                  * + `target`
                  * + `policy`
              @@ -852,8 +853,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) {
                    * Optional. The maximum number of policy bindings to return. The service may
                    * return fewer than this value.
                    *
              -     * If unspecified, at most 50 policy bindings will be returned.
              -     * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +     * The default value is 50. The maximum value is 1000.
                    * 
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -872,8 +872,7 @@ public int getPageSize() { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. *
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -896,8 +895,7 @@ public Builder setPageSize(int value) { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1049,7 +1047,8 @@ public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { * *
                    * Optional. An expression for filtering the results of the request. Filter
              -     * rules are case insensitive. Some eligible fields for filtering are:
              +     * rules are case insensitive. Some eligible fields for filtering are the
              +     * following:
                    *
                    * + `target`
                    * + `policy`
              @@ -1082,7 +1081,8 @@ public java.lang.String getFilter() {
                    *
                    * 
                    * Optional. An expression for filtering the results of the request. Filter
              -     * rules are case insensitive. Some eligible fields for filtering are:
              +     * rules are case insensitive. Some eligible fields for filtering are the
              +     * following:
                    *
                    * + `target`
                    * + `policy`
              @@ -1115,7 +1115,8 @@ public com.google.protobuf.ByteString getFilterBytes() {
                    *
                    * 
                    * Optional. An expression for filtering the results of the request. Filter
              -     * rules are case insensitive. Some eligible fields for filtering are:
              +     * rules are case insensitive. Some eligible fields for filtering are the
              +     * following:
                    *
                    * + `target`
                    * + `policy`
              @@ -1147,7 +1148,8 @@ public Builder setFilter(java.lang.String value) {
                    *
                    * 
                    * Optional. An expression for filtering the results of the request. Filter
              -     * rules are case insensitive. Some eligible fields for filtering are:
              +     * rules are case insensitive. Some eligible fields for filtering are the
              +     * following:
                    *
                    * + `target`
                    * + `policy`
              @@ -1175,7 +1177,8 @@ public Builder clearFilter() {
                    *
                    * 
                    * Optional. An expression for filtering the results of the request. Filter
              -     * rules are case insensitive. Some eligible fields for filtering are:
              +     * rules are case insensitive. Some eligible fields for filtering are the
              +     * following:
                    *
                    * + `target`
                    * + `policy`
              diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListPolicyBindingsRequestOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListPolicyBindingsRequestOrBuilder.java
              index d2e42b7448c2..cf2ab77009f8 100644
              --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListPolicyBindingsRequestOrBuilder.java
              +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/ListPolicyBindingsRequestOrBuilder.java
              @@ -79,8 +79,7 @@ public interface ListPolicyBindingsRequestOrBuilder
                  * Optional. The maximum number of policy bindings to return. The service may
                  * return fewer than this value.
                  *
              -   * If unspecified, at most 50 policy bindings will be returned.
              -   * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +   * The default value is 50. The maximum value is 1000.
                  * 
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -128,7 +127,8 @@ public interface ListPolicyBindingsRequestOrBuilder * *
                  * Optional. An expression for filtering the results of the request. Filter
              -   * rules are case insensitive. Some eligible fields for filtering are:
              +   * rules are case insensitive. Some eligible fields for filtering are the
              +   * following:
                  *
                  * + `target`
                  * + `policy`
              @@ -151,7 +151,8 @@ public interface ListPolicyBindingsRequestOrBuilder
                  *
                  * 
                  * Optional. An expression for filtering the results of the request. Filter
              -   * rules are case insensitive. Some eligible fields for filtering are:
              +   * rules are case insensitive. Some eligible fields for filtering are the
              +   * following:
                  *
                  * + `target`
                  * + `policy`
              diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBinding.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBinding.java
              index 6ecbe5324eef..54674f1c92d7 100644
              --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBinding.java
              +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBinding.java
              @@ -92,7 +92,7 @@ protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldRefl
                  *
                  *
                  * 
              -   * Different policy kinds supported in this binding.
              +   * The different policy kinds supported in this binding.
                  * 
              * * Protobuf enum {@code google.iam.v3beta.PolicyBinding.PolicyKind} @@ -118,6 +118,16 @@ public enum PolicyKind implements com.google.protobuf.ProtocolMessageEnum { * PRINCIPAL_ACCESS_BOUNDARY = 1; */ PRINCIPAL_ACCESS_BOUNDARY(1), + /** + * + * + *
              +     * Access policy kind.
              +     * 
              + * + * ACCESS = 2; + */ + ACCESS(2), UNRECOGNIZED(-1), ; @@ -153,6 +163,17 @@ public enum PolicyKind implements com.google.protobuf.ProtocolMessageEnum { */ public static final int PRINCIPAL_ACCESS_BOUNDARY_VALUE = 1; + /** + * + * + *
              +     * Access policy kind.
              +     * 
              + * + * ACCESS = 2; + */ + public static final int ACCESS_VALUE = 2; + public final int getNumber() { if (this == UNRECOGNIZED) { throw new java.lang.IllegalArgumentException( @@ -181,6 +202,8 @@ public static PolicyKind forNumber(int value) { return POLICY_KIND_UNSPECIFIED; case 1: return PRINCIPAL_ACCESS_BOUNDARY; + case 2: + return ACCESS; default: return null; } @@ -243,23 +266,24 @@ public interface TargetOrBuilder * * *
              -     * Immutable. Full Resource Name used for principal access boundary policy
              -     * bindings. The principal set must be directly parented by the policy
              -     * binding's parent or same as the parent if the target is a
              -     * project/folder/organization.
              +     * Immutable. The full resource name that's used for principal access
              +     * boundary policy bindings. The principal set must be directly parented
              +     * by the policy binding's parent or same as the parent if the target is a
              +     * project, folder, or organization.
                    *
                    * Examples:
              -     * * For binding's parented by an organization:
              +     *
              +     * * For bindings parented by an organization:
                    * * Organization:
                    * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                    * * Workforce Identity:
                    * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                    * * Workspace Identity:
                    * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -     * * For binding's parented by a folder:
              +     * * For bindings parented by a folder:
                    * * Folder:
                    * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -     * * For binding's parented by a project:
              +     * * For bindings parented by a project:
                    * * Project:
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -277,23 +301,24 @@ public interface TargetOrBuilder
                    *
                    *
                    * 
              -     * Immutable. Full Resource Name used for principal access boundary policy
              -     * bindings. The principal set must be directly parented by the policy
              -     * binding's parent or same as the parent if the target is a
              -     * project/folder/organization.
              +     * Immutable. The full resource name that's used for principal access
              +     * boundary policy bindings. The principal set must be directly parented
              +     * by the policy binding's parent or same as the parent if the target is a
              +     * project, folder, or organization.
                    *
                    * Examples:
              -     * * For binding's parented by an organization:
              +     *
              +     * * For bindings parented by an organization:
                    * * Organization:
                    * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                    * * Workforce Identity:
                    * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                    * * Workspace Identity:
                    * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -     * * For binding's parented by a folder:
              +     * * For bindings parented by a folder:
                    * * Folder:
                    * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -     * * For binding's parented by a project:
              +     * * For bindings parented by a project:
                    * * Project:
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -311,23 +336,24 @@ public interface TargetOrBuilder
                    *
                    *
                    * 
              -     * Immutable. Full Resource Name used for principal access boundary policy
              -     * bindings. The principal set must be directly parented by the policy
              -     * binding's parent or same as the parent if the target is a
              -     * project/folder/organization.
              +     * Immutable. The full resource name that's used for principal access
              +     * boundary policy bindings. The principal set must be directly parented
              +     * by the policy binding's parent or same as the parent if the target is a
              +     * project, folder, or organization.
                    *
                    * Examples:
              -     * * For binding's parented by an organization:
              +     *
              +     * * For bindings parented by an organization:
                    * * Organization:
                    * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                    * * Workforce Identity:
                    * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                    * * Workspace Identity:
                    * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -     * * For binding's parented by a folder:
              +     * * For bindings parented by a folder:
                    * * Folder:
                    * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -     * * For binding's parented by a project:
              +     * * For bindings parented by a project:
                    * * Project:
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -341,6 +367,75 @@ public interface TargetOrBuilder
                    */
                   com.google.protobuf.ByteString getPrincipalSetBytes();
               
              +    /**
              +     *
              +     *
              +     * 
              +     * Immutable. The full resource name that's used for access policy
              +     * bindings.
              +     *
              +     * Examples:
              +     *
              +     * * Organization:
              +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +     * * Project:
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +     * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the resource field is set. + */ + boolean hasResource(); + + /** + * + * + *
              +     * Immutable. The full resource name that's used for access policy
              +     * bindings.
              +     *
              +     * Examples:
              +     *
              +     * * Organization:
              +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +     * * Project:
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +     * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The resource. + */ + java.lang.String getResource(); + + /** + * + * + *
              +     * Immutable. The full resource name that's used for access policy
              +     * bindings.
              +     *
              +     * Examples:
              +     *
              +     * * Organization:
              +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +     * * Project:
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +     * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for resource. + */ + com.google.protobuf.ByteString getResourceBytes(); + com.google.iam.v3beta.PolicyBinding.Target.TargetCase getTargetCase(); } @@ -348,7 +443,7 @@ public interface TargetOrBuilder * * *
              -   * Target is the full resource name of the resource to which the policy will
              +   * The full resource name of the resource to which the policy will
                  * be bound. Immutable once set.
                  * 
              * @@ -402,6 +497,7 @@ public enum TargetCase com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PRINCIPAL_SET(1), + RESOURCE(2), TARGET_NOT_SET(0); private final int value; @@ -423,6 +519,8 @@ public static TargetCase forNumber(int value) { switch (value) { case 1: return PRINCIPAL_SET; + case 2: + return RESOURCE; case 0: return TARGET_NOT_SET; default: @@ -445,23 +543,24 @@ public TargetCase getTargetCase() { * * *
              -     * Immutable. Full Resource Name used for principal access boundary policy
              -     * bindings. The principal set must be directly parented by the policy
              -     * binding's parent or same as the parent if the target is a
              -     * project/folder/organization.
              +     * Immutable. The full resource name that's used for principal access
              +     * boundary policy bindings. The principal set must be directly parented
              +     * by the policy binding's parent or same as the parent if the target is a
              +     * project, folder, or organization.
                    *
                    * Examples:
              -     * * For binding's parented by an organization:
              +     *
              +     * * For bindings parented by an organization:
                    * * Organization:
                    * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                    * * Workforce Identity:
                    * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                    * * Workspace Identity:
                    * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -     * * For binding's parented by a folder:
              +     * * For bindings parented by a folder:
                    * * Folder:
                    * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -     * * For binding's parented by a project:
              +     * * For bindings parented by a project:
                    * * Project:
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -481,23 +580,24 @@ public boolean hasPrincipalSet() {
                    *
                    *
                    * 
              -     * Immutable. Full Resource Name used for principal access boundary policy
              -     * bindings. The principal set must be directly parented by the policy
              -     * binding's parent or same as the parent if the target is a
              -     * project/folder/organization.
              +     * Immutable. The full resource name that's used for principal access
              +     * boundary policy bindings. The principal set must be directly parented
              +     * by the policy binding's parent or same as the parent if the target is a
              +     * project, folder, or organization.
                    *
                    * Examples:
              -     * * For binding's parented by an organization:
              +     *
              +     * * For bindings parented by an organization:
                    * * Organization:
                    * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                    * * Workforce Identity:
                    * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                    * * Workspace Identity:
                    * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -     * * For binding's parented by a folder:
              +     * * For bindings parented by a folder:
                    * * Folder:
                    * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -     * * For binding's parented by a project:
              +     * * For bindings parented by a project:
                    * * Project:
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -530,23 +630,24 @@ public java.lang.String getPrincipalSet() {
                    *
                    *
                    * 
              -     * Immutable. Full Resource Name used for principal access boundary policy
              -     * bindings. The principal set must be directly parented by the policy
              -     * binding's parent or same as the parent if the target is a
              -     * project/folder/organization.
              +     * Immutable. The full resource name that's used for principal access
              +     * boundary policy bindings. The principal set must be directly parented
              +     * by the policy binding's parent or same as the parent if the target is a
              +     * project, folder, or organization.
                    *
                    * Examples:
              -     * * For binding's parented by an organization:
              +     *
              +     * * For bindings parented by an organization:
                    * * Organization:
                    * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                    * * Workforce Identity:
                    * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                    * * Workspace Identity:
                    * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -     * * For binding's parented by a folder:
              +     * * For bindings parented by a folder:
                    * * Folder:
                    * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -     * * For binding's parented by a project:
              +     * * For bindings parented by a project:
                    * * Project:
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                    * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -575,6 +676,109 @@ public com.google.protobuf.ByteString getPrincipalSetBytes() {
                     }
                   }
               
              +    public static final int RESOURCE_FIELD_NUMBER = 2;
              +
              +    /**
              +     *
              +     *
              +     * 
              +     * Immutable. The full resource name that's used for access policy
              +     * bindings.
              +     *
              +     * Examples:
              +     *
              +     * * Organization:
              +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +     * * Project:
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +     * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the resource field is set. + */ + public boolean hasResource() { + return targetCase_ == 2; + } + + /** + * + * + *
              +     * Immutable. The full resource name that's used for access policy
              +     * bindings.
              +     *
              +     * Examples:
              +     *
              +     * * Organization:
              +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +     * * Project:
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +     * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The resource. + */ + public java.lang.String getResource() { + java.lang.Object ref = ""; + if (targetCase_ == 2) { + ref = target_; + } + 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(); + if (targetCase_ == 2) { + target_ = s; + } + return s; + } + } + + /** + * + * + *
              +     * Immutable. The full resource name that's used for access policy
              +     * bindings.
              +     *
              +     * Examples:
              +     *
              +     * * Organization:
              +     * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +     * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +     * * Project:
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +     * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +     * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for resource. + */ + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 2) { + ref = target_; + } + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 2) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -592,6 +796,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (targetCase_ == 1) { com.google.protobuf.GeneratedMessage.writeString(output, 1, target_); } + if (targetCase_ == 2) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, target_); + } getUnknownFields().writeTo(output); } @@ -604,6 +811,9 @@ public int getSerializedSize() { if (targetCase_ == 1) { size += com.google.protobuf.GeneratedMessage.computeStringSize(1, target_); } + if (targetCase_ == 2) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, target_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -625,6 +835,9 @@ public boolean equals(final java.lang.Object obj) { case 1: if (!getPrincipalSet().equals(other.getPrincipalSet())) return false; break; + case 2: + if (!getResource().equals(other.getResource())) return false; + break; case 0: default: } @@ -644,6 +857,10 @@ public int hashCode() { hash = (37 * hash) + PRINCIPAL_SET_FIELD_NUMBER; hash = (53 * hash) + getPrincipalSet().hashCode(); break; + case 2: + hash = (37 * hash) + RESOURCE_FIELD_NUMBER; + hash = (53 * hash) + getResource().hashCode(); + break; case 0: default: } @@ -752,7 +969,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.Builder * * *
              -     * Target is the full resource name of the resource to which the policy will
              +     * The full resource name of the resource to which the policy will
                    * be bound. Immutable once set.
                    * 
              * @@ -854,6 +1071,13 @@ public Builder mergeFrom(com.google.iam.v3beta.PolicyBinding.Target other) { onChanged(); break; } + case RESOURCE: + { + targetCase_ = 2; + target_ = other.target_; + onChanged(); + break; + } case TARGET_NOT_SET: { break; @@ -892,6 +1116,13 @@ public Builder mergeFrom( target_ = s; break; } // case 10 + case 18: + { + java.lang.String s = input.readStringRequireUtf8(); + targetCase_ = 2; + target_ = s; + break; + } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -929,23 +1160,24 @@ public Builder clearTarget() { * * *
              -       * Immutable. Full Resource Name used for principal access boundary policy
              -       * bindings. The principal set must be directly parented by the policy
              -       * binding's parent or same as the parent if the target is a
              -       * project/folder/organization.
              +       * Immutable. The full resource name that's used for principal access
              +       * boundary policy bindings. The principal set must be directly parented
              +       * by the policy binding's parent or same as the parent if the target is a
              +       * project, folder, or organization.
                      *
                      * Examples:
              -       * * For binding's parented by an organization:
              +       *
              +       * * For bindings parented by an organization:
                      * * Organization:
                      * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                      * * Workforce Identity:
                      * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                      * * Workspace Identity:
                      * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -       * * For binding's parented by a folder:
              +       * * For bindings parented by a folder:
                      * * Folder:
                      * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -       * * For binding's parented by a project:
              +       * * For bindings parented by a project:
                      * * Project:
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -966,23 +1198,24 @@ public boolean hasPrincipalSet() {
                      *
                      *
                      * 
              -       * Immutable. Full Resource Name used for principal access boundary policy
              -       * bindings. The principal set must be directly parented by the policy
              -       * binding's parent or same as the parent if the target is a
              -       * project/folder/organization.
              +       * Immutable. The full resource name that's used for principal access
              +       * boundary policy bindings. The principal set must be directly parented
              +       * by the policy binding's parent or same as the parent if the target is a
              +       * project, folder, or organization.
                      *
                      * Examples:
              -       * * For binding's parented by an organization:
              +       *
              +       * * For bindings parented by an organization:
                      * * Organization:
                      * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                      * * Workforce Identity:
                      * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                      * * Workspace Identity:
                      * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -       * * For binding's parented by a folder:
              +       * * For bindings parented by a folder:
                      * * Folder:
                      * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -       * * For binding's parented by a project:
              +       * * For bindings parented by a project:
                      * * Project:
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -1016,23 +1249,24 @@ public java.lang.String getPrincipalSet() {
                      *
                      *
                      * 
              -       * Immutable. Full Resource Name used for principal access boundary policy
              -       * bindings. The principal set must be directly parented by the policy
              -       * binding's parent or same as the parent if the target is a
              -       * project/folder/organization.
              +       * Immutable. The full resource name that's used for principal access
              +       * boundary policy bindings. The principal set must be directly parented
              +       * by the policy binding's parent or same as the parent if the target is a
              +       * project, folder, or organization.
                      *
                      * Examples:
              -       * * For binding's parented by an organization:
              +       *
              +       * * For bindings parented by an organization:
                      * * Organization:
                      * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                      * * Workforce Identity:
                      * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                      * * Workspace Identity:
                      * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -       * * For binding's parented by a folder:
              +       * * For bindings parented by a folder:
                      * * Folder:
                      * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -       * * For binding's parented by a project:
              +       * * For bindings parented by a project:
                      * * Project:
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -1066,23 +1300,24 @@ public com.google.protobuf.ByteString getPrincipalSetBytes() {
                      *
                      *
                      * 
              -       * Immutable. Full Resource Name used for principal access boundary policy
              -       * bindings. The principal set must be directly parented by the policy
              -       * binding's parent or same as the parent if the target is a
              -       * project/folder/organization.
              +       * Immutable. The full resource name that's used for principal access
              +       * boundary policy bindings. The principal set must be directly parented
              +       * by the policy binding's parent or same as the parent if the target is a
              +       * project, folder, or organization.
                      *
                      * Examples:
              -       * * For binding's parented by an organization:
              +       *
              +       * * For bindings parented by an organization:
                      * * Organization:
                      * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                      * * Workforce Identity:
                      * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                      * * Workspace Identity:
                      * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -       * * For binding's parented by a folder:
              +       * * For bindings parented by a folder:
                      * * Folder:
                      * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -       * * For binding's parented by a project:
              +       * * For bindings parented by a project:
                      * * Project:
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -1109,23 +1344,24 @@ public Builder setPrincipalSet(java.lang.String value) {
                      *
                      *
                      * 
              -       * Immutable. Full Resource Name used for principal access boundary policy
              -       * bindings. The principal set must be directly parented by the policy
              -       * binding's parent or same as the parent if the target is a
              -       * project/folder/organization.
              +       * Immutable. The full resource name that's used for principal access
              +       * boundary policy bindings. The principal set must be directly parented
              +       * by the policy binding's parent or same as the parent if the target is a
              +       * project, folder, or organization.
                      *
                      * Examples:
              -       * * For binding's parented by an organization:
              +       *
              +       * * For bindings parented by an organization:
                      * * Organization:
                      * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                      * * Workforce Identity:
                      * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                      * * Workspace Identity:
                      * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -       * * For binding's parented by a folder:
              +       * * For bindings parented by a folder:
                      * * Folder:
                      * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -       * * For binding's parented by a project:
              +       * * For bindings parented by a project:
                      * * Project:
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -1150,23 +1386,24 @@ public Builder clearPrincipalSet() {
                      *
                      *
                      * 
              -       * Immutable. Full Resource Name used for principal access boundary policy
              -       * bindings. The principal set must be directly parented by the policy
              -       * binding's parent or same as the parent if the target is a
              -       * project/folder/organization.
              +       * Immutable. The full resource name that's used for principal access
              +       * boundary policy bindings. The principal set must be directly parented
              +       * by the policy binding's parent or same as the parent if the target is a
              +       * project, folder, or organization.
                      *
                      * Examples:
              -       * * For binding's parented by an organization:
              +       *
              +       * * For bindings parented by an organization:
                      * * Organization:
                      * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
                      * * Workforce Identity:
                      * `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID`
                      * * Workspace Identity:
                      * `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID`
              -       * * For binding's parented by a folder:
              +       * * For bindings parented by a folder:
                      * * Folder:
                      * `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              -       * * For binding's parented by a project:
              +       * * For bindings parented by a project:
                      * * Project:
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
                      * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              @@ -1190,6 +1427,205 @@ public Builder setPrincipalSetBytes(com.google.protobuf.ByteString value) {
                       return this;
                     }
               
              +      /**
              +       *
              +       *
              +       * 
              +       * Immutable. The full resource name that's used for access policy
              +       * bindings.
              +       *
              +       * Examples:
              +       *
              +       * * Organization:
              +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +       * * Project:
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +       * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return Whether the resource field is set. + */ + @java.lang.Override + public boolean hasResource() { + return targetCase_ == 2; + } + + /** + * + * + *
              +       * Immutable. The full resource name that's used for access policy
              +       * bindings.
              +       *
              +       * Examples:
              +       *
              +       * * Organization:
              +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +       * * Project:
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +       * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The resource. + */ + @java.lang.Override + public java.lang.String getResource() { + java.lang.Object ref = ""; + if (targetCase_ == 2) { + ref = target_; + } + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + if (targetCase_ == 2) { + target_ = s; + } + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +       * Immutable. The full resource name that's used for access policy
              +       * bindings.
              +       *
              +       * Examples:
              +       *
              +       * * Organization:
              +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +       * * Project:
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +       * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return The bytes for resource. + */ + @java.lang.Override + public com.google.protobuf.ByteString getResourceBytes() { + java.lang.Object ref = ""; + if (targetCase_ == 2) { + ref = target_; + } + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + if (targetCase_ == 2) { + target_ = b; + } + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +       * Immutable. The full resource name that's used for access policy
              +       * bindings.
              +       *
              +       * Examples:
              +       *
              +       * * Organization:
              +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +       * * Project:
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +       * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The resource to set. + * @return This builder for chaining. + */ + public Builder setResource(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + targetCase_ = 2; + target_ = value; + onChanged(); + return this; + } + + /** + * + * + *
              +       * Immutable. The full resource name that's used for access policy
              +       * bindings.
              +       *
              +       * Examples:
              +       *
              +       * * Organization:
              +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +       * * Project:
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +       * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @return This builder for chaining. + */ + public Builder clearResource() { + if (targetCase_ == 2) { + targetCase_ = 0; + target_ = null; + onChanged(); + } + return this; + } + + /** + * + * + *
              +       * Immutable. The full resource name that's used for access policy
              +       * bindings.
              +       *
              +       * Examples:
              +       *
              +       * * Organization:
              +       * `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID`
              +       * * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID`
              +       * * Project:
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER`
              +       * * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID`
              +       * 
              + * + * string resource = 2 [(.google.api.field_behavior) = IMMUTABLE]; + * + * @param value The bytes for resource to set. + * @return This builder for chaining. + */ + public Builder setResourceBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + targetCase_ = 2; + target_ = value; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.PolicyBinding.Target) } @@ -1612,8 +2048,8 @@ public java.lang.String getAnnotationsOrThrow(java.lang.String key) { * * *
              -   * Required. Immutable. Target is the full resource name of the resource to
              -   * which the policy will be bound. Immutable once set.
              +   * Required. Immutable. The full resource name of the resource to which the
              +   * policy will be bound. Immutable once set.
                  * 
              * * @@ -1631,8 +2067,8 @@ public boolean hasTarget() { * * *
              -   * Required. Immutable. Target is the full resource name of the resource to
              -   * which the policy will be bound. Immutable once set.
              +   * Required. Immutable. The full resource name of the resource to which the
              +   * policy will be bound. Immutable once set.
                  * 
              * * @@ -1652,8 +2088,8 @@ public com.google.iam.v3beta.PolicyBinding.Target getTarget() { * * *
              -   * Required. Immutable. Target is the full resource name of the resource to
              -   * which the policy will be bound. Immutable once set.
              +   * Required. Immutable. The full resource name of the resource to which the
              +   * policy will be bound. Immutable once set.
                  * 
              * * @@ -1864,13 +2300,14 @@ public com.google.protobuf.ByteString getPolicyUidBytes() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1915,13 +2352,14 @@ public boolean hasCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -1966,13 +2404,14 @@ public com.google.type.Expr getCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -3465,8 +3904,8 @@ public Builder putAllAnnotations(java.util.Map - * Required. Immutable. Target is the full resource name of the resource to - * which the policy will be bound. Immutable once set. + * Required. Immutable. The full resource name of the resource to which the + * policy will be bound. Immutable once set. *
              * * @@ -3483,8 +3922,8 @@ public boolean hasTarget() { * * *
              -     * Required. Immutable. Target is the full resource name of the resource to
              -     * which the policy will be bound. Immutable once set.
              +     * Required. Immutable. The full resource name of the resource to which the
              +     * policy will be bound. Immutable once set.
                    * 
              * * @@ -3507,8 +3946,8 @@ public com.google.iam.v3beta.PolicyBinding.Target getTarget() { * * *
              -     * Required. Immutable. Target is the full resource name of the resource to
              -     * which the policy will be bound. Immutable once set.
              +     * Required. Immutable. The full resource name of the resource to which the
              +     * policy will be bound. Immutable once set.
                    * 
              * * @@ -3533,8 +3972,8 @@ public Builder setTarget(com.google.iam.v3beta.PolicyBinding.Target value) { * * *
              -     * Required. Immutable. Target is the full resource name of the resource to
              -     * which the policy will be bound. Immutable once set.
              +     * Required. Immutable. The full resource name of the resource to which the
              +     * policy will be bound. Immutable once set.
                    * 
              * * @@ -3556,8 +3995,8 @@ public Builder setTarget(com.google.iam.v3beta.PolicyBinding.Target.Builder buil * * *
              -     * Required. Immutable. Target is the full resource name of the resource to
              -     * which the policy will be bound. Immutable once set.
              +     * Required. Immutable. The full resource name of the resource to which the
              +     * policy will be bound. Immutable once set.
                    * 
              * * @@ -3587,8 +4026,8 @@ public Builder mergeTarget(com.google.iam.v3beta.PolicyBinding.Target value) { * * *
              -     * Required. Immutable. Target is the full resource name of the resource to
              -     * which the policy will be bound. Immutable once set.
              +     * Required. Immutable. The full resource name of the resource to which the
              +     * policy will be bound. Immutable once set.
                    * 
              * * @@ -3610,8 +4049,8 @@ public Builder clearTarget() { * * *
              -     * Required. Immutable. Target is the full resource name of the resource to
              -     * which the policy will be bound. Immutable once set.
              +     * Required. Immutable. The full resource name of the resource to which the
              +     * policy will be bound. Immutable once set.
                    * 
              * * @@ -3628,8 +4067,8 @@ public com.google.iam.v3beta.PolicyBinding.Target.Builder getTargetBuilder() { * * *
              -     * Required. Immutable. Target is the full resource name of the resource to
              -     * which the policy will be bound. Immutable once set.
              +     * Required. Immutable. The full resource name of the resource to which the
              +     * policy will be bound. Immutable once set.
                    * 
              * * @@ -3650,8 +4089,8 @@ public com.google.iam.v3beta.PolicyBinding.TargetOrBuilder getTargetOrBuilder() * * *
              -     * Required. Immutable. Target is the full resource name of the resource to
              -     * which the policy will be bound. Immutable once set.
              +     * Required. Immutable. The full resource name of the resource to which the
              +     * policy will be bound. Immutable once set.
                    * 
              * * @@ -4075,13 +4514,14 @@ public Builder setPolicyUidBytes(com.google.protobuf.ByteString value) { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4125,13 +4565,14 @@ public boolean hasCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4179,13 +4620,14 @@ public com.google.type.Expr getCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4237,13 +4679,14 @@ public Builder setCondition(com.google.type.Expr value) { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4292,13 +4735,14 @@ public Builder setCondition(com.google.type.Expr.Builder builderForValue) { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4355,13 +4799,14 @@ public Builder mergeCondition(com.google.type.Expr value) { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4410,13 +4855,14 @@ public Builder clearCondition() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4460,13 +4906,14 @@ public com.google.type.Expr.Builder getConditionBuilder() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -4512,13 +4959,14 @@ public com.google.type.ExprOrBuilder getConditionOrBuilder() { * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingOrBuilder.java index 2030cb635c0b..21cfa07ad4b1 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingOrBuilder.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingOrBuilder.java @@ -242,8 +242,8 @@ java.lang.String getAnnotationsOrDefault( * * *
              -   * Required. Immutable. Target is the full resource name of the resource to
              -   * which the policy will be bound. Immutable once set.
              +   * Required. Immutable. The full resource name of the resource to which the
              +   * policy will be bound. Immutable once set.
                  * 
              * * @@ -258,8 +258,8 @@ java.lang.String getAnnotationsOrDefault( * * *
              -   * Required. Immutable. Target is the full resource name of the resource to
              -   * which the policy will be bound. Immutable once set.
              +   * Required. Immutable. The full resource name of the resource to which the
              +   * policy will be bound. Immutable once set.
                  * 
              * * @@ -274,8 +274,8 @@ java.lang.String getAnnotationsOrDefault( * * *
              -   * Required. Immutable. Target is the full resource name of the resource to
              -   * which the policy will be bound. Immutable once set.
              +   * Required. Immutable. The full resource name of the resource to which the
              +   * policy will be bound. Immutable once set.
                  * 
              * * @@ -413,13 +413,14 @@ java.lang.String getAnnotationsOrDefault( * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -461,13 +462,14 @@ java.lang.String getAnnotationsOrDefault( * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; @@ -509,13 +511,14 @@ java.lang.String getAnnotationsOrDefault( * - `principal.type != <principal type string>` * - `principal.type in [<list of principal types>]` * - * Supported principal types are Workspace, Workforce Pool, Workload Pool and - * Service Account. Allowed string must be one of: + * Supported principal types are workspace, workforce pool, workload pool, + * service account, and Agent Identity. Allowed string must be one of: * - * - iam.googleapis.com/WorkspaceIdentity - * - iam.googleapis.com/WorkforcePoolIdentity - * - iam.googleapis.com/WorkloadPoolIdentity - * - iam.googleapis.com/ServiceAccount + * - `iam.googleapis.com/WorkspaceIdentity` + * - `iam.googleapis.com/WorkforcePoolIdentity` + * - `iam.googleapis.com/WorkloadPoolIdentity` + * - `iam.googleapis.com/ServiceAccount` + * - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) *
              * * .google.type.Expr condition = 8 [(.google.api.field_behavior) = OPTIONAL]; diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingResourcesProto.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingResourcesProto.java index a103e75d10e6..d1dfd0b27aa1 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingResourcesProto.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingResourcesProto.java @@ -66,7 +66,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "rces.proto\022\021google.iam.v3beta\032\037google/ap" + "i/field_behavior.proto\032\033google/api/field" + "_info.proto\032\031google/api/resource.proto\032\037" - + "google/protobuf/timestamp.proto\032\026google/type/expr.proto\"\342\007\n\r" + + "google/protobuf/timestamp.proto\032\026google/type/expr.proto\"\207\010\n\r" + "PolicyBinding\022\021\n" + "\004name\030\001 \001(\tB\003\340A\010\022\030\n" + "\003uid\030\002 \001(\tB\013\340A\003\342\214\317\327\010\002\010\001\022\021\n" @@ -83,24 +83,26 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\tcondition\030\010 \001(\0132\021.google.type.ExprB\003\340A\001\0224\n" + "\013create_time\030\t \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0224\n" + "\013update_time\030\n" - + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\0320\n" + + " \001(\0132\032.google.protobuf.TimestampB\003\340A\003\032I\n" + "\006Target\022\034\n\r" - + "principal_set\030\001 \001(\tB\003\340A\005H\000B\010\n" + + "principal_set\030\001 \001(\tB\003\340A\005H\000\022\027\n" + + "\010resource\030\002 \001(\tB\003\340A\005H\000B\010\n" + "\006target\0322\n" + "\020AnnotationsEntry\022\013\n" + "\003key\030\001 \001(\t\022\r\n" - + "\005value\030\002 \001(\t:\0028\001\"H\n\n" + + "\005value\030\002 \001(\t:\0028\001\"T\n\n" + "PolicyKind\022\033\n" + "\027POLICY_KIND_UNSPECIFIED\020\000\022\035\n" - + "\031PRINCIPAL_ACCESS_BOUNDARY\020\001:\250\002\352A\244\002\n" - + " iam.googleapis.com/PolicyBinding\022Qorganizations/{organization}/locations/{loca" - + "tion}/policyBindings/{policy_binding}\022Efolders/{folder}/locations/{location}/pol" - + "icyBindings/{policy_binding}\022Gprojects/{" - + "project}/locations/{location}/policyBindings/{policy_binding}*\016policyBindings2\r" + + "\031PRINCIPAL_ACCESS_BOUNDARY\020\001\022\n\n" + + "\006ACCESS\020\002:\250\002\352A\244\002\n" + + " iam.googleapis.com/PolicyBinding\022Qorganizations/{organization}/locations/{locatio" + + "n}/policyBindings/{policy_binding}\022Efolders/{folder}/locations/{location}/policy" + + "Bindings/{policy_binding}\022Gprojects/{pro" + + "ject}/locations/{location}/policyBindings/{policy_binding}*\016policyBindings2\r" + "policyBindingB\231\001\n" - + "\025com.google.iam.v3betaB\033PolicyBindingResourcesProtoP\001Z-cloud.goo" - + "gle.com/go/iam/apiv3beta/iampb;iampb\252\002\027G" - + "oogle.Cloud.Iam.V3Beta\312\002\027Google\\Cloud\\Iam\\V3betab\006proto3" + + "\025com.google.iam.v3betaB\033PolicyBindingResourcesProtoP\001Z-cloud.google" + + ".com/go/iam/apiv3beta/iampb;iampb\252\002\027Goog" + + "le.Cloud.Iam.V3Beta\312\002\027Google\\Cloud\\Iam\\V3betab\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -136,7 +138,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_iam_v3beta_PolicyBinding_Target_descriptor, new java.lang.String[] { - "PrincipalSet", "Target", + "PrincipalSet", "Resource", "Target", }); internal_static_google_iam_v3beta_PolicyBinding_AnnotationsEntry_descriptor = internal_static_google_iam_v3beta_PolicyBinding_descriptor.getNestedType(1); diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingsServiceProto.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingsServiceProto.java index 51de0ef39491..798a0b11cb2a 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingsServiceProto.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/PolicyBindingsServiceProto.java @@ -119,66 +119,66 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\006filter\030\004 \001(\tB\003\340A\001\"u\n" + "\032ListPolicyBindingsResponse\0229\n" + "\017policy_bindings\030\001 \003(\0132 .google.iam.v3beta.PolicyBinding\022\034\n" - + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\243\001\n" + + "\017next_page_token\030\002 \001(\tB\003\340A\001\"\270\001\n" + "!SearchTargetPolicyBindingsRequest\022\023\n" + "\006target\030\001 \001(\tB\003\340A\002\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\0228\n" - + "\006parent\030\005 \001(\tB(\340A\002\372A\"\022 iam.googleapis.com/PolicyBinding\"}\n" + + "\006parent\030\005 \001(\tB(\340A\002\372A\"\022" + + " iam.googleapis.com/PolicyBinding\022\023\n" + + "\006filter\030\006 \001(\tB\003\340A\001\"}\n" + "\"SearchTargetPolicyBindingsResponse\0229\n" + "\017policy_bindings\030\001 \003(\0132 .google.iam.v3beta.PolicyBinding\022\034\n" + "\017next_page_token\030\002 \001(\tB\003\340A\0012\214\022\n" + "\016PolicyBindings\022\234\003\n" - + "\023CreatePolicyBinding\022-.go" - + "ogle.iam.v3beta.CreatePolicyBindingRequest\032\035.google.longrunning.Operation\"\266\002\312A\"\n" - + "\r" - + "PolicyBinding\022\021OperationMetadata\332A\'pare" - + "nt,policy_binding,policy_binding_id\202\323\344\223\002" - + "\340\001\"6/v3beta/{parent=projects/*/locations" - + "/*}/policyBindings:\016policy_bindingZG\"5/v3beta/{parent=folders/*/locations/*}/pol" - + "icyBindings:\016policy_bindingZM\";/v3beta/{" - + "parent=organizations/*/locations/*}/policyBindings:\016policy_binding\022\241\002\n" - + "\020GetPolicyBinding\022*.google.iam.v3beta.GetPolicyBindingRequest\032" - + " .google.iam.v3beta.PolicyBi" - + "nding\"\276\001\332A\004name\202\323\344\223\002\260\001\0226/v3beta/{name=pr" - + "ojects/*/locations/*/policyBindings/*}Z7\0225/v3beta/{name=folders/*/locations/*/po" - + "licyBindings/*}Z=\022;/v3beta/{name=organiz" - + "ations/*/locations/*/policyBindings/*}\022\274\003\n" - + "\023UpdatePolicyBinding\022-.google.iam.v3be" - + "ta.UpdatePolicyBindingRequest\032\035.google.longrunning.Operation\"\326\002\312A\"\n\r" - + "PolicyBinding\022\021OperationMetadata\332A\032policy_binding,up" - + "date_mask\202\323\344\223\002\215\0022E/v3beta/{policy_bindin" - + "g.name=projects/*/locations/*/policyBindings/*}:\016policy_bindingZV2D/v3beta/{poli" - + "cy_binding.name=folders/*/locations/*/policyBindings/*}:\016policy_bindingZ\\2J/v3be" - + "ta/{policy_binding.name=organizations/*/" - + "locations/*/policyBindings/*}:\016policy_binding\022\321\002\n" - + "\023DeletePolicyBinding\022-.google.i" - + "am.v3beta.DeletePolicyBindingRequest\032\035.google.longrunning.Operation\"\353\001\312A*\n" - + "\025google.protobuf.Empty\022\021OperationMetadata\332A\004na" - + "me\202\323\344\223\002\260\001*6/v3beta/{name=projects/*/loca" - + "tions/*/policyBindings/*}Z7*5/v3beta/{name=folders/*/locations/*/policyBindings/" - + "*}Z=*;/v3beta/{name=organizations/*/locations/*/policyBindings/*}\022\264\002\n" - + "\022ListPolicyBindings\022,.google.iam.v3beta.ListPolicyB" - + "indingsRequest\032-.google.iam.v3beta.ListP" - + "olicyBindingsResponse\"\300\001\332A\006parent\202\323\344\223\002\260\001" - + "\0226/v3beta/{parent=projects/*/locations/*}/policyBindingsZ7\0225/v3beta/{parent=fold" - + "ers/*/locations/*}/policyBindingsZ=\022;/v3" - + "beta/{parent=organizations/*/locations/*}/policyBindings\022\244\003\n" - + "\032SearchTargetPolicyBindings\0224.google.iam.v3beta.SearchTarget" - + "PolicyBindingsRequest\0325.google.iam.v3bet" - + "a.SearchTargetPolicyBindingsResponse\"\230\002\332A\r" - + "parent,target\202\323\344\223\002\201\002\022Q/v3beta/{parent=" - + "projects/*/locations/*}/policyBindings:searchTargetPolicyBindingsZR\022P/v3beta/{pa" - + "rent=folders/*/locations/*}/policyBindings:searchTargetPolicyBindingsZX\022V/v3beta" - + "/{parent=organizations/*/locations/*}/policyBindings:searchTargetPolicyBindings\032" - + "F\312A\022iam.googleapis.com\322A.https://www.googleapis.com/auth/cloud-platformB\304\002\n" - + "\025com.google.iam.v3betaB\032PolicyBindingsService" - + "ProtoP\001Z-cloud.google.com/go/iam/apiv3be" - + "ta/iampb;iampb\252\002\027Google.Cloud.Iam.V3Beta\312\002\027Google\\Cloud\\Iam\\V3beta\352A\\\n" - + "\'iam.googleapis.com/OrganizationLocation\0221organiza" - + "tions/{organization}/locations/{location}\352AJ\n" - + "!iam.googleapis.com/FolderLocation\022%folders/{folder}/locations/{location}b\006" - + "proto3" + + "\023CreatePolicyBinding\022-.google.iam.v3beta.Cre" + + "atePolicyBindingRequest\032\035.google.longrunning.Operation\"\266\002\312A\"\n\r" + + "PolicyBinding\022\021OperationMetadata\332A\'parent,policy_binding,p" + + "olicy_binding_id\202\323\344\223\002\340\001\"6/v3beta/{parent" + + "=projects/*/locations/*}/policyBindings:\016policy_bindingZG\"5/v3beta/{parent=folde" + + "rs/*/locations/*}/policyBindings:\016policy_bindingZM\";/v3beta/{parent=organization" + + "s/*/locations/*}/policyBindings:\016policy_binding\022\241\002\n" + + "\020GetPolicyBinding\022*.google.iam.v3beta.GetPolicyBindingRequest\032 .googl" + + "e.iam.v3beta.PolicyBinding\"\276\001\332A\004name\202\323\344\223" + + "\002\260\001\0226/v3beta/{name=projects/*/locations/" + + "*/policyBindings/*}Z7\0225/v3beta/{name=folders/*/locations/*/policyBindings/*}Z=\022;" + + "/v3beta/{name=organizations/*/locations/*/policyBindings/*}\022\274\003\n" + + "\023UpdatePolicyBinding\022-.google.iam.v3beta.UpdatePolicyBind" + + "ingRequest\032\035.google.longrunning.Operation\"\326\002\312A\"\n\r" + + "PolicyBinding\022\021OperationMetadat" + + "a\332A\032policy_binding,update_mask\202\323\344\223\002\215\0022E/" + + "v3beta/{policy_binding.name=projects/*/locations/*/policyBindings/*}:\016policy_bin" + + "dingZV2D/v3beta/{policy_binding.name=folders/*/locations/*/policyBindings/*}:\016po" + + "licy_bindingZ\\2J/v3beta/{policy_binding." + + "name=organizations/*/locations/*/policyBindings/*}:\016policy_binding\022\321\002\n" + + "\023DeletePolicyBinding\022-.google.iam.v3beta.DeletePol" + + "icyBindingRequest\032\035.google.longrunning.Operation\"\353\001\312A*\n" + + "\025google.protobuf.Empty\022\021O" + + "perationMetadata\332A\004name\202\323\344\223\002\260\001*6/v3beta/" + + "{name=projects/*/locations/*/policyBindings/*}Z7*5/v3beta/{name=folders/*/locati" + + "ons/*/policyBindings/*}Z=*;/v3beta/{name" + + "=organizations/*/locations/*/policyBindings/*}\022\264\002\n" + + "\022ListPolicyBindings\022,.google.iam.v3beta.ListPolicyBindingsRequest\032-.go" + + "ogle.iam.v3beta.ListPolicyBindingsRespon" + + "se\"\300\001\332A\006parent\202\323\344\223\002\260\001\0226/v3beta/{parent=p" + + "rojects/*/locations/*}/policyBindingsZ7\0225/v3beta/{parent=folders/*/locations/*}/" + + "policyBindingsZ=\022;/v3beta/{parent=organi" + + "zations/*/locations/*}/policyBindings\022\244\003\n" + + "\032SearchTargetPolicyBindings\0224.google.iam.v3beta.SearchTargetPolicyBindingsReque" + + "st\0325.google.iam.v3beta.SearchTargetPolicyBindingsResponse\"\230\002\332A\r" + + "parent,target\202\323\344\223\002\201\002\022Q/v3beta/{parent=projects/*/location" + + "s/*}/policyBindings:searchTargetPolicyBindingsZR\022P/v3beta/{parent=folders/*/loca" + + "tions/*}/policyBindings:searchTargetPolicyBindingsZX\022V/v3beta/{parent=organizati" + + "ons/*/locations/*}/policyBindings:search" + + "TargetPolicyBindings\032F\312A\022iam.googleapis." + + "com\322A.https://www.googleapis.com/auth/cloud-platformB\304\002\n" + + "\025com.google.iam.v3betaB\032PolicyBindingsServiceProtoP\001Z-cloud.goog" + + "le.com/go/iam/apiv3beta/iampb;iampb\252\002\027Go" + + "ogle.Cloud.Iam.V3Beta\312\002\027Google\\Cloud\\Iam\\V3beta\352A\\\n" + + "\'iam.googleapis.com/Organizat" + + "ionLocation\0221organizations/{organization}/locations/{location}\352AJ\n" + + "!iam.googleapis.com/FolderLocation\022%folders/{folder}/l" + + "ocations/{location}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -248,7 +248,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_google_iam_v3beta_SearchTargetPolicyBindingsRequest_descriptor, new java.lang.String[] { - "Target", "PageSize", "PageToken", "Parent", + "Target", "PageSize", "PageToken", "Parent", "Filter", }); internal_static_google_iam_v3beta_SearchTargetPolicyBindingsResponse_descriptor = getDescriptor().getMessageType(7); diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsRequest.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsRequest.java new file mode 100644 index 000000000000..ba5719af5fb4 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsRequest.java @@ -0,0 +1,991 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Request message for SearchAccessPolicyBindings rpc.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.SearchAccessPolicyBindingsRequest} + */ +@com.google.protobuf.Generated +public final class SearchAccessPolicyBindingsRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.SearchAccessPolicyBindingsRequest) + SearchAccessPolicyBindingsRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchAccessPolicyBindingsRequest"); + } + + // Use SearchAccessPolicyBindingsRequest.newBuilder() to construct. + private SearchAccessPolicyBindingsRequest( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAccessPolicyBindingsRequest() { + name_ = ""; + pageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest.class, + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + + /** + * + * + *
              +   * Required. The name of the access policy.
              +   * Format:
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * + * + *
              +   * Required. The name of the access policy.
              +   * Format:
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int PAGE_SIZE_FIELD_NUMBER = 2; + private int pageSize_ = 0; + + /** + * + * + *
              +   * Optional. The maximum number of policy bindings to return. The service may
              +   * return fewer than this value.
              +   *
              +   * If unspecified, at most 50 policy bindings will be returned.
              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + public static final int PAGE_TOKEN_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object pageToken_ = ""; + + /** + * + * + *
              +   * Optional. A page token, received from a previous
              +   * `SearchAccessPolicyBindingsRequest` call. Provide this to
              +   * retrieve the subsequent page.
              +   *
              +   * When paginating, all other parameters provided to
              +   * `SearchAccessPolicyBindingsRequest` must match the call
              +   * that provided the page token.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + @java.lang.Override + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + 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(); + pageToken_ = s; + return s; + } + } + + /** + * + * + *
              +   * Optional. A page token, received from a previous
              +   * `SearchAccessPolicyBindingsRequest` call. Provide this to
              +   * retrieve the subsequent page.
              +   *
              +   * When paginating, all other parameters provided to
              +   * `SearchAccessPolicyBindingsRequest` must match the call
              +   * that provided the page token.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 1, name_); + } + if (pageSize_ != 0) { + output.writeInt32(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 3, pageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(1, name_); + } + if (pageSize_ != 0) { + size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, pageSize_); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(pageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(3, pageToken_); + } + 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.iam.v3beta.SearchAccessPolicyBindingsRequest)) { + return super.equals(obj); + } + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest other = + (com.google.iam.v3beta.SearchAccessPolicyBindingsRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (getPageSize() != other.getPageSize()) return false; + if (!getPageToken().equals(other.getPageToken())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; + hash = (53 * hash) + getPageSize(); + hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest 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.iam.v3beta.SearchAccessPolicyBindingsRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for SearchAccessPolicyBindings rpc.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.SearchAccessPolicyBindingsRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.SearchAccessPolicyBindingsRequest) + com.google.iam.v3beta.SearchAccessPolicyBindingsRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest.class, + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest.Builder.class); + } + + // Construct using com.google.iam.v3beta.SearchAccessPolicyBindingsRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + pageSize_ = 0; + pageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.SearchAccessPolicyBindingsRequest getDefaultInstanceForType() { + return com.google.iam.v3beta.SearchAccessPolicyBindingsRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.SearchAccessPolicyBindingsRequest build() { + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.SearchAccessPolicyBindingsRequest buildPartial() { + com.google.iam.v3beta.SearchAccessPolicyBindingsRequest result = + new com.google.iam.v3beta.SearchAccessPolicyBindingsRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3beta.SearchAccessPolicyBindingsRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.pageSize_ = pageSize_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.pageToken_ = pageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.SearchAccessPolicyBindingsRequest) { + return mergeFrom((com.google.iam.v3beta.SearchAccessPolicyBindingsRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.SearchAccessPolicyBindingsRequest other) { + if (other == com.google.iam.v3beta.SearchAccessPolicyBindingsRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.getPageSize() != 0) { + setPageSize(other.getPageSize()); + } + if (!other.getPageToken().isEmpty()) { + pageToken_ = other.pageToken_; + bitField0_ |= 0x00000004; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + pageSize_ = input.readInt32(); + bitField0_ |= 0x00000002; + break; + } // case 16 + case 26: + { + pageToken_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + + /** + * + * + *
              +     * Required. The name of the access policy.
              +     * Format:
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Required. The name of the access policy.
              +     * Format:
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Required. The name of the access policy.
              +     * Format:
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The name of the access policy.
              +     * Format:
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The name of the access policy.
              +     * Format:
              +     * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +     * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private int pageSize_; + + /** + * + * + *
              +     * Optional. The maximum number of policy bindings to return. The service may
              +     * return fewer than this value.
              +     *
              +     * If unspecified, at most 50 policy bindings will be returned.
              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + @java.lang.Override + public int getPageSize() { + return pageSize_; + } + + /** + * + * + *
              +     * Optional. The maximum number of policy bindings to return. The service may
              +     * return fewer than this value.
              +     *
              +     * If unspecified, at most 50 policy bindings will be returned.
              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageSize to set. + * @return This builder for chaining. + */ + public Builder setPageSize(int value) { + + pageSize_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. The maximum number of policy bindings to return. The service may
              +     * return fewer than this value.
              +     *
              +     * If unspecified, at most 50 policy bindings will be returned.
              +     * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +     * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageSize() { + bitField0_ = (bitField0_ & ~0x00000002); + pageSize_ = 0; + onChanged(); + return this; + } + + private java.lang.Object pageToken_ = ""; + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
              +     * retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `SearchAccessPolicyBindingsRequest` must match the call
              +     * that provided the page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + public java.lang.String getPageToken() { + java.lang.Object ref = pageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + pageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
              +     * retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `SearchAccessPolicyBindingsRequest` must match the call
              +     * that provided the page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + public com.google.protobuf.ByteString getPageTokenBytes() { + java.lang.Object ref = pageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + pageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
              +     * retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `SearchAccessPolicyBindingsRequest` must match the call
              +     * that provided the page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
              +     * retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `SearchAccessPolicyBindingsRequest` must match the call
              +     * that provided the page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearPageToken() { + pageToken_ = getDefaultInstance().getPageToken(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A page token, received from a previous
              +     * `SearchAccessPolicyBindingsRequest` call. Provide this to
              +     * retrieve the subsequent page.
              +     *
              +     * When paginating, all other parameters provided to
              +     * `SearchAccessPolicyBindingsRequest` must match the call
              +     * that provided the page token.
              +     * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for pageToken to set. + * @return This builder for chaining. + */ + public Builder setPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + pageToken_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.SearchAccessPolicyBindingsRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.SearchAccessPolicyBindingsRequest) + private static final com.google.iam.v3beta.SearchAccessPolicyBindingsRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.SearchAccessPolicyBindingsRequest(); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAccessPolicyBindingsRequest 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.iam.v3beta.SearchAccessPolicyBindingsRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsRequestOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsRequestOrBuilder.java new file mode 100644 index 000000000000..33964c627435 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsRequestOrBuilder.java @@ -0,0 +1,123 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface SearchAccessPolicyBindingsRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.SearchAccessPolicyBindingsRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The name of the access policy.
              +   * Format:
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + + /** + * + * + *
              +   * Required. The name of the access policy.
              +   * Format:
              +   * `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}`
              +   * 
              + * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
              +   * Optional. The maximum number of policy bindings to return. The service may
              +   * return fewer than this value.
              +   *
              +   * If unspecified, at most 50 policy bindings will be returned.
              +   * The maximum value is 1000; values above 1000 will be coerced to 1000.
              +   * 
              + * + * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageSize. + */ + int getPageSize(); + + /** + * + * + *
              +   * Optional. A page token, received from a previous
              +   * `SearchAccessPolicyBindingsRequest` call. Provide this to
              +   * retrieve the subsequent page.
              +   *
              +   * When paginating, all other parameters provided to
              +   * `SearchAccessPolicyBindingsRequest` must match the call
              +   * that provided the page token.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The pageToken. + */ + java.lang.String getPageToken(); + + /** + * + * + *
              +   * Optional. A page token, received from a previous
              +   * `SearchAccessPolicyBindingsRequest` call. Provide this to
              +   * retrieve the subsequent page.
              +   *
              +   * When paginating, all other parameters provided to
              +   * `SearchAccessPolicyBindingsRequest` must match the call
              +   * that provided the page token.
              +   * 
              + * + * string page_token = 3 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for pageToken. + */ + com.google.protobuf.ByteString getPageTokenBytes(); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsResponse.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsResponse.java new file mode 100644 index 000000000000..381a0c389083 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsResponse.java @@ -0,0 +1,1124 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Response message for SearchAccessPolicyBindings rpc.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.SearchAccessPolicyBindingsResponse} + */ +@com.google.protobuf.Generated +public final class SearchAccessPolicyBindingsResponse extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.SearchAccessPolicyBindingsResponse) + SearchAccessPolicyBindingsResponseOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "SearchAccessPolicyBindingsResponse"); + } + + // Use SearchAccessPolicyBindingsResponse.newBuilder() to construct. + private SearchAccessPolicyBindingsResponse( + com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private SearchAccessPolicyBindingsResponse() { + policyBindings_ = java.util.Collections.emptyList(); + nextPageToken_ = ""; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse.class, + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse.Builder.class); + } + + public static final int POLICY_BINDINGS_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private java.util.List policyBindings_; + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public java.util.List getPolicyBindingsList() { + return policyBindings_; + } + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public java.util.List + getPolicyBindingsOrBuilderList() { + return policyBindings_; + } + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public int getPolicyBindingsCount() { + return policyBindings_.size(); + } + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public com.google.iam.v3beta.PolicyBinding getPolicyBindings(int index) { + return policyBindings_.get(index); + } + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + @java.lang.Override + public com.google.iam.v3beta.PolicyBindingOrBuilder getPolicyBindingsOrBuilder(int index) { + return policyBindings_.get(index); + } + + public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +   * Optional. A token, which can be sent as `page_token` to retrieve the next
              +   * page. If this field is omitted, there are no subsequent pages.
              +   * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + @java.lang.Override + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + 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(); + nextPageToken_ = s; + return s; + } + } + + /** + * + * + *
              +   * Optional. A token, which can be sent as `page_token` to retrieve the next
              +   * page. If this field is omitted, there are no subsequent pages.
              +   * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = 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 { + for (int i = 0; i < policyBindings_.size(); i++) { + output.writeMessage(1, policyBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 2, nextPageToken_); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < policyBindings_.size(); i++) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, policyBindings_.get(i)); + } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(nextPageToken_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(2, nextPageToken_); + } + 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.iam.v3beta.SearchAccessPolicyBindingsResponse)) { + return super.equals(obj); + } + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse other = + (com.google.iam.v3beta.SearchAccessPolicyBindingsResponse) obj; + + if (!getPolicyBindingsList().equals(other.getPolicyBindingsList())) return false; + if (!getNextPageToken().equals(other.getNextPageToken())) 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 (getPolicyBindingsCount() > 0) { + hash = (37 * hash) + POLICY_BINDINGS_FIELD_NUMBER; + hash = (53 * hash) + getPolicyBindingsList().hashCode(); + } + hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; + hash = (53 * hash) + getNextPageToken().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse 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.iam.v3beta.SearchAccessPolicyBindingsResponse parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder( + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Response message for SearchAccessPolicyBindings rpc.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.SearchAccessPolicyBindingsResponse} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.SearchAccessPolicyBindingsResponse) + com.google.iam.v3beta.SearchAccessPolicyBindingsResponseOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse.class, + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse.Builder.class); + } + + // Construct using com.google.iam.v3beta.SearchAccessPolicyBindingsResponse.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + } else { + policyBindings_ = null; + policyBindingsBuilder_.clear(); + } + bitField0_ = (bitField0_ & ~0x00000001); + nextPageToken_ = ""; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_SearchAccessPolicyBindingsResponse_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.SearchAccessPolicyBindingsResponse getDefaultInstanceForType() { + return com.google.iam.v3beta.SearchAccessPolicyBindingsResponse.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.SearchAccessPolicyBindingsResponse build() { + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.SearchAccessPolicyBindingsResponse buildPartial() { + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse result = + new com.google.iam.v3beta.SearchAccessPolicyBindingsResponse(this); + buildPartialRepeatedFields(result); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartialRepeatedFields( + com.google.iam.v3beta.SearchAccessPolicyBindingsResponse result) { + if (policyBindingsBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0)) { + policyBindings_ = java.util.Collections.unmodifiableList(policyBindings_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.policyBindings_ = policyBindings_; + } else { + result.policyBindings_ = policyBindingsBuilder_.build(); + } + } + + private void buildPartial0(com.google.iam.v3beta.SearchAccessPolicyBindingsResponse result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000002) != 0)) { + result.nextPageToken_ = nextPageToken_; + } + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.SearchAccessPolicyBindingsResponse) { + return mergeFrom((com.google.iam.v3beta.SearchAccessPolicyBindingsResponse) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.SearchAccessPolicyBindingsResponse other) { + if (other == com.google.iam.v3beta.SearchAccessPolicyBindingsResponse.getDefaultInstance()) + return this; + if (policyBindingsBuilder_ == null) { + if (!other.policyBindings_.isEmpty()) { + if (policyBindings_.isEmpty()) { + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensurePolicyBindingsIsMutable(); + policyBindings_.addAll(other.policyBindings_); + } + onChanged(); + } + } else { + if (!other.policyBindings_.isEmpty()) { + if (policyBindingsBuilder_.isEmpty()) { + policyBindingsBuilder_.dispose(); + policyBindingsBuilder_ = null; + policyBindings_ = other.policyBindings_; + bitField0_ = (bitField0_ & ~0x00000001); + policyBindingsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders + ? internalGetPolicyBindingsFieldBuilder() + : null; + } else { + policyBindingsBuilder_.addAllMessages(other.policyBindings_); + } + } + } + if (!other.getNextPageToken().isEmpty()) { + nextPageToken_ = other.nextPageToken_; + 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: + { + com.google.iam.v3beta.PolicyBinding m = + input.readMessage( + com.google.iam.v3beta.PolicyBinding.parser(), extensionRegistry); + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(m); + } else { + policyBindingsBuilder_.addMessage(m); + } + break; + } // case 10 + case 18: + { + nextPageToken_ = 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.util.List policyBindings_ = + java.util.Collections.emptyList(); + + private void ensurePolicyBindingsIsMutable() { + if (!((bitField0_ & 0x00000001) != 0)) { + policyBindings_ = + new java.util.ArrayList(policyBindings_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3beta.PolicyBinding, + com.google.iam.v3beta.PolicyBinding.Builder, + com.google.iam.v3beta.PolicyBindingOrBuilder> + policyBindingsBuilder_; + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public java.util.List getPolicyBindingsList() { + if (policyBindingsBuilder_ == null) { + return java.util.Collections.unmodifiableList(policyBindings_); + } else { + return policyBindingsBuilder_.getMessageList(); + } + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public int getPolicyBindingsCount() { + if (policyBindingsBuilder_ == null) { + return policyBindings_.size(); + } else { + return policyBindingsBuilder_.getCount(); + } + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3beta.PolicyBinding getPolicyBindings(int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); + } else { + return policyBindingsBuilder_.getMessage(index); + } + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public Builder setPolicyBindings(int index, com.google.iam.v3beta.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, value); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public Builder setPolicyBindings( + int index, com.google.iam.v3beta.PolicyBinding.Builder builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.set(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public Builder addPolicyBindings(com.google.iam.v3beta.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(value); + } + return this; + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public Builder addPolicyBindings(int index, com.google.iam.v3beta.PolicyBinding value) { + if (policyBindingsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, value); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, value); + } + return this; + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public Builder addPolicyBindings(com.google.iam.v3beta.PolicyBinding.Builder builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public Builder addPolicyBindings( + int index, com.google.iam.v3beta.PolicyBinding.Builder builderForValue) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.add(index, builderForValue.build()); + onChanged(); + } else { + policyBindingsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public Builder addAllPolicyBindings( + java.lang.Iterable values) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll(values, policyBindings_); + onChanged(); + } else { + policyBindingsBuilder_.addAllMessages(values); + } + return this; + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public Builder clearPolicyBindings() { + if (policyBindingsBuilder_ == null) { + policyBindings_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + policyBindingsBuilder_.clear(); + } + return this; + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public Builder removePolicyBindings(int index) { + if (policyBindingsBuilder_ == null) { + ensurePolicyBindingsIsMutable(); + policyBindings_.remove(index); + onChanged(); + } else { + policyBindingsBuilder_.remove(index); + } + return this; + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3beta.PolicyBinding.Builder getPolicyBindingsBuilder(int index) { + return internalGetPolicyBindingsFieldBuilder().getBuilder(index); + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3beta.PolicyBindingOrBuilder getPolicyBindingsOrBuilder(int index) { + if (policyBindingsBuilder_ == null) { + return policyBindings_.get(index); + } else { + return policyBindingsBuilder_.getMessageOrBuilder(index); + } + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public java.util.List + getPolicyBindingsOrBuilderList() { + if (policyBindingsBuilder_ != null) { + return policyBindingsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(policyBindings_); + } + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3beta.PolicyBinding.Builder addPolicyBindingsBuilder() { + return internalGetPolicyBindingsFieldBuilder() + .addBuilder(com.google.iam.v3beta.PolicyBinding.getDefaultInstance()); + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public com.google.iam.v3beta.PolicyBinding.Builder addPolicyBindingsBuilder(int index) { + return internalGetPolicyBindingsFieldBuilder() + .addBuilder(index, com.google.iam.v3beta.PolicyBinding.getDefaultInstance()); + } + + /** + * + * + *
              +     * The policy bindings that reference the specified policy.
              +     * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + public java.util.List + getPolicyBindingsBuilderList() { + return internalGetPolicyBindingsFieldBuilder().getBuilderList(); + } + + private com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3beta.PolicyBinding, + com.google.iam.v3beta.PolicyBinding.Builder, + com.google.iam.v3beta.PolicyBindingOrBuilder> + internalGetPolicyBindingsFieldBuilder() { + if (policyBindingsBuilder_ == null) { + policyBindingsBuilder_ = + new com.google.protobuf.RepeatedFieldBuilder< + com.google.iam.v3beta.PolicyBinding, + com.google.iam.v3beta.PolicyBinding.Builder, + com.google.iam.v3beta.PolicyBindingOrBuilder>( + policyBindings_, + ((bitField0_ & 0x00000001) != 0), + getParentForChildren(), + isClean()); + policyBindings_ = null; + } + return policyBindingsBuilder_; + } + + private java.lang.Object nextPageToken_ = ""; + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + public java.lang.String getNextPageToken() { + java.lang.Object ref = nextPageToken_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + nextPageToken_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + public com.google.protobuf.ByteString getNextPageTokenBytes() { + java.lang.Object ref = nextPageToken_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + nextPageToken_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageToken(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearNextPageToken() { + nextPageToken_ = getDefaultInstance().getNextPageToken(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. A token, which can be sent as `page_token` to retrieve the next
              +     * page. If this field is omitted, there are no subsequent pages.
              +     * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for nextPageToken to set. + * @return This builder for chaining. + */ + public Builder setNextPageTokenBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + nextPageToken_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.SearchAccessPolicyBindingsResponse) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.SearchAccessPolicyBindingsResponse) + private static final com.google.iam.v3beta.SearchAccessPolicyBindingsResponse DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.SearchAccessPolicyBindingsResponse(); + } + + public static com.google.iam.v3beta.SearchAccessPolicyBindingsResponse getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public SearchAccessPolicyBindingsResponse 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.iam.v3beta.SearchAccessPolicyBindingsResponse getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsResponseOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsResponseOrBuilder.java new file mode 100644 index 000000000000..a6a045f301a4 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchAccessPolicyBindingsResponseOrBuilder.java @@ -0,0 +1,112 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface SearchAccessPolicyBindingsResponseOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.SearchAccessPolicyBindingsResponse) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + java.util.List getPolicyBindingsList(); + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + com.google.iam.v3beta.PolicyBinding getPolicyBindings(int index); + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + int getPolicyBindingsCount(); + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + java.util.List + getPolicyBindingsOrBuilderList(); + + /** + * + * + *
              +   * The policy bindings that reference the specified policy.
              +   * 
              + * + * repeated .google.iam.v3beta.PolicyBinding policy_bindings = 1; + */ + com.google.iam.v3beta.PolicyBindingOrBuilder getPolicyBindingsOrBuilder(int index); + + /** + * + * + *
              +   * Optional. A token, which can be sent as `page_token` to retrieve the next
              +   * page. If this field is omitted, there are no subsequent pages.
              +   * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The nextPageToken. + */ + java.lang.String getNextPageToken(); + + /** + * + * + *
              +   * Optional. A token, which can be sent as `page_token` to retrieve the next
              +   * page. If this field is omitted, there are no subsequent pages.
              +   * 
              + * + * string next_page_token = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for nextPageToken. + */ + com.google.protobuf.ByteString getNextPageTokenBytes(); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchTargetPolicyBindingsRequest.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchTargetPolicyBindingsRequest.java index c520c8c5e99c..c18c604b4e3f 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchTargetPolicyBindingsRequest.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchTargetPolicyBindingsRequest.java @@ -56,6 +56,7 @@ private SearchTargetPolicyBindingsRequest() { target_ = ""; pageToken_ = ""; parent_ = ""; + filter_ = ""; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { @@ -154,8 +155,7 @@ public com.google.protobuf.ByteString getTargetBytes() { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. *
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -307,6 +307,77 @@ public com.google.protobuf.ByteString getParentBytes() { } } + public static final int FILTER_FIELD_NUMBER = 6; + + @SuppressWarnings("serial") + private volatile java.lang.Object filter_ = ""; + + /** + * + * + *
              +   * Optional. Filtering currently only supports the kind of policies to return,
              +   * and must be in the format "policy_kind={policy_kind}".
              +   *
              +   * If String is empty, bindings bound to all kinds of policies would be
              +   * returned.
              +   *
              +   * The only supported values are the following:
              +   *
              +   * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
              +   * * "policy_kind=ACCESS"
              +   * 
              + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + @java.lang.Override + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + 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(); + filter_ = s; + return s; + } + } + + /** + * + * + *
              +   * Optional. Filtering currently only supports the kind of policies to return,
              +   * and must be in the format "policy_kind={policy_kind}".
              +   *
              +   * If String is empty, bindings bound to all kinds of policies would be
              +   * returned.
              +   *
              +   * The only supported values are the following:
              +   *
              +   * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
              +   * * "policy_kind=ACCESS"
              +   * 
              + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + @java.lang.Override + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -333,6 +404,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { com.google.protobuf.GeneratedMessage.writeString(output, 5, parent_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + com.google.protobuf.GeneratedMessage.writeString(output, 6, filter_); + } getUnknownFields().writeTo(output); } @@ -354,6 +428,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessage.isStringEmpty(parent_)) { size += com.google.protobuf.GeneratedMessage.computeStringSize(5, parent_); } + if (!com.google.protobuf.GeneratedMessage.isStringEmpty(filter_)) { + size += com.google.protobuf.GeneratedMessage.computeStringSize(6, filter_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -374,6 +451,7 @@ public boolean equals(final java.lang.Object obj) { if (getPageSize() != other.getPageSize()) return false; if (!getPageToken().equals(other.getPageToken())) return false; if (!getParent().equals(other.getParent())) return false; + if (!getFilter().equals(other.getFilter())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -393,6 +471,8 @@ public int hashCode() { hash = (53 * hash) + getPageToken().hashCode(); hash = (37 * hash) + PARENT_FIELD_NUMBER; hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + FILTER_FIELD_NUMBER; + hash = (53 * hash) + getFilter().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -538,6 +618,7 @@ public Builder clear() { pageSize_ = 0; pageToken_ = ""; parent_ = ""; + filter_ = ""; return this; } @@ -586,6 +667,9 @@ private void buildPartial0(com.google.iam.v3beta.SearchTargetPolicyBindingsReque if (((from_bitField0_ & 0x00000008) != 0)) { result.parent_ = parent_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.filter_ = filter_; + } } @java.lang.Override @@ -619,6 +703,11 @@ public Builder mergeFrom(com.google.iam.v3beta.SearchTargetPolicyBindingsRequest bitField0_ |= 0x00000008; onChanged(); } + if (!other.getFilter().isEmpty()) { + filter_ = other.filter_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -669,6 +758,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 42 + case 50: + { + filter_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -853,8 +948,7 @@ public Builder setTargetBytes(com.google.protobuf.ByteString value) { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. *
              * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -873,8 +967,7 @@ public int getPageSize() { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -897,8 +990,7 @@ public Builder setPageSize(int value) { * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -1219,6 +1311,162 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object filter_ = ""; + + /** + * + * + *
              +     * Optional. Filtering currently only supports the kind of policies to return,
              +     * and must be in the format "policy_kind={policy_kind}".
              +     *
              +     * If String is empty, bindings bound to all kinds of policies would be
              +     * returned.
              +     *
              +     * The only supported values are the following:
              +     *
              +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
              +     * * "policy_kind=ACCESS"
              +     * 
              + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + public java.lang.String getFilter() { + java.lang.Object ref = filter_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + filter_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * + * + *
              +     * Optional. Filtering currently only supports the kind of policies to return,
              +     * and must be in the format "policy_kind={policy_kind}".
              +     *
              +     * If String is empty, bindings bound to all kinds of policies would be
              +     * returned.
              +     *
              +     * The only supported values are the following:
              +     *
              +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
              +     * * "policy_kind=ACCESS"
              +     * 
              + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + public com.google.protobuf.ByteString getFilterBytes() { + java.lang.Object ref = filter_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + filter_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * + * + *
              +     * Optional. Filtering currently only supports the kind of policies to return,
              +     * and must be in the format "policy_kind={policy_kind}".
              +     *
              +     * If String is empty, bindings bound to all kinds of policies would be
              +     * returned.
              +     *
              +     * The only supported values are the following:
              +     *
              +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
              +     * * "policy_kind=ACCESS"
              +     * 
              + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The filter to set. + * @return This builder for chaining. + */ + public Builder setFilter(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Filtering currently only supports the kind of policies to return,
              +     * and must be in the format "policy_kind={policy_kind}".
              +     *
              +     * If String is empty, bindings bound to all kinds of policies would be
              +     * returned.
              +     *
              +     * The only supported values are the following:
              +     *
              +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
              +     * * "policy_kind=ACCESS"
              +     * 
              + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearFilter() { + filter_ = getDefaultInstance().getFilter(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. Filtering currently only supports the kind of policies to return,
              +     * and must be in the format "policy_kind={policy_kind}".
              +     *
              +     * If String is empty, bindings bound to all kinds of policies would be
              +     * returned.
              +     *
              +     * The only supported values are the following:
              +     *
              +     * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
              +     * * "policy_kind=ACCESS"
              +     * 
              + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The bytes for filter to set. + * @return This builder for chaining. + */ + public Builder setFilterBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + filter_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.SearchTargetPolicyBindingsRequest) } diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchTargetPolicyBindingsRequestOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchTargetPolicyBindingsRequestOrBuilder.java index 94b017218e61..7761e685e831 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchTargetPolicyBindingsRequestOrBuilder.java +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/SearchTargetPolicyBindingsRequestOrBuilder.java @@ -77,8 +77,7 @@ public interface SearchTargetPolicyBindingsRequestOrBuilder * Optional. The maximum number of policy bindings to return. The service may * return fewer than this value. * - * If unspecified, at most 50 policy bindings will be returned. - * The maximum value is 1000; values above 1000 will be coerced to 1000. + * The default value is 50. The maximum value is 1000. * * * int32 page_size = 2 [(.google.api.field_behavior) = OPTIONAL]; @@ -172,4 +171,48 @@ public interface SearchTargetPolicyBindingsRequestOrBuilder * @return The bytes for parent. */ com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
              +   * Optional. Filtering currently only supports the kind of policies to return,
              +   * and must be in the format "policy_kind={policy_kind}".
              +   *
              +   * If String is empty, bindings bound to all kinds of policies would be
              +   * returned.
              +   *
              +   * The only supported values are the following:
              +   *
              +   * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
              +   * * "policy_kind=ACCESS"
              +   * 
              + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The filter. + */ + java.lang.String getFilter(); + + /** + * + * + *
              +   * Optional. Filtering currently only supports the kind of policies to return,
              +   * and must be in the format "policy_kind={policy_kind}".
              +   *
              +   * If String is empty, bindings bound to all kinds of policies would be
              +   * returned.
              +   *
              +   * The only supported values are the following:
              +   *
              +   * * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY",
              +   * * "policy_kind=ACCESS"
              +   * 
              + * + * string filter = 6 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The bytes for filter. + */ + com.google.protobuf.ByteString getFilterBytes(); } diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/UpdateAccessPolicyRequest.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/UpdateAccessPolicyRequest.java new file mode 100644 index 000000000000..9faccac2cf4c --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/UpdateAccessPolicyRequest.java @@ -0,0 +1,860 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +/** + * + * + *
              + * Request message for UpdateAccessPolicy method.
              + * 
              + * + * Protobuf type {@code google.iam.v3beta.UpdateAccessPolicyRequest} + */ +@com.google.protobuf.Generated +public final class UpdateAccessPolicyRequest extends com.google.protobuf.GeneratedMessage + implements + // @@protoc_insertion_point(message_implements:google.iam.v3beta.UpdateAccessPolicyRequest) + UpdateAccessPolicyRequestOrBuilder { + private static final long serialVersionUID = 0L; + + static { + com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( + com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, + /* major= */ 4, + /* minor= */ 33, + /* patch= */ 2, + /* suffix= */ "", + "UpdateAccessPolicyRequest"); + } + + // Use UpdateAccessPolicyRequest.newBuilder() to construct. + private UpdateAccessPolicyRequest(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + } + + private UpdateAccessPolicyRequest() {} + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.UpdateAccessPolicyRequest.class, + com.google.iam.v3beta.UpdateAccessPolicyRequest.Builder.class); + } + + private int bitField0_; + public static final int ACCESS_POLICY_FIELD_NUMBER = 1; + private com.google.iam.v3beta.AccessPolicy accessPolicy_; + + /** + * + * + *
              +   * Required. The access policy to update.
              +   *
              +   * The access policy's `name` field is used to identify the
              +   * policy to update.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + @java.lang.Override + public boolean hasAccessPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +   * Required. The access policy to update.
              +   *
              +   * The access policy's `name` field is used to identify the
              +   * policy to update.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicy getAccessPolicy() { + return accessPolicy_ == null + ? com.google.iam.v3beta.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + + /** + * + * + *
              +   * Required. The access policy to update.
              +   *
              +   * The access policy's `name` field is used to identify the
              +   * policy to update.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.iam.v3beta.AccessPolicyOrBuilder getAccessPolicyOrBuilder() { + return accessPolicy_ == null + ? com.google.iam.v3beta.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + + public static final int VALIDATE_ONLY_FIELD_NUMBER = 2; + private boolean validateOnly_ = false; + + /** + * + * + *
              +   * Optional. If set, validate the request and preview the update, but do not
              +   * actually post it.
              +   * 
              + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + 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, getAccessPolicy()); + } + if (validateOnly_ != false) { + output.writeBool(2, validateOnly_); + } + 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, getAccessPolicy()); + } + if (validateOnly_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(2, validateOnly_); + } + 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.iam.v3beta.UpdateAccessPolicyRequest)) { + return super.equals(obj); + } + com.google.iam.v3beta.UpdateAccessPolicyRequest other = + (com.google.iam.v3beta.UpdateAccessPolicyRequest) obj; + + if (hasAccessPolicy() != other.hasAccessPolicy()) return false; + if (hasAccessPolicy()) { + if (!getAccessPolicy().equals(other.getAccessPolicy())) return false; + } + if (getValidateOnly() != other.getValidateOnly()) 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 (hasAccessPolicy()) { + hash = (37 * hash) + ACCESS_POLICY_FIELD_NUMBER; + hash = (53 * hash) + getAccessPolicy().hashCode(); + } + hash = (37 * hash) + VALIDATE_ONLY_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getValidateOnly()); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest 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.iam.v3beta.UpdateAccessPolicyRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessage.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.iam.v3beta.UpdateAccessPolicyRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * + * + *
              +   * Request message for UpdateAccessPolicy method.
              +   * 
              + * + * Protobuf type {@code google.iam.v3beta.UpdateAccessPolicyRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder + implements + // @@protoc_insertion_point(builder_implements:google.iam.v3beta.UpdateAccessPolicyRequest) + com.google.iam.v3beta.UpdateAccessPolicyRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessage.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.iam.v3beta.UpdateAccessPolicyRequest.class, + com.google.iam.v3beta.UpdateAccessPolicyRequest.Builder.class); + } + + // Construct using com.google.iam.v3beta.UpdateAccessPolicyRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + internalGetAccessPolicyFieldBuilder(); + } + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + accessPolicy_ = null; + if (accessPolicyBuilder_ != null) { + accessPolicyBuilder_.dispose(); + accessPolicyBuilder_ = null; + } + validateOnly_ = false; + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.v3beta.AccessPoliciesProto + .internal_static_google_iam_v3beta_UpdateAccessPolicyRequest_descriptor; + } + + @java.lang.Override + public com.google.iam.v3beta.UpdateAccessPolicyRequest getDefaultInstanceForType() { + return com.google.iam.v3beta.UpdateAccessPolicyRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.iam.v3beta.UpdateAccessPolicyRequest build() { + com.google.iam.v3beta.UpdateAccessPolicyRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.iam.v3beta.UpdateAccessPolicyRequest buildPartial() { + com.google.iam.v3beta.UpdateAccessPolicyRequest result = + new com.google.iam.v3beta.UpdateAccessPolicyRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.iam.v3beta.UpdateAccessPolicyRequest result) { + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.accessPolicy_ = + accessPolicyBuilder_ == null ? accessPolicy_ : accessPolicyBuilder_.build(); + to_bitField0_ |= 0x00000001; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.validateOnly_ = validateOnly_; + } + result.bitField0_ |= to_bitField0_; + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.iam.v3beta.UpdateAccessPolicyRequest) { + return mergeFrom((com.google.iam.v3beta.UpdateAccessPolicyRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.iam.v3beta.UpdateAccessPolicyRequest other) { + if (other == com.google.iam.v3beta.UpdateAccessPolicyRequest.getDefaultInstance()) + return this; + if (other.hasAccessPolicy()) { + mergeAccessPolicy(other.getAccessPolicy()); + } + if (other.getValidateOnly() != false) { + setValidateOnly(other.getValidateOnly()); + } + 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( + internalGetAccessPolicyFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 16: + { + validateOnly_ = input.readBool(); + bitField0_ |= 0x00000002; + break; + } // case 16 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private com.google.iam.v3beta.AccessPolicy accessPolicy_; + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicy, + com.google.iam.v3beta.AccessPolicy.Builder, + com.google.iam.v3beta.AccessPolicyOrBuilder> + accessPolicyBuilder_; + + /** + * + * + *
              +     * Required. The access policy to update.
              +     *
              +     * The access policy's `name` field is used to identify the
              +     * policy to update.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + public boolean hasAccessPolicy() { + return ((bitField0_ & 0x00000001) != 0); + } + + /** + * + * + *
              +     * Required. The access policy to update.
              +     *
              +     * The access policy's `name` field is used to identify the
              +     * policy to update.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + public com.google.iam.v3beta.AccessPolicy getAccessPolicy() { + if (accessPolicyBuilder_ == null) { + return accessPolicy_ == null + ? com.google.iam.v3beta.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } else { + return accessPolicyBuilder_.getMessage(); + } + } + + /** + * + * + *
              +     * Required. The access policy to update.
              +     *
              +     * The access policy's `name` field is used to identify the
              +     * policy to update.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessPolicy(com.google.iam.v3beta.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + accessPolicy_ = value; + } else { + accessPolicyBuilder_.setMessage(value); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The access policy to update.
              +     *
              +     * The access policy's `name` field is used to identify the
              +     * policy to update.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setAccessPolicy(com.google.iam.v3beta.AccessPolicy.Builder builderForValue) { + if (accessPolicyBuilder_ == null) { + accessPolicy_ = builderForValue.build(); + } else { + accessPolicyBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The access policy to update.
              +     *
              +     * The access policy's `name` field is used to identify the
              +     * policy to update.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeAccessPolicy(com.google.iam.v3beta.AccessPolicy value) { + if (accessPolicyBuilder_ == null) { + if (((bitField0_ & 0x00000001) != 0) + && accessPolicy_ != null + && accessPolicy_ != com.google.iam.v3beta.AccessPolicy.getDefaultInstance()) { + getAccessPolicyBuilder().mergeFrom(value); + } else { + accessPolicy_ = value; + } + } else { + accessPolicyBuilder_.mergeFrom(value); + } + if (accessPolicy_ != null) { + bitField0_ |= 0x00000001; + onChanged(); + } + return this; + } + + /** + * + * + *
              +     * Required. The access policy to update.
              +     *
              +     * The access policy's `name` field is used to identify the
              +     * policy to update.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearAccessPolicy() { + bitField0_ = (bitField0_ & ~0x00000001); + accessPolicy_ = null; + if (accessPolicyBuilder_ != null) { + accessPolicyBuilder_.dispose(); + accessPolicyBuilder_ = null; + } + onChanged(); + return this; + } + + /** + * + * + *
              +     * Required. The access policy to update.
              +     *
              +     * The access policy's `name` field is used to identify the
              +     * policy to update.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicy.Builder getAccessPolicyBuilder() { + bitField0_ |= 0x00000001; + onChanged(); + return internalGetAccessPolicyFieldBuilder().getBuilder(); + } + + /** + * + * + *
              +     * Required. The access policy to update.
              +     *
              +     * The access policy's `name` field is used to identify the
              +     * policy to update.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.iam.v3beta.AccessPolicyOrBuilder getAccessPolicyOrBuilder() { + if (accessPolicyBuilder_ != null) { + return accessPolicyBuilder_.getMessageOrBuilder(); + } else { + return accessPolicy_ == null + ? com.google.iam.v3beta.AccessPolicy.getDefaultInstance() + : accessPolicy_; + } + } + + /** + * + * + *
              +     * Required. The access policy to update.
              +     *
              +     * The access policy's `name` field is used to identify the
              +     * policy to update.
              +     * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicy, + com.google.iam.v3beta.AccessPolicy.Builder, + com.google.iam.v3beta.AccessPolicyOrBuilder> + internalGetAccessPolicyFieldBuilder() { + if (accessPolicyBuilder_ == null) { + accessPolicyBuilder_ = + new com.google.protobuf.SingleFieldBuilder< + com.google.iam.v3beta.AccessPolicy, + com.google.iam.v3beta.AccessPolicy.Builder, + com.google.iam.v3beta.AccessPolicyOrBuilder>( + getAccessPolicy(), getParentForChildren(), isClean()); + accessPolicy_ = null; + } + return accessPolicyBuilder_; + } + + private boolean validateOnly_; + + /** + * + * + *
              +     * Optional. If set, validate the request and preview the update, but do not
              +     * actually post it.
              +     * 
              + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + @java.lang.Override + public boolean getValidateOnly() { + return validateOnly_; + } + + /** + * + * + *
              +     * Optional. If set, validate the request and preview the update, but do not
              +     * actually post it.
              +     * 
              + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @param value The validateOnly to set. + * @return This builder for chaining. + */ + public Builder setValidateOnly(boolean value) { + + validateOnly_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + /** + * + * + *
              +     * Optional. If set, validate the request and preview the update, but do not
              +     * actually post it.
              +     * 
              + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return This builder for chaining. + */ + public Builder clearValidateOnly() { + bitField0_ = (bitField0_ & ~0x00000002); + validateOnly_ = false; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:google.iam.v3beta.UpdateAccessPolicyRequest) + } + + // @@protoc_insertion_point(class_scope:google.iam.v3beta.UpdateAccessPolicyRequest) + private static final com.google.iam.v3beta.UpdateAccessPolicyRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.iam.v3beta.UpdateAccessPolicyRequest(); + } + + public static com.google.iam.v3beta.UpdateAccessPolicyRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UpdateAccessPolicyRequest 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.iam.v3beta.UpdateAccessPolicyRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/UpdateAccessPolicyRequestOrBuilder.java b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/UpdateAccessPolicyRequestOrBuilder.java new file mode 100644 index 000000000000..a1a7fa2b6948 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/java/com/google/iam/v3beta/UpdateAccessPolicyRequestOrBuilder.java @@ -0,0 +1,94 @@ +/* + * Copyright 2026 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// NO CHECKED-IN PROTOBUF GENCODE +// source: google/iam/v3beta/access_policies_service.proto +// Protobuf Java Version: 4.33.2 + +package com.google.iam.v3beta; + +@com.google.protobuf.Generated +public interface UpdateAccessPolicyRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.iam.v3beta.UpdateAccessPolicyRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
              +   * Required. The access policy to update.
              +   *
              +   * The access policy's `name` field is used to identify the
              +   * policy to update.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the accessPolicy field is set. + */ + boolean hasAccessPolicy(); + + /** + * + * + *
              +   * Required. The access policy to update.
              +   *
              +   * The access policy's `name` field is used to identify the
              +   * policy to update.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The accessPolicy. + */ + com.google.iam.v3beta.AccessPolicy getAccessPolicy(); + + /** + * + * + *
              +   * Required. The access policy to update.
              +   *
              +   * The access policy's `name` field is used to identify the
              +   * policy to update.
              +   * 
              + * + * + * .google.iam.v3beta.AccessPolicy access_policy = 1 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.iam.v3beta.AccessPolicyOrBuilder getAccessPolicyOrBuilder(); + + /** + * + * + *
              +   * Optional. If set, validate the request and preview the update, but do not
              +   * actually post it.
              +   * 
              + * + * bool validate_only = 2 [(.google.api.field_behavior) = OPTIONAL]; + * + * @return The validateOnly. + */ + boolean getValidateOnly(); +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/access_policies_service.proto b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/access_policies_service.proto new file mode 100644 index 000000000000..d7f000a44e45 --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/access_policies_service.proto @@ -0,0 +1,329 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. + +syntax = "proto3"; + +package google.iam.v3beta; + +import "google/api/annotations.proto"; +import "google/api/client.proto"; +import "google/api/field_behavior.proto"; +import "google/api/resource.proto"; +import "google/iam/v3beta/access_policy_resources.proto"; +import "google/iam/v3beta/operation_metadata.proto"; +import "google/iam/v3beta/policy_binding_resources.proto"; +import "google/longrunning/operations.proto"; +import "google/protobuf/empty.proto"; + +option csharp_namespace = "Google.Cloud.Iam.V3Beta"; +option go_package = "cloud.google.com/go/iam/apiv3beta/iampb;iampb"; +option java_multiple_files = true; +option java_outer_classname = "AccessPoliciesProto"; +option java_package = "com.google.iam.v3beta"; +option php_namespace = "Google\\Cloud\\Iam\\V3beta"; + +// Manages Identity and Access Management (IAM) access policies. +service AccessPolicies { + option (google.api.default_host) = "iam.googleapis.com"; + option (google.api.oauth_scopes) = + "https://www.googleapis.com/auth/cloud-platform"; + + // Creates an access policy, and returns a long running operation. + rpc CreateAccessPolicy(CreateAccessPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v3beta/{parent=projects/*/locations/*}/accessPolicies" + body: "access_policy" + additional_bindings { + post: "/v3beta/{parent=folders/*/locations/*}/accessPolicies" + body: "access_policy" + } + additional_bindings { + post: "/v3beta/{parent=organizations/*/locations/*}/accessPolicies" + body: "access_policy" + } + }; + option (google.api.method_signature) = + "parent,access_policy,access_policy_id"; + option (google.longrunning.operation_info) = { + response_type: "AccessPolicy" + metadata_type: "OperationMetadata" + }; + } + + // Gets an access policy. + rpc GetAccessPolicy(GetAccessPolicyRequest) returns (AccessPolicy) { + option (google.api.http) = { + get: "/v3beta/{name=projects/*/locations/*/accessPolicies/*}" + additional_bindings { + get: "/v3beta/{name=folders/*/locations/*/accessPolicies/*}" + } + additional_bindings { + get: "/v3beta/{name=organizations/*/locations/*/accessPolicies/*}" + } + }; + option (google.api.method_signature) = "name"; + } + + // Updates an access policy. + rpc UpdateAccessPolicy(UpdateAccessPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + patch: "/v3beta/{access_policy.name=projects/*/locations/*/accessPolicies/*}" + body: "access_policy" + additional_bindings { + patch: "/v3beta/{access_policy.name=folders/*/locations/*/accessPolicies/*}" + body: "access_policy" + } + additional_bindings { + patch: "/v3beta/{access_policy.name=organizations/*/locations/*/accessPolicies/*}" + body: "access_policy" + } + }; + option (google.longrunning.operation_info) = { + response_type: "AccessPolicy" + metadata_type: "OperationMetadata" + }; + } + + // Deletes an access policy. + rpc DeleteAccessPolicy(DeleteAccessPolicyRequest) + returns (google.longrunning.Operation) { + option (google.api.http) = { + delete: "/v3beta/{name=projects/*/locations/*/accessPolicies/*}" + additional_bindings { + delete: "/v3beta/{name=folders/*/locations/*/accessPolicies/*}" + } + additional_bindings { + delete: "/v3beta/{name=organizations/*/locations/*/accessPolicies/*}" + } + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "google.protobuf.Empty" + metadata_type: "OperationMetadata" + }; + } + + // Lists access policies. + rpc ListAccessPolicies(ListAccessPoliciesRequest) + returns (ListAccessPoliciesResponse) { + option (google.api.http) = { + get: "/v3beta/{parent=projects/*/locations/*}/accessPolicies" + additional_bindings { + get: "/v3beta/{parent=folders/*/locations/*}/accessPolicies" + } + additional_bindings { + get: "/v3beta/{parent=organizations/*/locations/*}/accessPolicies" + } + }; + option (google.api.method_signature) = "parent"; + } + + // Returns all policy bindings that bind a specific policy if a user has + // searchPolicyBindings permission on that policy. + rpc SearchAccessPolicyBindings(SearchAccessPolicyBindingsRequest) + returns (SearchAccessPolicyBindingsResponse) { + option (google.api.http) = { + get: "/v3beta/{name=organizations/*/locations/*/accessPolicies/*}:searchPolicyBindings" + additional_bindings { + get: "/v3beta/{name=folders/*/locations/*/accessPolicies/*}:searchPolicyBindings" + } + additional_bindings { + get: "/v3beta/{name=projects/*/locations/*/accessPolicies/*}:searchPolicyBindings" + } + }; + option (google.api.method_signature) = "name"; + } +} + +// Request message for CreateAccessPolicy method. +message CreateAccessPolicyRequest { + // Required. The parent resource where this access policy will be created. + // + // Format: + // `projects/{project_id}/locations/{location}` + // `projects/{project_number}/locations/{location}` + // `folders/{folder_id}/locations/{location}` + // `organizations/{organization_id}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "iam.googleapis.com/AccessPolicy" + } + ]; + + // Required. The ID to use for the access policy, which + // will become the final component of the access policy's + // resource name. + // + // This value must start with a lowercase letter followed by up to 62 + // lowercase letters, numbers, hyphens, or dots. Pattern, + // /[a-z][a-z0-9-\.]{2,62}/. + // + // This value must be unique among all access policies with the same parent. + string access_policy_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The access policy to create. + AccessPolicy access_policy = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If set, validate the request and preview the creation, but do not + // actually post it. + bool validate_only = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for GetAccessPolicy method. +message GetAccessPolicyRequest { + // Required. The name of the access policy to retrieve. + // + // Format: + // `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + // `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/AccessPolicy" + } + ]; +} + +// Request message for UpdateAccessPolicy method. +message UpdateAccessPolicyRequest { + // Required. The access policy to update. + // + // The access policy's `name` field is used to identify the + // policy to update. + AccessPolicy access_policy = 1 [(google.api.field_behavior) = REQUIRED]; + + // Optional. If set, validate the request and preview the update, but do not + // actually post it. + bool validate_only = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for DeleteAccessPolicy method. +message DeleteAccessPolicyRequest { + // Required. The name of the access policy to delete. + // + // Format: + // `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + // `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/AccessPolicy" + } + ]; + + // Optional. The etag of the access policy. If this is provided, it must match + // the server's etag. + string etag = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set, validate the request and preview the deletion, but do not + // actually post it. + bool validate_only = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. If set to true, the request will force the deletion of the Policy + // even if the Policy references PolicyBindings. + bool force = 4 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for ListAccessPolicies method. +message ListAccessPoliciesRequest { + // Required. The parent resource, which owns the collection of access policy + // resources. + // + // Format: + // `projects/{project_id}/locations/{location}` + // `projects/{project_number}/locations/{location}` + // `folders/{folder_id}/locations/{location}` + // `organizations/{organization_id}/locations/{location}` + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + child_type: "iam.googleapis.com/AccessPolicy" + } + ]; + + // Optional. The maximum number of access policies to return. The + // service may return fewer than this value. + // + // If unspecified, at most 50 access policies will be returned. Valid value + // ranges from 1 to 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `ListAccessPolicies` call. Provide this to retrieve the + // subsequent page. + // + // When paginating, all other parameters provided to + // `ListAccessPolicies` must match the call that provided the + // page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for ListAccessPolicies method. +message ListAccessPoliciesResponse { + // The access policies from the specified parent. + repeated AccessPolicy access_policies = 1; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Request message for SearchAccessPolicyBindings rpc. +message SearchAccessPolicyBindingsRequest { + // Required. The name of the access policy. + // Format: + // `organizations/{organization_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `folders/{folder_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `projects/{project_id}/locations/{location}/accessPolicies/{access_policy_id}` + // `projects/{project_number}/locations/{location}/accessPolicies/{access_policy_id}` + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/AccessPolicy" + } + ]; + + // Optional. The maximum number of policy bindings to return. The service may + // return fewer than this value. + // + // If unspecified, at most 50 policy bindings will be returned. + // The maximum value is 1000; values above 1000 will be coerced to 1000. + int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. A page token, received from a previous + // `SearchAccessPolicyBindingsRequest` call. Provide this to + // retrieve the subsequent page. + // + // When paginating, all other parameters provided to + // `SearchAccessPolicyBindingsRequest` must match the call + // that provided the page token. + string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; +} + +// Response message for SearchAccessPolicyBindings rpc. +message SearchAccessPolicyBindingsResponse { + // The policy bindings that reference the specified policy. + repeated PolicyBinding policy_bindings = 1; + + // Optional. A token, which can be sent as `page_token` to retrieve the next + // page. If this field is omitted, there are no subsequent pages. + string next_page_token = 2 [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/access_policy_resources.proto b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/access_policy_resources.proto new file mode 100644 index 000000000000..624a0d7acd1a --- /dev/null +++ b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/access_policy_resources.proto @@ -0,0 +1,216 @@ +// Copyright 2026 Google LLC +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://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. + +syntax = "proto3"; + +package google.iam.v3beta; + +import "google/api/field_behavior.proto"; +import "google/api/field_info.proto"; +import "google/api/resource.proto"; +import "google/protobuf/timestamp.proto"; +import "google/type/expr.proto"; + +option csharp_namespace = "Google.Cloud.Iam.V3Beta"; +option go_package = "cloud.google.com/go/iam/apiv3beta/iampb;iampb"; +option java_multiple_files = true; +option java_outer_classname = "AccessPolicyResourcesProto"; +option java_package = "com.google.iam.v3beta"; +option php_namespace = "Google\\Cloud\\Iam\\V3beta"; + +// An IAM access policy resource. +message AccessPolicy { + option (google.api.resource) = { + type: "iam.googleapis.com/AccessPolicy" + pattern: "organizations/{organization}/locations/{location}/accessPolicies/{access_policy}" + pattern: "folders/{folder}/locations/{location}/accessPolicies/{access_policy}" + pattern: "projects/{project}/locations/{location}/accessPolicies/{access_policy}" + plural: "accessPolicies" + singular: "accessPolicy" + }; + + // Identifier. The resource name of the access policy. + // + // The following formats are supported: + // + // * `projects/{project_id}/locations/{location}/accessPolicies/{policy_id}` + // * `projects/{project_number}/locations/{location}/accessPolicies/{policy_id}` + // * `folders/{folder_id}/locations/{location}/accessPolicies/{policy_id}` + // * `organizations/{organization_id}/locations/{location}/accessPolicies/{policy_id}` + string name = 1 [(google.api.field_behavior) = IDENTIFIER]; + + // Output only. The globally unique ID of the access policy. + string uid = 2 [ + (google.api.field_info).format = UUID4, + (google.api.field_behavior) = OUTPUT_ONLY + ]; + + // Optional. The etag for the access policy. + // If this is provided on update, it must match the server's etag. + string etag = 3 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. The description of the access policy. Must be less than + // or equal to 63 characters. + string display_name = 4 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. User defined annotations. See + // https://google.aip.dev/148#annotations for more details such as format and + // size limitations + map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; + + // Output only. The time when the access policy was created. + google.protobuf.Timestamp create_time = 6 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. The time when the access policy was most recently + // updated. + google.protobuf.Timestamp update_time = 7 + [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Optional. The details for the access policy. + AccessPolicyDetails details = 8 [(google.api.field_behavior) = OPTIONAL]; +} + +// Access policy details. +message AccessPolicyDetails { + // Required. A list of access policy rules. + repeated AccessPolicyRule rules = 1 [(google.api.field_behavior) = REQUIRED]; +} + +// Access Policy Rule that determines the behavior of the policy. +message AccessPolicyRule { + // Attributes that are used to determine whether this rule applies to a + // request. + message Operation { + // Optional. The permissions that are explicitly affected by this rule. Each + // permission uses the format `{service_fqdn}/{resource}.{verb}`, where + // `{service_fqdn}` is the fully qualified domain name for the service. + // Currently supported permissions are as follows: + // + // * `eventarc.googleapis.com/messageBuses.publish`. + repeated string permissions = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Optional. Specifies the permissions that this rule excludes from the set + // of affected permissions given by `permissions`. If a permission appears + // in `permissions` _and_ in `excluded_permissions` then it will _not_ be + // subject to the policy effect. + // + // The excluded permissions can be specified using the same syntax as + // `permissions`. + repeated string excluded_permissions = 2 + [(google.api.field_behavior) = OPTIONAL]; + } + + // An effect to describe the access relationship. + enum Effect { + // The effect is unspecified. + EFFECT_UNSPECIFIED = 0; + + // The policy will deny access if it evaluates to true. + DENY = 1; + + // The policy will grant access if it evaluates to true. + ALLOW = 2; + } + + // Optional. Customer specified description of the rule. Must be less than or + // equal to 256 characters. + optional string description = 1 [(google.api.field_behavior) = OPTIONAL]; + + // Required. The effect of the rule. + optional Effect effect = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The identities for which this rule's effect governs using one or + // more permissions on Google Cloud resources. This field can contain the + // following values: + // + // * `principal://goog/subject/{email_id}`: A specific Google Account. + // Includes Gmail, Cloud Identity, and Google Workspace user accounts. For + // example, `principal://goog/subject/alice@example.com`. + // + // * `principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}`: + // A Google Cloud service account. For example, + // `principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com`. + // + // * `principalSet://goog/group/{group_id}`: A Google group. For example, + // `principalSet://goog/group/admins@example.com`. + // + // * `principalSet://goog/cloudIdentityCustomerId/{customer_id}`: All of the + // principals associated with the specified Google Workspace or Cloud + // Identity customer ID. For example, + // `principalSet://goog/cloudIdentityCustomerId/C01Abc35`. + // + // + // If an identifier that was previously set on a policy is soft deleted, then + // calls to read that policy will return the identifier with a deleted + // prefix. Users cannot set identifiers with this syntax. + // + // * `deleted:principal://goog/subject/{email_id}?uid={uid}`: A specific + // Google Account that was deleted recently. For example, + // `deleted:principal://goog/subject/alice@example.com?uid=1234567890`. If + // the Google Account is recovered, this identifier reverts to the standard + // identifier for a Google Account. + // + // * `deleted:principalSet://goog/group/{group_id}?uid={uid}`: A Google group + // that was deleted recently. For example, + // `deleted:principalSet://goog/group/admins@example.com?uid=1234567890`. + // If the Google group is restored, this identifier reverts to the standard + // identifier for a Google group. + // + // * `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/{service_account_id}?uid={uid}`: + // A Google Cloud service account that was deleted recently. For example, + // `deleted:principal://iam.googleapis.com/projects/-/serviceAccounts/my-service-account@iam.gserviceaccount.com?uid=1234567890`. + // If the service account is undeleted, this identifier reverts to the + // standard identifier for a service account. + repeated string principals = 3 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The identities that are excluded from the access policy rule, + // even if they are listed in the `principals`. For example, you could add a + // Google group to the `principals`, then exclude specific users who belong to + // that group. + repeated string excluded_principals = 4 + [(google.api.field_behavior) = OPTIONAL]; + + // Required. Attributes that are used to determine whether this rule applies + // to a request. + Operation operation = 10 [(google.api.field_behavior) = REQUIRED]; + + // Optional. The conditions that determine whether this rule applies to a + // request. Conditions are identified by their key, which is the FQDN of the + // service that they are relevant to. For example: + // + // ``` + // "conditions": { + // "iam.googleapis.com": { + // "expression": + // } + // } + // ``` + // + // Each rule is evaluated independently. If this rule does not apply + // to a request, other rules might still apply. + // Currently supported keys are as follows: + // + // + // * `eventarc.googleapis.com`: Can use `CEL` functions that evaluate + // resource fields. + // + // * `iam.googleapis.com`: Can use `CEL` functions that evaluate + // [resource + // tags](https://cloud.google.com/iam/help/conditions/resource-tags) and + // combine them using boolean and logical operators. Other functions and + // operators are not supported. + map conditions = 9 + [(google.api.field_behavior) = OPTIONAL]; +} diff --git a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/operation_metadata.proto b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/operation_metadata.proto index 6c6225209362..c3e75283e584 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/operation_metadata.proto +++ b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/operation_metadata.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/policy_binding_resources.proto b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/policy_binding_resources.proto index 1fed6cfcefe7..ea3534b83bee 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/policy_binding_resources.proto +++ b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/policy_binding_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -40,44 +40,61 @@ message PolicyBinding { singular: "policyBinding" }; - // Target is the full resource name of the resource to which the policy will + // The full resource name of the resource to which the policy will // be bound. Immutable once set. message Target { // The different types of targets that can be bound to a policy. oneof target { - // Immutable. Full Resource Name used for principal access boundary policy - // bindings. The principal set must be directly parented by the policy - // binding's parent or same as the parent if the target is a - // project/folder/organization. + // Immutable. The full resource name that's used for principal access + // boundary policy bindings. The principal set must be directly parented + // by the policy binding's parent or same as the parent if the target is a + // project, folder, or organization. // // Examples: - // * For binding's parented by an organization: - // * Organization: - // `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` - // * Workforce Identity: - // `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID` - // * Workspace Identity: - // `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID` - // * For binding's parented by a folder: - // * Folder: - // `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` - // * For binding's parented by a project: - // * Project: + // + // * For bindings parented by an organization: + // * Organization: + // `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` + // * Workforce Identity: + // `//iam.googleapis.com/locations/global/workforcePools/WORKFORCE_POOL_ID` + // * Workspace Identity: + // `//iam.googleapis.com/locations/global/workspace/WORKSPACE_ID` + // * For bindings parented by a folder: + // * Folder: + // `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` + // * For bindings parented by a project: + // * Project: + // * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER` + // * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID` + // * Workload Identity Pool: + // `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID` + string principal_set = 1 [(google.api.field_behavior) = IMMUTABLE]; + + // Immutable. The full resource name that's used for access policy + // bindings. + // + // Examples: + // + // * Organization: + // `//cloudresourcemanager.googleapis.com/organizations/ORGANIZATION_ID` + // * Folder: `//cloudresourcemanager.googleapis.com/folders/FOLDER_ID` + // * Project: // * `//cloudresourcemanager.googleapis.com/projects/PROJECT_NUMBER` // * `//cloudresourcemanager.googleapis.com/projects/PROJECT_ID` - // * Workload Identity Pool: - // `//iam.googleapis.com/projects/PROJECT_NUMBER/locations/LOCATION/workloadIdentityPools/WORKLOAD_POOL_ID` - string principal_set = 1 [(google.api.field_behavior) = IMMUTABLE]; + string resource = 2 [(google.api.field_behavior) = IMMUTABLE]; } } - // Different policy kinds supported in this binding. + // The different policy kinds supported in this binding. enum PolicyKind { // Unspecified policy kind; Not a valid state POLICY_KIND_UNSPECIFIED = 0; // Principal access boundary policy kind PRINCIPAL_ACCESS_BOUNDARY = 1; + + // Access policy kind. + ACCESS = 2; } // Identifier. The name of the policy binding, in the format @@ -113,8 +130,8 @@ message PolicyBinding { // size limitations map annotations = 5 [(google.api.field_behavior) = OPTIONAL]; - // Required. Immutable. Target is the full resource name of the resource to - // which the policy will be bound. Immutable once set. + // Required. Immutable. The full resource name of the resource to which the + // policy will be bound. Immutable once set. Target target = 6 [ (google.api.field_behavior) = IMMUTABLE, (google.api.field_behavior) = REQUIRED @@ -166,13 +183,14 @@ message PolicyBinding { // - `principal.type != ` // - `principal.type in []` // - // Supported principal types are Workspace, Workforce Pool, Workload Pool and - // Service Account. Allowed string must be one of: + // Supported principal types are workspace, workforce pool, workload pool, + // service account, and Agent Identity. Allowed string must be one of: // - // - iam.googleapis.com/WorkspaceIdentity - // - iam.googleapis.com/WorkforcePoolIdentity - // - iam.googleapis.com/WorkloadPoolIdentity - // - iam.googleapis.com/ServiceAccount + // - `iam.googleapis.com/WorkspaceIdentity` + // - `iam.googleapis.com/WorkforcePoolIdentity` + // - `iam.googleapis.com/WorkloadPoolIdentity` + // - `iam.googleapis.com/ServiceAccount` + // - `iam.googleapis.com/AgentPoolIdentity` (available in Preview) google.type.Expr condition = 8 [(google.api.field_behavior) = OPTIONAL]; // Output only. The time when the policy binding was created. diff --git a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/policy_bindings_service.proto b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/policy_bindings_service.proto index e4f7c854472d..d031c83d11a5 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/policy_bindings_service.proto +++ b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/policy_bindings_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -50,7 +50,7 @@ service PolicyBindings { // Creates a policy binding and returns a long-running operation. // Callers will need the IAM permissions on both the policy and target. - // Once the binding is created, the policy is applied to the target. + // After the binding is created, the policy is applied to the target. rpc CreatePolicyBinding(CreatePolicyBindingRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -89,9 +89,7 @@ service PolicyBindings { // Updates a policy binding and returns a long-running operation. // Callers will need the IAM permissions on the policy and target in the - // binding to update, and the IAM permission to remove the existing policy - // from the binding. Target is immutable and cannot be updated. Once the - // binding is updated, the new policy is applied to the target. + // binding to update. Target and policy are immutable and cannot be updated. rpc UpdatePolicyBinding(UpdatePolicyBindingRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -115,7 +113,7 @@ service PolicyBindings { // Deletes a policy binding and returns a long-running operation. // Callers will need the IAM permissions on both the policy and target. - // Once the binding is deleted, the policy no longer applies to the target. + // After the binding is deleted, the policy no longer applies to the target. rpc DeletePolicyBinding(DeletePolicyBindingRequest) returns (google.longrunning.Operation) { option (google.api.http) = { @@ -283,8 +281,7 @@ message ListPolicyBindingsRequest { // Optional. The maximum number of policy bindings to return. The service may // return fewer than this value. // - // If unspecified, at most 50 policy bindings will be returned. - // The maximum value is 1000; values above 1000 will be coerced to 1000. + // The default value is 50. The maximum value is 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous `ListPolicyBindings` call. @@ -295,7 +292,8 @@ message ListPolicyBindingsRequest { string page_token = 3 [(google.api.field_behavior) = OPTIONAL]; // Optional. An expression for filtering the results of the request. Filter - // rules are case insensitive. Some eligible fields for filtering are: + // rules are case insensitive. Some eligible fields for filtering are the + // following: // // + `target` // + `policy` @@ -335,8 +333,7 @@ message SearchTargetPolicyBindingsRequest { // Optional. The maximum number of policy bindings to return. The service may // return fewer than this value. // - // If unspecified, at most 50 policy bindings will be returned. - // The maximum value is 1000; values above 1000 will be coerced to 1000. + // The default value is 50. The maximum value is 1000. int32 page_size = 2 [(google.api.field_behavior) = OPTIONAL]; // Optional. A page token, received from a previous @@ -364,6 +361,18 @@ message SearchTargetPolicyBindingsRequest { child_type: "iam.googleapis.com/PolicyBinding" } ]; + + // Optional. Filtering currently only supports the kind of policies to return, + // and must be in the format "policy_kind={policy_kind}". + // + // If String is empty, bindings bound to all kinds of policies would be + // returned. + // + // The only supported values are the following: + // + // * "policy_kind=PRINCIPAL_ACCESS_BOUNDARY", + // * "policy_kind=ACCESS" + string filter = 6 [(google.api.field_behavior) = OPTIONAL]; } // Response message for SearchTargetPolicyBindings method. diff --git a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/principal_access_boundary_policies_service.proto b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/principal_access_boundary_policies_service.proto index fd3817c33805..617d90c2680d 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/principal_access_boundary_policies_service.proto +++ b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/principal_access_boundary_policies_service.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/principal_access_boundary_policy_resources.proto b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/principal_access_boundary_policy_resources.proto index 738e0cc05c13..d1aa8b8209b1 100644 --- a/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/principal_access_boundary_policy_resources.proto +++ b/java-iam/proto-google-iam-v3beta/src/main/proto/google/iam/v3beta/principal_access_boundary_policy_resources.proto @@ -1,4 +1,4 @@ -// Copyright 2025 Google LLC +// Copyright 2026 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. From bbc2be096c5be554d132a3dcf872ad79307b64cd Mon Sep 17 00:00:00 2001 From: cloud-java-bot Date: Thu, 23 Apr 2026 22:10:48 +0000 Subject: [PATCH 19/19] chore: generate libraries at Thu Apr 23 20:35:55 UTC 2026 --- java-datastore/google-cloud-datastore-bom/pom.xml | 5 +++++ java-datastore/pom.xml | 2 +- java-iam/pom.xml | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) diff --git a/java-datastore/google-cloud-datastore-bom/pom.xml b/java-datastore/google-cloud-datastore-bom/pom.xml index d6b8177f3201..4cd9ce269f54 100644 --- a/java-datastore/google-cloud-datastore-bom/pom.xml +++ b/java-datastore/google-cloud-datastore-bom/pom.xml @@ -60,6 +60,11 @@ grpc-google-cloud-datastore-admin-v1 2.40.0 + + com.google.api.grpc + grpc-google-cloud-datastore-v1 + 2.40.0 + com.google.api.grpc proto-google-cloud-datastore-v1 diff --git a/java-datastore/pom.xml b/java-datastore/pom.xml index 9296db0bd729..8b7f669066d1 100644 --- a/java-datastore/pom.xml +++ b/java-datastore/pom.xml @@ -224,9 +224,9 @@ google-cloud-datastore grpc-google-cloud-datastore-admin-v1 + grpc-google-cloud-datastore-v1 proto-google-cloud-datastore-v1 proto-google-cloud-datastore-admin-v1 - grpc-google-cloud-datastore-v1 datastore-v1-proto-client google-cloud-datastore-bom google-cloud-datastore-utils diff --git a/java-iam/pom.xml b/java-iam/pom.xml index c09cf5d697d8..e1ad8a078bc7 100644 --- a/java-iam/pom.xml +++ b/java-iam/pom.xml @@ -163,11 +163,11 @@ grpc-google-iam-v2 grpc-google-iam-v3 grpc-google-iam-v3beta + grpc-google-iam-v1 proto-google-iam-v2beta proto-google-iam-v2 proto-google-iam-v3 proto-google-iam-v3beta - grpc-google-iam-v1